Vidalia  0.3.1
Public Slots | Public Member Functions | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
MainWindow Class Reference

#include <MainWindow.h>

Inheritance diagram for MainWindow:
VidaliaWindow

Public Slots

virtual void setVisible (bool visible)
 
- Public Slots inherited from VidaliaWindow
virtual void setVisible (bool visible)
 
virtual void showWindow ()
 

Public Member Functions

 MainWindow ()
 
 ~MainWindow ()
 
- Public Member Functions inherited from VidaliaWindow
 VidaliaWindow (const QString &name, QWidget *parent=0, Qt::WFlags flags=0)
 
 ~VidaliaWindow ()
 
void setShortcut (const QString &shortcut, const char *slot)
 
void saveWindowState ()
 
void restoreWindowState ()
 
QVariant getSetting (QString name, QVariant defaultValue)
 
void saveSetting (QString name, QVariant value)
 

Protected Member Functions

virtual void retranslateUi ()
 
- Protected Member Functions inherited from VidaliaWindow
virtual void changeEvent (QEvent *e)
 

Private Types

enum  TorStatus {
  Unset, Stopping, Stopped, Starting,
  Started, Authenticating, Authenticated, CircuitEstablished
}
 

Private Slots

void trayIconActivated (QSystemTrayIcon::ActivationReason reason)
 
void start ()
 
void restart ()
 
void sighup ()
 
void startFailed (QString errmsg)
 
void started ()
 
bool stop ()
 
void stopped (int errorCode, QProcess::ExitStatus exitStatus)
 
void connected ()
 
void connectFailed (QString errmsg)
 
void disconnect ()
 
void disconnected ()
 
void authenticated ()
 
bool tryCookie (const ProtocolInfo &pi)
 
bool tryHashed ()
 
void authenticationFailed (QString errmsg)
 
void enableNewIdentity ()
 
void newIdentity ()
 
void close ()
 
void running ()
 
void aboutToQuit ()
 
void circuitEstablished ()
 
void warnDangerousPort (quint16 port, bool rejected)
 
void bootstrapStatusChanged (const BootstrapStatus &bs)
 
void dangerousTorVersion (tc::TorVersionStatus reason, const QString &version, const QStringList &recommended)
 
void handleCloseTab (int index)
 
void showConfigDialog (ConfigDialog::Page page=ConfigDialog::General)
 
void showMessageLogTab ()
 
void showStatusTab ()
 
void showBandwidthTab ()
 
void showNetViewerTab ()
 
void showAboutDialog ()
 
void showHelpDialog ()
 
void showHelpDialog (const QString &topic)
 
void showDebugDialog ()
 
void addTab (VidaliaTab *tab)
 
void delTab (int index=-1)
 
void attachTab ()
 
void detachTab ()
 
void handleAttachedClose ()
 
void clockSkewed (int skew, const QString &source)
 

Private Member Functions

void createGUI ()
 
void createConnections ()
 
void createActions ()
 
void createTrayIcon ()
 
QMenu * createTrayMenu ()
 
void createMenuBar ()
 
void createToolBar ()
 
void setTrayIcon (const QString &iconFile)
 
TorStatus updateTorStatus (TorStatus status)
 
QString toString (TorStatus status)
 
bool authenticate ()
 
QByteArray loadControlCookie (QString cookiePath=QString())
 
void checkTorVersion ()
 
void displayTorVersionWarning ()
 
void setStartupProgressVisible (bool visible)
 
void setStartupProgress (int percentComplete, const QString &description)
 

Private Attributes

TorStatus _status
 
bool _isIntentionalExit
 
bool _delayedShutdownStarted
 
bool _isVidaliaRunningTor
 
TorControl_torControl
 
QString _controlPassword
 
bool _useSavedPassword
 
QSystemTrayIcon _trayIcon
 
QAction * _actionShowControlPanel
 
QAction * _actionStartStopTor
 
QAction * _actionRestartTor
 
QAction * _actionReloadConfig
 
QAction * _actionNewIdentity
 
QAction * _actionStatus
 
QAction * _actionNetworkMap
 
QAction * _actionMessageLog
 
