22   : mMapCanvas( other.mMapCanvas )
    23   , mMessageBar( other.mMessageBar )
    24   , mAdditionalScopes( other.mAdditionalScopes )
    26   if ( other.mExpressionContext )
    34   mMapCanvas = other.mMapCanvas;
    35   mMessageBar = other.mMessageBar;
    36   mAdditionalScopes = other.mAdditionalScopes;
    37   if ( other.mExpressionContext )
    43     mExpressionContext.reset();
    73     mExpressionContext.reset();
    78   return mExpressionContext.get();
    83   mAdditionalScopes = scopes;
    88   return mAdditionalScopes;
    93   QList<QgsExpressionContextScope *> scopes;
 QList< QgsExpressionContextScope * > globalProjectAtlasMapLayerScopes(const QgsMapLayer *layer) const
Returns list of scopes: global, project, atlas, map, layer. 
 
Base class for all map layer types. 
 
QgsSymbolWidgetContext & operator=(const QgsSymbolWidgetContext &other)
 
A bar for displaying non-blocking messages to the user. 
 
static QgsExpressionContextScope * projectScope(const QgsProject *project)
Creates a new scope which contains variables and functions relating to a QGIS project. 
 
static QgsExpressionContextScope * atlasScope(const QgsLayoutAtlas *atlas)
Creates a new scope which contains variables and functions relating to a QgsLayoutAtlas. 
 
void setMapCanvas(QgsMapCanvas *canvas)
Sets the map canvas associated with the widget. 
 
Map canvas is a class for displaying all GIS data types on a canvas. 
 
QgsExpressionContextScope * defaultExpressionContextScope()
Creates a new scope which contains default variables and functions relating to the map canvas...
 
The QgsMapSettings class contains configuration for rendering of the map. 
 
void setMessageBar(QgsMessageBar *bar)
Sets the message bar associated with the widget. 
 
static QgsExpressionContextScope * globalScope()
Creates a new scope which contains variables and functions relating to the global QGIS context...
 
Contains settings which reflect the context in which a symbol (or renderer) widget is shown...
 
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
 
Single scope for storing variables and functions for use within a QgsExpressionContext. 
 
void setAdditionalExpressionContextScopes(const QList< QgsExpressionContextScope > &scopes)
Sets a list of additional expression context scopes to show as available within the layer...
 
void setExpressionContext(QgsExpressionContext *context)
Sets the optional expression context used for the widget. 
 
QgsSymbolWidgetContext()=default
Constructor for QgsSymbolWidgetContext. 
 
const QgsMapSettings & mapSettings() const
Gets access to properties used for map rendering. 
 
QgsMapCanvas * mapCanvas() const
Returns the map canvas associated with the widget. 
 
QgsExpressionContext * expressionContext() const
Returns the expression context used for the widget, if set. 
 
static QgsExpressionContextScope * mapSettingsScope(const QgsMapSettings &mapSettings)
Creates a new scope which contains variables and functions relating to a QgsMapSettings object...
 
QgsExpressionContextScope & expressionContextScope()
Returns a reference to the expression context scope for the map canvas. 
 
static QgsProject * instance()
Returns the QgsProject singleton instance. 
 
QgsMessageBar * messageBar() const
Returns the message bar associated with the widget. 
 
static QgsExpressionContextScope * layerScope(const QgsMapLayer *layer)
Creates a new scope which contains variables and functions relating to a QgsMapLayer. 
 
QList< QgsExpressionContextScope > additionalExpressionContextScopes() const
Returns the list of additional expression context scopes to show as available within the layer...