ConfigurationDialog Class Reference
+ Inheritance diagram for ConfigurationDialog:

Public Slots

virtual void reject ()
 

Public Member Functions

 ConfigurationDialog (QWidget *parent=NULL)
 
virtual QStandardItem * addConfigPage (QStandardItem *rootItem, ConfigPage *configPage, int position=-1)
 Adds a new configuration page to the options tree view. More...
 
QStandardItem * addLabel (QStandardItem *rootItem, const QString &label, int position=-1)
 Adds a label node to the options tree view. More...
 

Protected Member Functions

virtual void doSaveSettings ()
 
virtual void keyPressEvent (QKeyEvent *e)
 
QTreeView * optionsTree ()
 Returns pointer to the tree widget that contains configuration sections list. More...
 
void showConfigPage (ConfigPage *widget)
 
virtual bool validate ()
 

Detailed Description

Definition at line 36 of file configurationdialog.h.

Member Function Documentation

QStandardItem * ConfigurationDialog::addConfigPage ( QStandardItem *  rootItem,
ConfigPage configPage,
int  position = -1 
)
virtual

Adds a new configuration page to the options tree view.

Parameters
rootItemPointer to the root node of the tree to which the new box will be attached. If NULL, the standard model root is used.
configPagePointer to ConfigPage instance.
positionPassing <0 will use appendRow method, otherwise the new tree view node will be inserted at specified position.
Returns
NULL if ConfigPage was not added. Pointer to a new tree node if operation was successful.

Reimplemented in DoomseekerConfigurationDialog.

Definition at line 133 of file configurationdialog.cpp.

QStandardItem * ConfigurationDialog::addLabel ( QStandardItem *  rootItem,
const QString &  label,
int  position = -1 
)

Adds a label node to the options tree view.

Such node has no ConfigPage attached. It serves only organizational purposes.

Parameters
rootItemPointer to the root node of the tree to which the new label will be attached. If NULL, the standard model root is used.
labelLabel for the new node.
positionPassing <0 will use appendRow method, otherwise the new tree view node will be inserted at specified position.
Returns
Newly created options tree view node. NULL if rootItem was not a member of the tree view.

Definition at line 186 of file configurationdialog.cpp.

QTreeView * ConfigurationDialog::optionsTree ( )
protected

Returns pointer to the tree widget that contains configuration sections list.

Definition at line 342 of file configurationdialog.cpp.

void ConfigurationDialog::showConfigPage ( ConfigPage widget)
protected
Parameters
widget- hide currently displayed box if NULL.

Definition at line 368 of file configurationdialog.cpp.


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