File: qgstrackedvectorlayertools.sip.in

package info (click to toggle)
qgis 3.34.7%2Bdfsg-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 1,087,388 kB
  • sloc: cpp: 1,440,033; python: 234,418; xml: 23,096; perl: 3,499; sh: 3,364; ansic: 2,219; sql: 2,130; yacc: 1,063; lex: 577; javascript: 540; lisp: 411; makefile: 155
file content (65 lines) | stat: -rw-r--r-- 2,862 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/qgstrackedvectorlayertools.h                                *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 ************************************************************************/


class QgsTrackedVectorLayerTools : QgsVectorLayerTools
{

%TypeHeaderCode
#include "qgstrackedvectorlayertools.h"
%End
  public:

    QgsTrackedVectorLayerTools();
%Docstring
Constructor for QgsTrackedVectorLayerTools.
%End

    virtual bool addFeature( QgsVectorLayer *layer, const QgsAttributeMap &defaultValues, const QgsGeometry &defaultGeometry, QgsFeature *feature, QWidget *parentWidget = 0, bool showModal = true, bool hideParent = false ) const;

%Docstring
This method calls the addFeature method of the backend :py:class:`QgsVectorLayerTools`

:param layer: The layer to which the feature should be added
:param defaultValues: Default values for the feature to add
:param defaultGeometry: A default geometry to add to the feature
:param feature: A pointer to the feature
:param parentWidget: The widget calling this function to be passed to the used dialog
:param showModal: If the used dialog should be modal or not
:param hideParent: If the parent widget should be hidden, when the used dialog is opened

:return: ``True`` in case of success, ``False`` if the operation failed/was aborted
%End
    virtual bool startEditing( QgsVectorLayer *layer ) const;

    virtual bool stopEditing( QgsVectorLayer *layer, bool allowCancel ) const;

    virtual bool saveEdits( QgsVectorLayer *layer ) const;

    virtual bool copyMoveFeatures( QgsVectorLayer *layer, QgsFeatureRequest &request, double  dx = 0, double dy = 0, QString *errorMsg = 0, const bool topologicalEditing = false, QgsVectorLayer *topologicalLayer = 0, QString *childrenInfoMsg = 0 ) const;


    void setVectorLayerTools( const QgsVectorLayerTools *tools );
%Docstring
Set the vector layer tools that will be used to interact with the data
%End

    void rollback();
%Docstring
Delete all features which have been added via this object.
%End

};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/qgstrackedvectorlayertools.h                                *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 ************************************************************************/