QGIS API Documentation  2.99.0-Master (01468d0)
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_mAddAttributeButton_clicked ()
 
void on_mFileFormatComboBox_currentIndexChanged (int index)
 
void on_mRemoveAttributeButton_clicked ()
 
void on_mTypeBox_currentIndexChanged (int index)
 
void selectionChanged ()
 
void showHelp ()
 Open the associated help. More...
 

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 95 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 198 of file qgsnewvectorlayerdialog.cpp.

◆ crs()

QgsCoordinateReferenceSystem QgsNewVectorLayerDialog::crs ( ) const

Returns the selected CRS for the new layer.

See also
setCrs()

Definition at line 164 of file qgsnewvectorlayerdialog.cpp.

◆ nameChanged

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

Definition at line 223 of file qgsnewvectorlayerdialog.cpp.

◆ on_mAddAttributeButton_clicked

void QgsNewVectorLayerDialog::on_mAddAttributeButton_clicked ( )
protectedslot

Definition at line 174 of file qgsnewvectorlayerdialog.cpp.

◆ on_mFileFormatComboBox_currentIndexChanged

void QgsNewVectorLayerDialog::on_mFileFormatComboBox_currentIndexChanged ( int  index)
protectedslot

Definition at line 101 of file qgsnewvectorlayerdialog.cpp.

◆ on_mRemoveAttributeButton_clicked

void QgsNewVectorLayerDialog::on_mRemoveAttributeButton_clicked ( )
protectedslot

Definition at line 189 of file qgsnewvectorlayerdialog.cpp.

◆ on_mTypeBox_currentIndexChanged

void QgsNewVectorLayerDialog::on_mTypeBox_currentIndexChanged ( int  index)
protectedslot

Definition at line 110 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() if creation failed

Definition at line 235 of file qgsnewvectorlayerdialog.cpp.

◆ selectedFileEncoding()

QString QgsNewVectorLayerDialog::selectedFileEncoding ( ) const

Returns the file format for storage.

Definition at line 218 of file qgsnewvectorlayerdialog.cpp.

◆ selectedFileFormat()

QString QgsNewVectorLayerDialog::selectedFileFormat ( ) const

Returns the file format for storage.

Definition at line 211 of file qgsnewvectorlayerdialog.cpp.

◆ selectedType()

QgsWkbTypes::Type QgsNewVectorLayerDialog::selectedType ( ) const

Returns the selected geometry type.

Definition at line 142 of file qgsnewvectorlayerdialog.cpp.

◆ selectionChanged

void QgsNewVectorLayerDialog::selectionChanged ( )
protectedslot

Definition at line 228 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 169 of file qgsnewvectorlayerdialog.cpp.

◆ showHelp

void QgsNewVectorLayerDialog::showHelp ( )
protectedslot

Open the associated help.

Definition at line 309 of file qgsnewvectorlayerdialog.cpp.


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