File: qgsmaplayeraction.sip.in

package info (click to toggle)
qgis 3.40.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,183,672 kB
  • sloc: cpp: 1,595,771; python: 372,544; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 161
file content (195 lines) | stat: -rw-r--r-- 6,557 bytes parent folder | download | duplicates (12)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/actions/qgsmaplayeraction.h                                  *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/






class QgsMapLayerAction : QAction
{
%Docstring(signature="appended")
An action which can run on map layers The class can be used in two
manners: * by instantiating it and connecting to its signals to perform
an action * by subclassing and reimplementing its method (only since
QGIS 3.18.2)
%End

%TypeHeaderCode
#include "qgsmaplayeraction.h"
%End
  public:
    QgsMapLayerAction( const QString &name, QObject *parent /TransferThis/, Qgis::MapLayerActionTargets targets = Qgis::MapLayerActionTarget::AllActions, const QIcon &icon = QIcon(), Qgis::MapLayerActionFlags flags = Qgis::MapLayerActionFlags() );
%Docstring
Creates a map layer action which can run on any layer

.. note::

   using AllActions as a target probably does not make a lot of sense. This default action was settled for API compatibility reasons.
%End

    QgsMapLayerAction( const QString &name, QObject *parent /TransferThis/, QgsMapLayer *layer, Qgis::MapLayerActionTargets targets = Qgis::MapLayerActionTarget::AllActions, const QIcon &icon = QIcon(), Qgis::MapLayerActionFlags flags = Qgis::MapLayerActionFlags() );
%Docstring
Creates a map layer action which can run only on a specific layer
%End

    QgsMapLayerAction( const QString &name, QObject *parent /TransferThis/, Qgis::LayerType layerType, Qgis::MapLayerActionTargets targets = Qgis::MapLayerActionTarget::AllActions, const QIcon &icon = QIcon(), Qgis::MapLayerActionFlags flags = Qgis::MapLayerActionFlags() );
%Docstring
Creates a map layer action which can run on a specific type of layer
%End

    ~QgsMapLayerAction();

    Qgis::MapLayerActionFlags flags() const;
%Docstring
Layer behavior flags.
%End

 virtual bool canRunUsingLayer( QgsMapLayer *layer ) const /Deprecated/;
%Docstring
Returns ``True`` if the action can run using the specified layer.

.. deprecated:: 3.40

   Use the version with :py:class:`QgsMapLayerActionContext` instead.
%End

    virtual bool canRunUsingLayer( QgsMapLayer *layer, const QgsMapLayerActionContext &context ) const;
%Docstring
Returns ``True`` if the action can run using the specified layer.

.. note::

   Classes which implement this should return ``False`` to the deprecated :py:func:`~QgsMapLayerAction.canRunUsingLayer` method which does not accept a :py:class:`QgsMapLayerActionContext` argument.

.. versionadded:: 3.30
%End

 virtual void triggerForFeatures( QgsMapLayer *layer, const QList<QgsFeature> &featureList ) /Deprecated/;
%Docstring
Triggers the action with the specified layer and list of feature.

.. deprecated:: 3.40

   Use the version with :py:class:`QgsMapLayerActionContext` instead.
%End

 virtual void triggerForFeature( QgsMapLayer *layer, const QgsFeature &feature ) /Deprecated/;
%Docstring
Triggers the action with the specified layer and feature.

.. deprecated:: 3.40

   Use the version with :py:class:`QgsMapLayerActionContext` instead.
%End

 virtual void triggerForLayer( QgsMapLayer *layer ) /Deprecated/;
%Docstring
Triggers the action with the specified layer.

.. deprecated:: 3.40

   Use the version with :py:class:`QgsMapLayerActionContext` instead.
%End

    virtual void triggerForFeatures( QgsMapLayer *layer, const QList<QgsFeature> &featureList, const QgsMapLayerActionContext &context );
%Docstring
Triggers the action with the specified layer and list of feature.

.. versionadded:: 3.30
%End

    virtual void triggerForFeature( QgsMapLayer *layer, const QgsFeature &feature, const QgsMapLayerActionContext &context );
%Docstring
Triggers the action with the specified layer and feature.

.. versionadded:: 3.30
%End

    virtual void triggerForLayer( QgsMapLayer *layer, const QgsMapLayerActionContext &context );
%Docstring
Triggers the action with the specified layer.

.. versionadded:: 3.30
%End

    void setTargets( Qgis::MapLayerActionTargets targets );
%Docstring
Define the targets of the action
%End
    Qgis::MapLayerActionTargets targets() const;
%Docstring
Returns availibity of action
%End

    bool isEnabledOnlyWhenEditable() const;
%Docstring
Returns ``True`` if the action is only enabled for layers in editable
mode.
%End

  signals:

 void triggeredForFeatures( QgsMapLayer *layer, const QList<QgsFeature> &featureList ) /Deprecated/;
%Docstring
Triggered when action has been run for a specific list of features

.. deprecated:: 3.40

   Use the version with :py:class:`QgsMapLayerActionContext` instead.
%End

 void triggeredForFeature( QgsMapLayer *layer, const QgsFeature &feature ) /Deprecated/;
%Docstring
Triggered when action has been run for a specific feature

.. deprecated:: 3.40

   Use the version with :py:class:`QgsMapLayerActionContext` instead.
%End

 void triggeredForLayer( QgsMapLayer *layer ) /Deprecated/;
%Docstring
Triggered when action has been run for a specific layer

.. deprecated:: 3.40

   Use the version with :py:class:`QgsMapLayerActionContext` instead.
%End

    void triggeredForFeaturesV2( QgsMapLayer *layer, const QList<QgsFeature> &featureList, const QgsMapLayerActionContext &context );
%Docstring
Triggered when action has been run for a specific list of features

.. versionadded:: 3.30
%End

    void triggeredForFeatureV2( QgsMapLayer *layer, const QgsFeature &feature, const QgsMapLayerActionContext &context );
%Docstring
Triggered when action has been run for a specific feature.

.. versionadded:: 3.30
%End

    void triggeredForLayerV2( QgsMapLayer *layer, const QgsMapLayerActionContext &context );
%Docstring
Triggered when action has been run for a specific layer.

.. versionadded:: 3.30
%End

};


/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/actions/qgsmaplayeraction.h                                  *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/