ConfigurationDialog Class Reference
+ Inheritance diagram for ConfigurationDialog:

Public Member Functions

 ConfigurationDialog (QWidget *parent=NULL)
 
virtual QStandardItem * addConfigurationBox (QStandardItem *rootItem, ConfigurationBaseBox *pConfigurationBox, int position=-1)
 Adds a new configuration box 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...
 
bool isConfigurationBoxOnTheList (ConfigurationBaseBox *pConfigurationBox)
 

Protected Slots

void btnClicked (QAbstractButton *button)
 
void onOptionListCurrentChanged (const QModelIndex &current, const QModelIndex &previous)
 

Protected Member Functions

bool canConfigurationBoxBeAddedToList (ConfigurationBaseBox *pConfigurationBox)
 
virtual void doSaveSettings ()
 
bool isConfigurationBoxInfoValid (ConfigurationBaseBox *pConfigurationBox)
 
virtual void keyPressEvent (QKeyEvent *e)
 
QTreeView * optionsTree ()
 Returns pointer to the tree widget that contains configuration sections list. More...
 
void saveSettings ()
 
void showConfigurationBox (ConfigurationBaseBox *widget)
 
void switchToItem (const QModelIndex &)
 
virtual bool validate ()
 

Detailed Description

Definition at line 36 of file configurationdialog.h.

Member Function Documentation

QStandardItem * ConfigurationDialog::addConfigurationBox ( QStandardItem *  rootItem,
ConfigurationBaseBox pConfigurationBox,
int  position = -1 
)
virtual

Adds a new configuration box 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.
pConfigurationBoxPointer to configuration Group Box.
positionPassing <0 will use appendRow method, otherwise the new tree view node will be inserted at specified position.
Returns
NULL if ConfigurationBox was not added. Pointer to a new tree node if operation was successful.

Reimplemented in DoomseekerConfigurationDialog.

Definition at line 67 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 ConfigurationBoxInfo attached. It serves only organizational purposes.

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.
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 107 of file configurationdialog.cpp.

QTreeView * ConfigurationDialog::optionsTree ( )
protected

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

Definition at line 252 of file configurationdialog.cpp.

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

Definition at line 278 of file configurationdialog.cpp.


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