24 #ifndef QGSACTIONMANAGER_H 25 #define QGSACTIONMANAGER_H 27 #include "qgis_core.h" 68 QUuid addAction(
QgsAction::ActionType type,
const QString &name,
const QString &command,
bool capture =
false );
77 QUuid addAction(
QgsAction::ActionType type,
const QString &name,
const QString &command,
const QString &icon,
bool capture =
false );
82 void addAction(
const QgsAction &action );
89 void removeAction( QUuid actionId );
121 QList<QgsAction> actions(
const QString &actionScope = QString() )
const;
127 bool writeXml( QDomNode &layer_node )
const;
130 bool readXml(
const QDomNode &layer_node );
145 void setDefaultAction(
const QString &actionScope, QUuid actionId );
153 QgsAction defaultAction(
const QString &actionScope );
156 QList<QgsAction> mActions;
158 static void ( *smPythonExecute )(
const QString & );
160 void runAction(
const QgsAction &action );
162 QMap<QString, QUuid> mDefaultActions;
164 bool mOnNotifyConnected =
false;
169 void onNotifyRunActions(
const QString &message );
QgsVectorLayer * layer() const
Returns the layer.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QgsActionManager(QgsVectorLayer *layer)
Constructor.
Utility class that encapsulates an action based on vector attributes.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Storage and management of actions associated with a layer.
Single scope for storing variables and functions for use within a QgsExpressionContext.
Represents a vector layer which manages a vector based data sets.