2014-09-24 22:29:50 +10:00
|
|
|
class QgsNewMemoryLayerDialog : QDialog
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsnewmemorylayerdialog.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Runs the dialoag and creates a new memory layer
|
2014-09-24 22:29:50 +10:00
|
|
|
* @param parent parent widget
|
|
|
|
* @returns new memory layer
|
|
|
|
*/
|
|
|
|
static QgsVectorLayer* runAndCreateLayer( QWidget* parent = 0 );
|
|
|
|
|
2015-10-07 11:55:34 +11:00
|
|
|
QgsNewMemoryLayerDialog( QWidget *parent /TransferThis/ = 0, const Qt::WindowFlags& fl = QgisGui::ModalDialogFlags );
|
2014-09-24 22:29:50 +10:00
|
|
|
~QgsNewMemoryLayerDialog();
|
|
|
|
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Returns the selected geometry type*/
|
2016-07-21 22:01:38 +10:00
|
|
|
Qgis::WkbType selectedType() const;
|
2014-09-24 22:29:50 +10:00
|
|
|
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Returns the selected crs*/
|
2015-01-06 13:06:48 +11:00
|
|
|
QgsCoordinateReferenceSystem crs() const;
|
2014-09-24 22:29:50 +10:00
|
|
|
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Returns the layer name*/
|
2014-09-24 22:29:50 +10:00
|
|
|
QString layerName() const;
|
|
|
|
|
|
|
|
};
|