QGIS API Documentation 3.43.0-Master (9e873c7bc91)
|
Encapsulates the context in which a QgsDataItem is shown within the application GUI. More...
#include <qgsdataitemguiprovider.h>
Public Member Functions | |
QgsDataItemGuiContext ()=default | |
QgsMapCanvas * | mapCanvas () const |
Returns the map canvas associated with the item. | |
QgsMessageBar * | messageBar () const |
Returns the associated message bar. | |
void | setMapCanvas (QgsMapCanvas *canvas) |
Sets the map canvas associated with the data item. | |
void | setMessageBar (QgsMessageBar *bar) |
Sets the associated message bar. | |
void | setView (QgsBrowserTreeView *view) |
Sets the associated view. | |
QgsBrowserTreeView * | view () const |
Returns the associated view. | |
Encapsulates the context in which a QgsDataItem is shown within the application GUI.
Definition at line 42 of file qgsdataitemguiprovider.h.
|
default |
QgsMapCanvas * QgsDataItemGuiContext::mapCanvas | ( | ) | const |
Returns the map canvas associated with the item.
Definition at line 42 of file qgsdataitemguiprovider.cpp.
QgsMessageBar * QgsDataItemGuiContext::messageBar | ( | ) | const |
Returns the associated message bar.
This bar can be used to provide non-blocking feedback to users.
Definition at line 27 of file qgsdataitemguiprovider.cpp.
void QgsDataItemGuiContext::setMapCanvas | ( | QgsMapCanvas * | canvas | ) |
Sets the map canvas associated with the data item.
This allows the item to retrieve the current map scale and other properties from the canvas.
Definition at line 37 of file qgsdataitemguiprovider.cpp.
void QgsDataItemGuiContext::setMessageBar | ( | QgsMessageBar * | bar | ) |
Sets the associated message bar.
This bar can be used to provide non-blocking feedback to users.
Definition at line 32 of file qgsdataitemguiprovider.cpp.
void QgsDataItemGuiContext::setView | ( | QgsBrowserTreeView * | view | ) |
Sets the associated view.
Definition at line 52 of file qgsdataitemguiprovider.cpp.
QgsBrowserTreeView * QgsDataItemGuiContext::view | ( | ) | const |
Returns the associated view.
Definition at line 47 of file qgsdataitemguiprovider.cpp.