18#ifndef QGSADDATTRDIALOG_H
19#define QGSADDATTRDIALOG_H
24#include "ui_qgsaddattrdialogbase.h"
48 QgsAddAttrDialog(
const std::list<QString> &typelist, QWidget *parent =
nullptr, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
62 void mTypeBox_currentIndexChanged(
int idx );
63 void mLength_editingFinished();
64 void accept()
override;
67 bool mIsShapeFile =
false;
68 QSet<QString> mIllegalFieldNames;
70 void setPrecisionMinMax();
QgsField field() const
Returns a field for the configured attribute.
void setIllegalFieldNames(const QSet< QString > &names)
Sets a list of field names which are considered illegal and should not be accepted by the dialog.
QgsAddAttrDialog(const std::list< QString > &typelist, QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
constructor
QgsAddAttrDialog(QgsVectorLayer *vlayer, QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
constructor
Encapsulate a field in an attribute table or data source.
Represents a vector layer which manages a vector based dataset.