QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
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 setSvgPath (const QString &name)
 Sets the SVG path. More...
 

Public Member Functions

 QgsSvgMarkerSymbolLayerWidget (QgsVectorLayer *vl, QWidget *parent=nullptr)
 Constructor for QgsSvgMarkerSymbolLayerWidget. More...
 
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. More...
 
void setSymbolLayer (QgsSymbolLayer *layer) override
 
QgsSymbolLayersymbolLayer () override
 
- Public Member Functions inherited from QgsSymbolLayerWidget
 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...
 
const QgsVectorLayervectorLayer () const
 Returns the vector layer associated with the widget. More...
 
- Public Member Functions inherited from QgsExpressionContextGenerator
virtual ~QgsExpressionContextGenerator ()=default
 

Static Public Member Functions

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

Protected Member Functions

Q_DECL_DEPRECATED void populateList ()
 This method does nothing anymore, the loading is automatic. More...
 
void setGuiForSvg (const QgsSvgMarkerSymbolLayer *layer, bool skipDefaultColors=false)
 Updates the GUI to reflect the SVG marker symbol layer. More...
 
- 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. More...
 
void registerDataDefinedButton (QgsPropertyOverrideButton *button, QgsSymbolLayer::Property key)
 Registers a data defined override button. More...
 

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. More...
 
void symbolChanged ()
 Should be emitted whenever the sub symbol changed on this symbol layer configuration. More...
 
- Protected Slots inherited from QgsSymbolLayerWidget
void updateDataDefinedProperty ()
 

Detailed Description

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

Member Function Documentation

◆ create()

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

Creates a new QgsSvgMarkerSymbolLayerWidget.

Parameters
vlassociated vector layer

Definition at line 593 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 613 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()
Since
QGIS 3.0

Reimplemented from QgsSymbolLayerWidget.

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

◆ setSvgPath

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

Sets the SVG path.

Definition at line 2539 of file qgssymbollayerwidget.cpp.

◆ setSymbolLayer()

void QgsSvgMarkerSymbolLayerWidget::setSymbolLayer ( QgsSymbolLayer layer)
overridevirtual

Implements QgsSymbolLayerWidget.

Definition at line 2459 of file qgssymbollayerwidget.cpp.

◆ symbolLayer()

QgsSymbolLayer * QgsSvgMarkerSymbolLayerWidget::symbolLayer ( )
overridevirtual

Implements QgsSymbolLayerWidget.

Definition at line 2528 of file qgssymbollayerwidget.cpp.

Member Data Documentation

◆ mLayer

QgsSvgMarkerSymbolLayer* QgsSvgMarkerSymbolLayerWidget::mLayer = nullptr
protected

Definition at line 623 of file qgssymbollayerwidget.h.


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