QAction * _actionBandwidthGraph
 
QAction * _actionConfigure
 
QAction * _actionVidaliaHelp
 
QAction * _actionAbout
 
QAction * _actionExit
 
QAction * _actionDebugDialog
 
QMenu _reattachMenu
 
QAction * _dummy
 
Ui::MainWindow ui
 
StatusTab _statusTab
 
MessageLog_messageLog
 
NetViewer _netViewer
 
BandwidthGraph_graph
 
PluginEngine_engine
 
QStringList _tabMap
 
QStringList _detachedTabMap
 
bool _startedWithPrevious
 
QString _previousControlPort
 
QString _previousSocksPort
 

Additional Inherited Members

- Signals inherited from VidaliaWindow
void helpRequested (const QString &topic)
 

Detailed Description

Definition at line 45 of file MainWindow.h.

Member Enumeration Documentation

enum MainWindow::TorStatus
private
Enumerator
Unset 

Tor's status has not yet been set.

Stopping 

Tor is in the process of shutting down.

Stopped 

Tor is not running.

Starting 

Tor is in the process of starting.

Started 

Tor is currently running.

Authenticating 

Vidalia is authenticating to Tor.

Authenticated 

Vidalia has authenticated to Tor.

CircuitEstablished 

Tor has built a circuit.

Definition at line 195 of file MainWindow.h.

Constructor & Destructor Documentation

MainWindow::MainWindow ( )

Default constructor

Default constructor. It installs an icon in the system tray area and creates the popup menu associated with that icon.

Definition at line 105 of file MainWindow.cpp.

References _dummy, _engine, _isVidaliaRunningTor, _startedWithPrevious, _status, _torControl, createConnections(), createGUI(), VidaliaSettings::getIconPref(), VidaliaWindow::setVisible(), Stopped, Vidalia::torControl(), VidaliaSettings::Tray, Unset, and updateTorStatus().

MainWindow::~MainWindow ( )

Destructor.

Destructor

Definition at line 138 of file MainWindow.cpp.

References _engine.

Member Function Documentation

void MainWindow::aboutToQuit ( )
privateslot

Terminate the Tor process if it is being run under Vidalia, disconnect all TorControl signals, and exit Vidalia.

Definition at line 543 of file MainWindow.cpp.

References _torControl, ServerSettings::cleanupPortForwarding(), disconnect(), TorControl::isVidaliaRunningTor(), TorControl::stop(), and vNotice.

Referenced by createConnections().

void MainWindow::addTab ( VidaliaTab tab)
privateslot

Adds a new tab to the MainWindow

If the tab's already open, display it and delete the instanse passed

If we are trying to open the exact same tab twice don't do anything

Exception for tabs that need to be always created

The new tab is added to the last position

Definition at line 1787 of file MainWindow.cpp.

References _graph, _messageLog, _netViewer, _statusTab, _tabMap, attachTab(), connect(), detachTab(), VidaliaTab::getTitle(), handleAttachedClose(), VidaliaWindow::helpRequested(), VAttachButton::setTab(), setVisible(), showHelpDialog(), and ui.

Referenced by attachTab(), createConnections(), createGUI(), handleAttachedClose(), showBandwidthTab(), showMessageLogTab(), showNetViewerTab(), and showStatusTab().

void MainWindow::attachTab ( )
privateslot

Attaches a tab to the tabwidget

Definition at line 1720 of file MainWindow.cpp.

References _detachedTabMap, _dummy, _reattachMenu, addTab(), and ui.

Referenced by addTab(), and detachTab().

bool MainWindow::authenticate ( )
private
void MainWindow::authenticated ( )
privateslot
void MainWindow::authenticationFailed ( QString  errmsg)
privateslot
void MainWindow::bootstrapStatusChanged ( const BootstrapStatus bs)
privateslot
void MainWindow::checkTorVersion ( )
private

Checks the status of the current version of Tor to see if it's old, unrecommended, or obsolete.

Definition at line 1407 of file MainWindow.cpp.

References _torControl, displayTorVersionWarning(), TorControl::getInfo(), and VidaliaSettings::skipVersionCheck().

Referenced by authenticated().

