QGIS API Documentation  2.99.0-Master (f1383e2)
Public Member Functions | Static Public Member Functions | Protected Slots | List of all members
QgsNewVectorLayerDialog Class Reference

#include <qgsnewvectorlayerdialog.h>

Inheritance diagram for QgsNewVectorLayerDialog:
Inheritance graph
[legend]

Public Member Functions

 QgsNewVectorLayerDialog (QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
 
 ~QgsNewVectorLayerDialog ()
 
void attributes (QList< QPair< QString, QString > > &at) const
 Appends the chosen attribute names and types to at. More...
 
QgsCoordinateReferenceSystem crs () const
 Returns the selected CRS for the new layer. More...
 
QString selectedFileEncoding () const
 Returns the file format for storage. More...
 
QString selectedFileFormat () const
 Returns the file format for storage. 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 QString runAndCreateLayer (QWidget *parent=nullptr, QString *enc=nullptr, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem())
 Runs the dialog and creates a layer matching the dialog parameters. More...
 

Protected Slots

void nameChanged (const QString &)
 
void on_buttonBox_helpRequested ()
 
void on_mAddAttributeButton_clicked ()
 
void on_mFileFormatComboBox_currentIndexChanged (int index)
 
void on_mRemoveAttributeButton_clicked ()
 
void on_mTypeBox_currentIndexChanged (int index)
 
void selectionChanged ()
 

Detailed Description

Definition at line 30 of file qgsnewvectorlayerdialog.h.

Constructor & Destructor Documentation

◆ QgsNewVectorLayerDialog()

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

Definition at line 34 of file qgsnewvectorlayerdialog.cpp.

◆ ~QgsNewVectorLayerDialog()

QgsNewVectorLayerDialog::~QgsNewVectorLayerDialog ( )

Definition at line 94 of file qgsnewvectorlayerdialog.cpp.

Member Function Documentation

◆ attributes()

void QgsNewVectorLayerDialog::attributes ( QList< QPair< QString, QString > > &  at) const

Appends the chosen attribute names and types to at.

Definition at line 197 of file qgsnewvectorlayerdialog.cpp.

◆ crs()

QgsCoordinateReferenceSystem QgsNewVectorLayerDialog::crs ( ) const

Returns the selected CRS for the new layer.

See also
setCrs()

Definition at line 163 of file qgsnewvectorlayerdialog.cpp.

◆ nameChanged

void QgsNewVectorLayerDialog::nameChanged ( const QString &  name)
protectedslot

Definition at line 222 of file qgsnewvectorlayerdialog.cpp.

◆ on_buttonBox_helpRequested

void QgsNewVectorLayerDialog::on_buttonBox_helpRequested ( )
inlineprotectedslot

Definition at line 71 of file qgsnewvectorlayerdialog.h.

◆ on_mAddAttributeButton_clicked

void QgsNewVectorLayerDialog::on_mAddAttributeButton_clicked ( )
protectedslot

Definition at line 173 of file qgsnewvectorlayerdialog.cpp.

◆ on_mFileFormatComboBox_currentIndexChanged

void QgsNewVectorLayerDialog::on_mFileFormatComboBox_currentIndexChanged ( int  index)
protectedslot

Definition at line 100 of file qgsnewvectorlayerdialog.cpp.

◆ on_mRemoveAttributeButton_clicked

void QgsNewVectorLayerDialog::on_mRemoveAttributeButton_clicked ( )
protectedslot

Definition at line 188 of file qgsnewvectorlayerdialog.cpp.

◆ on_mTypeBox_currentIndexChanged

void QgsNewVectorLayerDialog::on_mTypeBox_currentIndexChanged ( int  index)
protectedslot

Definition at line 109 of file qgsnewvectorlayerdialog.cpp.

◆ runAndCreateLayer()

QString QgsNewVectorLayerDialog::runAndCreateLayer ( QWidget *  parent = nullptr,
QString *  enc = nullptr,
const QgsCoordinateReferenceSystem crs = QgsCoordinateReferenceSystem() 
)
static

Runs the dialog and creates a layer matching the dialog parameters.

Returns
fileName on success, empty string use aborted, QString::null if creation failed

Definition at line 234 of file qgsnewvectorlayerdialog.cpp.

◆ selectedFileEncoding()

QString QgsNewVectorLayerDialog::selectedFileEncoding ( ) const

Returns the file format for storage.

Definition at line 217 of file qgsnewvectorlayerdialog.cpp.

◆ selectedFileFormat()

QString QgsNewVectorLayerDialog::selectedFileFormat ( ) const

Returns the file format for storage.

Definition at line 210 of file qgsnewvectorlayerdialog.cpp.

◆ selectedType()

QgsWkbTypes::Type QgsNewVectorLayerDialog::selectedType ( ) const

Returns the selected geometry type.

Definition at line 141 of file qgsnewvectorlayerdialog.cpp.

◆ selectionChanged

void QgsNewVectorLayerDialog::selectionChanged ( )
protectedslot

Definition at line 227 of file qgsnewvectorlayerdialog.cpp.

◆ setCrs()

void QgsNewVectorLayerDialog::setCrs ( const QgsCoordinateReferenceSystem crs)

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

Since
QGIS 3.0
See also
crs()

Definition at line 168 of file qgsnewvectorlayerdialog.cpp.


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