|
| QgsAction ()=default |
| Default constructor. More...
|
|
| QgsAction (ActionType type, const QString &description, const QString &action, const QString &icon, bool capture, const QString &shortTitle=QString(), const QSet< QString > &actionScopes=QSet< QString >(), const QString ¬ificationMessage=QString(), bool enabledOnlyWhenEditable=false) |
| Create a new QgsAction. More...
|
|
| QgsAction (ActionType type, const QString &description, const QString &command, bool capture=false, bool enabledOnlyWhenEditable=false) |
| Create a new QgsAction. More...
|
|
| QgsAction (const QUuid &id, ActionType type, const QString &description, const QString &action, const QString &icon, bool capture, const QString &shortTitle=QString(), const QSet< QString > &actionScopes=QSet< QString >(), const QString ¬ificationMessage=QString(), bool enabledOnlyWhenEditable=false) |
| Create a new QgsAction. More...
|
|
QSet< QString > | actionScopes () const |
| The action scopes define where an action will be available. More...
|
|
bool | capture () const |
| Whether to capture output for display when this action is run. More...
|
|
QString | command () const |
| Returns the command that is executed by this action. More...
|
|
QgsExpressionContextScope | expressionContextScope () const |
| Returns an expression context scope used for running the action. More...
|
|
QString | html () const |
| Returns an HTML table with the basic information about this action. More...
|
|
QIcon | icon () const |
| The icon. More...
|
|
QString | iconPath () const |
| The path to the icon. More...
|
|
QUuid | id () const |
| Returns a unique id for this action. More...
|
|
bool | isEnabledOnlyWhenEditable () const |
| Returns whether only enabled in editable mode. More...
|
|
bool | isValid () const |
| Returns true if this action was a default constructed one. More...
|
|
QString | name () const |
| The name of the action. This may be a longer description. More...
|
|
QString | notificationMessage () const |
| Returns the notification message that triggers the action. More...
|
|
void | readXml (const QDomNode &actionNode) |
| Reads an XML definition from actionNode into this object. More...
|
|
void | run (const QgsExpressionContext &expressionContext) const |
| Run this action. More...
|
|
void | run (QgsVectorLayer *layer, const QgsFeature &feature, const QgsExpressionContext &expressionContext) const |
| Run this action. More...
|
|
bool | runable () const |
| Checks if the action is runable on the current platform. More...
|
|
void | setActionScopes (const QSet< QString > &actionScopes) |
| The action scopes define where an action will be available. More...
|
|
void | setCommand (const QString &newCommand) |
| Sets the action command. More...
|
|
void | setEnabledOnlyWhenEditable (bool enable) |
| Set whether the action is only enabled in editable mode. More...
|
|
void | setExpressionContextScope (const QgsExpressionContextScope &scope) |
| Sets an expression context scope to use for running the action. More...
|
|
QString | shortTitle () const |
| The short title is used to label user interface elements like buttons. More...
|
|
ActionType | type () const |
| The action type. More...
|
|
void | writeXml (QDomNode &actionsNode) const |
| Appends an XML definition for this action as a new child node to actionsNode. More...
|
|