void MainWindow::circuitEstablished ( )
privateslot
void MainWindow::clockSkewed ( int  skew,
const QString &  source 
)
privateslot

Called when tor detects a problem with the system clock

Definition at line 273 of file MainWindow.cpp.

References _trayIcon, TorControl::getTorVersion(), TorControl::getTorVersionString(), quint32, and Vidalia::torControl().

Referenced by createConnections().

void MainWindow::close ( )
privateslot

Called when the user exits Vidalia.

Called when the application is closing, by selecting "Exit" from the tray menu. If we're running a Tor server, then ask if we want to kill Tor now, or do a delayed shutdown.

Definition at line 469 of file MainWindow.cpp.

References _torControl, connect(), disconnect(), TorControl::isConnected(), ServerSettings::isServerEnabled(), TorControl::isVidaliaRunningTor(), stop(), stopped(), and vApp.

Referenced by createConnections().

void MainWindow::connected ( )
privateslot

Called when the control socket has connected to Tor.

Called when the control socket has successfully connected to Tor.

Definition at line 892 of file MainWindow.cpp.

References _previousControlPort, _previousSocksPort, _torControl, authenticate(), TorSettings::autoControlPort(), err(), TorControl::getInfo(), TorControl::isVidaliaRunningTor(), TorControl::takeOwnership(), and vWarn.

Referenced by createConnections().

void MainWindow::connectFailed ( QString  errmsg)
privateslot

Called when the control connection fails.

Called when the connection to the control socket fails. The reason will be given in the errmsg parameter.

Definition at line 928 of file MainWindow.cpp.

References _torControl, TorControl::connect(), TorSettings::getControlAddress(), TorSettings::getControlPort(), VMessageBox::Help, VMessageBox::Ok, p(), VMessageBox::Retry, showHelpDialog(), TorControl::stop(), and VMessageBox::warning().

Referenced by createConnections(), and started().

void MainWindow::createActions ( )
private
void MainWindow::createConnections ( )
private
void MainWindow::createGUI ( )
private

Calls the different methods that will handle the GUI "creation". It's called once at the MainWindow creation.

Definition at line 146 of file MainWindow.cpp.

References _graph, _messageLog, _statusTab, addTab(), createActions(), createMenuBar(), createToolBar(), createTrayIcon(), and ui.

Referenced by MainWindow().

void MainWindow::createMenuBar ( )
private
void MainWindow::createToolBar ( )
private

Creates a toolbar

Creates the main toolbar

Definition at line 231 of file MainWindow.cpp.

References _actionConfigure, _actionNewIdentity, _actionStartStopTor, and ui.

Referenced by createGUI().

void MainWindow::createTrayIcon ( )
private

Creates a tray icon with a context menu and adds it to the system notification area. On Mac, we also set up an application menubar.

Definition at line 295 of file MainWindow.cpp.

References _statusTab, _trayIcon, StatusTab::checkShowOnStartup(), connect(), createTrayMenu(), StatusTab::isCheckedShowOnStartup(), VidaliaSettings::showMainWindowAtStart(), and trayIconActivated().

Referenced by createGUI().

QMenu * MainWindow::createTrayMenu ( )
private

Create the tray popup menu and it's submenus

Creates a QMenu object that contains QActions which compose the system tray menu.

Definition at line 245 of file MainWindow.cpp.

References _actionAbout, _actionBandwidthGraph, _actionConfigure, _actionExit, _actionMessageLog, _actionNetworkMap, _actionNewIdentity, _actionShowControlPanel, _actionStartStopTor, _actionVidaliaHelp, and _reattachMenu.

Referenced by createTrayIcon().

void MainWindow::dangerousTorVersion ( tc::TorVersionStatus  reason,
const QString &  current,
const QStringList &  recommended 
)
privateslot

Called when Tor thinks its version is old or unrecommended, and displays a message notifying the user.

Definition at line 1055 of file MainWindow.cpp.

References displayTorVersionWarning(), tc::ObsoleteTorVersion, and tc::UnrecommendedTorVersion.

Referenced by createConnections().

void MainWindow::delTab ( int  index = -1)
privateslot

