16#ifndef QGSFIELDCALCULATOR_H
17#define QGSFIELDCALCULATOR_H
19#include "ui_qgsfieldcalculatorbase.h"
58 void accept()
override;
61 void mNewFieldGroupBox_toggled(
bool on );
62 void mUpdateExistingGroupBox_toggled(
bool on );
63 void mCreateVirtualFieldCheckbox_stateChanged(
int state );
64 void mOutputFieldNameLineEdit_textChanged(
const QString &text );
65 void mOutputFieldTypeComboBox_activated(
int index );
66 void mExistingFieldComboBox_currentIndexChanged(
const int index );
69 void setDialogButtonState();
70 void setPrecisionMinMax();
80 void populateFields();
82 void populateOutputFieldTypes();
86 bool mCanAddAttribute =
false;
87 bool mCanChangeAttributeValue =
false;
MessageLevel
Level for messages This will be used both for message log and message bar in application.
@ Info
Information message.
A dialog that provides calculation of new fields using existing fields, values and a set of operators...
int changedAttributeId() const
Returns the field index of the field for which new attribute values were calculated.
QgsFieldCalculator(QgsVectorLayer *vl, QWidget *parent=nullptr)
friend class TestQgsFieldCalculator
Encapsulate a field in an attribute table or data source.
A bar for displaying non-blocking messages to the user.
Represents a vector layer which manages a vector based dataset.