QGIS API Documentation
3.38.0-Grenoble (exported)
Loading...
Searching...
No Matches
src
gui
settings
qgssettingseditorwidgetregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssettingseditorwidgetregistry.h
3
---------------------
4
begin : April 2023
5
copyright : (C) 2023 by Denis Rouzaud
6
email :
[email protected]
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSSETTINGSEDITORREGISTRY_H
17
#define QGSSETTINGSEDITORREGISTRY_H
18
19
#include <QObject>
20
#include <QMap>
21
22
#include "qgis_gui.h"
23
#include "
qgis_sip.h
"
24
25
class
QWidget;
26
class
QgsSettingsEntryBase
;
27
class
QgsSettingsEditorWidgetWrapper
;
28
35
class
GUI_EXPORT
QgsSettingsEditorWidgetRegistry
36
{
37
public
:
39
QgsSettingsEditorWidgetRegistry
();
40
~QgsSettingsEditorWidgetRegistry
();
41
46
bool
addWrapper(
QgsSettingsEditorWidgetWrapper
*wrapper
SIP_TRANSFER
);
47
49
QgsSettingsEditorWidgetWrapper
*createWrapper(
const
QString &
id
, QObject *parent )
const
;
50
52
QWidget *createEditor(
const
QgsSettingsEntryBase
*setting,
const
QStringList &dynamicKeyPartList, QWidget *parent =
nullptr
)
const
SIP_FACTORY
;
53
54
private
:
55
QMap<QString, QgsSettingsEditorWidgetWrapper *> mWrappers;
56
};
57
58
#endif
// QGSSETTINGSEDITORREGISTRY_H
QgsSettingsEditorWidgetRegistry
This class manages editor widgets for settings.
Definition
qgssettingseditorwidgetregistry.h:36
QgsSettingsEditorWidgetWrapper
Base class for settings editor wrappers.
Definition
qgssettingseditorwidgetwrapper.h:33
QgsSettingsEntryBase
Represent settings entry and provides methods for reading and writing settings values.
Definition
qgssettingsentry.h:45
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:36
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
Generated on Thu Jun 27 2024 20:32:18 for QGIS API Documentation by
1.9.8