QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Encapsulates the context for a QgsMapLayerConfigWidget. More...
#include <qgsmaplayerconfigwidget.h>
Public Member Functions | |
QString | annotationId () const |
Returns the item ID of the target annotation, when modifying an annotation from a QgsAnnotationLayer. | |
QgsLayerTreeGroup * | layerTreeGroup () const |
Returns the layer tree group associated with the widget. | |
QgsMapCanvas * | mapCanvas () const |
Returns the map canvas associated with the widget. | |
QgsMessageBar * | messageBar () const |
Returns the message bar associated with the widget. | |
void | setAnnotationId (const QString &id) |
Sets the item id of the target annotation, when modifying an annotation from a QgsAnnotationLayer. | |
void | setLayerTreeGroup (QgsLayerTreeGroup *group) |
Sets the layer tree group associated with the widget. | |
void | setMapCanvas (QgsMapCanvas *canvas) |
Sets the map canvas associated with the widget. | |
void | setMessageBar (QgsMessageBar *bar) |
Sets the message bar associated with the widget. | |
Encapsulates the context for a QgsMapLayerConfigWidget.
Definition at line 36 of file qgsmaplayerconfigwidget.h.
|
inline |
Returns the item ID of the target annotation, when modifying an annotation from a QgsAnnotationLayer.
Definition at line 46 of file qgsmaplayerconfigwidget.h.
QgsLayerTreeGroup * QgsMapLayerConfigWidgetContext::layerTreeGroup | ( | ) | const |
Returns the layer tree group associated with the widget.
Definition at line 29 of file qgsmaplayerconfigwidget.cpp.
|
inline |
Returns the map canvas associated with the widget.
Definition at line 68 of file qgsmaplayerconfigwidget.h.
|
inline |
Returns the message bar associated with the widget.
Definition at line 81 of file qgsmaplayerconfigwidget.h.
|
inline |
Sets the item id of the target annotation, when modifying an annotation from a QgsAnnotationLayer.
Definition at line 54 of file qgsmaplayerconfigwidget.h.
void QgsMapLayerConfigWidgetContext::setLayerTreeGroup | ( | QgsLayerTreeGroup * | group | ) |
Sets the layer tree group associated with the widget.
Definition at line 24 of file qgsmaplayerconfigwidget.cpp.
|
inline |
Sets the map canvas associated with the widget.
This allows the widget to retrieve the current map scale and other properties from the canvas.
Definition at line 62 of file qgsmaplayerconfigwidget.h.
|
inline |
Sets the message bar associated with the widget.
This allows the widget to push feedback messages to the appropriate message bar.
Definition at line 75 of file qgsmaplayerconfigwidget.h.