|
QGIS API Documentation
2.6.0-Brighton
|
An action which can run on map layers. More...
#include <qgsmaplayeractionregistry.h>
Public Types | |
| enum | Target { Layer = 1, SingleFeature = 2, MultipleFeatures = 4, AllActions = Layer | SingleFeature | MultipleFeatures } |
Signals | |
| void | triggeredForFeatures (QgsMapLayer *layer, const QList< QgsFeature > featureList) |
| Triggered when action has been run for a specific list of features. | |
| void | triggeredForFeature (QgsMapLayer *layer, const QgsFeature &feature) |
| Triggered when action has been run for a specific feature. | |
| void | triggeredForLayer (QgsMapLayer *layer) |
| Triggered when action has been run for a specific layer. | |
Public Member Functions | |
| QgsMapLayerAction (QString name, QObject *parent, Targets targets=AllActions) | |
| Creates a map layer action which can run on any layer. | |
| QgsMapLayerAction (QString name, QObject *parent, QgsMapLayer *layer, Targets targets=AllActions) | |
| Creates a map layer action which can run only on a specific layer. | |
| QgsMapLayerAction (QString name, QObject *parent, QgsMapLayer::LayerType layerType, Targets targets=AllActions) | |
| Creates a map layer action which can run on a specific type of layer. | |
| ~QgsMapLayerAction () | |
| bool | canRunUsingLayer (QgsMapLayer *layer) const |
| True if action can run using the specified layer. | |
| void | triggerForFeatures (QgsMapLayer *layer, const QList< QgsFeature > featureList) |
| Triggers the action with the specified layer and list of feature. | |
| void | triggerForFeature (QgsMapLayer *layer, const QgsFeature *feature) |
| Triggers the action with the specified layer and feature. | |
| void | triggerForLayer (QgsMapLayer *layer) |
| Triggers the action with the specified layer. | |
| void | setTargets (Targets targets) |
| Define the targets of the action. | |
| const Targets & | targets () const |
| Return availibity of action. | |
An action which can run on map layers.
| QgsMapLayerAction::QgsMapLayerAction | ( | QString | name, |
| QObject * | parent, | ||
| Targets | targets = AllActions |
||
| ) |
Creates a map layer action which can run on any layer.
| QgsMapLayerAction::QgsMapLayerAction | ( | QString | name, |
| QObject * | parent, | ||
| QgsMapLayer * | layer, | ||
| Targets | targets = AllActions |
||
| ) |
Creates a map layer action which can run only on a specific layer.
| QgsMapLayerAction::QgsMapLayerAction | ( | QString | name, |
| QObject * | parent, | ||
| QgsMapLayer::LayerType | layerType, | ||
| Targets | targets = AllActions |
||
| ) |
Creates a map layer action which can run on a specific type of layer.
| QgsMapLayerAction::~QgsMapLayerAction | ( | ) |
| bool QgsMapLayerAction::canRunUsingLayer | ( | QgsMapLayer * | layer | ) | const |
True if action can run using the specified layer.
|
inline |
Define the targets of the action.
|
inline |
Return availibity of action.
|
signal |
Triggered when action has been run for a specific feature.
|
signal |
Triggered when action has been run for a specific list of features.
|
signal |
Triggered when action has been run for a specific layer.
| void QgsMapLayerAction::triggerForFeature | ( | QgsMapLayer * | layer, |
| const QgsFeature * | feature | ||
| ) |
Triggers the action with the specified layer and feature.
| void QgsMapLayerAction::triggerForFeatures | ( | QgsMapLayer * | layer, |
| const QList< QgsFeature > | featureList | ||
| ) |
Triggers the action with the specified layer and list of feature.
| void QgsMapLayerAction::triggerForLayer | ( | QgsMapLayer * | layer | ) |
Triggers the action with the specified layer.
1.8.1.2