QGIS API Documentation 3.43.0-Master (b60ef06885e)
|
Abstract base class for widgets used to configure QgsSymbolLayer classes. More...
#include <qgssymbollayerwidget.h>
Signals | |
void | changed () |
Should be emitted whenever configuration changes happened on this symbol layer configuration. | |
void | symbolChanged () |
Should be emitted whenever the sub symbol changed on this symbol layer configuration. | |
Public Member Functions | |
QgsSymbolLayerWidget (QWidget *parent, QgsVectorLayer *vl=nullptr) | |
Constructor for QgsSymbolLayerWidget. | |
QgsSymbolWidgetContext | context () const |
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. | |
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. | |
virtual void | setSymbolLayer (QgsSymbolLayer *layer)=0 |
virtual QgsSymbolLayer * | symbolLayer ()=0 |
const QgsVectorLayer * | vectorLayer () const |
Returns the vector layer associated with the widget. | |
![]() | |
virtual | ~QgsExpressionContextGenerator ()=default |
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. | |
void | registerDataDefinedButton (QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key) |
Registers a data defined override button. | |
Abstract base class for widgets used to configure QgsSymbolLayer classes.
Definition at line 37 of file qgssymbollayerwidget.h.
|
inline |
Constructor for QgsSymbolLayerWidget.
vl | associated vector layer |
parent | parent widget |
Definition at line 47 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 135 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 66 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 140 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, QgsSVGFillSymbolLayerWidget, and QgsLinearReferencingSymbolLayerWidget.
Definition at line 125 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, QgsFilledLineSymbolLayerWidget, QgsSVGFillSymbolLayerWidget, QgsLinePatternFillSymbolLayerWidget, QgsPointPatternFillSymbolLayerWidget, QgsRandomMarkerFillSymbolLayerWidget, QgsFontMarkerSymbolLayerWidget, QgsCentroidFillSymbolLayerWidget, QgsLinearReferencingSymbolLayerWidget, 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, QgsFilledLineSymbolLayerWidget, QgsSVGFillSymbolLayerWidget, QgsLinePatternFillSymbolLayerWidget, QgsPointPatternFillSymbolLayerWidget, QgsRandomMarkerFillSymbolLayerWidget, QgsFontMarkerSymbolLayerWidget, QgsCentroidFillSymbolLayerWidget, QgsLinearReferencingSymbolLayerWidget, QgsGeometryGeneratorSymbolLayerWidget, and QgsVectorFieldSymbolLayerWidget.
|
protectedslot |
Definition at line 189 of file qgssymbollayerwidget.cpp.
|
inline |
Returns the vector layer associated with the widget.
Definition at line 71 of file qgssymbollayerwidget.h.