/************************************************************************
 * 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
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
%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
Sets the ``crs`` value for the new layer in the dialog.

.. seealso:: :py:func:`crs`

.. versionadded:: 3.0
%End

    QgsCoordinateReferenceSystem crs() const;
%Docstring
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   *
 ************************************************************************/