/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/qgsnewmemorylayerdialog.h                                    *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py 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 );
%Docstring
New dialog constructor.
%End

    Qgis::WkbType 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`
%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

    QgsFields fields() const;
%Docstring
Returns attributes for the new layer.

.. versionadded:: 3.14
%End

    virtual void accept();


};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/qgsnewmemorylayerdialog.h                                    *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/
