|
QGIS API Documentation 4.3.0-Master (6313fb5bce0)
|
A custom action to show in the context menu for the Processing toolbox. More...
#include <qgsprocessingprovideractions.h>
Public Member Functions | |
| QgsProcessingToolboxContextAction (const QString &name=QString()) | |
| Constructor for QgsProcessingToolboxContextAction. | |
| virtual | ~QgsProcessingToolboxContextAction () |
| QString | actionName () const |
| Returns the action's (translated, user visible) name. | |
| virtual Q_DECL_DEPRECATED void | execute () |
| Executes the action. | |
| Q_DECL_DEPRECATED QgsProcessingAlgorithm * | getItemData () |
| Returns the associated algorithm the action will be shown for. | |
| Q_DECL_DEPRECATED QgsDockWidget * | getToolbox () |
| Returns the parent toolbox the action will be shown in. | |
| virtual QIcon | icon () const |
| Returns the icon to use for the action. | |
| virtual bool | isCompatibleWithAlgorithm (const QString &providerId, const QString &algorithmName) |
Returns true if the action is compatible with the specified provider and algorithm. | |
| virtual Q_DECL_DEPRECATED bool | isEnabled () const |
Returns true if the action is enabled. | |
| bool | isSeparator () const |
Returns true if the action is a separator action. | |
| Q_DECL_DEPRECATED void | setActionName (const QString &name) |
| Sets the action's (translated, user visible) name. | |
| Q_DECL_DEPRECATED void | setData (QgsProcessingAlgorithm *data, QgsDockWidget *toolbox) |
| Sets the associated algorithm and toolbox the action will be shown for. | |
| void | setIsSeparator (bool isSeparator) |
| Sets whether the action is a separator action. | |
| Q_DECL_DEPRECATED void | setItemData (QgsProcessingAlgorithm *data) |
| Sets the associated algorithm the action will be shown for. | |
| Q_DECL_DEPRECATED void | setToolbox (QgsDockWidget *toolbox) |
| Sets the parent toolbox the action will be shown in. | |
| virtual void | trigger (const QgsProcessingActionContext &context) |
| Triggers the action. | |
A custom action to show in the context menu for the Processing toolbox.
Definition at line 189 of file qgsprocessingprovideractions.h.
| QgsProcessingToolboxContextAction::QgsProcessingToolboxContextAction | ( | const QString & | name = QString() | ) |
Constructor for QgsProcessingToolboxContextAction.
Definition at line 132 of file qgsprocessingprovideractions.cpp.
|
virtualdefault |
|
inline |
Returns the action's (translated, user visible) name.
Definition at line 203 of file qgsprocessingprovideractions.h.
|
virtual |
Executes the action.
Definition at line 181 of file qgsprocessingprovideractions.cpp.
| QgsProcessingAlgorithm * QgsProcessingToolboxContextAction::getItemData | ( | ) |
Returns the associated algorithm the action will be shown for.
Definition at line 165 of file qgsprocessingprovideractions.cpp.
| QgsDockWidget * QgsProcessingToolboxContextAction::getToolbox | ( | ) |
Returns the parent toolbox the action will be shown in.
Definition at line 155 of file qgsprocessingprovideractions.cpp.
|
virtual |
Returns the icon to use for the action.
Definition at line 138 of file qgsprocessingprovideractions.cpp.
|
virtual |
Returns true if the action is compatible with the specified provider and algorithm.
Definition at line 148 of file qgsprocessingprovideractions.cpp.
|
virtual |
Returns true if the action is enabled.
Definition at line 143 of file qgsprocessingprovideractions.cpp.
| bool QgsProcessingToolboxContextAction::isSeparator | ( | ) | const |
Returns true if the action is a separator action.
Definition at line 203 of file qgsprocessingprovideractions.cpp.
|
inline |
Sets the action's (translated, user visible) name.
Definition at line 209 of file qgsprocessingprovideractions.h.
| void QgsProcessingToolboxContextAction::setData | ( | QgsProcessingAlgorithm * | data, |
| QgsDockWidget * | toolbox ) |
Sets the associated algorithm and toolbox the action will be shown for.
Definition at line 175 of file qgsprocessingprovideractions.cpp.
| void QgsProcessingToolboxContextAction::setIsSeparator | ( | bool | isSeparator | ) |
Sets whether the action is a separator action.
Definition at line 208 of file qgsprocessingprovideractions.cpp.
| void QgsProcessingToolboxContextAction::setItemData | ( | QgsProcessingAlgorithm * | data | ) |
Sets the associated algorithm the action will be shown for.
Definition at line 170 of file qgsprocessingprovideractions.cpp.
| void QgsProcessingToolboxContextAction::setToolbox | ( | QgsDockWidget * | toolbox | ) |
Sets the parent toolbox the action will be shown in.
Definition at line 160 of file qgsprocessingprovideractions.cpp.
|
virtual |
Triggers the action.
Definition at line 191 of file qgsprocessingprovideractions.cpp.