QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSOPTIONSWIDGETFACTORY_H
17 #define QGSOPTIONSWIDGETFACTORY_H
19 #include <QListWidgetItem>
53 virtual QString
helpKey()
const {
return QString(); }
78 virtual void apply() = 0;
89 mHighlightWidgets.insert( highlightWidget->
widget(), highlightWidget );
93 QHash<QWidget *, QgsOptionsDialogHighlightWidget *> mHighlightWidgets;
126 virtual QIcon
icon()
const {
return mIcon; }
132 void setIcon(
const QIcon &icon ) { mIcon = icon; }
138 virtual QString
title()
const {
return mTitle; }
144 void setTitle(
const QString &title ) { mTitle = title; }
169 virtual QStringList
path()
const {
return QStringList(); }
185 #endif // QGSOPTIONSWIDGETFACTORY_H
virtual QString helpKey() const
Returns the optional help key for the options page.
QHash< QWidget *, QgsOptionsDialogHighlightWidget * > registeredHighlightWidgets()
Returns the registered highlight widgets used to search and highlight text in options dialogs.
QgsOptionsPageWidget(QWidget *parent=nullptr)
Constructor for QgsOptionsPageWidget.
void registerHighlightWidget(QgsOptionsDialogHighlightWidget *highlightWidget)
Register a highlight widget to be used to search and highlight text in options dialogs.
virtual bool isValid()
Validates the current state of the widget.
Base class for widgets for pages included in the options dialog.