Loading...
Searching...
No Matches
score::ActionManager Class Reference

The ActionManager class. More...

Inheritance diagram for score::ActionManager:

Detailed Description

The ActionManager class.

Keeps track of the Actions registered in the software, and handles the action triggering mechanism for each condition.

Accessible through an score::ApplicationContext.

Public Member Functions

void insert (Action val)
 
void insert (std::vector< Action > vals)
 
auto & get ()
 
auto & get () const
 
template<typename T >
auto & action ()
 
template<typename T >
auto & action () const
 
void reset (Document *doc)
 
void onDocumentChange (std::shared_ptr< ActionCondition > cond)
 
void onFocusChange (std::shared_ptr< ActionCondition > cond)
 
void onSelectionChange (std::shared_ptr< ActionCondition > cond)
 
void onCustomChange (std::shared_ptr< ActionCondition > cond)
 
const auto & documentConditions () const
 
const auto & focusConditions () const
 
const auto & selectionConditions () const
 
const auto & customConditions () const
 
template<typename Condition_T >
requires (std::is_base_of_v<DocumentActionCondition, Condition_T>)
auto & condition () const
 
template<typename Condition_T >
requires (std::is_base_of_v<FocusActionCondition, Condition_T>)
auto & condition () const
 
template<typename Condition_T >
requires (std::is_base_of_v<SelectionActionCondition, Condition_T>)
auto & condition () const
 
template<typename Condition_T >
requires (std::is_base_of_v<CustomActionCondition, Condition_T>)
auto & condition () const
 
template<typename Condition_T >
requires ( !std::is_base_of_v<DocumentActionCondition, Condition_T> && !std::is_base_of_v<FocusActionCondition, Condition_T> && !std::is_base_of_v<SelectionActionCondition, Condition_T> && !std::is_base_of_v<CustomActionCondition, Condition_T> && std::is_base_of_v<ActionCondition, Condition_T>)
auto & condition () const
 

The documentation for this class was generated from the following files: