ActionManager exports the application actions to the external components. See Platform Integration and Action Contexts for more details.
ActionManager::ActionManager |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
QSet< Action * > ActionManager::actions |
( |
| ) |
const |
- Returns
- The set of actions the manager is currently aware of.
If an action is part of multiple contexts it's still only included once in the set.
void unity::action::ActionManager::actionsChanged |
( |
| ) |
|
|
signal |
An action was either added or removed from the global context or any of the local contexts the manager is currently tracking.
- Parameters
-
context | context to be added |
Adds a local context.
Calling this function multiple times with the same context does not have any side effects; the context gets added only once.
ActionManager monitors if the context is deleted and does the appropriate cleanup when necessary, so it is not mandatory to call removeLocalContext() before the context is destroyed.
- Note
- If context::active is true when added, the context is made the current active one.
-
context must not be 0.
- Returns
- The set of local contexts the manager is aware of.
void unity::action::ActionManager::localContextsChanged |
( |
| ) |
|
|
signal |
A local context was either added or removed.
- Parameters
-
context | context to be removed |
Removes a local context.
Calling this function multiple times with the same context does not have any side effects; the context gets removed only if it was previously added with addLocalContext().
- Note
- if the removed context is the current active one after the removal there is no active local context.
-
context must not be 0
The globalContext of the Application.
- Note
- Setting the ActionContext::active on the global context has no effect;
- Accessors:
- globalContext()
The documentation for this class was generated from the following files: