|
| QgsExpressionBuilderWidget (QWidget *parent=nullptr) |
| Create a new expression builder widget with an optional parent. More...
|
|
| ~QgsExpressionBuilderWidget () override |
|
bool | evalError () const |
| Will be set to true if the current expression text reported an eval error with the context. More...
|
|
QString | expectedOutputFormat () |
| The set expected format string. More...
|
|
QgsExpressionContext | expressionContext () const |
| Returns the expression context for the widget. More...
|
|
QString | expressionText () |
| Gets the expression string that has been set in the expression area. More...
|
|
QgsExpressionTreeView * | expressionTree () const |
| Returns the expression tree. More...
|
|
void | init (const QgsExpressionContext &context=QgsExpressionContext(), const QString &recentCollection=QStringLiteral("generic"), QgsExpressionBuilderWidget::Flags flags=LoadAll) |
| Initialize without any layer. More...
|
|
void | initWithFields (const QgsFields &fields, const QgsExpressionContext &context=QgsExpressionContext(), const QString &recentCollection=QStringLiteral("generic"), QgsExpressionBuilderWidget::Flags flags=LoadAll) |
| Initialize with given fields without any layer. More...
|
|
void | initWithLayer (QgsVectorLayer *layer, const QgsExpressionContext &context=QgsExpressionContext(), const QString &recentCollection=QStringLiteral("generic"), QgsExpressionBuilderWidget::Flags flags=LoadAll) |
| Initialize with a layer. More...
|
|
bool | isExpressionValid () |
| Returns if the expression is valid. More...
|
|
QgsVectorLayer * | layer () const |
| Returns the current layer or a nullptr. More...
|
|
void | loadCodeFromFile (QString path) |
| Loads code from the given file into the function editor. More...
|
|
Q_DECL_DEPRECATED void | loadFieldNames () |
|
Q_DECL_DEPRECATED void | loadFieldNames (const QgsFields &fields) |
|
Q_DECL_DEPRECATED void | loadFieldsAndValues (const QMap< QString, QStringList > &fieldValues) |
| Loads field names and values from the specified map. More...
|
|
void | loadFunctionCode (const QString &code) |
| Loads code into the function editor. More...
|
|
Q_DECL_DEPRECATED void | loadRecent (const QString &collection=QStringLiteral("generic")) |
| Loads the recent expressions from the given collection. More...
|
|
Q_DECL_DEPRECATED void | loadUserExpressions () |
| Loads the user expressions. More...
|
|
Q_DECL_DEPRECATED QStandardItemModel * | model () |
| Returns a pointer to the dialog's function item model. More...
|
|
void | newFunctionFile (const QString &fileName="scratch") |
| Creates a new file in the function editor. More...
|
|
bool | parserError () const |
| Will be set to true if the current expression text reports a parser error with the context. More...
|
|
QgsProject * | project () |
| Returns the project currently associated with the widget. More...
|
|
Q_DECL_DEPRECATED void | removeFromUserExpressions (const QString &label) |
| Removes the expression label from the user stored expressions. More...
|
|
void | saveFunctionFile (QString fileName) |
| Saves the current function editor text to the given file. More...
|
|
Q_DECL_DEPRECATED void | saveToRecent (const QString &collection="generic") |
| Adds the current expression to the given collection. More...
|
|
Q_DECL_DEPRECATED void | saveToUserExpressions (const QString &label, const QString &expression, const QString &helpText) |
| Stores the user expression with given label and helpText. More...
|
|
void | setExpectedOutputFormat (const QString &expected) |
| The set expected format string. More...
|
|
void | setExpressionContext (const QgsExpressionContext &context) |
| Sets the expression context for the widget. More...
|
|
void | setExpressionPreviewVisible (bool isVisible) |
| Sets whether the expression preview is visible. More...
|
|
void | setExpressionText (const QString &expression) |
| Sets the expression string for the widget. More...
|
|
void | setGeomCalculator (const QgsDistanceArea &da) |
| Sets geometry calculator used in distance/area calculations. More...
|
|
void | setLayer (QgsVectorLayer *layer) |
| Sets layer in order to get the fields and values. More...
|
|
void | setProject (QgsProject *project) |
| Sets the project currently associated with the widget. More...
|
|
void | updateFunctionFileList (const QString &path) |
| Updates the list of function files found at the given path. More...
|
|