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 reject();
85 virtual void doSaveSettings() {};
86 virtual void keyPressEvent(QKeyEvent* e);
99 virtual bool validate() {
return true; }
104 bool canConfigPageBeAdded(
ConfigPage* configPage);
105 bool isConfigPageValid(
ConfigPage* configPage);
107 bool hasItemOnList(QStandardItem* pItem)
const;
108 QModelIndex findPageModelIndex(
ConfigPage *page);
113 void btnClicked(QAbstractButton *button);
114 void onPageValidationRequested();
115 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)