QGIS API Documentation 3.27.0-Master (a46f227e17)
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
QgsSvgSelectorWidget Class Reference

#include <qgssvgselectorwidget.h>

Inheritance diagram for QgsSvgSelectorWidget:
Inheritance graph
[legend]

Public Slots

void setSvgParameters (const QMap< QString, QgsProperty > &parameters)
 Sets the dynamic parameters. More...
 
void setSvgPath (const QString &svgPath)
 Accepts absolute paths. More...
 

Signals

void svgParametersChanged (const QMap< QString, QgsProperty > &parameters)
 Emitted when the parameters have changed. More...
 
void svgSelected (const QString &path)
 

Public Member Functions

 QgsSvgSelectorWidget (QWidget *parent=nullptr)
 Constructor for QgsSvgSelectorWidget. More...
 
bool allowParamerters () const
 Returns if the group box to fill parameters is visible. More...
 
bool browserVisible () const
 Returns if the SVG browser should be visible. More...
 
QString currentSvgPath () const
 
void initParametersModel (const QgsExpressionContextGenerator *generator, QgsVectorLayer *layer=nullptr)
 Initialize the parameters model so the context and the layer are referenced. More...
 
QgsPropertyOverrideButtonpropertyOverrideToolButton () const
 Returns the property override tool button of the file line edit. More...
 
void setAllowParameters (bool allow)
 Defines if the group box to fill parameters is visible. More...
 
void setBrowserVisible (bool visible)
 Defines if the SVG browser should be visible. More...
 
QgsPictureSourceLineEditBasesourceLineEdit () const
 Returns the source line edit. More...
 

Protected Member Functions

void populateList ()
 

Detailed Description

Definition at line 379 of file qgssvgselectorwidget.h.

Constructor & Destructor Documentation

◆ QgsSvgSelectorWidget()

QgsSvgSelectorWidget::QgsSvgSelectorWidget ( QWidget *  parent = nullptr)

Constructor for QgsSvgSelectorWidget.

Definition at line 390 of file qgssvgselectorwidget.cpp.

Member Function Documentation

◆ allowParamerters()

bool QgsSvgSelectorWidget::allowParamerters ( ) const
inline

Returns if the group box to fill parameters is visible.

Since
QGIS 3.18

Definition at line 412 of file qgssvgselectorwidget.h.

◆ browserVisible()

bool QgsSvgSelectorWidget::browserVisible ( ) const
inline

Returns if the SVG browser should be visible.

Since
QGIS 3.20

Definition at line 424 of file qgssvgselectorwidget.h.

◆ currentSvgPath()

QString QgsSvgSelectorWidget::currentSvgPath ( ) const

Definition at line 474 of file qgssvgselectorwidget.cpp.

◆ initParametersModel()

void QgsSvgSelectorWidget::initParametersModel ( const QgsExpressionContextGenerator generator,
QgsVectorLayer layer = nullptr 
)

Initialize the parameters model so the context and the layer are referenced.

Since
QGIS 3.18

Definition at line 440 of file qgssvgselectorwidget.cpp.

◆ populateList()

void QgsSvgSelectorWidget::populateList ( )
protected

Definition at line 537 of file qgssvgselectorwidget.cpp.

◆ propertyOverrideToolButton()

QgsPropertyOverrideButton * QgsSvgSelectorWidget::propertyOverrideToolButton ( ) const

Returns the property override tool button of the file line edit.

Since
QGIS 3.20

Definition at line 497 of file qgssvgselectorwidget.cpp.

◆ setAllowParameters()

void QgsSvgSelectorWidget::setAllowParameters ( bool  allow)

Defines if the group box to fill parameters is visible.

Since
QGIS 3.18

Definition at line 479 of file qgssvgselectorwidget.cpp.

◆ setBrowserVisible()

void QgsSvgSelectorWidget::setBrowserVisible ( bool  visible)

Defines if the SVG browser should be visible.

Since
QGIS 3.20

Definition at line 488 of file qgssvgselectorwidget.cpp.

◆ setSvgParameters

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

Sets the dynamic parameters.

Since
QGIS 3.18

Definition at line 469 of file qgssvgselectorwidget.cpp.

◆ setSvgPath

void QgsSvgSelectorWidget::setSvgPath ( const QString &  svgPath)
slot

Accepts absolute paths.

Definition at line 446 of file qgssvgselectorwidget.cpp.

◆ sourceLineEdit()

QgsPictureSourceLineEditBase * QgsSvgSelectorWidget::sourceLineEdit ( ) const
inline

Returns the source line edit.

Since
QGIS 3.16

Definition at line 400 of file qgssvgselectorwidget.h.

◆ svgParametersChanged

void QgsSvgSelectorWidget::svgParametersChanged ( const QMap< QString, QgsProperty > &  parameters)
signal

Emitted when the parameters have changed.

Since
QGIS 3.18

◆ svgSelected

void QgsSvgSelectorWidget::svgSelected ( const QString &  path)
signal

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