QGIS API Documentation  2.3.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Slots | Private Attributes | List of all members
QgsNewVectorLayerDialog Class Reference

#include <qgsnewvectorlayerdialog.h>

Inheritance diagram for QgsNewVectorLayerDialog:
Inheritance graph
[legend]
Collaboration diagram for QgsNewVectorLayerDialog:
Collaboration graph
[legend]

Public Member Functions

 QgsNewVectorLayerDialog (QWidget *parent=0, Qt::WindowFlags fl=QgisGui::ModalDialogFlags)
 
 ~QgsNewVectorLayerDialog ()
 
QGis::WkbType selectedType () const
 Returns the selected geometry type. More...
 
void attributes (QList< QPair< QString, QString > > &at) const
 Appends the chosen attribute names and types to at. More...
 
QString selectedFileFormat () const
 Returns the file format for storage. More...
 
QString selectedFileEncoding () const
 Returns the file format for storage. More...
 
int selectedCrsId () const
 Returns the selected crs id. More...
 

Static Public Member Functions

static QString runAndCreateLayer (QWidget *parent=0, QString *enc=0)
 

Protected Slots

void on_mAddAttributeButton_clicked ()
 
void on_mRemoveAttributeButton_clicked ()
 
void on_mTypeBox_currentIndexChanged (int index)
 
void on_pbnChangeSpatialRefSys_clicked ()
 
void on_buttonBox_helpRequested ()
 
void nameChanged (QString)
 
void selectionChanged ()
 

Private Attributes

QPushButton * mOkButton
 
int mCrsId
 

Detailed Description

Definition at line 26 of file qgsnewvectorlayerdialog.h.

Constructor & Destructor Documentation

QgsNewVectorLayerDialog::QgsNewVectorLayerDialog ( QWidget *  parent = 0,
Qt::WindowFlags  fl = QgisGui::ModalDialogFlags 
)
QgsNewVectorLayerDialog::~QgsNewVectorLayerDialog ( )

Definition at line 101 of file qgsnewvectorlayerdialog.cpp.

Member Function Documentation

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

Appends the chosen attribute names and types to at.

Definition at line 204 of file qgsnewvectorlayerdialog.cpp.

References QgsDebugMsg.

Referenced by runAndCreateLayer().

void QgsNewVectorLayerDialog::nameChanged ( QString  name)
protectedslot

Definition at line 229 of file qgsnewvectorlayerdialog.cpp.

Referenced by QgsNewVectorLayerDialog().

void QgsNewVectorLayerDialog::on_buttonBox_helpRequested ( )
inlineprotectedslot

Definition at line 53 of file qgsnewvectorlayerdialog.h.

References QgsContextHelp::run().

void QgsNewVectorLayerDialog::on_mAddAttributeButton_clicked ( )
protectedslot

Definition at line 161 of file qgsnewvectorlayerdialog.cpp.

References mOkButton.

void QgsNewVectorLayerDialog::on_mRemoveAttributeButton_clicked ( )
protectedslot

Definition at line 176 of file qgsnewvectorlayerdialog.cpp.

References mOkButton.

void QgsNewVectorLayerDialog::on_mTypeBox_currentIndexChanged ( int  index)
protectedslot

Definition at line 107 of file qgsnewvectorlayerdialog.cpp.

References QgsDebugMsg.

void QgsNewVectorLayerDialog::on_pbnChangeSpatialRefSys_clicked ( )
protectedslot
QString QgsNewVectorLayerDialog::runAndCreateLayer ( QWidget *  parent = 0,
QString *  enc = 0 
)
static
int QgsNewVectorLayerDialog::selectedCrsId ( ) const

Returns the selected crs id.

Definition at line 156 of file qgsnewvectorlayerdialog.cpp.

References mCrsId.

Referenced by runAndCreateLayer().

QString QgsNewVectorLayerDialog::selectedFileEncoding ( ) const

Returns the file format for storage.

Definition at line 224 of file qgsnewvectorlayerdialog.cpp.

Referenced by runAndCreateLayer().

QString QgsNewVectorLayerDialog::selectedFileFormat ( ) const

Returns the file format for storage.

Definition at line 217 of file qgsnewvectorlayerdialog.cpp.

Referenced by runAndCreateLayer().

QGis::WkbType QgsNewVectorLayerDialog::selectedType ( ) const

Returns the selected geometry type.

Definition at line 139 of file qgsnewvectorlayerdialog.cpp.

References QGis::WKBLineString, QGis::WKBPoint, QGis::WKBPolygon, and QGis::WKBUnknown.

Referenced by runAndCreateLayer().

void QgsNewVectorLayerDialog::selectionChanged ( )
protectedslot

Definition at line 234 of file qgsnewvectorlayerdialog.cpp.

Referenced by QgsNewVectorLayerDialog().

Member Data Documentation

int QgsNewVectorLayerDialog::mCrsId
private
QPushButton* QgsNewVectorLayerDialog::mOkButton
private

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