18 #ifndef QGSVECTORLAYERSAVEASDIALOG_H
19 #define QGSVECTORLAYERSAVEASDIALOG_H
21 #include "ui_qgsvectorlayersaveasdialogbase.h"
48 DestinationCrs = 1 << 2,
51 SelectedOnly = 1 << 5,
52 GeometryType = 1 << 6,
57 Q_DECLARE_FLAGS( Options, Option )
75 QString format()
const;
80 QString encoding()
const;
85 QString filename()
const;
90 QString layername()
const;
96 QStringList datasourceOptions()
const;
102 QStringList layerOptions()
const;
109 Q_DECL_DEPRECATED
long crs()
const;
127 QStringList attributesExportNames()
const;
134 bool addToCanvas()
const;
142 void setAddToCanvas(
bool checked );
150 int symbologyExport()
const;
156 double scale()
const;
167 bool hasFilterExtent()
const;
178 void setOnlySelected(
bool onlySelected );
183 bool onlySelected()
const;
190 bool persistMetadata()
const;
204 bool automaticGeometryType()
const;
210 bool forceMulti()
const;
215 void setForceMulti(
bool checked );
221 bool includeZ()
const;
226 void setIncludeZ(
bool checked );
233 void mFormatComboBox_currentIndexChanged(
int idx );
236 void mSymbologyExportComboBox_currentIndexChanged(
const QString &text );
237 void mGeometryTypeComboBox_currentIndexChanged(
int index );
238 void accept()
override;
239 void mSelectAllAttributes_clicked();
240 void mDeselectAllAttributes_clicked();
241 void mUseAliasesForExportedName_stateChanged(
int state );
242 void mReplaceRawFieldValues_stateChanged(
int state );
243 void mAttributeTable_itemChanged( QTableWidgetItem *item );
247 enum class ColumnIndex : int
252 ExportAsDisplayedValue = 3
256 QList< QPair< QLabel *, QWidget * > > createControls(
const QMap<QString, QgsVectorFileWriter::Option *> &options );
265 Options mOptions = AllOptions;
271 #endif // QGSVECTORLAYERSAVEASDIALOG_H