2012-09-24 02:28:15 +02:00
|
|
|
class QgsNewVectorLayerDialog : QDialog
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsnewvectorlayerdialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2014-06-21 21:53:16 +02:00
|
|
|
// run the dialog, create the layer.
|
|
|
|
// @return fileName on success, empty string use aborted, QString::null if creation failed
|
2012-09-24 02:28:15 +02:00
|
|
|
static QString runAndCreateLayer( QWidget* parent = 0, QString* enc = 0 );
|
|
|
|
|
2014-03-27 10:42:38 +01:00
|
|
|
QgsNewVectorLayerDialog( QWidget *parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
|
2012-09-24 02:28:15 +02:00
|
|
|
~QgsNewVectorLayerDialog();
|
|
|
|
/**Returns the selected geometry type*/
|
|
|
|
QGis::WkbType selectedType() const;
|
|
|
|
/**Appends the chosen attribute names and types to at*/
|
|
|
|
void attributes( QList< QPair<QString, QString> >& at ) const;
|
|
|
|
/**Returns the file format for storage*/
|
|
|
|
QString selectedFileFormat() const;
|
2014-05-27 23:22:50 +02:00
|
|
|
/**Returns the file format for storage*/
|
|
|
|
QString selectedFileEncoding() const;
|
2012-09-24 02:28:15 +02:00
|
|
|
/**Returns the selected crs id*/
|
|
|
|
int selectedCrsId() const;
|
|
|
|
|
|
|
|
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();
|
|
|
|
};
|