QGIS/python/gui/qgsnewmemorylayerdialog.sip.in

68 lines
2.1 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsnewmemorylayerdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsNewMemoryLayerDialog: QDialog
{
%TypeHeaderCode
#include "qgsnewmemorylayerdialog.h"
%End
public:
static QgsVectorLayer *runAndCreateLayer( QWidget *parent = 0, const QgsCoordinateReferenceSystem &defaultCrs = QgsCoordinateReferenceSystem() );
%Docstring
2017-12-15 10:36:55 -04:00
Runs the dialog and creates a new memory layer
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param parent: parent widget
:param defaultCrs: default layer CRS to show in dialog
:return: new memory layer
%End
QgsNewMemoryLayerDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
~QgsNewMemoryLayerDialog();
QgsWkbTypes::Type selectedType() const;
%Docstring
Returns the selected geometry type
%End
void setCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
2017-12-15 10:36:55 -04:00
Sets the ``crs`` value for the new layer in the dialog.
.. versionadded:: 3.0
2017-12-15 10:36:55 -04:00
.. seealso:: :py:func:`crs`
%End
QgsCoordinateReferenceSystem crs() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the selected CRS for the new layer.
.. seealso:: :py:func:`setCrs`
%End
QString layerName() const;
%Docstring
Returns the layer name
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsnewmemorylayerdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/