16#ifndef QGSMAPLAYERACTION_H
17#define QGSMAPLAYERACTION_H
87 Q_DECL_DEPRECATED
virtual void triggerForFeatures(
QgsMapLayer *layer,
const QList<QgsFeature> &featureList )
SIP_DEPRECATED;
132 bool isEnabledOnlyWhenEditable()
const;
180 bool mSingleLayer =
false;
185 bool mSpecificLayerType =
false;
QFlags< MapLayerActionTarget > MapLayerActionTargets
Map layer action targets.
LayerType
Types of layers that can be added to a map.
QFlags< MapLayerActionFlag > MapLayerActionFlags
Map layer action flags.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Encapsulates the context in which a QgsMapLayerAction action is executed.
An action which can run on map layers The class can be used in two manners:
void triggeredForFeatureV2(QgsMapLayer *layer, const QgsFeature &feature, const QgsMapLayerActionContext &context)
Triggered when action has been run for a specific feature.
Q_DECL_DEPRECATED void triggeredForFeatures(QgsMapLayer *layer, const QList< QgsFeature > &featureList)
Triggered when action has been run for a specific list of features.
void triggeredForFeaturesV2(QgsMapLayer *layer, const QList< QgsFeature > &featureList, const QgsMapLayerActionContext &context)
Triggered when action has been run for a specific list of features.
Q_DECL_DEPRECATED void triggeredForFeature(QgsMapLayer *layer, const QgsFeature &feature)
Triggered when action has been run for a specific feature.
void setTargets(Qgis::MapLayerActionTargets targets)
Define the targets of the action.
Q_DECL_DEPRECATED void triggeredForLayer(QgsMapLayer *layer)
Triggered when action has been run for a specific layer.
Qgis::MapLayerActionTargets targets() const
Returns availibity of action.
void triggeredForLayerV2(QgsMapLayer *layer, const QgsMapLayerActionContext &context)
Triggered when action has been run for a specific layer.
Base class for all map layer types.