16#ifndef QGSFIELDCALCULATOR_H
17#define QGSFIELDCALCULATOR_H
19#include "ui_qgsfieldcalculatorbase.h"
66 void accept()
override;
69 void mNewFieldGroupBox_toggled(
bool on );
70 void mUpdateExistingGroupBox_toggled(
bool on );
71 void mCreateVirtualFieldCheckbox_stateChanged(
int state );
72 void mOutputFieldNameLineEdit_textChanged(
const QString &text );
73 void mOutputFieldTypeComboBox_activated(
int index );
74 void mExistingFieldComboBox_currentIndexChanged(
const int index );
77 void setDialogButtonState();
78 void setPrecisionMinMax();
88 void populateFields(
int fieldIndex );
90 void populateOutputFieldTypes();
94 bool mCanAddAttribute =
false;
95 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.
friend class TestQgsFieldCalculator
QgsFieldCalculator(QgsVectorLayer *vl, QWidget *parent=nullptr, int fieldIndex=-1)
Constructor for QgsFieldCalculator, with the specified parent widget.
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.