The Action JavaScript global object. Trigger action associated to menu or tool bar items. More...
Public Slots | |
void | perform (String &slot) |
Perform the requested action (slot - menu item, toolbar item,...) More... | |
void | perform (String &slot, String &responder) |
Perform the requested action (slot - menu item, toolbar item,...) More... | |
void | perform (String &slot, String &responder, QVariant parameters) |
Execute an action using the action manager on the given responder with parameters. More... | |
void | performForEach (String &slot, String &responder) |
Execute an action using the action manager on all responder instances. More... | |
QVariant | validate (String &slot) |
Validate the requested action (slot - menu item, toolbar item,...) More... | |
QVariant | validate (String &slot, String &responder) |
Validate the requested action (slot - menu item, toolbar item,...) More... | |
StringList | getResponderList () |
Retrieve the list of responder names. More... | |
StringList | getActionList (String &responder) |
Retrieve the list of actions for a given responder. More... | |
The Action JavaScript global object. Trigger action associated to menu or tool bar items.
Call either global actions or actions associated to a specific responder.
|
slot |
Retrieve the list of actions for a given responder.
responder | responder identity to investigate. |
Example usage:
|
slot |
Retrieve the list of responder names.
Example usage:
|
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.
slot | The action function name (ex: onMyAction() ). |
|
slot |
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 ). |
|
slot |
Execute an action using the action manager on the given responder with parameters.
slot | action to execute. See Action.getActionList() for action list. |
responder | command target. See Action.getResponderList() for responder list. |
parameters | action parameter(s). Use an array [] to provide multiple action parameters. |
Example usage:
|
slot |
Execute an action using the action manager on all responder instances.
slot | action to execute. See Action.getActionList() for action list. |
responder | command target. See Action.getResponderList() for responder list. |
Example usage:
|
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() ). |
|
slot |
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 ). |