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,
163 double scale() const;
256 void mFormatComboBox_currentIndexChanged(
int idx );
259 void mSymbologyExportComboBox_currentIndexChanged( const QString &text );
260 void mGeometryTypeComboBox_currentIndexChanged(
int index );
261 void mSelectAllAttributes_clicked();
262 void mDeselectAllAttributes_clicked();
263 void mUseAliasesForExportedName_stateChanged(
int state );
264 void mReplaceRawFieldValues_stateChanged(
int state );
265 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;
Provides global constants and enumerations for use throughout the application.
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.
bool onlySelected() const
Returns whether only selected features will be saved.
bool forceMulti() const
Returns true if force multi geometry type is checked.
QgsAttributeList selectedAttributes() const
Returns a list of attributes which are selected for saving.
QgsRectangle filterExtent() const
Determines the extent to be exported.
QString format() const
Returns the selected format in which the export should be written.
QStringList datasourceOptions() const
Returns a list of additional data source options which are passed to OGR.
bool persistMetadata() const
Returns true if the persist metadata (copy source metadata to destination layer) option is checked.
QString encoding() const
Returns the selected encoding for the target file.
void setIncludeZ(bool checked)
Sets whether the include z dimension checkbox should be checked.
QStringList attributesExportNames() const
Returns a list of export names for attributes.
QString fileName() const
Returns the target filename.
void setOnlySelected(bool onlySelected)
Sets whether only selected features will be saved.
QString layerName() const
Returns the target layer name.
bool automaticGeometryType() const
Returns true if geometry type is set to automatic.
Q_DECL_DEPRECATED QgsVectorLayerSaveAsDialog(long srsid, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags())
Construct a new QgsVectorLayerSaveAsDialog.
bool includeZ() const
Returns true if include z dimension is checked.
Option
Available dialog options.
QgsCoordinateReferenceSystem crs() const
Returns the CRS chosen for export.
QStringList layerOptions() const
Returns a list of additional layer options which are passed to OGR.
void setForceMulti(bool checked)
Sets whether the force multi geometry checkbox should be checked.
QFlags< Option > Options
Available dialog options.
bool addToCanvas() const
Returns true if the "add to canvas" checkbox is checked.
void setMapCanvas(QgsMapCanvas *canvas)
Sets a map canvas to associate with the dialog.
Qgis::WkbType geometryType() const
Returns the selected flat geometry type for the export.
QgsVectorFileWriter::ActionOnExistingFile creationActionOnExistingFile() const
Returns the creation action.
QgsAttributeList attributesAsDisplayedValues() const
Returns selected attributes that must be exported with their displayed values instead of their raw va...
double scale() const
Returns the specified map scale.
bool hasFilterExtent() const
Determines if filtering the export by an extent is activated.
Qgis::FeatureSymbologyExport symbologyExport() const
Returns type of symbology export.
void setAddToCanvas(bool checked)
Sets whether the "add to canvas" checkbox should be checked.
Represents a vector layer which manages a vector based dataset.
#define SIP_ENUM_BASETYPE(type)
QList< int > QgsAttributeList