16 #ifndef QGSEXPRESSIONLINEEDIT_H 17 #define QGSEXPRESSIONLINEEDIT_H 66 void setExpressionDialogTitle(
const QString &title );
79 void setMultiLine(
bool multiLine );
88 QString expectedOutputFormat()
const;
96 void setExpectedOutputFormat(
const QString &expected );
118 QString expression()
const;
125 bool isValidExpression( QString *expressionError
SIP_OUT =
nullptr )
const;
141 void expressionChanged(
const QString &expression );
150 void setExpression(
const QString &expression );
154 void changeEvent( QEvent *event )
override;
159 void expressionEdited(
const QString &expression );
160 void expressionEdited();
163 void editExpression();
170 void updateLineEditStyle(
const QString &expression = QString() );
175 QToolButton *mButton =
nullptr;
176 QString mExpressionDialogTitle;
177 std::unique_ptr<QgsDistanceArea> mDa;
181 QString mExpectedOutputFormat;
183 bool isExpressionValid(
const QString &expressionStr );
185 friend class TestQgsFieldExpressionWidget;
188 #endif // QGSEXPRESSIONLINEEDIT_H
A QGIS expression editor based on QScintilla2.
QString expressionDialogTitle() const
Returns the title used for the expression dialog.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...
Abstract interface for generating an expression context.
A general purpose distance and area calculator, capable of performing ellipsoid based calculations...
The QgsExpressionLineEdit widget includes a line edit for entering expressions together with a button...
Represents a vector layer which manages a vector based data sets.