18#ifndef QGSVECTORLAYERSAVEASDIALOG_H
19#define QGSVECTORLAYERSAVEASDIALOG_H
21#include "ui_qgsvectorlayersaveasdialogbase.h"
44 DestinationCrs = 1 << 2,
47 SelectedOnly = 1 << 5,
48 GeometryType = 1 << 6,
78 QString format() const;
83 QString encoding() const;
90 QString fileName() const;
97 QString layerName() const;
105 QStringList datasourceOptions() const;
113 QStringList layerOptions() const;
136 QStringList attributesExportNames() const;
143 bool addToCanvas() const;
151 void setAddToCanvas(
bool checked );
156 Qgis::FeatureSymbologyExport symbologyExport() const;
162 double scale() const;
173 bool hasFilterExtent() const;
186 void setOnlySelected(
bool onlySelected );
193 bool onlySelected() const;
200 bool persistMetadata() const;
208 Qgis::WkbType geometryType() const;
214 bool automaticGeometryType() const;
222 bool forceMulti() const;
229 void setForceMulti(
bool checked );
237 bool includeZ() const;
244 void setIncludeZ(
bool checked );
251 void accept() override;
255 void mFormatComboBox_currentIndexChanged(
int idx );
258 void mSymbologyExportComboBox_currentIndexChanged( const QString &text );
259 void mGeometryTypeComboBox_currentIndexChanged(
int index );
260 void mSelectAllAttributes_clicked();
261 void mDeselectAllAttributes_clicked();
262 void mUseAliasesForExportedName_stateChanged(
int state );
263 void mReplaceRawFieldValues_stateChanged(
int state );
264 void mAttributeTable_itemChanged( QTableWidgetItem *item );
268 enum class ColumnIndex :
int
273 ExportAsDisplayedValue = 3
277 QList< QPair< QLabel *, QWidget * > > createControls(
const QMap<QString, QgsVectorFileWriter::Option *> &options );
286 Options mOptions = Option::AllOptions;
287 QString mDefaultOutputLayerNameFromInputLayerName;
288 bool mAddToCanvasStateOnOpenCompatibleDriver =
true;
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
Enumeration to describe how to handle existing files.
Class to select destination file, type and CRS for ogr layers.
Option
Available dialog options.
QFlags< Option > Options
Available dialog options.
Represents a vector layer which manages a vector based data sets.
#define SIP_ENUM_BASETYPE(type)
QList< int > QgsAttributeList
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsTextRendererUtils::CurvedTextFlags)
const QgsCoordinateReferenceSystem & crs