|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
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 43 of file qgsdataitemguiprovider.h.
|
default |
| QgsMapCanvas * QgsDataItemGuiContext::mapCanvas | ( | ) | const |
Returns the map canvas associated with the item.
Definition at line 45 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 30 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 40 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 35 of file qgsdataitemguiprovider.cpp.
| void QgsDataItemGuiContext::setView | ( | QgsBrowserTreeView * | view | ) |
Sets the associated view.
Definition at line 55 of file qgsdataitemguiprovider.cpp.
| QgsBrowserTreeView * QgsDataItemGuiContext::view | ( | ) | const |
Returns the associated view.
Definition at line 50 of file qgsdataitemguiprovider.cpp.