17 #ifndef QGSOPTIONSDIALOGBASE_H
18 #define QGSOPTIONSDIALOGBASE_H
28 #include <QStyledItemDelegate>
30 class QDialogButtonBox;
36 class QStyleOptionViewItem;
83 void initOptionsBase(
bool restoreUi =
true,
const QString &title = QString() );
93 void restoreOptionsBaseUi(
const QString &title = QString() );
100 void restoreLastPage();
107 void resizeAlltabs(
int index );
119 void setCurrentPage(
const QString &page );
131 void addPage(
const QString &title,
const QString &tooltip,
const QIcon &icon, QWidget *widget
SIP_TRANSFER );
146 void insertPage(
const QString &title,
const QString &tooltip,
const QIcon &icon, QWidget *widget
SIP_TRANSFER,
const QString &before );
155 void searchText(
const QString &text );
159 virtual void updateOptionsListVerticalTabs();
161 virtual void optionsStackedWidget_CurrentChanged(
int index );
163 virtual void optionsStackedWidget_WidgetRemoved(
int index );
165 void warnAboutMissingObjects();
168 void showEvent( QShowEvent *e )
override;
169 void paintEvent( QPaintEvent *e )
override;
171 virtual void updateWindowTitle();
178 void registerTextSearchWidgets();
184 QListWidget *mOptListWidget =
nullptr;
185 QStackedWidget *mOptStackedWidget =
nullptr;
186 QSplitter *mOptSplitter =
nullptr;
187 QDialogButtonBox *mOptButtonBox =
nullptr;
197 #endif // QGSOPTIONSDIALOGBASE_H