QGIS API Documentation 3.43.0-Master (b60ef06885e)
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 : csf.kostej@gmail.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 QGSATTRIBUTETYPELOADDIALOG_H
18#define QGSATTRIBUTETYPELOADDIALOG_H
19
20#include "ui_qgsattributeloadfrommap.h"
21
22#include <vector>
23#include "qgis_gui.h"
24
25class QDialog;
26class QLayout;
27class QgsField;
28class QgsMapCanvas;
29class QgsVectorLayer;
30
36class GUI_EXPORT QgsAttributeTypeLoadDialog : public QDialog, private Ui::QgsAttributeLoadValues
37{
38 Q_OBJECT
39
40 public:
42
47 void accept() override;
48
53 void setVectorLayer( QgsVectorLayer *layer );
54
60 QMap<QString, QVariant> &valueMap();
61
67 bool insertNull();
68
69 private slots:
70
76 void createPreview( int fieldIndex, bool full = false );
77
78
82 void previewButtonPushed();
83
84 private:
88 void loadDataToValueMap();
89
90 QgsVectorLayer *mLayer = nullptr;
91 QMap<QString, QVariant> mValueMap;
92};
93
94#endif
A dialog which allows populating value maps using features present in a vector layer.
Encapsulate a field in an attribute table or data source.
Definition qgsfield.h:53
Map canvas is a class for displaying all GIS data types on a canvas.
Represents a vector layer which manages a vector based dataset.