18#ifndef QGSVECTORLAYERSAVEASDIALOG_H
19#define QGSVECTORLAYERSAVEASDIALOG_H
21#include "ui_qgsvectorlayersaveasdialogbase.h"
45 DestinationCrs = 1 << 2,
48 SelectedOnly = 1 << 5,
49 GeometryType = 1 << 6,
59 Q_DECLARE_FLAGS( Options, Option )
79 QString format() const;
84 QString encoding() const;
91 QString fileName() const;
98 QString layerName() const;
106 QStringList datasourceOptions() const;
114 QStringList layerOptions() const;
138 QStringList attributesExportNames() const;
145 bool addToCanvas() const;
153 void setAddToCanvas(
bool checked );
158 Qgis::FeatureSymbologyExport symbologyExport() const;
164 double scale() const;
175 bool hasFilterExtent() const;
188 void setOnlySelected(
bool onlySelected );
195 bool onlySelected() const;
202 bool persistMetadata() const;
210 Qgis::WkbType geometryType() const;
216 bool automaticGeometryType() const;
224 bool forceMulti() const;
231 void setForceMulti(
bool checked );
239 bool includeZ() const;
246 void setIncludeZ(
bool checked );
253 void accept() override;
257 void mFormatComboBox_currentIndexChanged(
int idx );
260 void mSymbologyExportComboBox_currentIndexChanged( const QString &text );
261 void mGeometryTypeComboBox_currentIndexChanged(
int index );
262 void mSelectAllAttributes_clicked();
263 void mDeselectAllAttributes_clicked();
264 void mUseAliasesForExportedName_stateChanged(
int state );
265 void mReplaceRawFieldValues_stateChanged(
int state );
266 void mAttributeTable_itemChanged( QTableWidgetItem *item );
270 enum class ColumnIndex :
int
275 ExportAsDisplayedValue = 3
279 QList< QPair< QLabel *, QWidget * > > createControls(
const QMap<QString, QgsVectorFileWriter::Option *> &options );
288 Options mOptions = Option::AllOptions;
289 QString mDefaultOutputLayerNameFromInputLayerName;
The Qgis class provides global constants for use throughout the application.
This class represents a coordinate reference system (CRS).
Map canvas is a class for displaying all GIS data types on a canvas.
A rectangle specified with double values.
A convenience class for writing vector layers to disk based formats (e.g.
ActionOnExistingFile
Combination of CanAddNewLayer, CanAppendToExistingLayer, CanAddNewFieldsToExistingLayer or CanDeleteL...
Class to select destination file, type and CRS for ogr layers.
Option
Available dialog options.
Represents a vector layer which manages a vector based data sets.
QList< int > QgsAttributeList
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.
const QgsCoordinateReferenceSystem & crs