|
QGIS API Documentation
2.8.2-Wien
|
This class tracks map layer actions. More...
#include <qgsmaplayeractionregistry.h>

Signals | |
| void | changed () |
| Triggered when an action is added or removed from the registry. | |
Public Member Functions | |
| ~QgsMapLayerActionRegistry () | |
| void | addMapLayerAction (QgsMapLayerAction *action) |
| Adds a map layer action to the registry. | |
| QgsMapLayerAction * | defaultActionForLayer (QgsMapLayer *layer) |
| Returns the default action for a layer. | |
| QList< QgsMapLayerAction * > | mapLayerActions (QgsMapLayer *layer, QgsMapLayerAction::Targets targets=QgsMapLayerAction::AllActions) |
| Returns the map layer actions which can run on the specified layer. | |
| bool | removeMapLayerAction (QgsMapLayerAction *action) |
| Removes a map layer action from the registry. | |
| void | setDefaultActionForLayer (QgsMapLayer *layer, QgsMapLayerAction *action) |
| Sets the default action for a layer. | |
Static Public Member Functions | |
| static QgsMapLayerActionRegistry * | instance () |
| Returns the instance pointer, creating the object on the first call. | |
Protected Member Functions | |
| QgsMapLayerActionRegistry (QObject *parent=0) | |
| protected constructor | |
Protected Attributes | |
| QList< QgsMapLayerAction * > | mMapLayerActionList |
This class tracks map layer actions.
Definition at line 106 of file qgsmaplayeractionregistry.h.
| QgsMapLayerActionRegistry::~QgsMapLayerActionRegistry | ( | ) |
Definition at line 117 of file qgsmaplayeractionregistry.cpp.
|
protected |
protected constructor
Definition at line 112 of file qgsmaplayeractionregistry.cpp.
| void QgsMapLayerActionRegistry::addMapLayerAction | ( | QgsMapLayerAction * | action | ) |
Adds a map layer action to the registry.
Definition at line 122 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 170 of file qgsmaplayeractionregistry.cpp.
|
static |
Returns the instance pointer, creating the object on the first call.
Definition at line 99 of file qgsmaplayeractionregistry.cpp.
| QList< QgsMapLayerAction * > QgsMapLayerActionRegistry::mapLayerActions | ( | QgsMapLayer * | layer, |
| QgsMapLayerAction::Targets | targets = QgsMapLayerAction::AllActions |
||
| ) |
Returns the map layer actions which can run on the specified layer.
Definition at line 128 of file qgsmaplayeractionregistry.cpp.
| bool QgsMapLayerActionRegistry::removeMapLayerAction | ( | QgsMapLayerAction * | action | ) |
Removes a map layer action from the registry.
Definition at line 143 of file qgsmaplayeractionregistry.cpp.
| void QgsMapLayerActionRegistry::setDefaultActionForLayer | ( | QgsMapLayer * | layer, |
| QgsMapLayerAction * | action | ||
| ) |
Sets the default action for a layer.
Definition at line 165 of file qgsmaplayeractionregistry.cpp.
|
protected |
Definition at line 134 of file qgsmaplayeractionregistry.h.
1.8.1.2