Config Class Reference

This is the config dialog for OrK. More...

#include <config.h>

List of all members.

Public Slots

void changePage (QListWidgetItem *current, QListWidgetItem *previous)
 Change the page to the requested page.
void readConfig ()
 Read the settings stored.
void writeConfig ()
 Write the settings to the config file.

Signals

void viewMultiWinModeChanged (bool)
 Request to change the GUI to multi or single windows mode.
void userPathChanged (QString)
 The preferred user path changed.
void railsFileChanged (QString)
 is emitted if the rails file changed
void serverAdressChanged (QString)
 is emitted if the server address changed
void serverPortChanged (quint16)
 is emitted if the server port changed
void clientPortChanged (quint16)
 is emitted if the client port changed

Public Member Functions

 Config (QWidget *parent=0)
 Simple constructor.

Protected Member Functions

void showEvent (QShowEvent *event)

Private Slots

void accept ()
 Accept the dialog and emit signals for the modified settings.

Private Member Functions

void createIcons ()
 Apply some icons to the dialog.

Private Attributes

QListWidget * _contentsWidget
 The list with the links to all the subpages.
QStackedWidget * _pagesWidget
 The subpages container.
QListWidgetItem * _general
 The subpages.
QListWidgetItem * _network
QListWidgetItem * _view
QWidget * _generalConfig
QWidget * _networkConfig
QWidget * _viewConfig
QComboBox * _uiModeCombo
QComboBox * _protocolCombo
QLineEdit * _userPathEdit
QLineEdit * _railsFileEdit
QLineEdit * _addressEdit
QLineEdit * _portEdit
bool _multiWinFlag
QString _userPath
QString _railsFile
int _protocol
QString _serverAddress
int _clientPort
int _serverPort


Detailed Description

This is the config dialog for OrK.

Definition at line 18 of file config.h.


Constructor & Destructor Documentation

Config::Config ( QWidget *  parent = 0  ) 


Member Function Documentation

void Config::changePage ( QListWidgetItem *  current,
QListWidgetItem *  previous 
) [slot]

Change the page to the requested page.

Definition at line 167 of file config.cpp.

References _contentsWidget, and _pagesWidget.

Referenced by Config().

void Config::readConfig (  )  [slot]

void Config::writeConfig (  )  [slot]

Write the settings to the config file.

Definition at line 201 of file config.cpp.

References _clientPort, _multiWinFlag, _protocol, _railsFile, _serverAddress, _serverPort, and _userPath.

Referenced by Win::writeSettings().

void Config::accept (  )  [private, slot]

void Config::viewMultiWinModeChanged ( bool   )  [signal]

Request to change the GUI to multi or single windows mode.

Referenced by accept(), and readConfig().

void Config::userPathChanged ( QString   )  [signal]

The preferred user path changed.

Referenced by accept(), and readConfig().

void Config::railsFileChanged ( QString   )  [signal]

is emitted if the rails file changed

Referenced by accept(), and readConfig().

void Config::serverAdressChanged ( QString   )  [signal]

is emitted if the server address changed

Referenced by accept(), and readConfig().

void Config::serverPortChanged ( quint16   )  [signal]

is emitted if the server port changed

Referenced by accept(), and readConfig().

void Config::clientPortChanged ( quint16   )  [signal]

is emitted if the client port changed

Referenced by readConfig().

void Config::showEvent ( QShowEvent *  event  )  [protected]

Reimplemented to allow the config dialog to set the settings to the current value

Definition at line 217 of file config.cpp.

References _addressEdit, _contentsWidget, _multiWinFlag, _pagesWidget, _portEdit, _railsFile, _railsFileEdit, _serverAddress, _serverPort, _uiModeCombo, _userPath, and _userPathEdit.

void Config::createIcons (  )  [private]

Apply some icons to the dialog.

Definition at line 156 of file config.cpp.

References _general, _network, and _view.

Referenced by Config().


Member Data Documentation

QListWidget* Config::_contentsWidget [private]

The list with the links to all the subpages.

Definition at line 75 of file config.h.

Referenced by changePage(), Config(), and showEvent().

QStackedWidget* Config::_pagesWidget [private]

The subpages container.

Definition at line 78 of file config.h.

Referenced by changePage(), Config(), and showEvent().

QListWidgetItem* Config::_general [private]

The subpages.

Definition at line 81 of file config.h.

Referenced by Config(), and createIcons().

QListWidgetItem * Config::_network [private]

Definition at line 81 of file config.h.

Referenced by Config(), and createIcons().

QListWidgetItem * Config::_view [private]

Definition at line 81 of file config.h.

Referenced by Config(), and createIcons().

QWidget* Config::_generalConfig [private]

Definition at line 82 of file config.h.

Referenced by Config().

QWidget * Config::_networkConfig [private]

Definition at line 82 of file config.h.

Referenced by Config().

QWidget * Config::_viewConfig [private]

Definition at line 82 of file config.h.

Referenced by Config().

QComboBox* Config::_uiModeCombo [private]

Definition at line 84 of file config.h.

Referenced by accept(), Config(), and showEvent().

QComboBox * Config::_protocolCombo [private]

Definition at line 84 of file config.h.

Referenced by Config().

QLineEdit* Config::_userPathEdit [private]

Definition at line 85 of file config.h.

Referenced by accept(), Config(), and showEvent().

QLineEdit * Config::_railsFileEdit [private]

Definition at line 85 of file config.h.

Referenced by accept(), Config(), and showEvent().

QLineEdit * Config::_addressEdit [private]

Definition at line 85 of file config.h.

Referenced by accept(), Config(), and showEvent().

QLineEdit * Config::_portEdit [private]

Definition at line 85 of file config.h.

Referenced by accept(), Config(), and showEvent().

bool Config::_multiWinFlag [private]

Definition at line 87 of file config.h.

Referenced by accept(), readConfig(), showEvent(), and writeConfig().

QString Config::_userPath [private]

Definition at line 88 of file config.h.

Referenced by accept(), readConfig(), showEvent(), and writeConfig().

QString Config::_railsFile [private]

Definition at line 88 of file config.h.

Referenced by accept(), readConfig(), showEvent(), and writeConfig().

int Config::_protocol [private]

Definition at line 89 of file config.h.

Referenced by readConfig(), and writeConfig().

QString Config::_serverAddress [private]

Definition at line 90 of file config.h.

Referenced by accept(), readConfig(), showEvent(), and writeConfig().

int Config::_clientPort [private]

Definition at line 91 of file config.h.

Referenced by readConfig(), and writeConfig().

int Config::_serverPort [private]

Definition at line 91 of file config.h.

Referenced by accept(), readConfig(), showEvent(), and writeConfig().


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

Generated on Sun Jun 22 23:46:29 2008 for OrK by  doxygen 1.5.6