QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgsaddattrdialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsaddattrdialog.h - description
3
-------------------
4
begin : January 2005
5
copyright : (C) 2005 by Marco Hugentobler
6
email : marco.hugentobler@autoform.ch
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
18
#ifndef QGSADDATTRDIALOG_H
19
#define QGSADDATTRDIALOG_H
20
21
// We don't want to expose this in the public API
22
23
#include "ui_qgsaddattrdialogbase.h"
24
25
#include "qgis_gui.h"
26
#include "
qgsguiutils.h
"
27
28
#include <QSet>
29
30
#define SIP_NO_FILE
31
32
class
QgsVectorLayer
;
33
class
QgsField
;
34
42
class
GUI_EXPORT
QgsAddAttrDialog
:
public
QDialog,
private
Ui::QgsAddAttrDialogBase
43
{
44
Q_OBJECT
45
public
:
47
QgsAddAttrDialog
(
QgsVectorLayer
*vlayer, QWidget *parent =
nullptr
, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
49
QgsAddAttrDialog
(
const
std::list<QString> &typelist, QWidget *parent =
nullptr
, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
50
57
void
setIllegalFieldNames
(
const
QSet<QString> &names );
58
60
QgsField
field
()
const
;
61
62
private
slots:
63
void
mTypeBox_currentIndexChanged(
int
idx );
64
void
mLength_editingFinished();
65
void
accept()
override
;
66
67
private
:
68
bool
mIsShapeFile =
false
;
69
QSet<QString> mIllegalFieldNames;
70
71
void
setPrecisionMinMax();
72
};
73
74
#endif
QgsAddAttrDialog::field
QgsField field() const
Returns a field for the configured attribute.
Definition
qgsaddattrdialog.cpp:166
QgsAddAttrDialog::setIllegalFieldNames
void setIllegalFieldNames(const QSet< QString > &names)
Sets a list of field names which are considered illegal and should not be accepted by the dialog.
Definition
qgsaddattrdialog.cpp:93
QgsAddAttrDialog::QgsAddAttrDialog
QgsAddAttrDialog(const std::list< QString > &typelist, QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
constructor
QgsAddAttrDialog::QgsAddAttrDialog
QgsAddAttrDialog(QgsVectorLayer *vlayer, QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
constructor
Definition
qgsaddattrdialog.cpp:32
QgsField
Encapsulate a field in an attribute table or data source.
Definition
qgsfield.h:56
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
qgsguiutils.h
Generated on
for QGIS API Documentation by
1.17.0