16#ifndef QGSOPTIONSWIDGETFACTORY_H
17#define QGSOPTIONSWIDGETFACTORY_H
19#include <QListWidgetItem>
51 virtual QString
helpKey()
const {
return QString(); }
59 return mHighlightWidgets;
95 mHighlightWidgets.insert( highlightWidget->
widget(), highlightWidget );
99 QHash<QWidget *, QgsOptionsDialogHighlightWidget *> mHighlightWidgets;
128 virtual QIcon
icon()
const {
return mIcon; }
134 void setIcon(
const QIcon &icon ) { mIcon = icon; }
140 virtual QString
title()
const {
return mTitle; }
146 void setTitle(
const QString &title ) { mTitle = title; }
154 virtual QString
key()
const {
return mKey; }
160 void setKey(
const QString &key ) { mKey = key; }
185 virtual QStringList
path()
const {
return QStringList(); }
Base class for widgets for pages included in the options dialog.
QgsOptionsPageWidget(QWidget *parent=nullptr)
Constructor for QgsOptionsPageWidget.
QHash< QWidget *, QgsOptionsDialogHighlightWidget * > registeredHighlightWidgets()
Returns the registered highlight widgets used to search and highlight text in options dialogs.
void registerHighlightWidget(QgsOptionsDialogHighlightWidget *highlightWidget)
Register a highlight widget to be used to search and highlight text in options dialogs.
virtual QString helpKey() const
Returns the optional help key for the options page.
virtual void cancel()
Called to cancel settings changed in the options page (e.g.
virtual bool isValid()
Validates the current state of the widget.
virtual void apply()=0
Called to permanently apply the settings shown in the options page (e.g.