QGIS/python/gui/qgsnewvectorlayerdialog.sip

36 lines
1.3 KiB
Plaintext
Raw Normal View History

class QgsNewVectorLayerDialog : QDialog
{
%TypeHeaderCode
#include <qgsnewvectorlayerdialog.h>
%End
public:
// run the dialog, create the layer.
// @return fileName on success, empty string use aborted, QString::null if creation failed
static QString runAndCreateLayer( QWidget* parent = 0, QString* enc = 0 );
QgsNewVectorLayerDialog( QWidget *parent /TransferThis/ = 0, const Qt::WindowFlags& fl = QgisGui::ModalDialogFlags );
~QgsNewVectorLayerDialog();
2015-07-29 11:52:14 +02:00
/** Returns the selected geometry type*/
QgsWkbTypes::Type selectedType() const;
2015-07-29 11:52:14 +02:00
/** Appends the chosen attribute names and types to at*/
void attributes( QList< QPair<QString, QString> >& at ) const;
2015-07-29 11:52:14 +02:00
/** Returns the file format for storage*/
QString selectedFileFormat() const;
2015-07-29 11:52:14 +02:00
/** Returns the file format for storage*/
2014-05-27 23:22:50 +02:00
QString selectedFileEncoding() const;
QgsCoordinateReferenceSystem crs() const;
void setCrs( const QgsCoordinateReferenceSystem &crs );
protected slots:
void on_mAddAttributeButton_clicked();
void on_mRemoveAttributeButton_clicked();
2015-02-03 02:21:52 +01:00
void on_mFileFormatComboBox_currentIndexChanged( int index );
void on_mTypeBox_currentIndexChanged( int index );
void on_buttonBox_helpRequested();
void nameChanged( const QString& );
void selectionChanged();
};