![]() |
The Action global object.
Provided from the Application (OMH::Harmony::actions)
The application's action interface is used to perform underlying actions within the GUI in the application. Generally, actions are only available internally within the GUI. This interface can also be used to list available actions that can be performed.
In the event that a scripted solution is not available through the DOM, an action may be available. It is worth noting that actions can require user input and subsequent application event callbacks, some of which are not supported in a scripted environment.
Print Available Actions
Run an Action from a Responder
Public Member Functions | |
QString & | perform (const QString &slot) |
Perform the requested action (slot - menu item, toolbar item,...) More... | |
QString & | perform (const QString &slot, const QString &responder) |
Perform the requested action (slot - menu item, toolbar item,...) More... | |
QString & | perform (const QString &slot, const QString &responder, QVariant parameters) |
Execute an action using the action manager on the given responder with parameters. More... | |
QString & | performForEach (const QString &slot, const QString &responder) |
Execute an action using the action manager on all responder instances. More... | |
QVariant | validate (const QString &slot) |
Validate the requested action (slot - menu item, toolbar item,...) More... | |
QVariant | validate (const QString &slot, const QString &responder) |
Validate the requested action (slot - menu item, toolbar item,...) More... | |
QStringList | actions (const QString &responder) |
Retrieve the list of actions for a given responder. More... | |
Public Attributes | |
QStringList | responders |
Retrieve the list of responder names. More... | |
QStringList OMC::Actions::actions | ( | const QString & | responder | ) |
Retrieve the list of actions for a given responder.
responder | responder identity to investigate. |
QString& OMC::Actions::perform | ( | const QString & | slot | ) |
Perform the requested action (slot - menu item, toolbar item,...)
Perform the requested action for the main application responder. If the main responder doesn't own the requested action, try to use the current view with focus as the responder.
QString& OMC::Actions::perform | ( | const QString & | slot, |
const QString & | responder | ||
) |
Perform the requested action (slot - menu item, toolbar item,...)
Perform the requested action for a specific responder.
slot | The action function name (ex: onMyAction() ). |
responder | The responder to the function name (ex: drawingView ). |
QString& OMC::Actions::perform | ( | const QString & | slot, |
const QString & | responder, | ||
QVariant | parameters | ||
) |
Execute an action using the action manager on the given responder with parameters.
slot | action to execute. See Actions.getActionList() for action list. |
responder | command target. See ActionsgetResponderList() for responder list. |
parameters | action parameter(s). Use an array [] to provide multiple action parameters. |
Example usage:
QString& OMC::Actions::performForEach | ( | const QString & | slot, |
const QString & | responder | ||
) |
Execute an action using the action manager on all responder instances.
slot | action to execute. See Actions.getActionList() for action list. |
responder | command target. See Actions.getResponderList() for responder list. |
QVariant OMC::Actions::validate | ( | const QString & | slot | ) |
Validate the requested action (slot - menu item, toolbar item,...)
Validate the requested action for the main application responder. If the main responder doesn't own the requested action, try to use the current view with focus as the responder.
slot | The action function name(ex : onMyAction() ). |
QVariant OMC::Actions::validate | ( | const QString & | slot, |
const QString & | responder | ||
) |
Validate the requested action (slot - menu item, toolbar item,...)
Validate the requested action for a specific responder.
slot | The action function name (ex: onMyAction() ). |
responder | The responder to the function name (ex: drawingView ). |
|
read |
Retrieve the list of responder names.
Retrieve the list of responder names.