QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsnewmemorylayerdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsnewmemorylayerdialog.h
3  -------------------
4  begin : September 2014
5  copyright : (C) 2014 by Nyall Dawson, Marco Hugentobler
6  email : nyall dot dawson at gmail dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 #ifndef QGSNEWMEMORYLAYERDIALOG_H
18 #define QGSNEWMEMORYLAYERDIALOG_H
19 
20 #include "ui_qgsnewmemorylayerdialogbase.h"
21 #include "qgisgui.h"
22 #include "qgis.h"
23 #include "qgsvectorlayer.h"
25 
29 class GUI_EXPORT QgsNewMemoryLayerDialog: public QDialog, private Ui::QgsNewMemoryLayerDialogBase
30 {
31  Q_OBJECT
32 
33  public:
34 
39  static QgsVectorLayer* runAndCreateLayer( QWidget* parent = nullptr );
40 
43 
45  QGis::WkbType selectedType() const;
46 
48  QgsCoordinateReferenceSystem crs() const;
49 
51  QString layerName() const;
52 
53  private:
54 
55  QString mCrsId;
56 };
57 
58 #endif //QGSNEWMEMORYLAYERDIALOG_H
static const Qt::WindowFlags ModalDialogFlags
Definition: qgisgui.h:50
WkbType
Used for symbology operations.
Definition: qgis.h:61
Class for storing a coordinate reference system (CRS)
typedef WindowFlags
Represents a vector layer which manages a vector based data sets.