QGIS API Documentation
3.14.0-Pi (9f7028fd23)
src
core
qgsvectorlayertools.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvectorlayertools.h
3
--------------------------------------
4
Date : 29.5.2013
5
Copyright : (C) 2013 Matthias Kuhn
6
Email : matthias at opengis dot 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 QGSVECTORLAYERTOOLS_H
17
#define QGSVECTORLAYERTOOLS_H
18
19
#include "qgis_core.h"
20
#include "
qgis_sip.h
"
21
#include <QObject>
22
23
#include "
qgsfeature.h
"
24
#include "
qgsgeometry.h
"
25
26
class
QgsFeatureRequest
;
27
class
QgsVectorLayer
;
28
39
class
CORE_EXPORT
QgsVectorLayerTools
:
public
QObject
40
{
41
Q_OBJECT
42
43
public
:
44
QgsVectorLayerTools
();
45
46
// TODO QGIS 4: remove const qualifier
47
58
virtual
bool
addFeature(
QgsVectorLayer
*layer,
const
QgsAttributeMap
&defaultValues =
QgsAttributeMap
(),
const
QgsGeometry
&defaultGeometry =
QgsGeometry
(),
QgsFeature
*feature
SIP_OUT
=
nullptr
)
const
= 0;
59
60
// TODO QGIS 4: remove const qualifier
61
72
virtual
bool
startEditing(
QgsVectorLayer
*layer )
const
= 0;
73
74
// TODO QGIS 4: remove const qualifier
75
85
virtual
bool
stopEditing(
QgsVectorLayer
*layer,
bool
allowCancel =
true
)
const
= 0;
86
87
// TODO QGIS 4: remove const qualifier
88
96
virtual
bool
saveEdits(
QgsVectorLayer
*layer )
const
= 0;
97
98
// TODO QGIS 4: remove const qualifier
99
114
virtual
bool
copyMoveFeatures(
QgsVectorLayer
*layer,
QgsFeatureRequest
&request
SIP_INOUT
,
double
dx = 0,
double
dy = 0, QString *errorMsg
SIP_OUT
=
nullptr
,
const
bool
topologicalEditing =
false
,
QgsVectorLayer
*topologicalLayer =
nullptr
)
const
;
115
122
bool
forceSuppressFormPopup()
const
;
123
132
void
setForceSuppressFormPopup(
bool
forceSuppressFormPopup );
133
134
private
:
135
136
bool
mForceSuppressFormPopup {
false
};
137
138
139
};
140
141
#endif // QGSVECTORLAYERTOOLS_H
SIP_OUT
#define SIP_OUT
Definition:
qgis_sip.h:58
qgsfeature.h
QgsVectorLayerTools
Definition:
qgsvectorlayertools.h:39
QgsFeatureRequest
Definition:
qgsfeaturerequest.h:75
qgis_sip.h
QgsAttributeMap
QMap< int, QVariant > QgsAttributeMap
Definition:
qgsattributes.h:38
SIP_INOUT
#define SIP_INOUT
Definition:
qgis_sip.h:71
qgsgeometry.h
QgsGeometry
Definition:
qgsgeometry.h:122
QgsVectorLayer
Definition:
qgsvectorlayer.h:385
QgsFeature
Definition:
qgsfeature.h:55
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17