QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
Encapsulates the context in which a QgsMapLayerAction action is executed. More...
#include <qgsmaplayeractioncontext.h>
Public Member Functions | |
QgsMapLayerActionContext () | |
QgsAttributeDialog * | attributeDialog () const |
Returns the attribute dialog associated with the action's execution. | |
QgsMessageBar * | messageBar () const |
Returns the message bar associated with the action's execution. | |
void | setAttributeDialog (QgsAttributeDialog *dialog) |
Sets the attribute dialog associated with the action's execution. | |
void | setMessageBar (QgsMessageBar *bar) |
Sets the message bar associated with the action's execution. | |
Encapsulates the context in which a QgsMapLayerAction action is executed.
Definition at line 33 of file qgsmaplayeractioncontext.h.
|
default |
QgsAttributeDialog * QgsMapLayerActionContext::attributeDialog | ( | ) | const |
Returns the attribute dialog associated with the action's execution.
May be nullptr
if the action is not being executed from an attribute dialog.
Definition at line 23 of file qgsmaplayeractioncontext.cpp.
QgsMessageBar * QgsMapLayerActionContext::messageBar | ( | ) | const |
Returns the message bar associated with the action's execution.
May be nullptr
.
Definition at line 33 of file qgsmaplayeractioncontext.cpp.
void QgsMapLayerActionContext::setAttributeDialog | ( | QgsAttributeDialog * | dialog | ) |
Sets the attribute dialog associated with the action's execution.
Definition at line 28 of file qgsmaplayeractioncontext.cpp.
void QgsMapLayerActionContext::setMessageBar | ( | QgsMessageBar * | bar | ) |
Sets the message bar associated with the action's execution.
Definition at line 38 of file qgsmaplayeractioncontext.cpp.