QGIS API Documentation
3.41.0-Master (fda2aa46e9a)
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 : denis@opengis.ch
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
52
void
addWrapperForSetting(
QgsSettingsEditorWidgetWrapper
*wrapper
SIP_TRANSFER
,
const
QgsSettingsEntryBase
*setting
SIP_KEEPREFERENCE
);
53
55
QgsSettingsEditorWidgetWrapper
*createWrapper(
const
QString &
id
, QObject *parent )
const
SIP_FACTORY
;
56
58
QWidget *createEditor(
const
QgsSettingsEntryBase
*setting,
const
QStringList &dynamicKeyPartList, QWidget *parent =
nullptr
)
const
SIP_TRANSFERBACK
;
59
60
private
:
61
QMap<QString, QgsSettingsEditorWidgetWrapper *> mWrappers;
62
QMap<const QgsSettingsEntryBase *, QgsSettingsEditorWidgetWrapper *> mSpecificWrappers;
63
};
64
65
#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:35
QgsSettingsEntryBase
Represent settings entry and provides methods for reading and writing settings values.
Definition
qgssettingsentry.h:45
qgis_sip.h
SIP_KEEPREFERENCE
#define SIP_KEEPREFERENCE
Definition
qgis_sip.h:86
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:36
SIP_TRANSFERBACK
#define SIP_TRANSFERBACK
Definition
qgis_sip.h:48
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
Generated on Sun Nov 10 2024 14:15:43 for QGIS API Documentation by
1.9.8