Vidalia  0.3.1
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
GeneralPage Class Reference

#include <GeneralPage.h>

Inheritance diagram for GeneralPage:
ConfigPage

Signals

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

Public Member Functions

 GeneralPage (QWidget *parent=0)
 
 ~GeneralPage ()
 
bool save (QString &errmsg)
 
void load ()
 
virtual void retranslateUi ()
 
- Public Member Functions inherited from ConfigPage
 ConfigPage (QWidget *parent=0, const QString title=QString())
 
QString title () const
 
virtual bool changedSinceLastApply ()
 
virtual bool apply (QString &errmsg)
 
virtual void revert ()
 

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
 

Detailed Description

Definition at line 27 of file GeneralPage.h.

Constructor & Destructor Documentation

§ GeneralPage()

GeneralPage::GeneralPage ( QWidget *  parent = 0)

Default Constructor

Constructor

Definition at line 25 of file GeneralPage.cpp.

References _torSettings, _vidaliaSettings, browseProxyExecutable(), browseTorExecutable(), connect(), ui, and updateNow().

§ ~GeneralPage()

GeneralPage::~GeneralPage ( )

Default Destructor

Destructor

Definition at line 53 of file GeneralPage.cpp.

References _torSettings, and _vidaliaSettings.

Member Function Documentation

§ browseExecutable()

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 71 of file GeneralPage.cpp.

Referenced by browseProxyExecutable(), and browseTorExecutable().

§ browseProxyExecutable

void GeneralPage::browseProxyExecutable ( )
privateslot

Open a QFileDialog to browse for a proxy executable file.

Definition at line 95 of file GeneralPage.cpp.

References browseExecutable(), and ui.

Referenced by GeneralPage().

§ browseTorExecutable

void GeneralPage::browseTorExecutable ( )
privateslot

Open a QFileDialog to browse for a Tor executable file.

Definition at line 85 of file GeneralPage.cpp.

References browseExecutable(), and ui.

Referenced by GeneralPage().

§ checkForUpdates

void GeneralPage::checkForUpdates ( )
signal

Emitted when the user clicks the "Check Now" button.

Referenced by updateNow().

§ load()

void GeneralPage::load ( )
virtual

§ retranslateUi()

void GeneralPage::retranslateUi ( )
virtual

Called when the user changes the UI translation.

Reimplemented from ConfigPage.

Definition at line 61 of file GeneralPage.cpp.

References ui.

§ save()

bool GeneralPage::save ( QString &  errmsg)
virtual

§ updateNow

void GeneralPage::updateNow ( )
privateslot

Initiate an immediate check for software updates.

Definition at line 145 of file GeneralPage.cpp.

References checkForUpdates().

Referenced by GeneralPage().

Member Data Documentation

§ _torSettings

TorSettings* GeneralPage::_torSettings
private

A TorSettings ovject used for saving/loading tor settings

Definition at line 65 of file GeneralPage.h.

Referenced by GeneralPage(), load(), save(), and ~GeneralPage().

§ _vidaliaSettings

VidaliaSettings* GeneralPage::_vidaliaSettings
private

A VidaliaSettings object used for saving/loading vidalia settings

Definition at line 63 of file GeneralPage.h.

Referenced by GeneralPage(), load(), save(), and ~GeneralPage().

§ ui

Ui::GeneralPage GeneralPage::ui
private

Qt Designer generated object

Definition at line 67 of file GeneralPage.h.

Referenced by browseProxyExecutable(), browseTorExecutable(), GeneralPage(), load(), retranslateUi(), and save().


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