File: qgsvectorlayersaveasdialog.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 (249 lines) | stat: -rw-r--r-- 6,155 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
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/ogr/qgsvectorlayersaveasdialog.h                             *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/




class QgsVectorLayerSaveAsDialog : QDialog
{
%Docstring(signature="appended")
Class to select destination file, type and CRS for ogr layers
%End

%TypeHeaderCode
#include "qgsvectorlayersaveasdialog.h"
%End
  public:
    enum class Option /BaseType=IntFlag/
    {
      Symbology,
      DestinationCrs,
      Fields,
      AddToCanvas,
      SelectedOnly,
      GeometryType,
      Extent,
      Metadata,
      AllOptions
    };

    typedef QFlags<QgsVectorLayerSaveAsDialog::Option> Options;



    QgsVectorLayerSaveAsDialog( QgsVectorLayer *layer, QgsVectorLayerSaveAsDialog::Options options = QgsVectorLayerSaveAsDialog::Option::AllOptions, QWidget *parent = 0, Qt::WindowFlags fl = Qt::WindowFlags() );
%Docstring
Construct a new QgsVectorLayerSaveAsDialog
%End

    QString format() const;
%Docstring
Returns the selected format in which the export should be written.

.. seealso:: :py:func:`QgsVectorFileWriter.filterForDriver`
%End

    QString encoding() const;
%Docstring
Returns the selected encoding for the target file.
%End

    QString fileName() const;
%Docstring
Returns the target filename.

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

    QString layerName() const;
%Docstring
Returns the target layer name.

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

    QStringList datasourceOptions() const;
%Docstring
Returns a list of additional data source options which are passed to
OGR. Refer to the OGR documentation for the target format for available
options.

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

    QStringList layerOptions() const;
%Docstring
Returns a list of additional layer options which are passed to OGR.
Refer to the OGR documentation for the target format for available
options.

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

    QgsCoordinateReferenceSystem crs() const;
%Docstring
Returns the CRS chosen for export.

.. versionadded:: 3.14
%End

    QgsAttributeList selectedAttributes() const;
%Docstring
Returns a list of attributes which are selected for saving.
%End

    QgsAttributeList attributesAsDisplayedValues() const;
%Docstring
Returns selected attributes that must be exported with their displayed
values instead of their raw values.
%End

    QStringList attributesExportNames() const;
%Docstring
Returns a list of export names for attributes.
%End

    bool addToCanvas() const;
%Docstring
Returns ``True`` if the "add to canvas" checkbox is checked.

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

    void setAddToCanvas( bool checked );
%Docstring
Sets whether the "add to canvas" checkbox should be ``checked``.

.. seealso:: :py:func:`addToCanvas`

.. versionadded:: 3.6
%End

    Qgis::FeatureSymbologyExport symbologyExport() const;
%Docstring
Returns type of symbology export.
%End

    double scale() const;
%Docstring
Returns the specified map scale. The scale value indicates the scale
denominator, e.g. 1000.0 for a 1:1000 map.
%End

    void setMapCanvas( QgsMapCanvas *canvas );
%Docstring
Sets a map ``canvas`` to associate with the dialog.
%End

    bool hasFilterExtent() const;
%Docstring
Determines if filtering the export by an extent is activated.

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

    QgsRectangle filterExtent() const;
%Docstring
Determines the extent to be exported.

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

    void setOnlySelected( bool onlySelected );
%Docstring
Sets whether only selected features will be saved.

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

    bool onlySelected() const;
%Docstring
Returns whether only selected features will be saved.

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

    bool persistMetadata() const;
%Docstring
Returns ``True`` if the persist metadata (copy source metadata to
destination layer) option is checked.

.. versionadded:: 3.20
%End

    Qgis::WkbType geometryType() const;
%Docstring
Returns the selected flat geometry type for the export.

.. seealso:: :py:func:`automaticGeometryType`

.. seealso:: :py:func:`forceMulti`

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

    bool automaticGeometryType() const;
%Docstring
Returns ``True`` if geometry type is set to automatic.

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

    bool forceMulti() const;
%Docstring
Returns ``True`` if force multi geometry type is checked.

.. seealso:: :py:func:`includeZ`

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

    void setForceMulti( bool checked );
%Docstring
Sets whether the force multi geometry checkbox should be checked.

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

    bool includeZ() const;
%Docstring
Returns ``True`` if include z dimension is checked.

.. seealso:: :py:func:`forceMulti`

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

    void setIncludeZ( bool checked );
%Docstring
Sets whether the include z dimension checkbox should be checked.

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

    QgsVectorFileWriter::ActionOnExistingFile creationActionOnExistingFile() const;
%Docstring
Returns the creation action.
%End

    virtual void accept();


};

QFlags<QgsVectorLayerSaveAsDialog::Option> operator|(QgsVectorLayerSaveAsDialog::Option f1, QFlags<QgsVectorLayerSaveAsDialog::Option> f2);



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