2017-04-30 21:10:49 +02:00
|
|
|
/************************************************************************
|
|
|
|
* 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
|
2014-09-24 22:29:50 +10:00
|
|
|
{
|
2017-04-30 21:10:49 +02:00
|
|
|
|
2014-09-24 22:29:50 +10:00
|
|
|
%TypeHeaderCode
|
2017-04-30 21:10:49 +02:00
|
|
|
#include "qgsnewmemorylayerdialog.h"
|
2014-09-24 22:29:50 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-04-30 21:10:49 +02:00
|
|
|
static QgsVectorLayer *runAndCreateLayer( QWidget *parent = 0, const QgsCoordinateReferenceSystem &defaultCrs = QgsCoordinateReferenceSystem() );
|
|
|
|
%Docstring
|
|
|
|
Runs the dialog and creates a new memory layer
|
|
|
|
\param parent parent widget
|
|
|
|
\param defaultCrs default layer CRS to show in dialog
|
|
|
|
:return: new memory layer
|
|
|
|
:rtype: QgsVectorLayer
|
|
|
|
%End
|
2014-09-24 22:29:50 +10:00
|
|
|
|
2017-05-07 20:58:28 +10:00
|
|
|
QgsNewMemoryLayerDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
|
2014-09-24 22:29:50 +10:00
|
|
|
~QgsNewMemoryLayerDialog();
|
|
|
|
|
2016-08-04 09:10:08 +02:00
|
|
|
QgsWkbTypes::Type selectedType() const;
|
2017-04-30 21:10:49 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the selected geometry type
|
|
|
|
:rtype: QgsWkbTypes.Type
|
|
|
|
%End
|
2014-09-24 22:29:50 +10:00
|
|
|
|
2017-03-22 11:13:30 +10:00
|
|
|
void setCrs( const QgsCoordinateReferenceSystem &crs );
|
2017-04-30 21:10:49 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the ``crs`` value for the new layer in the dialog.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
.. seealso:: crs()
|
|
|
|
%End
|
|
|
|
|
2015-01-06 13:06:48 +11:00
|
|
|
QgsCoordinateReferenceSystem crs() const;
|
2017-04-30 21:10:49 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the selected CRS for the new layer.
|
|
|
|
.. seealso:: setCrs()
|
|
|
|
:rtype: QgsCoordinateReferenceSystem
|
|
|
|
%End
|
2014-09-24 22:29:50 +10:00
|
|
|
|
|
|
|
QString layerName() const;
|
2017-04-30 21:10:49 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the layer name
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2014-09-24 22:29:50 +10:00
|
|
|
|
|
|
|
};
|
2017-04-30 21:10:49 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsnewmemorylayerdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|