QGIS API Documentation
3.34.0-Prizren (ffbdd678812)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
gui
settings
qgssettingseditorwidgetwrapper.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssettingseditorwidgetwrapper.h
3
--------------------------------------
4
Date : February 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 QGSSETTINGSEDITORWIDGETWRAPPER_H
17
#define QGSSETTINGSEDITORWIDGETWRAPPER_H
18
19
#include <QVariant>
20
21
#include "
qgis_sip.h
"
22
#include "qgis_gui.h"
23
24
class
QgsSettingsEntryBase
;
25
32
class
GUI_EXPORT
QgsSettingsEditorWidgetWrapper
:
public
QObject
33
{
34
Q_OBJECT
35
public
:
37
static
QgsSettingsEditorWidgetWrapper
*fromWidget(
const
QWidget *widget )
SIP_FACTORY
;
38
40
QgsSettingsEditorWidgetWrapper
( QObject *parent =
nullptr
);
41
42
virtual
~QgsSettingsEditorWidgetWrapper
() =
default
;
43
48
virtual
QString
id
()
const
= 0;
49
51
virtual
QgsSettingsEditorWidgetWrapper
*
createWrapper
( QObject *parent =
nullptr
)
const
= 0;
52
54
QWidget *createEditor(
const
QgsSettingsEntryBase
*setting,
const
QStringList &dynamicKeyPartList = QStringList(), QWidget *parent =
nullptr
);
55
57
bool
configureEditor( QWidget *editor,
const
QgsSettingsEntryBase
*setting,
const
QStringList &dynamicKeyPartList = QStringList() );
58
63
virtual
bool
setWidgetFromSetting
()
const
= 0;
64
69
virtual
bool
setSettingFromWidget
()
const
= 0;
70
75
virtual
QVariant
variantValueFromWidget
()
const
= 0;
76
81
virtual
void
setWidgetFromVariant
(
const
QVariant &value )
const
= 0;
82
83
84
protected
:
86
virtual
QWidget *
createEditorPrivate
( QWidget *parent =
nullptr
)
const
= 0;
87
89
virtual
bool
configureEditorPrivate
( QWidget *editor,
const
QgsSettingsEntryBase
*setting ) = 0;
90
91
QStringList
mDynamicKeyPartList
;
92
};
32
class
GUI_EXPORT
QgsSettingsEditorWidgetWrapper
:
public
QObject {
…
};
93
94
95
96
#endif
// QGSSETTINGSEDITORWIDGETWRAPPER_H
QgsSettingsEditorWidgetWrapper
Base class for settings editor wrappers.
Definition
qgssettingseditorwidgetwrapper.h:33
QgsSettingsEditorWidgetWrapper::setWidgetFromSetting
virtual bool setWidgetFromSetting() const =0
Sets the widget value from the setting value The wrapper must be configured before calling this medth...
QgsSettingsEditorWidgetWrapper::setSettingFromWidget
virtual bool setSettingFromWidget() const =0
Sets the setting value from the widget value The wrapper must be configured before calling this medth...
QgsSettingsEditorWidgetWrapper::createWrapper
virtual QgsSettingsEditorWidgetWrapper * createWrapper(QObject *parent=nullptr) const =0
Creates a new instance of the editor wrapper so it can be configured for a widget and a setting.
QgsSettingsEditorWidgetWrapper::setWidgetFromVariant
virtual void setWidgetFromVariant(const QVariant &value) const =0
Sets the value of the widget The wrapper must be configured before calling this medthod.
QgsSettingsEditorWidgetWrapper::mDynamicKeyPartList
QStringList mDynamicKeyPartList
Definition
qgssettingseditorwidgetwrapper.h:91
QgsSettingsEditorWidgetWrapper::createEditorPrivate
virtual QWidget * createEditorPrivate(QWidget *parent=nullptr) const =0
Creates the widgets.
QgsSettingsEditorWidgetWrapper::configureEditorPrivate
virtual bool configureEditorPrivate(QWidget *editor, const QgsSettingsEntryBase *setting)=0
Configures an existing editor widget.
QgsSettingsEditorWidgetWrapper::id
virtual QString id() const =0
This id of the type of settings it handles.
QgsSettingsEditorWidgetWrapper::variantValueFromWidget
virtual QVariant variantValueFromWidget() const =0
Returns the value from the widget as a variant The wrapper must be configured before calling this med...
QgsSettingsEditorWidgetWrapper::~QgsSettingsEditorWidgetWrapper
virtual ~QgsSettingsEditorWidgetWrapper()=default
QgsSettingsEntryBase
Represent settings entry and provides methods for reading and writing settings values.
Definition
qgssettingsentry.h:45
qgis_sip.h
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
Generated on Mon Oct 30 2023 18:42:25 for QGIS API Documentation by
1.9.8