QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgsmaplayerselectionproperties.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaplayerselectionproperties.h
3
---------------
4
begin : July 2023
5
copyright : (C) 2023 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
19
#ifndef QGSMAPLAYERSELECTIONPROPERTIES_H
20
#define QGSMAPLAYERSELECTIONPROPERTIES_H
21
22
#include "qgis_core.h"
23
#include "
qgis_sip.h
"
24
#include "
qgsreadwritecontext.h
"
25
26
#include <QObject>
27
38
class
CORE_EXPORT
QgsMapLayerSelectionProperties
:
public
QObject
39
{
40
//SIP_TYPEHEADER_INCLUDE( "qgsvectorlayerselectionproperties.h" );
41
42
Q_OBJECT
43
44
#ifdef SIP_RUN
45
SIP_CONVERT_TO_SUBCLASS_CODE
46
if
( qobject_cast<QgsVectorLayerSelectionProperties *>( sipCpp ) )
47
{
48
sipType = sipType_QgsVectorLayerSelectionProperties;
49
}
50
else
51
{
52
sipType = 0;
53
}
54
SIP_END
55
#endif
56
57
public
:
58
62
QgsMapLayerSelectionProperties
( QObject *parent
SIP_TRANSFERTHIS
);
63
69
virtual
QDomElement
writeXml
( QDomElement &element, QDomDocument &doc,
const
QgsReadWriteContext
&context ) = 0;
70
76
virtual
bool
readXml
(
const
QDomElement &element,
const
QgsReadWriteContext
&context ) = 0;
77
81
virtual
QgsMapLayerSelectionProperties
*
clone
()
const
= 0
SIP_FACTORY
;
82
};
83
84
#endif
// QGSMAPLAYERSELECTIONPROPERTIES_H
QgsMapLayerSelectionProperties::writeXml
virtual QDomElement writeXml(QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context)=0
Writes the properties to a DOM element, to be used later with readXml().
QgsMapLayerSelectionProperties::QgsMapLayerSelectionProperties
QgsMapLayerSelectionProperties(QObject *parent)
Constructor for QgsMapLayerSelectionProperties, with the specified parent object.
Definition
qgsmaplayerselectionproperties.cpp:22
QgsMapLayerSelectionProperties::readXml
virtual bool readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads temporal properties from a DOM element previously written by writeXml().
QgsMapLayerSelectionProperties::clone
virtual QgsMapLayerSelectionProperties * clone() const =0
Creates a clone of the properties.
QgsReadWriteContext
A container for the context for various read/write operations on objects.
Definition
qgsreadwritecontext.h:38
qgis_sip.h
SIP_CONVERT_TO_SUBCLASS_CODE
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition
qgis_sip.h:203
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
SIP_END
#define SIP_END
Definition
qgis_sip.h:220
qgsreadwritecontext.h
Generated on
for QGIS API Documentation by
1.17.0