QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
QgsNewMemoryLayerDialog Class Reference

#include <qgsnewmemorylayerdialog.h>

Inheritance diagram for QgsNewMemoryLayerDialog:
Inheritance graph
[legend]

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 QgsVectorLayerrunAndCreateLayer (QWidget *parent=nullptr, const QgsCoordinateReferenceSystem &defaultCrs=QgsCoordinateReferenceSystem())
 Runs the dialog and creates a new memory layer.
 

Detailed Description

Definition at line 33 of file qgsnewmemorylayerdialog.h.

Constructor & Destructor Documentation

◆ QgsNewMemoryLayerDialog()

QgsNewMemoryLayerDialog::QgsNewMemoryLayerDialog ( QWidget *  parent = nullptr,
Qt::WindowFlags  fl = QgsGuiUtils::ModalDialogFlags 
)

New dialog constructor.

Definition at line 52 of file qgsnewmemorylayerdialog.cpp.

Member Function Documentation

◆ accept()

void QgsNewMemoryLayerDialog::accept ( )
override

Definition at line 329 of file qgsnewmemorylayerdialog.cpp.

◆ crs()

QgsCoordinateReferenceSystem QgsNewMemoryLayerDialog::crs ( ) const

Returns the selected CRS for the new layer.

See also
setCrs()

Definition at line 245 of file qgsnewmemorylayerdialog.cpp.

◆ fields()

QgsFields QgsNewMemoryLayerDialog::fields ( ) const

Returns attributes for the new layer.

Since
QGIS 3.14

Definition at line 267 of file qgsnewmemorylayerdialog.cpp.

◆ layerName()

QString QgsNewMemoryLayerDialog::layerName ( ) const

Returns the layer name.

Definition at line 250 of file qgsnewmemorylayerdialog.cpp.

◆ runAndCreateLayer()

QgsVectorLayer * QgsNewMemoryLayerDialog::runAndCreateLayer ( QWidget *  parent = nullptr,
const QgsCoordinateReferenceSystem defaultCrs = QgsCoordinateReferenceSystem() 
)
static

Runs the dialog and creates a new memory layer.

Parameters
parentparent widget
defaultCrsdefault layer CRS to show in dialog
Returns
new memory layer

Definition at line 36 of file qgsnewmemorylayerdialog.cpp.

◆ selectedType()

Qgis::WkbType QgsNewMemoryLayerDialog::selectedType ( ) const

Returns the selected geometry type.

Definition at line 131 of file qgsnewmemorylayerdialog.cpp.

◆ setCrs()

void QgsNewMemoryLayerDialog::setCrs ( const QgsCoordinateReferenceSystem crs)

Sets the crs value for the new layer in the dialog.

See also
crs()

Definition at line 240 of file qgsnewmemorylayerdialog.cpp.


The documentation for this class was generated from the following files: