QGIS API Documentation  3.20.0-Odense (decaadbb31)
Public Slots | Signals | Public Member Functions | List of all members
QgsSymbolsListWidget Class Reference

#include <qgssymbolslistwidget.h>

Inheritance diagram for QgsSymbolsListWidget:
Inheritance graph
[legend]

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

Public Member Functions

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

Detailed Description

Definition at line 35 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 31 of file qgssymbolslistwidget.cpp.

◆ ~QgsSymbolsListWidget()

QgsSymbolsListWidget::~QgsSymbolsListWidget ( )
override

Definition at line 133 of file qgssymbolslistwidget.cpp.

Member Function Documentation

◆ changed

void QgsSymbolsListWidget::changed ( )
signal

◆ clipFeaturesToggled

void QgsSymbolsListWidget::clipFeaturesToggled ( bool  checked)
slot

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

Definition at line 249 of file qgssymbolslistwidget.cpp.

◆ layer()

const QgsVectorLayer* QgsSymbolsListWidget::layer ( ) const
inline

Returns the vector layer associated with the widget.

Since
QGIS 2.12

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

Definition at line 239 of file qgssymbolslistwidget.cpp.

◆ setLineWidth

void QgsSymbolsListWidget::setLineWidth ( double  width)
slot

Definition at line 392 of file qgssymbolslistwidget.cpp.

◆ setMarkerAngle

void QgsSymbolsListWidget::setMarkerAngle ( double  angle)
slot

Definition at line 335 of file qgssymbolslistwidget.cpp.

◆ setMarkerSize

void QgsSymbolsListWidget::setMarkerSize ( double  size)
slot

Definition at line 363 of file qgssymbolslistwidget.cpp.

◆ setSymbolColor

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

Definition at line 329 of file qgssymbolslistwidget.cpp.

◆ updateDataDefinedLineWidth

void QgsSymbolsListWidget::updateDataDefinedLineWidth ( )
slot

Definition at line 401 of file qgssymbolslistwidget.cpp.

◆ updateDataDefinedMarkerAngle

void QgsSymbolsListWidget::updateDataDefinedMarkerAngle ( )
slot

Definition at line 344 of file qgssymbolslistwidget.cpp.

◆ updateDataDefinedMarkerSize

void QgsSymbolsListWidget::updateDataDefinedMarkerSize ( )
slot

Definition at line 372 of file qgssymbolslistwidget.cpp.


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