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;
 
  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;
 
A QGIS expression editor based on QScintilla2.
A general purpose distance and area calculator, capable of performing ellipsoid based calculations.
Abstract interface for generating an expression context.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
The QgsExpressionLineEdit widget includes a line edit for entering expressions together with a button...
QString expressionDialogTitle() const
Returns the title used for the expression dialog.
~QgsExpressionLineEdit() override
void expressionChanged(const QString &expression)
Emitted when the expression is changed.
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...
Represents a vector layer which manages a vector based data sets.