|
QGIS API Documentation 3.99.0-Master (e9821da5c6b)
|
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 |
| QgsVectorLayer * | vectorLayer () const |
| Returns the vector layer associated with the widget. | |
| Public Member Functions inherited from QgsExpressionContextGenerator | |
| 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 41 of file qgssymbollayerwidget.h.
|
inline |
Constructor for QgsSymbolLayerWidget.
| vl | associated vector layer |
| parent | parent widget |
Definition at line 51 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 140 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 71 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 145 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 QgsAnimatedMarkerSymbolLayerWidget, QgsLinearReferencingSymbolLayerWidget, QgsRasterMarkerSymbolLayerWidget, QgsSimpleLineSymbolLayerWidget, QgsSVGFillSymbolLayerWidget, QgsSvgMarkerSymbolLayerWidget, and QgsTemplatedLineSymbolLayerWidget.
Definition at line 130 of file qgssymbollayerwidget.cpp.
|
pure virtual |
Implemented in QgsAnimatedMarkerSymbolLayerWidget, QgsArrowSymbolLayerWidget, QgsCentroidFillSymbolLayerWidget, QgsEllipseSymbolLayerWidget, QgsFilledLineSymbolLayerWidget, QgsFilledMarkerSymbolLayerWidget, QgsFontMarkerSymbolLayerWidget, QgsGeometryGeneratorSymbolLayerWidget, QgsGradientFillSymbolLayerWidget, QgsInterpolatedLineSymbolLayerWidget, QgsLinearReferencingSymbolLayerWidget, QgsLineburstSymbolLayerWidget, QgsLinePatternFillSymbolLayerWidget, QgsMaskMarkerSymbolLayerWidget, QgsPointPatternFillSymbolLayerWidget, QgsRandomMarkerFillSymbolLayerWidget, QgsRasterFillSymbolLayerWidget, QgsRasterLineSymbolLayerWidget, QgsRasterMarkerSymbolLayerWidget, QgsShapeburstFillSymbolLayerWidget, QgsSimpleFillSymbolLayerWidget, QgsSimpleLineSymbolLayerWidget, QgsSimpleMarkerSymbolLayerWidget, QgsSVGFillSymbolLayerWidget, QgsSvgMarkerSymbolLayerWidget, QgsTemplatedLineSymbolLayerWidget, and QgsVectorFieldSymbolLayerWidget.
|
signal |
|
pure virtual |
Implemented in QgsAnimatedMarkerSymbolLayerWidget, QgsArrowSymbolLayerWidget, QgsCentroidFillSymbolLayerWidget, QgsEllipseSymbolLayerWidget, QgsFilledLineSymbolLayerWidget, QgsFilledMarkerSymbolLayerWidget, QgsFontMarkerSymbolLayerWidget, QgsGeometryGeneratorSymbolLayerWidget, QgsGradientFillSymbolLayerWidget, QgsInterpolatedLineSymbolLayerWidget, QgsLinearReferencingSymbolLayerWidget, QgsLineburstSymbolLayerWidget, QgsLinePatternFillSymbolLayerWidget, QgsMaskMarkerSymbolLayerWidget, QgsPointPatternFillSymbolLayerWidget, QgsRandomMarkerFillSymbolLayerWidget, QgsRasterFillSymbolLayerWidget, QgsRasterLineSymbolLayerWidget, QgsRasterMarkerSymbolLayerWidget, QgsShapeburstFillSymbolLayerWidget, QgsSimpleFillSymbolLayerWidget, QgsSimpleLineSymbolLayerWidget, QgsSimpleMarkerSymbolLayerWidget, QgsSVGFillSymbolLayerWidget, QgsSvgMarkerSymbolLayerWidget, QgsTemplatedLineSymbolLayerWidget, and QgsVectorFieldSymbolLayerWidget.
|
protectedslot |
Definition at line 194 of file qgssymbollayerwidget.cpp.
|
inline |
Returns the vector layer associated with the widget.
Definition at line 75 of file qgssymbollayerwidget.h.