18#ifndef QGSVECTORLAYERSAVEASDIALOG_H
19#define QGSVECTORLAYERSAVEASDIALOG_H
21#include "ui_qgsvectorlayersaveasdialogbase.h"
46 DestinationCrs = 1 << 2,
49 SelectedOnly = 1 << 5,
50 GeometryType = 1 << 6,
55 Q_DECLARE_FLAGS( Options, Option )
73 QString format()
const;
78 QString encoding()
const;
83 QString filename()
const;
88 QString layername()
const;
94 QStringList datasourceOptions()
const;
100 QStringList layerOptions()
const;
107 Q_DECL_DEPRECATED
long crs()
const;
125 QStringList attributesExportNames()
const;
132 bool addToCanvas()
const;
140 void setAddToCanvas(
bool checked );
148 int symbologyExport()
const;
154 double scale()
const;
165 bool hasFilterExtent()
const;
176 void setOnlySelected(
bool onlySelected );
181 bool onlySelected()
const;
188 bool persistMetadata()
const;
202 bool automaticGeometryType()
const;
208 bool forceMulti()
const;
213 void setForceMulti(
bool checked );
219 bool includeZ()
const;
224 void setIncludeZ(
bool checked );
231 void mFormatComboBox_currentIndexChanged(
int idx );
234 void mSymbologyExportComboBox_currentIndexChanged(
const QString &text );
235 void mGeometryTypeComboBox_currentIndexChanged(
int index );
236 void accept()
override;
237 void mSelectAllAttributes_clicked();
238 void mDeselectAllAttributes_clicked();
239 void mUseAliasesForExportedName_stateChanged(
int state );
240 void mReplaceRawFieldValues_stateChanged(
int state );
241 void mAttributeTable_itemChanged( QTableWidgetItem *item );
245 enum class ColumnIndex :
int
250 ExportAsDisplayedValue = 3
254 QList< QPair< QLabel *, QWidget * > > createControls(
const QMap<QString, QgsVectorFileWriter::Option *> &options );
263 Options mOptions = AllOptions;
264 QString mDefaultOutputLayerNameFromInputLayerName;
WkbType
The WKB type describes the number of dimensions a geometry has.
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.
ActionOnExistingFile
Combination of CanAddNewLayer, CanAppendToExistingLayer, CanAddNewFieldsToExistingLayer or CanDeleteL...
Class to select destination file, type and CRS for ogr layers.
Option
Bitmask of options to be shown.
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