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

A widget which presents symbol-level properties (such as size), and allows selection of symbols from stored styles. More...

#include <qgssymbolslistwidget.h>

Inheritance diagram for QgsSymbolsListWidget:

Public Slots

void clipFeaturesToggled (bool checked)
void setLineWidth (double width)
void setMarkerAngle (double angle)
void setMarkerSize (double size)
void setSymbolColor (const QColor &color)
void updateDataDefinedLineWidth ()
void updateDataDefinedMarkerAngle ()
void updateDataDefinedMarkerSize ()

Signals

void changed ()
 Emitted when the symbol is modified in the widget.

Public Member Functions

 QgsSymbolsListWidget (QgsSymbol *symbol, QgsStyle *style, QMenu *menu, QWidget *parent, QgsVectorLayer *layer=nullptr)
 Constructor for QgsSymbolsListWidget.
 ~QgsSymbolsListWidget () override
QgsSymbolWidgetContext context () const
 Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
const QgsVectorLayerlayer () const
 Returns the vector layer associated with the widget.
void setContext (const QgsSymbolWidgetContext &context)
 Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
Public Member Functions inherited from QgsExpressionContextGenerator
virtual ~QgsExpressionContextGenerator ()=default

Detailed Description

A widget which presents symbol-level properties (such as size), and allows selection of symbols from stored styles.

Definition at line 37 of file qgssymbolslistwidget.h.

Constructor & Destructor Documentation

◆ QgsSymbolsListWidget()

QgsSymbolsListWidget::QgsSymbolsListWidget ( QgsSymbol * symbol,
QgsStyle * style,
QMenu * menu,
QWidget * parent,
QgsVectorLayer * layer = nullptr )

Constructor for QgsSymbolsListWidget.

Parameters
symbolthe symbol
stylethe style
menuthe menu where to show it
parentparent widget
layerassociated vector layer

Definition at line 36 of file qgssymbolslistwidget.cpp.

◆ ~QgsSymbolsListWidget()

QgsSymbolsListWidget::~QgsSymbolsListWidget ( )
override

Definition at line 151 of file qgssymbolslistwidget.cpp.

Member Function Documentation

◆ changed

void QgsSymbolsListWidget::changed ( )
signal

Emitted when the symbol is modified in the widget.

◆ clipFeaturesToggled

void QgsSymbolsListWidget::clipFeaturesToggled ( bool checked)
slot

Definition at line 431 of file qgssymbolslistwidget.cpp.

◆ context()

QgsSymbolWidgetContext QgsSymbolsListWidget::context ( ) const

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

See also
setContext()

Definition at line 270 of file qgssymbolslistwidget.cpp.

◆ layer()

const QgsVectorLayer * QgsSymbolsListWidget::layer ( ) const
inline

Returns the vector layer associated with the widget.

Definition at line 71 of file qgssymbolslistwidget.h.

◆ setContext()

void QgsSymbolsListWidget::setContext ( const QgsSymbolWidgetContext & context)

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()

Definition at line 260 of file qgssymbolslistwidget.cpp.

◆ setLineWidth

void QgsSymbolsListWidget::setLineWidth ( double width)
slot

Definition at line 505 of file qgssymbolslistwidget.cpp.

◆ setMarkerAngle

void QgsSymbolsListWidget::setMarkerAngle ( double angle)
slot

Definition at line 446 of file qgssymbolslistwidget.cpp.

◆ setMarkerSize

void QgsSymbolsListWidget::setMarkerSize ( double size)
slot

Definition at line 475 of file qgssymbolslistwidget.cpp.

◆ setSymbolColor

void QgsSymbolsListWidget::setSymbolColor ( const QColor & color)
slot

Definition at line 440 of file qgssymbolslistwidget.cpp.

◆ updateDataDefinedLineWidth

void QgsSymbolsListWidget::updateDataDefinedLineWidth ( )
slot

Definition at line 514 of file qgssymbolslistwidget.cpp.

◆ updateDataDefinedMarkerAngle

void QgsSymbolsListWidget::updateDataDefinedMarkerAngle ( )
slot

Definition at line 455 of file qgssymbolslistwidget.cpp.

◆ updateDataDefinedMarkerSize

void QgsSymbolsListWidget::updateDataDefinedMarkerSize ( )
slot

Definition at line 484 of file qgssymbolslistwidget.cpp.


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