Deletes the tab at index if it exists and it isn't the Status tab

Definition at line 1837 of file MainWindow.cpp.

References _graph, _messageLog, _netViewer, _statusTab, _tabMap, disconnect(), and ui.

Referenced by handleAttachedClose(), and handleCloseTab().

void MainWindow::detachTab ( )
privateslot

Detaches a tab from the tabwidget

Definition at line 1735 of file MainWindow.cpp.

References _detachedTabMap, _dummy, _reattachMenu, _tabMap, attachTab(), connect(), VAttachButton::getTab(), and ui.

Referenced by addTab().

void MainWindow::disconnect ( )
privateslot

Called when Vidalia wants to disconnect from a Tor it did not start.

Definition at line 1637 of file MainWindow.cpp.

References _torControl, and TorControl::disconnect().

Referenced by authenticate(), and authenticationFailed().

void MainWindow::disconnected ( )
privateslot

Called when the control socket has been disconnected.

Definition at line 1644 of file MainWindow.cpp.

References _actionNewIdentity, _isVidaliaRunningTor, Stopped, and updateTorStatus().

Referenced by createConnections().

void MainWindow::displayTorVersionWarning ( )
private

Alerts the user that their current Tor version is either obsolete or no longer recommended. If Vidalia was built with auto-update support, they will be given the option to check for available updates.

Called when Tor thinks its version is old or unrecommended, and displays a message notifying the user.

Definition at line 1070 of file MainWindow.cpp.

References VMessageBox::information(), VMessageBox::No, VMessageBox::Ok, p(), and VMessageBox::Yes.

Referenced by checkTorVersion(), and dangerousTorVersion().

void MainWindow::enableNewIdentity ( )
privateslot

Re-enables the 'New Identity' button after a delay from the previous time 'New Identity' was used.

Definition at line 1701 of file MainWindow.cpp.

References _actionNewIdentity, _torControl, and TorControl::isConnected().

Referenced by newIdentity().

void MainWindow::handleAttachedClose ( )
privateslot

Called when trying to close a tab that has been detached

Definition at line 1756 of file MainWindow.cpp.

References _detachedTabMap, _dummy, _reattachMenu, addTab(), delTab(), VidaliaTab::getTitle(), and ui.

Referenced by addTab().

void MainWindow::handleCloseTab ( int  index)
privateslot

Definition at line 1709 of file MainWindow.cpp.

References delTab().

Referenced by createConnections().

QByteArray MainWindow::loadControlCookie ( QString  cookiePath = QString())
private

Searches for and attempts to load the control authentication cookie. This assumes the cookie is named 'control_auth_cookie'. If cookiePath is empty, this method will search some default locations depending on the current platform. cookiePath can point to either a cookie file or a directory containing the cookie file.

Definition at line 1428 of file MainWindow.cpp.

References expand_filename(), TorSettings::getDataDirectory(), vDebug, vInfo, and vWarn.

Referenced by tryCookie().

void MainWindow::newIdentity ( )
privateslot

Called when the user selects the "New Identity" action from the menu.

Definition at line 1668 of file MainWindow.cpp.

References _actionNewIdentity, _torControl, _trayIcon, enableNewIdentity(), VMessageBox::information(), MIN_NEWIDENTITY_INTERVAL, TorSignal::NewNym, VMessageBox::Ok, TorControl::signal(), and VMessageBox::warning().

Referenced by createConnections().

void MainWindow::restart ( )
privateslot

Called when the user changes a setting that needs Tor restarting

Definition at line 1593 of file MainWindow.cpp.

References start(), and stop().

Referenced by createConnections().

void MainWindow::retranslateUi ( )
protectedvirtual
void MainWindow::running ( )
privateslot
void MainWindow::setStartupProgress ( int  progressValue,
const QString &  description 
)
private

Sets the progress bar completion value to progressValue and sets the status text to description.

Definition at line 1628 of file MainWindow.cpp.

References _statusTab, _trayIcon, and StatusTab::setProgress().

Referenced by authenticate(), authenticated(), bootstrapStatusChanged(), circuitEstablished(), started(), and updateTorStatus().

