QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgscalloutwidget.h>
Signals | |
void | changed () |
Should be emitted whenever configuration changes happened on this symbol layer configuration. More... | |
Public Member Functions | |
QgsCalloutWidget (QWidget *parent, QgsVectorLayer *vl=nullptr) | |
Constructor for QgsCalloutWidget. More... | |
virtual QgsCallout * | callout ()=0 |
Returns the callout defined by the current settings in the widget. More... | |
QgsSymbolWidgetContext | context () const |
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. More... | |
virtual void | setCallout (QgsCallout *callout)=0 |
Sets the callout to show in the widget. More... | |
virtual 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... | |
virtual void | setGeometryType (QgsWkbTypes::GeometryType type)=0 |
Sets the geometry type of the features to customize the widget accordingly. More... | |
const QgsVectorLayer * | vectorLayer () const |
Returns the vector layer associated with the widget. More... | |
Public Member Functions inherited from QgsExpressionContextGenerator | |
virtual | ~QgsExpressionContextGenerator ()=default |
Protected Member Functions | |
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, QgsCallout::Property key) |
Registers a data defined override button. More... | |
Base class for widgets which allow control over the properties of callouts.
Definition at line 34 of file qgscalloutwidget.h.
|
inline |
Constructor for QgsCalloutWidget.
vl | associated vector layer |
parent | parent widget |
Definition at line 45 of file qgscalloutwidget.h.
|
pure virtual |
Returns the callout defined by the current settings in the widget.
Ownership is not transferred, and the caller should clone the returned value.
|
signal |
Should be emitted whenever configuration changes happened on this symbol layer configuration.
If the subsymbol is changed, symbolChanged() should be emitted instead.
QgsSymbolWidgetContext QgsCalloutWidget::context | ( | ) | const |
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
Definition at line 66 of file qgscalloutwidget.cpp.
|
overrideprotectedvirtual |
This method needs to be reimplemented in all classes which implement this interface and return an expression context.
Implements QgsExpressionContextGenerator.
Definition at line 25 of file qgscalloutwidget.cpp.
|
protected |
Registers a data defined override button.
Handles setting up connections for the button and initializing the button to show the correct descriptions and help text for the associated property.
Definition at line 71 of file qgscalloutwidget.cpp.
|
pure virtual |
|
virtual |
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
context | symbol widget context |
Definition at line 50 of file qgscalloutwidget.cpp.
|
pure virtual |
Sets the geometry type of the features to customize the widget accordingly.
|
inline |
Returns the vector layer associated with the widget.
Definition at line 79 of file qgscalloutwidget.h.