QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
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. More... | |
QgsMessageBar * | messageBar () const |
Returns the message bar associated with the action's execution. More... | |
void | setAttributeDialog (QgsAttributeDialog *dialog) |
Sets the attribute dialog associated with the action's execution. More... | |
void | setMessageBar (QgsMessageBar *bar) |
Sets the message bar associated with the action's execution. More... | |
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.