QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
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
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
25class QWidget;
28
36{
37 public:
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
This class manages editor widgets for settings.
Base class for settings editor wrappers.
Represent settings entry and provides methods for reading and writing settings values.
#define SIP_TRANSFER
Definition qgis_sip.h:36
#define SIP_FACTORY
Definition qgis_sip.h:76