QGIS API Documentation
3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
src
core
editform
qgsattributeeditortextelement.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsattributeeditortextelement.h - QgsAttributeEditorTextElement
3
4
---------------------
5
begin : 28.12.2022
6
copyright : (C) 2022 by Alessandro Pasotti
7
email : elpaso at itopen dot it
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 QGSATTRIBUTEEDITORTEXTELEMENT_H
17
#define QGSATTRIBUTEEDITORTEXTELEMENT_H
18
19
#include "qgis_core.h"
20
#include "
qgsattributeeditorelement.h
"
21
28
class
CORE_EXPORT
QgsAttributeEditorTextElement
:
public
QgsAttributeEditorElement
29
{
30
public
:
31
38
QgsAttributeEditorTextElement
(
const
QString &
name
,
QgsAttributeEditorElement
*
parent
)
39
:
QgsAttributeEditorElement
(
Qgis
::AttributeEditorType::TextElement,
name
,
parent
)
40
{}
41
42
QgsAttributeEditorElement
*
clone
(
QgsAttributeEditorElement
*parent )
const
override
SIP_FACTORY
;
43
47
QString text()
const
;
48
52
void
setText(
const
QString &text );
53
54
private
:
55
void
saveConfiguration( QDomElement &elem, QDomDocument &doc )
const override
;
56
void
loadConfiguration(
const
QDomElement &element,
const
QString &layerId,
const
QgsReadWriteContext
&context,
const
QgsFields
&fields )
override
;
57
QString typeIdentifier()
const override
;
58
QString mText;
59
};
60
61
62
#endif
// QGSATTRIBUTEEDITORTEXTELEMENT_H
Qgis
Provides global constants and enumerations for use throughout the application.
Definition
qgis.h:56
QgsAttributeEditorElement
An abstract base class for any elements of a drag and drop form.
Definition
qgsattributeeditorelement.h:44
QgsAttributeEditorElement::parent
QgsAttributeEditorElement * parent() const
Gets the parent of this element.
Definition
qgsattributeeditorelement.h:148
QgsAttributeEditorElement::QgsAttributeEditorElement
QgsAttributeEditorElement(Qgis::AttributeEditorType type, const QString &name, QgsAttributeEditorElement *parent=nullptr)
Constructor.
Definition
qgsattributeeditorelement.h:115
QgsAttributeEditorElement::name
QString name() const
Returns the name of this element.
Definition
qgsattributeeditorelement.h:135
QgsAttributeEditorElement::clone
virtual QgsAttributeEditorElement * clone(QgsAttributeEditorElement *parent) const =0
Returns a clone of this element.
QgsAttributeEditorTextElement::QgsAttributeEditorTextElement
QgsAttributeEditorTextElement(const QString &name, QgsAttributeEditorElement *parent)
Creates a new element which can display text.
Definition
qgsattributeeditortextelement.h:38
QgsFields
Container of fields for a vector layer.
Definition
qgsfields.h:46
QgsReadWriteContext
A container for the context for various read/write operations on objects.
Definition
qgsreadwritecontext.h:34
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:84
qgsattributeeditorelement.h
Generated on
for QGIS API Documentation by
1.15.0