QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsSettingsEditorWidgetRegistry Class Reference

This class manages editor widgets for settings. More...

#include <qgssettingseditorwidgetregistry.h>

Public Member Functions

 QgsSettingsEditorWidgetRegistry ()
 Constructor.
 
 ~QgsSettingsEditorWidgetRegistry ()
 
bool addWrapper (QgsSettingsEditorWidgetWrapper *wrapper)
 Adds an editor widget wrapper to the registry If an editor widget with same id already exists, the wrapper is deleted and false is returned.
 
void addWrapperForSetting (QgsSettingsEditorWidgetWrapper *wrapper, const QgsSettingsEntryBase *setting)
 Adds an editor widget wrapper for a specific setting to the registry.
 
QWidget * createEditor (const QgsSettingsEntryBase *setting, const QStringList &dynamicKeyPartList, QWidget *parent=nullptr) const
 Creates an editor widget for the given setting using the corresponding registered wrapper.
 
QgsSettingsEditorWidgetWrappercreateWrapper (const QString &id, QObject *parent) const
 Returns a new instance of the editor widget for the given id.
 

Detailed Description

This class manages editor widgets for settings.

Since
QGIS 3.32

Definition at line 35 of file qgssettingseditorwidgetregistry.h.

Constructor & Destructor Documentation

◆ QgsSettingsEditorWidgetRegistry()

QgsSettingsEditorWidgetRegistry::QgsSettingsEditorWidgetRegistry ( )

Constructor.

Definition at line 30 of file qgssettingseditorwidgetregistry.cpp.

◆ ~QgsSettingsEditorWidgetRegistry()

QgsSettingsEditorWidgetRegistry::~QgsSettingsEditorWidgetRegistry ( )

Definition at line 65 of file qgssettingseditorwidgetregistry.cpp.

Member Function Documentation

◆ addWrapper()

bool QgsSettingsEditorWidgetRegistry::addWrapper ( QgsSettingsEditorWidgetWrapper wrapper)

Adds an editor widget wrapper to the registry If an editor widget with same id already exists, the wrapper is deleted and false is returned.

Definition at line 70 of file qgssettingseditorwidgetregistry.cpp.

◆ addWrapperForSetting()

void QgsSettingsEditorWidgetRegistry::addWrapperForSetting ( QgsSettingsEditorWidgetWrapper wrapper,
const QgsSettingsEntryBase setting 
)

Adds an editor widget wrapper for a specific setting to the registry.

Since
QGIS 3.40

Definition at line 83 of file qgssettingseditorwidgetregistry.cpp.

◆ createEditor()

QWidget * QgsSettingsEditorWidgetRegistry::createEditor ( const QgsSettingsEntryBase setting,
const QStringList &  dynamicKeyPartList,
QWidget *  parent = nullptr 
) const

Creates an editor widget for the given setting using the corresponding registered wrapper.

Definition at line 102 of file qgssettingseditorwidgetregistry.cpp.

◆ createWrapper()

QgsSettingsEditorWidgetWrapper * QgsSettingsEditorWidgetRegistry::createWrapper ( const QString &  id,
QObject *  parent 
) const

Returns a new instance of the editor widget for the given id.

Definition at line 88 of file qgssettingseditorwidgetregistry.cpp.


The documentation for this class was generated from the following files: