QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
#include <qgssymbollayerwidget.h>
Signals | |
void | changed () |
Should be emitted whenever configuration changes happened on this symbol layer configuration. More... | |
void | symbolChanged () |
Should be emitted whenever the sub symbol changed on this symbol layer configuration. More... | |
Public Member Functions | |
QgsSymbolLayerWidget (QWidget *parent, QgsVectorLayer *vl=nullptr) | |
Constructor for QgsSymbolLayerWidget. More... | |
QgsSymbolWidgetContext | context () const |
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. More... | |
virtual void | setContext (const QgsSymbolWidgetContext &context) |
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. More... | |
virtual void | setSymbolLayer (QgsSymbolLayer *layer)=0 |
virtual QgsSymbolLayer * | symbolLayer ()=0 |
const QgsVectorLayer * | vectorLayer () const |
Returns the vector layer associated with the widget. More... | |
![]() | |
virtual | ~QgsExpressionContextGenerator ()=default |
virtual QgsExpressionContext | createExpressionContext () const =0 |
This method needs to be reimplemented in all classes which implement this interface and return an expression context. More... | |
Protected Slots | |
void | updateDataDefinedProperty () |
Protected Member Functions | |
QgsExpressionContext | createExpressionContext () const override |
This method needs to be reimplemented in all classes which implement this interface and return an expression context. More... | |
void | registerDataDefinedButton (QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key) |
Registers a data defined override button. More... | |
Definition at line 37 of file qgssymbollayerwidget.h.
|
inline |
Constructor for QgsSymbolLayerWidget.
vl | associated vector layer |
parent | parent widget |
Definition at line 48 of file qgssymbollayerwidget.h.
|
signal |
Should be emitted whenever configuration changes happened on this symbol layer configuration.
If the subsymbol is changed, symbolChanged() should be emitted instead.
QgsSymbolWidgetContext QgsSymbolLayerWidget::context | ( | ) | const |
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
Definition at line 132 of file qgssymbollayerwidget.cpp.
|
overrideprotectedvirtual |
This method needs to be reimplemented in all classes which implement this interface and return an expression context.
Implements QgsExpressionContextGenerator.
Definition at line 63 of file qgssymbollayerwidget.cpp.
|
protected |
Registers a data defined override button.
Handles setting up connections for the button and initializing the button to show the correct descriptions and help text for the associated property.
Definition at line 137 of file qgssymbollayerwidget.cpp.
|
virtual |
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
context | symbol widget context |
Reimplemented in QgsSimpleLineSymbolLayerWidget, QgsMarkerLineSymbolLayerWidget, QgsHashedLineSymbolLayerWidget, QgsSvgMarkerSymbolLayerWidget, QgsRasterMarkerSymbolLayerWidget, QgsAnimatedMarkerSymbolLayerWidget, and QgsSVGFillSymbolLayerWidget.
Definition at line 122 of file qgssymbollayerwidget.cpp.
|
pure virtual |
Implemented in QgsArrowSymbolLayerWidget, QgsEllipseSymbolLayerWidget, QgsInterpolatedLineSymbolLayerWidget, QgsMaskMarkerSymbolLayerWidget, QgsSimpleLineSymbolLayerWidget, QgsSimpleMarkerSymbolLayerWidget, QgsSimpleFillSymbolLayerWidget, QgsFilledMarkerSymbolLayerWidget, QgsGradientFillSymbolLayerWidget, QgsShapeburstFillSymbolLayerWidget, QgsMarkerLineSymbolLayerWidget, QgsHashedLineSymbolLayerWidget, QgsSvgMarkerSymbolLayerWidget, QgsRasterMarkerSymbolLayerWidget, QgsAnimatedMarkerSymbolLayerWidget, QgsRasterFillSymbolLayerWidget, QgsRasterLineSymbolLayerWidget, QgsLineburstSymbolLayerWidget, QgsSVGFillSymbolLayerWidget, QgsLinePatternFillSymbolLayerWidget, QgsPointPatternFillSymbolLayerWidget, QgsRandomMarkerFillSymbolLayerWidget, QgsFontMarkerSymbolLayerWidget, QgsCentroidFillSymbolLayerWidget, QgsGeometryGeneratorSymbolLayerWidget, and QgsVectorFieldSymbolLayerWidget.
|
signal |
|
pure virtual |
Implemented in QgsArrowSymbolLayerWidget, QgsEllipseSymbolLayerWidget, QgsInterpolatedLineSymbolLayerWidget, QgsMaskMarkerSymbolLayerWidget, QgsSimpleLineSymbolLayerWidget, QgsSimpleMarkerSymbolLayerWidget, QgsSimpleFillSymbolLayerWidget, QgsFilledMarkerSymbolLayerWidget, QgsGradientFillSymbolLayerWidget, QgsShapeburstFillSymbolLayerWidget, QgsMarkerLineSymbolLayerWidget, QgsHashedLineSymbolLayerWidget, QgsSvgMarkerSymbolLayerWidget, QgsRasterMarkerSymbolLayerWidget, QgsAnimatedMarkerSymbolLayerWidget, QgsRasterFillSymbolLayerWidget, QgsRasterLineSymbolLayerWidget, QgsLineburstSymbolLayerWidget, QgsSVGFillSymbolLayerWidget, QgsLinePatternFillSymbolLayerWidget, QgsPointPatternFillSymbolLayerWidget, QgsRandomMarkerFillSymbolLayerWidget, QgsFontMarkerSymbolLayerWidget, QgsCentroidFillSymbolLayerWidget, QgsGeometryGeneratorSymbolLayerWidget, and QgsVectorFieldSymbolLayerWidget.
|
protectedslot |
Definition at line 186 of file qgssymbollayerwidget.cpp.
|
inline |
Returns the vector layer associated with the widget.
Definition at line 75 of file qgssymbollayerwidget.h.