Vidalia 0.2.10
|
#include <GeneralPage.h>
Signals | |
void | checkForUpdates () |
Public Member Functions | |
GeneralPage (QWidget *parent=0) | |
~GeneralPage () | |
bool | save (QString &errmsg) |
void | load () |
virtual void | retranslateUi () |
Private Slots | |
void | browseTorExecutable () |
void | browseProxyExecutable () |
void | updateNow () |
Private Member Functions | |
QString | browseExecutable (const QString &caption, const QString &file=QString()) |
Private Attributes | |
VidaliaSettings * | _vidaliaSettings |
TorSettings * | _torSettings |
Ui::GeneralPage | ui |
Definition at line 28 of file GeneralPage.h.
GeneralPage::GeneralPage | ( | QWidget * | parent = 0 | ) |
Default Constructor
Constructor
Definition at line 26 of file GeneralPage.cpp.
References _torSettings, _vidaliaSettings, browseProxyExecutable(), browseTorExecutable(), ui, and updateNow().
GeneralPage::~GeneralPage | ( | ) |
Default Destructor
Destructor
Definition at line 54 of file GeneralPage.cpp.
References _torSettings, and _vidaliaSettings.
QString GeneralPage::browseExecutable | ( | const QString & | caption, |
const QString & | file = QString() |
||
) | [private] |
Displays a file dialog allowing the user to browse for an executable file. caption will be displayed in the dialog's title bar and file, if specified, is the default file selected in the dialog.
Displays a file dialog allowing the user to browse for an executable file. caption will be displayed in the dialog's title bar and file, if specified, is the default file selected in the dialog.
Definition at line 72 of file GeneralPage.cpp.
Referenced by browseProxyExecutable(), and browseTorExecutable().
void GeneralPage::browseProxyExecutable | ( | ) | [private, slot] |
Open a QFileDialog to browse for a proxy executable file.
Definition at line 96 of file GeneralPage.cpp.
References browseExecutable(), and ui.
Referenced by GeneralPage().
void GeneralPage::browseTorExecutable | ( | ) | [private, slot] |
Open a QFileDialog to browse for a Tor executable file.
Definition at line 86 of file GeneralPage.cpp.
References browseExecutable(), and ui.
Referenced by GeneralPage().
void GeneralPage::checkForUpdates | ( | ) | [signal] |
Emitted when the user clicks the "Check Now" button.
Referenced by updateNow().
void GeneralPage::load | ( | ) | [virtual] |
Loads the settings for this page
Loads previously saved settings
Implements ConfigPage.
Definition at line 131 of file GeneralPage.cpp.
References _torSettings, _vidaliaSettings, TorSettings::getExecutable(), VidaliaSettings::getProxyExecutable(), VidaliaSettings::getProxyExecutableArguments(), VidaliaSettings::runProxyAtStart(), VidaliaSettings::runTorAtStart(), VidaliaSettings::runVidaliaOnBoot(), and ui.
void GeneralPage::retranslateUi | ( | ) | [virtual] |
Called when the user changes the UI translation.
Reimplemented from ConfigPage.
Definition at line 62 of file GeneralPage.cpp.
References ui.
bool GeneralPage::save | ( | QString & | errmsg | ) | [virtual] |
Saves the changes on this page
Saves all settings for this page
Implements ConfigPage.
Definition at line 107 of file GeneralPage.cpp.
References _torSettings, _vidaliaSettings, TorSettings::setExecutable(), VidaliaSettings::setProxyExecutable(), VidaliaSettings::setProxyExecutableArguments(), VidaliaSettings::setRunProxyAtStart(), VidaliaSettings::setRunTorAtStart(), VidaliaSettings::setRunVidaliaOnBoot(), and ui.
void GeneralPage::updateNow | ( | ) | [private, slot] |
Initiate an immediate check for software updates.
Definition at line 146 of file GeneralPage.cpp.
References checkForUpdates().
Referenced by GeneralPage().
TorSettings* GeneralPage::_torSettings [private] |
A TorSettings ovject used for saving/loading tor settings
Definition at line 66 of file GeneralPage.h.
Referenced by GeneralPage(), load(), save(), and ~GeneralPage().
VidaliaSettings* GeneralPage::_vidaliaSettings [private] |
A VidaliaSettings object used for saving/loading vidalia settings
Definition at line 64 of file GeneralPage.h.
Referenced by GeneralPage(), load(), save(), and ~GeneralPage().
Ui::GeneralPage GeneralPage::ui [private] |
Qt Designer generated object
Definition at line 68 of file GeneralPage.h.
Referenced by browseProxyExecutable(), browseTorExecutable(), GeneralPage(), load(), retranslateUi(), and save().