void MainWindow::setStartupProgressVisible ( bool  visible)
private

Sets the visibility of the startup status description and progress bar to visible.

Definition at line 1619 of file MainWindow.cpp.

References _statusTab, StatusTab::setProgressVisible(), and StatusTab::setTorStatusVisible().

Referenced by updateTorStatus().

void MainWindow::setTrayIcon ( const QString &  iconFile)
private

Sets the current tray or dock icon image to iconFile.

Definition at line 1556 of file MainWindow.cpp.

References _trayIcon, VidaliaSettings::Dock, and VidaliaSettings::getIconPref().

Referenced by updateTorStatus().

void MainWindow::setVisible ( bool  visible)
virtualslot

Shows or hides this window.

Definition at line 318 of file MainWindow.cpp.

References _statusTab, StatusTab::hideCheckShowOnStartup(), and VidaliaWindow::setVisible().

Referenced by addTab(), and trayIconActivated().

void MainWindow::showAboutDialog ( )
privateslot

Creates and displays Vidalia's About dialog.

Definition at line 1876 of file MainWindow.cpp.

Referenced by createConnections().

void MainWindow::showBandwidthTab ( )
privateslot

Displays the Bandwidth graph tab

Definition at line 1869 of file MainWindow.cpp.

References _graph, and addTab().

Referenced by createConnections().

void MainWindow::showConfigDialog ( ConfigDialog::Page  page = ConfigDialog::General)
privateslot

Creates and displays the Configuration dialog with the current page set to page.

Definition at line 1658 of file MainWindow.cpp.

References connect(), VidaliaWindow::helpRequested(), showHelpDialog(), and ConfigDialog::showWindow().

Referenced by createConnections(), and startFailed().

void MainWindow::showDebugDialog ( )
privateslot

Displays the debug output dialog for plugins

Definition at line 1907 of file MainWindow.cpp.

Referenced by createConnections().

void MainWindow::showHelpDialog ( )
privateslot

Displays the help browser and displays the most recently viewed help topic.

Displays the help browser and displays the most recently viewed help topic. Shows the help browser and displays the given help topic.

Definition at line 1885 of file MainWindow.cpp.

Referenced by addTab(), authenticationFailed(), connectFailed(), createConnections(), showConfigDialog(), startFailed(), stop(), and stopped().

void MainWindow::showHelpDialog ( const QString &  topic)
privateslot

Called when a child window requests the given help topic.

Definition at line 1892 of file MainWindow.cpp.

References HelpBrowser::showWindow().

void MainWindow::showMessageLogTab ( )
privateslot

Displays the Message Log tab

Definition at line 1863 of file MainWindow.cpp.

References _messageLog, and addTab().

Referenced by createConnections(), and stopped().

void MainWindow::showNetViewerTab ( )
privateslot

Displays the Network map tab

Definition at line 1901 of file MainWindow.cpp.

References _netViewer, and addTab().

Referenced by createConnections().

void MainWindow::showStatusTab ( )
privateslot

Displays the General Tor Status tab

Definition at line 1857 of file MainWindow.cpp.

References _statusTab, and addTab().

Referenced by createConnections().

void MainWindow::sighup ( )
privateslot

Called when the user wants to reload Tor's config

Sends a sighup signal to Tor on platforms other than Windows

Definition at line 1602 of file MainWindow.cpp.

References _torControl, VMessageBox::Ok, p(), TorSignal::Reload, TorControl::signal(), and VMessageBox::warning().

Referenced by createConnections().

void MainWindow::start ( )
privateslot
void MainWindow::started ( )
privateslot
void MainWindow::startFailed ( QString  errmsg)
privateslot

Called when the Tor process fails to start.

Called when the Tor process fails to start, for example, because the path specified to the Tor executable didn't lead to an executable.

Definition at line 853 of file MainWindow.cpp.

References _previousControlPort, _previousSocksPort, _startedWithPrevious, VMessageBox::Cancel, VMessageBox::Help, showConfigDialog(), showHelpDialog(), VMessageBox::ShowSettings, start(), Stopped, updateTorStatus(), vWarn, and VMessageBox::warning().

Referenced by createConnections().

