23 #ifndef __CONFIGUREDIALOG_H_ 24 #define __CONFIGUREDIALOG_H_ 26 #include "gui/configuration/configpage.h" 31 class QAbstractButton;
79 QStandardItem*
addLabel(QStandardItem* rootItem,
const QString& label,
int position = -1);
82 virtual void doSaveSettings() {};
83 virtual void keyPressEvent(QKeyEvent* e);
96 virtual bool validate() {
return true; }
101 bool canConfigPageBeAdded(
ConfigPage* configPage);
102 bool isConfigPageValid(
ConfigPage* configPage);
104 bool hasItemOnList(QStandardItem* pItem)
const;
105 QModelIndex findPageModelIndex(
ConfigPage *page);
110 void btnClicked(QAbstractButton *button);
111 void onPageValidationRequested();
112 void switchToItem(
const QModelIndex ¤t,
const QModelIndex &previous);
QTreeView * optionsTree()
Returns pointer to the tree widget that contains configuration sections list.
virtual QStandardItem * addConfigPage(QStandardItem *rootItem, ConfigPage *configPage, int position=-1)
Adds a new configuration page to the options tree view.
QStandardItem * addLabel(QStandardItem *rootItem, const QString &label, int position=-1)
Adds a label node to the options tree view.
Base class for configuration pages.
void showConfigPage(ConfigPage *widget)