QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
#include <qgsnewmemorylayerdialog.h>
Public Member Functions | |
QgsNewMemoryLayerDialog (QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags) | |
~QgsNewMemoryLayerDialog () override | |
QgsCoordinateReferenceSystem | crs () const |
Returns the selected CRS for the new layer. More... | |
QString | layerName () const |
Returns the layer name. More... | |
QgsWkbTypes::Type | selectedType () const |
Returns the selected geometry type. More... | |
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
Sets the crs value for the new layer in the dialog. More... | |
Static Public Member Functions | |
static QgsVectorLayer * | runAndCreateLayer (QWidget *parent=nullptr, const QgsCoordinateReferenceSystem &defaultCrs=QgsCoordinateReferenceSystem()) |
Runs the dialog and creates a new memory layer. More... | |
Definition at line 32 of file qgsnewmemorylayerdialog.h.
QgsNewMemoryLayerDialog::QgsNewMemoryLayerDialog | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | fl = QgsGuiUtils::ModalDialogFlags |
||
) |
Definition at line 49 of file qgsnewmemorylayerdialog.cpp.
|
override |
Definition at line 75 of file qgsnewmemorylayerdialog.cpp.
QgsCoordinateReferenceSystem QgsNewMemoryLayerDialog::crs | ( | ) | const |
Returns the selected CRS for the new layer.
Definition at line 114 of file qgsnewmemorylayerdialog.cpp.
QString QgsNewMemoryLayerDialog::layerName | ( | ) | const |
Returns the layer name.
Definition at line 119 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 34 of file qgsnewmemorylayerdialog.cpp.
QgsWkbTypes::Type QgsNewMemoryLayerDialog::selectedType | ( | ) | const |
Returns the selected geometry type.
Definition at line 81 of file qgsnewmemorylayerdialog.cpp.
void QgsNewMemoryLayerDialog::setCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets the crs value for the new layer in the dialog.
Definition at line 109 of file qgsnewmemorylayerdialog.cpp.