QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
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
24
#include "qgis_gui.h"
25
26
class
QDialog;
27
class
QLayout;
28
class
QgsField
;
29
class
QgsMapCanvas
;
30
class
QgsVectorLayer
;
31
37
class
GUI_EXPORT
QgsAttributeTypeLoadDialog
:
public
QDialog,
private
Ui::QgsAttributeLoadValues
38
{
39
Q_OBJECT
40
41
public
:
42
QgsAttributeTypeLoadDialog
(
QgsVectorLayer
*vl );
43
48
void
accept
()
override
;
49
54
void
setVectorLayer
(
QgsVectorLayer
*layer );
55
61
QMap<QString, QVariant> &
valueMap
();
62
68
bool
insertNull
();
69
70
private
slots:
71
77
void
createPreview(
int
fieldIndex,
bool
full =
false
);
78
79
83
void
previewButtonPushed();
84
85
private
:
89
void
loadDataToValueMap();
90
91
QgsVectorLayer
*mLayer =
nullptr
;
92
QMap<QString, QVariant> mValueMap;
93
};
94
95
#endif
QgsAttributeTypeLoadDialog::accept
void accept() override
Overloaded accept method which will write the feature field values, then delegate to QDialog::accept(...
Definition
qgsattributetypeloaddialog.cpp:156
QgsAttributeTypeLoadDialog::QgsAttributeTypeLoadDialog
QgsAttributeTypeLoadDialog(QgsVectorLayer *vl)
Definition
qgsattributetypeloaddialog.cpp:44
QgsAttributeTypeLoadDialog::insertNull
bool insertNull()
Returns true if the "Add NULL value" checkbox has been checked.
Definition
qgsattributetypeloaddialog.cpp:124
QgsAttributeTypeLoadDialog::valueMap
QMap< QString, QVariant > & valueMap()
Returns the value map which is currently active.
Definition
qgsattributetypeloaddialog.cpp:119
QgsAttributeTypeLoadDialog::setVectorLayer
void setVectorLayer(QgsVectorLayer *layer)
Sets predefined vector layer for selection of data.
Definition
qgsattributetypeloaddialog.cpp:61
QgsField
Encapsulate a field in an attribute table or data source.
Definition
qgsfield.h:56
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
Generated on
for QGIS API Documentation by
1.17.0