|
QGIS API Documentation 3.99.0-Master (f78f5286a64)
|
A dialog for configuring the properties of a new memory (scratch) layer. More...
#include <qgsnewmemorylayerdialog.h>

Public Member Functions | |
| QgsNewMemoryLayerDialog (QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags) | |
| New dialog constructor. | |
| void | accept () override |
| 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 Public Member Functions | |
| static QgsVectorLayer * | runAndCreateLayer (QWidget *parent=nullptr, const QgsCoordinateReferenceSystem &defaultCrs=QgsCoordinateReferenceSystem()) |
| Runs the dialog and creates a new memory layer. | |
A dialog for configuring the properties of a new memory (scratch) layer.
Definition at line 34 of file qgsnewmemorylayerdialog.h.
| QgsNewMemoryLayerDialog::QgsNewMemoryLayerDialog | ( | QWidget * | parent = nullptr, |
| Qt::WindowFlags | fl = QgsGuiUtils::ModalDialogFlags |
||
| ) |
New dialog constructor.
Definition at line 52 of file qgsnewmemorylayerdialog.cpp.
|
override |
Definition at line 326 of file qgsnewmemorylayerdialog.cpp.
| QgsCoordinateReferenceSystem QgsNewMemoryLayerDialog::crs | ( | ) | const |
Returns the selected CRS for the new layer.
Definition at line 242 of file qgsnewmemorylayerdialog.cpp.
| QgsFields QgsNewMemoryLayerDialog::fields | ( | ) | const |
Returns attributes for the new layer.
Definition at line 264 of file qgsnewmemorylayerdialog.cpp.
| QString QgsNewMemoryLayerDialog::layerName | ( | ) | const |
Returns the layer name.
Definition at line 247 of file qgsnewmemorylayerdialog.cpp.
|
static |
Runs the dialog and creates a new memory layer.
| parent | parent widget |
| defaultCrs | default layer CRS to show in dialog |
Definition at line 36 of file qgsnewmemorylayerdialog.cpp.
| Qgis::WkbType QgsNewMemoryLayerDialog::selectedType | ( | ) | const |
Returns the selected geometry type.
Definition at line 130 of file qgsnewmemorylayerdialog.cpp.
| void QgsNewMemoryLayerDialog::setCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets the crs value for the new layer in the dialog.
Definition at line 237 of file qgsnewmemorylayerdialog.cpp.