QGIS/python/gui/auto_generated/settings/qgssettingseditorwidgetregistry.sip.in
Nyall Dawson 3f6b490218 Sipify
2025-04-02 11:11:10 +10:00

65 lines
2.3 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/settings/qgssettingseditorwidgetregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsSettingsEditorWidgetRegistry
{
%Docstring(signature="appended")
A registry that manages editor widgets for settings.
.. versionadded:: 3.32
%End
%TypeHeaderCode
#include "qgssettingseditorwidgetregistry.h"
%End
public:
QgsSettingsEditorWidgetRegistry();
%Docstring
Constructor
%End
~QgsSettingsEditorWidgetRegistry();
bool addWrapper( QgsSettingsEditorWidgetWrapper *wrapper /Transfer/ );
%Docstring
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.
%End
void addWrapperForSetting( QgsSettingsEditorWidgetWrapper *wrapper /Transfer/, const QgsSettingsEntryBase *setting /KeepReference/ );
%Docstring
Adds an editor widget ``wrapper`` for a specific setting to the registry
.. versionadded:: 3.40
%End
QgsSettingsEditorWidgetWrapper *createWrapper( const QString &id, QObject *parent ) const /Factory/;
%Docstring
Returns a new instance of the editor widget for the given ``id``
%End
QWidget *createEditor( const QgsSettingsEntryBase *setting, const QStringList &dynamicKeyPartList, QWidget *parent = 0 ) const /TransferBack/;
%Docstring
Creates an editor widget for the given ``setting`` using the
corresponding registered wrapper
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/settings/qgssettingseditorwidgetregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/