QGIS API Documentation  2.99.0-Master (c42dad3)
qgsattributetypeloaddialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsattributetypeloaddialog.h
3  -------------------
4  begin : June 2009
5  copyright : (C) 2009 by Richard Kostecky
6  email : [email protected]
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 QGSATTRIBUTETYPELOADDIALOG_H
18 #define QGSATTRIBUTETYPELOADDIALOG_H
19 
20 #include "ui_qgsattributeloadfrommap.h"
21 
22 #include <vector>
23 
24 class QDialog;
25 class QLayout;
26 class QgsField;
27 class QgsMapCanvas;
28 class QgsVectorLayer;
29 
33 class GUI_EXPORT QgsAttributeTypeLoadDialog: public QDialog, private Ui::QgsAttributeLoadValues
34 {
35  Q_OBJECT
36 
37  public:
40 
45  void accept() override;
46 
51  void setVectorLayer( QgsVectorLayer *layer );
52 
57  QMap<QString, QVariant> &valueMap();
58 
64  bool insertNull();
65 
66  private slots:
67 
72  void fillComboBoxes( int layerIndex );
73 
79  void createPreview( int fieldIndex, bool full = false );
80 
81 
85  void previewButtonPushed();
86 
87  private:
88 
92  void fillLayerList();
93 
97  void loadDataToValueMap();
98 
99  QgsVectorLayer *mLayer;
100  QMap<QString, QVariant> mValueMap;
101 };
102 
103 #endif
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:106
Encapsulate a field in an attribute table or data source.
Definition: qgsfield.h:47
Represents a vector layer which manages a vector based data sets.