ConfigDialog Class Reference

#include <configdialog.h>

Inheritance diagram for ConfigDialog:

VidaliaWindow List of all members.

Public Types

enum  Page { General = 0, Server = 1, Appearance = 2, Advanced = 3 }

Public Slots

void show ()
void show (Page page)

Public Member Functions

 ConfigDialog (QWidget *parent=0)

Private Slots

void cancelChanges ()
void saveChanges ()
void help ()

Private Member Functions

void loadSettings ()
QAction * createPageAction (QIcon img, QString text, QActionGroup *group)
void addAction (QAction *action, const char *slot=0)

Private Attributes

Ui::ConfigDialog ui

Detailed Description

Definition at line 43 of file configdialog.h.


Member Enumeration Documentation

enum ConfigDialog::Page

Config dialog pages.

Enumerator:
General 
Server  General configuration page.
Appearance  Server configuration page.
Advanced  Appearance configuration page.

Definition at line 49 of file configdialog.h.


Constructor & Destructor Documentation

ConfigDialog::ConfigDialog ( QWidget *  parent = 0  ) 

Default Constructor

Definition at line 45 of file configdialog.cpp.

References addAction(), cancelChanges(), createPageAction(), help(), IMAGE_ADVANCED, IMAGE_APPEARANCE, IMAGE_CANCEL, IMAGE_GENERAL, IMAGE_HELP, IMAGE_SAVE, IMAGE_SERVER, saveChanges(), and ui.


Member Function Documentation

void ConfigDialog::show (  )  [slot]

Called when this dialog is to be displayed

Reimplemented from VidaliaWindow.

Definition at line 120 of file configdialog.cpp.

References loadSettings(), and VidaliaWindow::show().

Referenced by MainWindow::connected(), show(), MainWindow::showConfig(), and MainWindow::startFailed().

void ConfigDialog::show ( Page  page  )  [slot]

Shows the config dialog with focus set to the given page.

Definition at line 130 of file configdialog.cpp.

References show(), and ui.

void ConfigDialog::cancelChanges (  )  [private, slot]

Called when user clicks "Cancel"

Definition at line 151 of file configdialog.cpp.

References loadSettings().

Referenced by ConfigDialog().

void ConfigDialog::saveChanges (  )  [private, slot]

Called when user clicks "Save Settings"

Definition at line 160 of file configdialog.cpp.

References VMessageBox::Ok, ConfigPage::save(), ui, and VMessageBox::warning().

Referenced by ConfigDialog().

void ConfigDialog::help (  )  [private, slot]

Called when user clicks "Help"

Definition at line 184 of file configdialog.cpp.

References Vidalia::help().

Referenced by ConfigDialog().

void ConfigDialog::loadSettings (  )  [private]

Loads the current configuration settings

Definition at line 141 of file configdialog.cpp.

References ConfigPage::load(), and ui.

Referenced by cancelChanges(), and show().

QAction * ConfigDialog::createPageAction ( QIcon  img,
QString  text,
QActionGroup *  group 
) [private]

Creates a new action for a config page.

Definition at line 100 of file configdialog.cpp.

References FONT.

Referenced by ConfigDialog().

void ConfigDialog::addAction ( QAction *  action,
const char *  slot = 0 
) [private]

Adds a new action to the toolbar.

Definition at line 111 of file configdialog.cpp.

References FONT, and ui.

Referenced by ConfigDialog().


Member Data Documentation

Ui::ConfigDialog ConfigDialog::ui [private]

Qt Designer generated object

Definition at line 82 of file configdialog.h.

Referenced by addAction(), ConfigDialog(), loadSettings(), saveChanges(), and show().


The documentation for this class was generated from the following files:
Generated on Mon Oct 23 20:08:16 2006 for Vidalia by  doxygen 1.5.0