|
QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
This class tracks map layer actions. More...
#include <qgsmaplayeractionregistry.h>

Signals | |
| void | changed () |
| Triggered when an action is added or removed from the registry. More... | |
Public Member Functions | |
| QgsMapLayerActionRegistry (QObject *parent=nullptr) | |
| Constructor for QgsMapLayerActionRegistry. More... | |
| void | addMapLayerAction (QgsMapLayerAction *action) |
| Adds a map layer action to the registry. More... | |
| QgsMapLayerAction * | defaultActionForLayer (QgsMapLayer *layer) |
| Returns the default action for a layer. More... | |
| QList< QgsMapLayerAction * > | mapLayerActions (QgsMapLayer *layer, Qgis::MapLayerActionTargets targets=Qgis::MapLayerActionTarget::AllActions, const QgsMapLayerActionContext &context=QgsMapLayerActionContext()) |
| Returns the map layer actions which can run on the specified layer. More... | |
| bool | removeMapLayerAction (QgsMapLayerAction *action) |
| Removes a map layer action from the registry. More... | |
| void | setDefaultActionForLayer (QgsMapLayer *layer, QgsMapLayerAction *action) |
| Sets the default action for a layer. More... | |
Protected Attributes | |
| QList< QgsMapLayerAction * > | mMapLayerActionList |
This class tracks map layer actions.
QgsMapLayerActionRegistry is not usually directly created, but rather accessed through QgsGui::mapLayerActionRegistry().
Definition at line 40 of file qgsmaplayeractionregistry.h.
| QgsMapLayerActionRegistry::QgsMapLayerActionRegistry | ( | QObject * | parent = nullptr | ) |
Constructor for QgsMapLayerActionRegistry.
QgsMapLayerActionRegistry is not usually directly created, but rather accessed through QgsGui::mapLayerActionRegistry().
Definition at line 19 of file qgsmaplayeractionregistry.cpp.
| void QgsMapLayerActionRegistry::addMapLayerAction | ( | QgsMapLayerAction * | action | ) |
Adds a map layer action to the registry.
Definition at line 24 of file qgsmaplayeractionregistry.cpp.
|
signal |
Triggered when an action is added or removed from the registry.
| QgsMapLayerAction * QgsMapLayerActionRegistry::defaultActionForLayer | ( | QgsMapLayer * | layer | ) |
Returns the default action for a layer.
Definition at line 79 of file qgsmaplayeractionregistry.cpp.
| QList< QgsMapLayerAction * > QgsMapLayerActionRegistry::mapLayerActions | ( | QgsMapLayer * | layer, |
| Qgis::MapLayerActionTargets | targets = Qgis::MapLayerActionTarget::AllActions, |
||
| const QgsMapLayerActionContext & | context = QgsMapLayerActionContext() |
||
| ) |
Returns the map layer actions which can run on the specified layer.
The context argument was added in QGIS 3.30.
Definition at line 30 of file qgsmaplayeractionregistry.cpp.
| bool QgsMapLayerActionRegistry::removeMapLayerAction | ( | QgsMapLayerAction * | action | ) |
Removes a map layer action from the registry.
Definition at line 52 of file qgsmaplayeractionregistry.cpp.
| void QgsMapLayerActionRegistry::setDefaultActionForLayer | ( | QgsMapLayer * | layer, |
| QgsMapLayerAction * | action | ||
| ) |
Sets the default action for a layer.
Definition at line 74 of file qgsmaplayeractionregistry.cpp.
|
protected |
Definition at line 74 of file qgsmaplayeractionregistry.h.