17 #ifndef QGSOPTIONSDIALOGBASE_H
18 #define QGSOPTIONSDIALOGBASE_H
21 #include "qgssettings.h"
28 #include <QStyledItemDelegate>
30 class QDialogButtonBox;
36 class QStyleOptionViewItem;
83 void initOptionsBase(
bool restoreUi =
true,
const QString &title = QString() );
86 void setSettings( QgsSettings *settings );
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;
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...
A base dialog for options and properties dialogs that offers vertical tabs.
QPointer< QgsSettings > mSettings
QList< QPair< QgsOptionsDialogHighlightWidget *, int > > mRegisteredSearchWidgets
bool iconOnly()
Determine if the options list is in icon only mode.