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