QGIS/python/gui/qgsnewmemorylayerdialog.sip

28 lines
705 B
Plaintext
Raw Normal View History

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
* @param parent parent widget
* @returns new memory layer
*/
static QgsVectorLayer* runAndCreateLayer( QWidget* parent = 0 );
QgsNewMemoryLayerDialog( QWidget *parent /TransferThis/ = 0, const Qt::WindowFlags& fl = QgisGui::ModalDialogFlags );
~QgsNewMemoryLayerDialog();
2015-07-29 11:52:14 +02:00
/** Returns the selected geometry type*/
Qgis::WkbType selectedType() const;
2015-07-29 11:52:14 +02:00
/** Returns the selected crs*/
QgsCoordinateReferenceSystem crs() const;
2015-07-29 11:52:14 +02:00
/** Returns the layer name*/
QString layerName() const;
};