QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsSvgMarkerSymbolLayerWidget Class Reference

A widget for controlling the properties of a QgsSvgMarkerSymbolLayer. More...

#include <qgssymbollayerwidget.h>

Inheritance diagram for QgsSvgMarkerSymbolLayerWidget:

Public Slots

void setSvgParameters (const QMap< QString, QgsProperty > &parameters)
 Sets the dynamic SVG parameters.
void setSvgPath (const QString &name)
 Sets the SVG path.

Public Member Functions

 QgsSvgMarkerSymbolLayerWidget (QgsVectorLayer *vl, QWidget *parent=nullptr)
 Constructor for QgsSvgMarkerSymbolLayerWidget.
 ~QgsSvgMarkerSymbolLayerWidget () override
void setContext (const QgsSymbolWidgetContext &context) override
 Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
void setSymbolLayer (QgsSymbolLayer *layer) override
QgsSymbolLayersymbolLayer () override
Public Member Functions inherited from QgsSymbolLayerWidget
 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.
const QgsVectorLayervectorLayer () const
 Returns the vector layer associated with the widget.
Public Member Functions inherited from QgsExpressionContextGenerator
virtual ~QgsExpressionContextGenerator ()=default

Static Public Member Functions

static QgsSymbolLayerWidgetcreate (QgsVectorLayer *vl)
 Creates a new QgsSvgMarkerSymbolLayerWidget.

Protected Member Functions

Q_DECL_DEPRECATED void populateList ()
 This method does nothing anymore, the loading is automatic.
void setGuiForSvg (const QgsSvgMarkerSymbolLayer *layer, bool skipDefaultColors=false)
 Updates the GUI to reflect the SVG marker symbol layer.
Protected Member Functions inherited from QgsSymbolLayerWidget
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.

Protected Attributes

QgsSvgMarkerSymbolLayermLayer = nullptr

Additional Inherited Members

Signals inherited from QgsSymbolLayerWidget
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.
Protected Slots inherited from QgsSymbolLayerWidget
void updateDataDefinedProperty ()

Detailed Description

A widget for controlling the properties of a QgsSvgMarkerSymbolLayer.

Definition at line 580 of file qgssymbollayerwidget.h.

Constructor & Destructor Documentation

◆ QgsSvgMarkerSymbolLayerWidget()

QgsSvgMarkerSymbolLayerWidget::QgsSvgMarkerSymbolLayerWidget ( QgsVectorLayer * vl,
QWidget * parent = nullptr )

Constructor for QgsSvgMarkerSymbolLayerWidget.

Parameters
vlassociated vector layer
parentparent widget

Definition at line 2262 of file qgssymbollayerwidget.cpp.

◆ ~QgsSvgMarkerSymbolLayerWidget()

QgsSvgMarkerSymbolLayerWidget::~QgsSvgMarkerSymbolLayerWidget ( )
overridedefault

Member Function Documentation

◆ create()

QgsSymbolLayerWidget * QgsSvgMarkerSymbolLayerWidget::create ( QgsVectorLayer * vl)
inlinestatic

Creates a new QgsSvgMarkerSymbolLayerWidget.

Parameters
vlassociated vector layer

Definition at line 597 of file qgssymbollayerwidget.h.

◆ populateList()

Q_DECL_DEPRECATED void QgsSvgMarkerSymbolLayerWidget::populateList ( )
inlineprotected

This method does nothing anymore, the loading is automatic.

Deprecated
QGIS 3.16

Definition at line 619 of file qgssymbollayerwidget.h.

◆ setContext()

void QgsSvgMarkerSymbolLayerWidget::setContext ( const QgsSymbolWidgetContext & context)
overridevirtual

Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.

Parameters
contextsymbol widget context
See also
context()

Reimplemented from QgsSymbolLayerWidget.

Definition at line 2489 of file qgssymbollayerwidget.cpp.

◆ setGuiForSvg()

void QgsSvgMarkerSymbolLayerWidget::setGuiForSvg ( const QgsSvgMarkerSymbolLayer * layer,
bool skipDefaultColors = false )
protected

Updates the GUI to reflect the SVG marker symbol layer.

Parameters
layerSVG marker symbol layer
skipDefaultColorsif true, the default fill and outline colors of the SVG file will not overwrite the ones from the symbol layer

Definition at line 2338 of file qgssymbollayerwidget.cpp.

◆ setSvgParameters

void QgsSvgMarkerSymbolLayerWidget::setSvgParameters ( const QMap< QString, QgsProperty > & parameters)
slot

Sets the dynamic SVG parameters.

Definition at line 2504 of file qgssymbollayerwidget.cpp.

◆ setSvgPath

void QgsSvgMarkerSymbolLayerWidget::setSvgPath ( const QString & name)
slot

Sets the SVG path.

Definition at line 2495 of file qgssymbollayerwidget.cpp.

◆ setSymbolLayer()

void QgsSvgMarkerSymbolLayerWidget::setSymbolLayer ( QgsSymbolLayer * layer)
overridevirtual

Implements QgsSymbolLayerWidget.

Definition at line 2414 of file qgssymbollayerwidget.cpp.

◆ symbolLayer()

QgsSymbolLayer * QgsSvgMarkerSymbolLayerWidget::symbolLayer ( )
overridevirtual

Implements QgsSymbolLayerWidget.

Definition at line 2484 of file qgssymbollayerwidget.cpp.

Member Data Documentation

◆ mLayer

QgsSvgMarkerSymbolLayer* QgsSvgMarkerSymbolLayerWidget::mLayer = nullptr
protected

Definition at line 629 of file qgssymbollayerwidget.h.


The documentation for this class was generated from the following files: