17#ifndef qgsnewvectorlayerdialog_H
18#define qgsnewvectorlayerdialog_H
20#include "ui_qgsnewvectorlayerdialogbase.h"
79 void attributes( QList<QPair<QString, QString>> &at )
const;
117 void mAddAttributeButton_clicked();
118 void mRemoveAttributeButton_clicked();
119 void mFileFormatComboBox_currentIndexChanged(
int index );
120 void mTypeBox_currentIndexChanged(
int index );
125 void nameChanged(
const QString & );
126 void selectionChanged();
128 void moveFieldsDown();
131 QPushButton *mOkButton =
nullptr;
133 void updateExtension();
WkbType
The WKB type describes the number of dimensions a geometry has.
Represents a coordinate reference system (CRS).
static Q_DECL_DEPRECATED QString runAndCreateLayer(QWidget *parent=nullptr, QString *enc=nullptr, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem(), const QString &initialPath=QString())
Runs the dialog and creates a layer matching the dialog parameters.
void attributes(QList< QPair< QString, QString > > &at) const
Appends the chosen attribute names and types to at.
QgsCoordinateReferenceSystem crs() const
Returns the selected CRS for the new layer.
void setCrs(const QgsCoordinateReferenceSystem &crs)
Sets the crs value for the new layer in the dialog.
QString filename() const
Returns the name for the new layer.
QString selectedFileFormat() const
Returns the file format for storage.
QString selectedFileEncoding() const
Returns the file format for storage.
QgsNewVectorLayerDialog(QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
New dialog constructor.
static QString execAndCreateLayer(QString &errorMessage, QWidget *parent=nullptr, const QString &initialPath=QString(), QString *encoding=nullptr, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem())
Runs the dialog and creates a layer matching the dialog parameters.
Qgis::WkbType selectedType() const
Returns the selected geometry type.
void setFilename(const QString &filename)
Sets the initial file name to show in the dialog.