QGIS API Documentation 3.38.0-Grenoble (exported)
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsSvgMarkerSymbolLayerWidget Class Reference

#include <qgssymbollayerwidget.h>

Inheritance diagram for QgsSvgMarkerSymbolLayerWidget:
Inheritance graph
[legend]

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

Definition at line 582 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 2427 of file qgssymbollayerwidget.cpp.

◆ ~QgsSvgMarkerSymbolLayerWidget()

QgsSvgMarkerSymbolLayerWidget::~QgsSvgMarkerSymbolLayerWidget ( )
overridedefault

Member Function Documentation

◆ create()

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

Creates a new QgsSvgMarkerSymbolLayerWidget.

Parameters
vlassociated vector layer

Definition at line 600 of file qgssymbollayerwidget.h.

◆ populateList()

Q_DECL_DEPRECATED void QgsSvgMarkerSymbolLayerWidget::populateList ( )
inlineprotected

This method does nothing anymore, the loading is automatic.

Deprecated:
since QGIS 3.16

Definition at line 622 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 2654 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 2499 of file qgssymbollayerwidget.cpp.

◆ setSvgParameters

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

Sets the dynamic SVG parameters.

Definition at line 2669 of file qgssymbollayerwidget.cpp.

◆ setSvgPath

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

Sets the SVG path.

Definition at line 2660 of file qgssymbollayerwidget.cpp.

◆ setSymbolLayer()

void QgsSvgMarkerSymbolLayerWidget::setSymbolLayer ( QgsSymbolLayer layer)
overridevirtual

Implements QgsSymbolLayerWidget.

Definition at line 2579 of file qgssymbollayerwidget.cpp.

◆ symbolLayer()

QgsSymbolLayer * QgsSvgMarkerSymbolLayerWidget::symbolLayer ( )
overridevirtual

Implements QgsSymbolLayerWidget.

Definition at line 2649 of file qgssymbollayerwidget.cpp.

Member Data Documentation

◆ mLayer

QgsSvgMarkerSymbolLayer* QgsSvgMarkerSymbolLayerWidget::mLayer = nullptr
protected

Definition at line 632 of file qgssymbollayerwidget.h.


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