18#ifndef QGSADDATTRDIALOG_H
19#define QGSADDATTRDIALOG_H
23#include "ui_qgsaddattrdialogbase.h"
49 QgsAddAttrDialog(
const std::list<QString> &typelist, QWidget *parent =
nullptr, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
63 void mTypeBox_currentIndexChanged(
int idx );
64 void mLength_editingFinished();
65 void accept()
override;
68 bool mIsShapeFile =
false;
69 QSet<QString> mIllegalFieldNames;
71 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.