QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
26 class GUI_EXPORT QgsNewMemoryLayerDialog: public QDialog, private Ui::QgsNewMemoryLayerDialogBase
27 {
28  Q_OBJECT
29 
30  public:
31 
36  static QgsVectorLayer* runAndCreateLayer( QWidget* parent = 0 );
37 
38  QgsNewMemoryLayerDialog( QWidget *parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
40 
42  QGis::WkbType selectedType() const;
43 
45  QgsCoordinateReferenceSystem crs() const;
46 
48  QString layerName() const;
49 
50  private:
51 
52  QString mCrsId;
53 };
54 
55 #endif //QGSNEWMEMORYLAYERDIALOG_H