|
static QgsExpressionContextScope * | atlasScope (const QgsLayoutAtlas *atlas) |
| Creates a new scope which contains variables and functions relating to a QgsLayoutAtlas. More...
|
|
static QgsExpressionContext | createFeatureBasedContext (const QgsFeature &feature, const QgsFields &fields) |
| Helper function for creating an expression context which contains just a feature and fields collection. More...
|
|
static QgsExpressionContextScope * | formScope (const QgsFeature &formFeature=QgsFeature(), const QString &formMode=QString()) |
| Creates a new scope which contains functions and variables from the current attribute form/table formFeature. More...
|
|
static QList< QgsExpressionContextScope * > | globalProjectLayerScopes (const QgsMapLayer *layer) |
| Creates a list of three scopes: global, layer's project and layer. More...
|
|
static QgsExpressionContextScope * | globalScope () |
| Creates a new scope which contains variables and functions relating to the global QGIS context. More...
|
|
static QgsExpressionContextScope * | layerScope (const QgsMapLayer *layer) |
| Creates a new scope which contains variables and functions relating to a QgsMapLayer. More...
|
|
static QgsExpressionContextScope * | layoutItemScope (const QgsLayoutItem *item) |
| Creates a new scope which contains variables and functions relating to a QgsLayoutItem. More...
|
|
static QgsExpressionContextScope * | layoutScope (const QgsLayout *layout) |
| Creates a new scope which contains variables and functions relating to a QgsLayout layout. More...
|
|
static QgsExpressionContextScope * | mapSettingsScope (const QgsMapSettings &mapSettings) |
| Creates a new scope which contains variables and functions relating to a QgsMapSettings object. More...
|
|
static QgsExpressionContextScope * | mapToolCaptureScope (const QList< QgsPointLocator::Match > &matches) |
| Sets the expression context variables which are available for expressions triggered by a map tool capture like add feature. More...
|
|
static QgsExpressionContextScope * | meshExpressionScope (QgsMesh::ElementType elementType) |
| Creates a new scope which contains functions relating to mesh layer element elementType. More...
|
|
static QgsExpressionContextScope * | multiFrameScope (const QgsLayoutMultiFrame *frame) |
| Creates a new scope which contains variables and functions relating to a QgsLayoutMultiFrame. More...
|
|
static QgsExpressionContextScope * | notificationScope (const QString &message=QString()) |
| Creates a new scope which contains variables and functions relating to provider notifications. More...
|
|
static QgsExpressionContextScope * | parentFormScope (const QgsFeature &formFeature=QgsFeature(), const QString &formMode=QString()) |
| Creates a new scope which contains functions and variables from the current parent attribute form/table formFeature. More...
|
|
static QgsExpressionContextScope * | processingAlgorithmScope (const QgsProcessingAlgorithm *algorithm, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Creates a new scope which contains variables and functions relating to a processing algorithm, when used with the specified parameters and context. More...
|
|
static QgsExpressionContextScope * | processingModelAlgorithmScope (const QgsProcessingModelAlgorithm *model, const QVariantMap ¶meters, QgsProcessingContext &context) |
| Creates a new scope which contains variables and functions relating to a processing model algorithm, when used with the specified parameters and context. More...
|
|
static QgsExpressionContextScope * | projectScope (const QgsProject *project) |
| Creates a new scope which contains variables and functions relating to a QGIS project. More...
|
|
static void | registerContextFunctions () |
| Registers all known core functions provided by QgsExpressionContextScope objects. More...
|
|
static void | removeGlobalVariable (const QString &name) |
| Remove a global context variable. More...
|
|
static void | removeProjectVariable (QgsProject *project, const QString &name) |
| Remove project context variable. More...
|
|
static void | setGlobalVariable (const QString &name, const QVariant &value) |
| Sets a global context variable. More...
|
|
static void | setGlobalVariables (const QVariantMap &variables) |
| Sets all global context variables. More...
|
|
static void | setLayerVariable (QgsMapLayer *layer, const QString &name, const QVariant &value) |
| Sets a layer context variable. More...
|
|
static void | setLayerVariables (QgsMapLayer *layer, const QVariantMap &variables) |
| Sets all layer context variables. More...
|
|
static void | setLayoutItemVariable (QgsLayoutItem *item, const QString &name, const QVariant &value) |
| Sets a layout item context variable, with the given name and value. More...
|
|
static void | setLayoutItemVariables (QgsLayoutItem *item, const QVariantMap &variables) |
| Sets all layout item context variables for an item. More...
|
|
static void | setLayoutMultiFrameVariable (QgsLayoutMultiFrame *frame, const QString &name, const QVariant &value) |
| Sets a layout multi frame context variable, with the given name and value. More...
|
|
static void | setLayoutMultiFrameVariables (QgsLayoutMultiFrame *frame, const QVariantMap &variables) |
| Sets all layout multiframe context variables for an frame. More...
|
|
static void | setLayoutVariable (QgsLayout *layout, const QString &name, const QVariant &value) |
| Sets a layout context variable. More...
|
|
static void | setLayoutVariables (QgsLayout *layout, const QVariantMap &variables) |
| Sets all layout context variables. More...
|
|
static void | setProjectVariable (QgsProject *project, const QString &name, const QVariant &value) |
| Sets a project context variable. More...
|
|
static void | setProjectVariables (QgsProject *project, const QVariantMap &variables) |
| Sets all project context variables. More...
|
|
static QgsExpressionContextScope * | updateSymbolScope (const QgsSymbol *symbol, QgsExpressionContextScope *symbolScope=nullptr) |
| Updates a symbol scope related to a QgsSymbol to an expression context. More...
|
|