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;
124 bool isValidExpression( QString *expressionError
SIP_OUT =
nullptr )
const;
140 void expressionChanged(
const QString &expression );
149 void setExpression(
const QString &expression );
153 void changeEvent( QEvent *event )
override;
158 void expressionEdited(
const QString &expression );
159 void expressionEdited();
162 void editExpression();
169 void updateLineEditStyle(
const QString &expression = QString() );
174 QToolButton *mButton =
nullptr;
175 QString mExpressionDialogTitle;
176 std::unique_ptr<QgsDistanceArea> mDa;
180 QString mExpectedOutputFormat;
182 bool isExpressionValid(
const QString &expressionStr );
184 friend class TestQgsFieldExpressionWidget;
187 #endif // QGSEXPRESSIONLINEEDIT_H
A QGIS expression editor based on QScintilla2.
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.
QString expressionDialogTitle() const
Returns the title used for the expression dialog.
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.