File: qgsattributeeditorcontext.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 (283 lines) | stat: -rw-r--r-- 6,699 bytes parent folder | download | duplicates (6)
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/qgsattributeeditorcontext.h                                  *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/






class QgsAttributeEditorContext
{
%Docstring(signature="appended")
This class contains context information for attribute editor widgets. It
will be passed to embedded widgets whenever this occurs (e.g. when
showing an embedded form due to relations)
%End

%TypeHeaderCode
#include "qgsattributeeditorcontext.h"
%End
  public:
    static const QMetaObject staticMetaObject;

  public:
    enum Mode /BaseType=IntEnum/
    {
      SingleEditMode,
      AddFeatureMode,
      FixAttributeMode,
      MultiEditMode,
      SearchMode,
      AggregateSearchMode,
      IdentifyMode
    };

    enum RelationMode /BaseType=IntEnum/
    {
      Undefined,
      Multiple,
      Single
    };

    enum FormMode /BaseType=IntEnum/
    {
      Embed,
      StandaloneDialog,
      Popup
    };

    QgsAttributeEditorContext();

    QgsAttributeEditorContext( const QgsAttributeEditorContext &parentContext, FormMode formMode );

    QgsAttributeEditorContext( const QgsAttributeEditorContext &parentContext, const QgsRelation &relation, RelationMode relationMode, FormMode widgetMode );

    void setDistanceArea( const QgsDistanceArea &distanceArea );
%Docstring
Sets distance area object, ``distanceArea``, for area/length
calculations

.. seealso:: :py:func:`distanceArea`
%End

    const QgsDistanceArea &distanceArea() const;
%Docstring
Returns the distance area object used for area/length calculations.

.. seealso:: :py:func:`setDistanceArea`
%End

    void setMapCanvas( QgsMapCanvas *mapCanvas );
%Docstring
Sets the associated map canvas, ``mapCanvas``, (e.g. to zoom to related
features).

.. seealso:: :py:func:`mapCanvas`

.. versionadded:: 3.2
%End

    QgsMapCanvas *mapCanvas() const;
%Docstring
Returns the associated map canvas (e.g. to zoom to related features).

.. seealso:: :py:func:`setMapCanvas`

.. versionadded:: 3.2
%End

    void setCadDockWidget( QgsAdvancedDigitizingDockWidget *cadDockWidget );
%Docstring
Sets the associated CAD dock widget, ``cadDockWidget``, (e.g. to be used
in map tools).

.. note::

   Unstable API. This method is unstable API and may be modified or removed at any time.

.. seealso:: :py:func:`cadDockWidget`

.. versionadded:: 3.10
%End

    QgsAdvancedDigitizingDockWidget *cadDockWidget() const;
%Docstring
Returns the associated CAD dock widget (e.g. to be used in map tools).

.. note::

   Unstable API. This method is unstable API and may be modified or removed at any time.

.. seealso:: :py:func:`setCadDockWidget`

.. versionadded:: 3.10
%End

    void setVectorLayerTools( QgsVectorLayerTools *vlTools );
%Docstring
Sets the associated vector layer tools.

:param vlTools: vector layer tools

.. seealso:: :py:func:`vectorLayerTools`
%End

    const QgsVectorLayerTools *vectorLayerTools() const;
%Docstring
Returns the associated vector layer tools.

.. seealso:: :py:func:`setVectorLayerTools`
%End

    void setRelation( const QgsRelation &relation, RelationMode mode );
%Docstring
Set attribute relation and mode

:param relation: relation
:param mode: relation mode

.. seealso:: :py:func:`relation`

.. seealso:: :py:func:`relationMode`
%End

    const QgsRelation &relation() const;
%Docstring
Returns the attribute relation.

.. seealso:: :py:func:`setRelation`

.. seealso:: :py:func:`relationMode`
%End

    RelationMode relationMode() const;
%Docstring
Returns the attribute relation mode.

.. seealso:: :py:func:`setRelation`

.. seealso:: :py:func:`relation`
%End

    FormMode formMode() const;
%Docstring
Returns the form mode.

.. seealso:: :py:func:`setFormMode`
%End

    void setFormMode( FormMode mode );
%Docstring
Sets the form mode.

:param mode: form mode

.. seealso:: :py:func:`formMode`
%End

    bool allowCustomUi() const;
%Docstring
Returns ``True`` if the attribute editor should permit use of custom UI
forms.

.. seealso:: :py:func:`setAllowCustomUi`
%End

    void setAllowCustomUi( bool allow );
%Docstring
Sets whether the attribute editor should permit use of custom UI forms.

:param allow: set to ``True`` to allow custom UI forms, or ``False`` to
              disable them and use default generated QGIS forms

.. seealso:: :py:func:`allowCustomUi`
%End

    const QgsAttributeEditorContext *parentContext() const;

    QgsFeature formFeature() const;
%Docstring
Returns current feature from the currently edited form or table row

.. seealso:: :py:func:`setFormFeature`

.. versionadded:: 3.2
%End

    void setFormFeature( const QgsFeature &feature );
%Docstring
Set current ``feature`` for the currently edited form or table row

.. seealso:: :py:func:`formFeature`

.. versionadded:: 3.2
%End

    QgsFeature parentFormFeature() const;
%Docstring
Returns the feature of the currently edited parent form in its actual
state

.. seealso:: :py:func:`setParentFormFeature`

.. versionadded:: 3.14
%End

    void setParentFormFeature( const QgsFeature &feature );
%Docstring
Sets the ``feature`` of the currently edited parent form

.. seealso:: :py:func:`parentFormFeature`

.. versionadded:: 3.14
%End

    Mode attributeFormMode() const;
%Docstring
Returns current attributeFormMode

.. versionadded:: 3.4
%End

    void setAttributeFormMode( const Mode &attributeFormMode );
%Docstring
Set ``attributeFormMode`` for the edited form

.. versionadded:: 3.4
%End

    QString attributeFormModeString() const;
%Docstring
Returns given ``attributeFormMode`` as string

.. versionadded:: 3.4
%End

    void setMainMessageBar( QgsMessageBar *messageBar );
%Docstring
Set current ``messageBar`` as the main message bar

.. versionadded:: 3.12
%End

    QgsMessageBar *mainMessageBar();
%Docstring
Returns the main message bar

.. versionadded:: 3.12
%End

};

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