QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
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
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 Functions
3
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
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
src
core
editform
qgsattributeeditorhtmlelement.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsattributeeditorhtmlelement.h - QgsAttributeEditorElement
3
4
---------------------
5
begin : 12.01.2021
6
copyright : (C) 2021 by Denis Rouzaud
7
email : denis@opengis.ch
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
#ifndef QGSATTRIBUTEEDITORHTMLELEMENT_H
17
#define QGSATTRIBUTEEDITORHTMLELEMENT_H
18
19
#include "qgis_core.h"
20
#include "
qgsattributeeditorelement.h
"
21
22
23
30
class
CORE_EXPORT
QgsAttributeEditorHtmlElement
:
public
QgsAttributeEditorElement
31
{
32
public
:
33
40
QgsAttributeEditorHtmlElement
(
const
QString &name,
QgsAttributeEditorElement
*parent )
41
:
QgsAttributeEditorElement
( AeTypeHtmlElement, name, parent )
42
{}
43
44
QgsAttributeEditorElement
*
clone
(
QgsAttributeEditorElement
*parent )
const
override
SIP_FACTORY
;
45
51
QString htmlCode()
const
;
52
56
void
setHtmlCode(
const
QString &htmlCode );
57
58
private
:
59
void
saveConfiguration( QDomElement &elem, QDomDocument &doc )
const override
;
60
void
loadConfiguration(
const
QDomElement &element,
const
QString &layerId,
const
QgsReadWriteContext
&context,
const
QgsFields
&fields )
override
;
61
QString typeIdentifier()
const override
;
62
QString mHtmlCode;
63
};
64
65
66
#endif
// QGSATTRIBUTEEDITORHTMLELEMENT_H
QgsAttributeEditorElement
This is an abstract base class for any elements of a drag and drop form.
Definition:
qgsattributeeditorelement.h:37
QgsAttributeEditorElement::clone
virtual QgsAttributeEditorElement * clone(QgsAttributeEditorElement *parent) const =0
Returns a clone of this element.
QgsAttributeEditorHtmlElement
An attribute editor widget that will represent arbitrary HTML code.
Definition:
qgsattributeeditorhtmlelement.h:31
QgsAttributeEditorHtmlElement::QgsAttributeEditorHtmlElement
QgsAttributeEditorHtmlElement(const QString &name, QgsAttributeEditorElement *parent)
Creates a new element which can display HTML.
Definition:
qgsattributeeditorhtmlelement.h:40
QgsFields
Container of fields for a vector layer.
Definition:
qgsfields.h:45
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition:
qgsreadwritecontext.h:35
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
qgsattributeeditorelement.h
Generated on Thu Feb 24 2022 10:41:09 for QGIS API Documentation by
1.9.1