bool MainWindow::stop ( )
privateslot
void MainWindow::stopped ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
privateslot

Called when the Tor process has exited, either expectedly or not.

Slot: Called when the Tor process has exited. It will adjust the tray icons and tooltips accordingly.

Definition at line 823 of file MainWindow.cpp.

References _isIntentionalExit, VMessageBox::Help, VMessageBox::Ok, showHelpDialog(), VMessageBox::ShowLog, showMessageLogTab(), Stopped, updateTorStatus(), and VMessageBox::warning().

Referenced by close(), and createConnections().

QString MainWindow::toString ( TorStatus  status)
private

Converts a TorStatus enum value to a string for debug logging purposes.

Definition at line 1573 of file MainWindow.cpp.

References Authenticated, Authenticating, CircuitEstablished, Started, Starting, Stopped, Stopping, and Unset.

Referenced by updateTorStatus().

void MainWindow::trayIconActivated ( QSystemTrayIcon::ActivationReason  reason)
privateslot

Respond to a double-click on the tray icon by opening the Control Panel window.

Definition at line 336 of file MainWindow.cpp.

References setVisible().

Referenced by createTrayIcon().

bool MainWindow::tryCookie ( const ProtocolInfo pi)
privateslot
bool MainWindow::tryHashed ( )
privateslot

Called when cookie auth fails or when it's the only method configured

Definition at line 1389 of file MainWindow.cpp.

References _controlPassword, _torControl, _useSavedPassword, TorControl::authenticate(), TorSettings::getControlPassword(), and vNotice.

Referenced by authenticate().

MainWindow::TorStatus MainWindow::updateTorStatus ( TorStatus  status)
private
void MainWindow::warnDangerousPort ( quint16  port,
bool  rejected 
)
privateslot

Called when Tor thinks the user has tried to connect to a port that typically is used for unencrypted applications. Warns the user and allows them to ignore future warnings on port.

Called when Tor thinks the user has tried to connect to a port that typically is used for unencrypted applications. Warns the user and allows them to ignore future warnings on port. It is possible that Tor will produce multiple asynchronous status events warning of dangerous ports while the message box is displayed (for example, while the user is away from the keyboard), so subsequent messages will be discarded until the first message box is dismissed.

Definition at line 1216 of file MainWindow.cpp.

References TorSettings::getRejectPlaintextPorts(), TorSettings::getWarnPlaintextPorts(), p(), TorControl::setConf(), TorSettings::setRejectPlaintextPorts(), TorSettings::setWarnPlaintextPorts(), and Vidalia::torControl().

Referenced by createConnections().

Member Data Documentation

QAction* MainWindow::_actionAbout
private
QAction* MainWindow::_actionBandwidthGraph
private
QAction* MainWindow::_actionConfigure
private
QAction* MainWindow::_actionDebugDialog
private

Definition at line 293 of file MainWindow.h.

Referenced by createActions(), createConnections(), and createMenuBar().

QAction* MainWindow::_actionExit
private
QAction* MainWindow::_actionMessageLog
private
QAction* MainWindow::_actionNetworkMap
private
QAction* MainWindow::_actionNewIdentity
private
QAction* MainWindow::_actionReloadConfig
private
QAction* MainWindow::_actionRestartTor
private
QAction* MainWindow::_actionShowControlPanel
private

Defines the actions for the tray menu

Definition at line 280 of file MainWindow.h.

Referenced by createActions(), createConnections(), createTrayMenu(), and retranslateUi().

QAction* MainWindow::_actionStartStopTor
private
QAction* MainWindow::_actionStatus
private

Definition at line 285 of file MainWindow.h.

Referenced by createActions(), createConnections(), createMenuBar(), and retranslateUi().

QAction* MainWindow::_actionVidaliaHelp
private
QString MainWindow::_controlPassword
private

Remembers the control password between when we start Tor with a hash of the password and when we need to provide the password itself.

Definition at line 260 of file MainWindow.h.

Referenced by running(), start(), and tryHashed().

bool MainWindow::_delayedShutdownStarted
private

Tracks whether we started a delayed server shutdown.

Definition at line 253 of file MainWindow.h.

