QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
core
editform
qgsattributeeditoraction.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsattributeeditoraction.h - QgsAttributeEditorAction
3
4
---------------------
5
begin : 14.8.2021
6
copyright : (C) 2021 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 QGSATTRIBUTEEDITORACTION_H
17
#define QGSATTRIBUTEEDITORACTION_H
18
19
#include "qgis_core.h"
20
#include "
qgsattributeeditorelement.h
"
21
#include "
qgsaction.h
"
22
28
class
CORE_EXPORT
QgsAttributeEditorAction
:
public
QgsAttributeEditorElement
29
{
30
public
:
31
38
QgsAttributeEditorAction
(
const
QgsAction
&action,
QgsAttributeEditorElement
*parent );
39
47
QgsAttributeEditorAction
(
const
QUuid &uuid,
QgsAttributeEditorElement
*parent );
48
49
QgsAttributeEditorElement
*
clone
(
QgsAttributeEditorElement
*parent )
const
override
SIP_FACTORY
;
50
54
const
QgsAction
&action(
const
QgsVectorLayer
*layer )
const
;
55
59
void
setAction(
const
QgsAction
&newAction );
60
61
private
:
62
63
// Lazy loaded
64
mutable
QgsAction
mAction;
65
QUuid mUuid;
66
67
// QgsAttributeEditorElement interface
68
void
saveConfiguration( QDomElement &elem, QDomDocument &doc )
const override
;
69
void
loadConfiguration(
const
QDomElement &element,
const
QString &layerId,
const
QgsReadWriteContext
&context,
const
QgsFields
&fields )
override
;
70
QString typeIdentifier()
const override
;
71
72
};
73
74
#endif // QGSATTRIBUTEEDITORACTION_H
QgsAttributeEditorElement
This is an abstract base class for any elements of a drag and drop form.
Definition:
qgsattributeeditorelement.h:37
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition:
qgsreadwritecontext.h:34
QgsFields
Container of fields for a vector layer.
Definition:
qgsfields.h:44
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
qgsaction.h
QgsAttributeEditorAction
This element will load a layer action onto the form.
Definition:
qgsattributeeditoraction.h:28
QgsAction
Utility class that encapsulates an action based on vector attributes.
Definition:
qgsaction.h:34
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:391
QgsAttributeEditorElement::clone
virtual QgsAttributeEditorElement * clone(QgsAttributeEditorElement *parent) const =0
Returns a clone of this element.
qgsattributeeditorelement.h
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17