Loading...
Searching...
No Matches
CommandStackFacade.hpp
1#pragma once
2#include <score_lib_base_export.h>
3
4namespace score
5{
6class Command;
7class CommandStack;
8class SelectionStack;
9struct DocumentContext;
10
20class SCORE_LIB_BASE_EXPORT CommandStackFacade
21{
22private:
23 score::CommandStack& m_stack;
24
25public:
27
28 const score::DocumentContext& context() const;
29 score::SelectionStack& selectionStack() const;
30
31 void push(score::Command* cmd) const;
32 void redoAndPush(score::Command* cmd) const;
33
34 void disableActions() const;
35 void enableActions() const;
36};
37}
The Command class.
Definition Command.hpp:34
A small abstraction layer over the score::CommandStack.
Definition CommandStackFacade.hpp:21
Definition CommandStack.hpp:27
The SelectionStack class.
Definition SelectionStack.hpp:24
Base toolkit upon which the software is built.
Definition Application.cpp:83
Definition DocumentContext.hpp:18