Referenced by started(), stop(), and updateTorStatus().

QStringList MainWindow::_detachedTabMap
private

Map to handle detached tabs

Definition at line 307 of file MainWindow.h.

Referenced by attachTab(), detachTab(), and handleAttachedClose().

QAction* MainWindow::_dummy
private

Dummy action to display when there are no more tabs

Definition at line 296 of file MainWindow.h.

Referenced by attachTab(), createMenuBar(), detachTab(), handleAttachedClose(), and MainWindow().

PluginEngine* MainWindow::_engine
private

Definition at line 305 of file MainWindow.h.

Referenced by createConnections(), createMenuBar(), MainWindow(), and ~MainWindow().

BandwidthGraph* MainWindow::_graph
private

Graph that draws bandwidth usage

Definition at line 303 of file MainWindow.h.

Referenced by addTab(), createGUI(), delTab(), and showBandwidthTab().

bool MainWindow::_isIntentionalExit
private

Used to determine if the Tor process exiting was intentional or not

Definition at line 251 of file MainWindow.h.

Referenced by start(), started(), stop(), and stopped().

bool MainWindow::_isVidaliaRunningTor
private

Set to true if Vidalia started its own Tor process.

Definition at line 255 of file MainWindow.h.

Referenced by authenticate(), authenticationFailed(), disconnected(), MainWindow(), and started().

MessageLog* MainWindow::_messageLog
private

Message log that displays a more detailed log from Tor

Definition at line 301 of file MainWindow.h.

Referenced by addTab(), createGUI(), delTab(), and showMessageLogTab().

NetViewer MainWindow::_netViewer
private

Network map that draws circuits

Definition at line 302 of file MainWindow.h.

Referenced by addTab(), delTab(), and showNetViewerTab().

QString MainWindow::_previousControlPort
private

Holds the previous controlport used

Definition at line 310 of file MainWindow.h.

Referenced by connected(), start(), and startFailed().

QString MainWindow::_previousSocksPort
private

Holds the previous socksport used

Definition at line 311 of file MainWindow.h.

Referenced by connected(), start(), and startFailed().

QMenu MainWindow::_reattachMenu
private

Menu used to handle tab re-attaching

Definition at line 295 of file MainWindow.h.

Referenced by attachTab(), createMenuBar(), createTrayMenu(), detachTab(), and handleAttachedClose().

bool MainWindow::_startedWithPrevious
private

True if Vidalia tried to start Tor with the previous ports

Definition at line 309 of file MainWindow.h.

Referenced by MainWindow(), start(), and startFailed().

TorStatus MainWindow::_status
private

The current status of Tor.

Definition at line 249 of file MainWindow.h.

Referenced by MainWindow(), retranslateUi(), and updateTorStatus().

StatusTab MainWindow::_statusTab
private

Status tab that displays the load progress and a short log

Definition at line 300 of file MainWindow.h.

Referenced by addTab(), createGUI(), createTrayIcon(), delTab(), setStartupProgress(), setStartupProgressVisible(), setVisible(), showStatusTab(), and updateTorStatus().

QStringList MainWindow::_tabMap
private

Map to handle opened tabs

Definition at line 306 of file MainWindow.h.

Referenced by addTab(), delTab(), and detachTab().

TorControl* MainWindow::_torControl
private
QSystemTrayIcon MainWindow::_trayIcon
private

The Vidalia icon that sits in the tray.

Definition at line 265 of file MainWindow.h.

Referenced by clockSkewed(), createTrayIcon(), newIdentity(), setStartupProgress(), setTrayIcon(), and updateTorStatus().

bool MainWindow::_useSavedPassword
private

Set to true if we should use the control password saved in TorSettings when authenticating to Tor.

Definition at line 263 of file MainWindow.h.

Referenced by running(), start(), and tryHashed().

Ui::MainWindow MainWindow::ui
private

Qt Designer generated object.

Definition at line 298 of file MainWindow.h.

Referenced by addTab(), attachTab(), createConnections(), createGUI(), createToolBar(), delTab(), detachTab(), handleAttachedClose(), and retranslateUi().


The documentation for this class was generated from the following files: