File: qgsfeaturepickermodelbase.sip.in

package info (click to toggle)
qgis 3.40.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,183,800 kB
  • sloc: cpp: 1,595,841; python: 372,637; 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: 154
file content (338 lines) | stat: -rw-r--r-- 8,714 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
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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/qgsfeaturepickermodelbase.h                                 *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/



class QgsFeaturePickerModelBase : QAbstractItemModel /Abstract/
{
%Docstring(signature="appended")
Provides a list of features based on filter conditions.

Features are fetched asynchronously.

.. versionadded:: 3.14
%End

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


    enum class CustomRole /BaseType=IntEnum/
    {
      IdentifierValue,
      IdentifierValues,
      Value,
      Feature,
      FeatureId
    };

    explicit QgsFeaturePickerModelBase( QObject *parent = 0 );
%Docstring
Create a new QgsFeaturePickerModelBase, optionally specifying a
``parent``.
%End
    ~QgsFeaturePickerModelBase();

    QgsVectorLayer *sourceLayer() const;
%Docstring
The source layer from which features will be fetched.
%End

    void setSourceLayer( QgsVectorLayer *sourceLayer );
%Docstring
The source layer from which features will be fetched.
%End

    QString displayExpression() const;
%Docstring
The display expression will be used for

- displaying values in the combobox
- filtering based on filterValue
%End

    void setDisplayExpression( const QString &displayExpression );
%Docstring
The display expression will be used for

- displaying values in the combobox
- filtering based on filterValue
%End

    QString filterValue() const;
%Docstring
This value will be used to filter the features available from this
model. Whenever a substring of the displayExpression of a feature
matches the filter value, it will be accessible by this model.
%End

    void setFilterValue( const QString &filterValue );
%Docstring
This value will be used to filter the features available from this
model. Whenever a substring of the displayExpression of a feature
matches the filter value, it will be accessible by this model.
%End

    virtual QModelIndex index( int row, int column, const QModelIndex &parent ) const;

    virtual QModelIndex parent( const QModelIndex &child ) const;

    virtual int rowCount( const QModelIndex &parent ) const;

    virtual int columnCount( const QModelIndex &parent ) const;
    virtual QVariant data( const QModelIndex &index, int role ) const;


    QString filterExpression() const;
%Docstring
An additional filter expression to apply, next to the filterValue. Can
be used for spatial filtering etc.
%End

    void setFilterExpression( const QString &filterExpression );
%Docstring
An additional filter expression to apply, next to the filterValue. Can
be used for spatial filtering etc.
%End

    QgsFeature formFeature() const;
%Docstring
Returns an attribute form feature to be used with the filter expression.

.. versionadded:: 3.42.2
%End

    void setFormFeature( const QgsFeature &feature );
%Docstring
Sets an attribute form ``feature`` to be used with the filter
expression.

.. versionadded:: 3.42.2
%End

    QgsFeature parentFormFeature() const;
%Docstring
Returns a parent attribute form feature to be used with the filter
expression.

.. versionadded:: 3.42.2
%End

    void setParentFormFeature( const QgsFeature &feature );
%Docstring
Sets a parent attribute form ``feature`` to be used with the filter
expression.

.. versionadded:: 3.42.2
%End

    bool isLoading() const;
%Docstring
Indicator if the model is currently performing any feature iteration in
the background.
%End

    virtual void setExtraIdentifierValueToNull() = 0;
%Docstring
Allows specifying one value that does not need to match the filter
criteria but will still be available in the model as NULL value(s).
%End

    int extraIdentifierValueIndex() const;
%Docstring
The index at which the extra identifier value is available within the
model.
%End

    bool extraValueDoesNotExist() const;
%Docstring
Flag indicating that the extraIdentifierValue does not exist in the
data.
%End

    bool allowNull() const;
%Docstring
Add a NULL entry to the list.
%End

    void setAllowNull( bool allowNull );
%Docstring
Add a NULL entry to the list.
%End

    bool fetchGeometry() const;
%Docstring
Returns if the geometry is fetched
%End

    void setFetchGeometry( bool fetchGeometry );
%Docstring
Defines if the geometry will be fetched
%End

    int fetchLimit() const;
%Docstring
Returns the feature request fetch limit
%End

    void setFetchLimit( int fetchLimit );
%Docstring
Defines the feature request fetch limit If set to 0, no limit is applied
when fetching
%End

  signals:

    void currentFeatureChanged();
%Docstring
Emitted when the current feature in the model has changed This emitted
both when the extra value changes and when the extra value status
changes. It allows being notified when the feature is fetched after the
extra value has been set.

.. versionadded:: 3.16.5
%End

    void sourceLayerChanged();
%Docstring
The source layer from which features will be fetched.
%End

    void displayExpressionChanged();
%Docstring
The display expression will be used for

- displaying values in the combobox
- filtering based on filterValue
%End

    void filterValueChanged();
%Docstring
This value will be used to filter the features available from this
model. Whenever a substring of the displayExpression of a feature
matches the filter value, it will be accessible by this model.
%End

    void filterExpressionChanged();
%Docstring
An additional filter expression to apply, next to the filterValue. Can
be used for spatial filtering etc.
%End

    void formFeatureChanged();
%Docstring
An attribute form feature to be used alongside the filter expression.

.. versionadded:: 3.42.2
%End

    void parentFormFeatureChanged();
%Docstring
A parent attribute form feature to be used alongside the filter
expression.

.. versionadded:: 3.42.2
%End

    void isLoadingChanged();
%Docstring
Indicator if the model is currently performing any feature iteration in
the background.
%End

    void filterJobCompleted();
%Docstring
Indicates that a filter job has been completed and new data may be
available.
%End

    void extraIdentifierValueChanged();
%Docstring
Allows specifying one value that does not need to match the filter
criteria but will still be available in the model.
%End

    void extraIdentifierValueIndexChanged( int index );
%Docstring
The index at which the extra identifier value is available within the
model.
%End

    void extraValueDoesNotExistChanged( bool found );
%Docstring
Notification whether the model has ``found`` a feature tied to the
extraIdentifierValue or not.
%End

    void beginUpdate();
%Docstring
Notification that the model is about to be changed because a job was
completed.
%End

    void endUpdate();
%Docstring
Notification that the model change is finished. Will always be emitted
in sync with beginUpdate.
%End

    void allowNullChanged();
%Docstring
Add a NULL entry to the list.
%End

    void fetchGeometryChanged();
%Docstring
Emitted when the fetching of the geometry changes
%End

    void fetchLimitChanged();
%Docstring
Emitted when the fetching limit for the feature request changes
%End


  protected:

    QVariant extraIdentifierValue() const;
%Docstring
Allows specifying one value that does not need to match the filter
criteria but will still be available in the model.
%End

    void setExtraIdentifierValue( const QVariant &extraIdentifierValue );
%Docstring
Allows specifying one value that does not need to match the filter
criteria but will still be available in the model.
%End

    virtual void requestToReloadCurrentFeature( QgsFeatureRequest &request ) = 0;
%Docstring
Update the request to match the current feature to be reloaded
%End

    void setExtraIdentifierValueUnguarded( const QVariant &identifierValue );
%Docstring
This will set the identifier value to be set in the model even if it
doesn't exist currently in the data
%End




};

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