17#ifndef QGSNEWMEMORYLAYERDIALOG_H
18#define QGSNEWMEMORYLAYERDIALOG_H
20#include "ui_qgsnewmemorylayerdialogbase.h"
81 QPushButton *mOkButton =
nullptr;
85 void geometryTypeChanged(
int index );
86 void fieldNameChanged(
const QString & );
87 void mTypeBox_currentIndexChanged(
int index );
88 void mAddAttributeButton_clicked();
89 void mRemoveAttributeButton_clicked();
90 void selectionChanged();
93 void moveFieldsDown();
WkbType
The WKB type describes the number of dimensions a geometry has.
Represents a coordinate reference system (CRS).
Container of fields for a vector layer.
QgsCoordinateReferenceSystem crs() const
Returns the selected CRS for the new layer.
QgsFields fields() const
Returns attributes for the new layer.
QString layerName() const
Returns the layer name.
Qgis::WkbType selectedType() const
Returns the selected geometry type.
void setCrs(const QgsCoordinateReferenceSystem &crs)
Sets the crs value for the new layer in the dialog.
static QgsVectorLayer * runAndCreateLayer(QWidget *parent=nullptr, const QgsCoordinateReferenceSystem &defaultCrs=QgsCoordinateReferenceSystem())
Runs the dialog and creates a new memory layer.
QgsNewMemoryLayerDialog(QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
New dialog constructor.
Represents a vector layer which manages a vector based dataset.