|
| QgsExpressionContextScope (const QgsExpressionContextScope &other) |
| Copy constructor. More...
|
|
| QgsExpressionContextScope (const QString &name=QString()) |
| Constructor for QgsExpressionContextScope. More...
|
|
| ~QgsExpressionContextScope () |
|
void | addFunction (const QString &name, QgsScopedExpressionFunction *function) |
| Adds a function to the scope. More...
|
|
void | addHiddenVariable (const QString &hiddenVariable) |
| Adds the passed variable to a list of hidden variables that won't be visible in the expression builder dialog and widget. More...
|
|
void | addVariable (const QgsExpressionContextScope::StaticVariable &variable) |
| Adds a variable into the context scope. More...
|
|
QString | description (const QString &name) const |
| Returns the translated description for the variable with the specified name (if set). More...
|
|
QgsFeature | feature () const |
| Sets the feature associated with the scope. More...
|
|
QStringList | filteredVariableNames () const |
| Returns a filtered and sorted list of variable names contained within the scope. More...
|
|
QgsExpressionFunction * | function (const QString &name) const |
| Retrieves a function from the scope. More...
|
|
QStringList | functionNames () const |
| Retrieves a list of names of functions contained in the scope. More...
|
|
QgsGeometry | geometry () const |
| Sets the geometry associated with the scope. More...
|
|
bool | hasFeature () const |
| Returns true if the scope has a feature associated with it. More...
|
|
bool | hasFunction (const QString &name) const |
| Tests whether a function with the specified name exists in the scope. More...
|
|
bool | hasGeometry () const |
| Returns true if the scope has a geometry associated with it. More...
|
|
bool | hasVariable (const QString &name) const |
| Tests whether a variable with the specified name exists in the scope. More...
|
|
QStringList | hiddenVariables () const |
| Returns the list of variables hidden within the scope. More...
|
|
bool | isReadOnly (const QString &name) const |
| Tests whether the specified variable is read only and should not be editable by users. More...
|
|
bool | isStatic (const QString &name) const |
| Tests whether the variable with the specified name is static and can be cached. More...
|
|
QString | name () const |
| Returns the friendly display name of the context scope. More...
|
|
QgsExpressionContextScope & | operator= (const QgsExpressionContextScope &other) |
|
void | readXml (const QDomElement &element, const QgsReadWriteContext &context) |
| Reads scope variables from an XML element. More...
|
|
void | removeFeature () |
| Removes any feature associated with the scope. More...
|
|
void | removeGeometry () |
| Removes any geometry associated with the scope. More...
|
|
void | removeHiddenVariable (const QString &hiddenVariable) |
| Removes the passed variable from a list of hidden variables. More...
|
|
bool | removeVariable (const QString &name) |
| Removes a variable from the context scope, if found. More...
|
|
void | setFeature (const QgsFeature &feature) |
| Convenience function for setting a feature for the scope. More...
|
|
void | setFields (const QgsFields &fields) |
| Convenience function for setting a fields for the scope. More...
|
|
void | setGeometry (const QgsGeometry &geometry) |
| Convenience function for setting a geometry for the scope. More...
|
|
void | setHiddenVariables (const QStringList &hiddenVariables) |
| Sets the list of variables intended to be hidden in the expression builder dialog and widget. More...
|
|
void | setVariable (const QString &name, const QVariant &value, bool isStatic=false) |
| Convenience method for setting a variable in the context scope by name name and value. More...
|
|
QVariant | variable (const QString &name) const |
| Retrieves a variable's value from the scope. More...
|
|
int | variableCount () const |
| Returns the count of variables contained within the scope. More...
|
|
QStringList | variableNames () const |
| Returns a list of variable names contained within the scope. More...
|
|
bool | writeXml (QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const |
| Writes scope variables to an XML element. More...
|
|