![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
CommandStack - Manages undo/redo command history Maintains two stacks for undo and redo operations. More...
#include <BPCommandSystem.h>
Public Member Functions | |
| CommandStack () | |
| ~CommandStack () | |
| void | ExecuteCommand (std::unique_ptr< EditorCommand > cmd) |
| void | Undo () |
| void | Redo () |
| bool | CanUndo () const |
| bool | CanRedo () const |
| const EditorCommand * | GetLastCommand () const |
| std::string | GetLastCommandDescription () const |
| std::string | GetNextRedoDescription () const |
| std::vector< std::string > | GetUndoStackDescriptions () const |
| std::vector< std::string > | GetRedoStackDescriptions () const |
| void | Clear () |
| size_t | GetUndoStackSize () const |
| size_t | GetRedoStackSize () const |
Private Attributes | |
| std::vector< std::unique_ptr< EditorCommand > > | m_UndoStack |
| std::vector< std::unique_ptr< EditorCommand > > | m_RedoStack |
| size_t | m_MaxStackSize |
CommandStack - Manages undo/redo command history Maintains two stacks for undo and redo operations.
Definition at line 47 of file BPCommandSystem.h.
| Olympe::Blueprint::CommandStack::CommandStack | ( | ) |
Definition at line 17 of file BPCommandSystem.cpp.
| Olympe::Blueprint::CommandStack::~CommandStack | ( | ) |
Definition at line 22 of file BPCommandSystem.cpp.
References Clear().
Here is the call graph for this function:
|
inline |
Definition at line 64 of file BPCommandSystem.h.
References m_RedoStack.
Referenced by Olympe::BlueprintEditor::CanRedo().
Here is the caller graph for this function:
|
inline |
Definition at line 63 of file BPCommandSystem.h.
References m_UndoStack.
Referenced by Olympe::BlueprintEditor::CanUndo().
Here is the caller graph for this function:| void Olympe::Blueprint::CommandStack::Clear | ( | ) |
Definition at line 139 of file BPCommandSystem.cpp.
References m_RedoStack, and m_UndoStack.
Referenced by ~CommandStack().
Here is the caller graph for this function:| void Olympe::Blueprint::CommandStack::ExecuteCommand | ( | std::unique_ptr< EditorCommand > | cmd | ) |
Definition at line 27 of file BPCommandSystem.cpp.
References GetComponentTypeID_Static(), m_MaxStackSize, m_RedoStack, and m_UndoStack.
Referenced by Olympe::NodeGraphShared::BlueprintAdapter::ConnectNodes(), Olympe::NodeGraphShared::BlueprintAdapter::CreateNode(), Olympe::NodeGraphShared::BlueprintAdapter::DeleteNode(), Olympe::NodeGraphShared::BlueprintAdapter::DisconnectNodes(), Olympe::NodeGraphShared::BlueprintAdapter::DuplicateNode(), Olympe::NodeGraphPanel::HandleKeyboardShortcuts(), Olympe::NodeGraphShared::BlueprintAdapter::MoveNode(), and Olympe::NodeGraphPanel::RenderGraph().
Here is the call graph for this function:
Here is the caller graph for this function:| const EditorCommand * Olympe::Blueprint::CommandStack::GetLastCommand | ( | ) | const |
Definition at line 92 of file BPCommandSystem.cpp.
References m_UndoStack.
| std::string Olympe::Blueprint::CommandStack::GetLastCommandDescription | ( | ) | const |
Definition at line 101 of file BPCommandSystem.cpp.
References Olympe::Blueprint::EditorCommand::GetDescription(), and m_UndoStack.
Referenced by Olympe::BlueprintEditor::GetLastCommandDescription().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string Olympe::Blueprint::CommandStack::GetNextRedoDescription | ( | ) | const |
Definition at line 110 of file BPCommandSystem.cpp.
References m_RedoStack.
Referenced by Olympe::BlueprintEditor::GetNextRedoDescription().
Here is the caller graph for this function:| std::vector< std::string > Olympe::Blueprint::CommandStack::GetRedoStackDescriptions | ( | ) | const |
Definition at line 129 of file BPCommandSystem.cpp.
References GetComponentTypeID_Static(), and m_RedoStack.
Here is the call graph for this function:
|
inline |
Definition at line 80 of file BPCommandSystem.h.
References m_RedoStack.
| std::vector< std::string > Olympe::Blueprint::CommandStack::GetUndoStackDescriptions | ( | ) | const |
Definition at line 119 of file BPCommandSystem.cpp.
References GetComponentTypeID_Static(), and m_UndoStack.
Here is the call graph for this function:
|
inline |
Definition at line 79 of file BPCommandSystem.h.
References m_UndoStack.
| void Olympe::Blueprint::CommandStack::Redo | ( | ) |
Definition at line 72 of file BPCommandSystem.cpp.
References GetComponentTypeID_Static(), m_RedoStack, and m_UndoStack.
Referenced by Olympe::BlueprintEditor::Redo().
Here is the call graph for this function:
Here is the caller graph for this function:| void Olympe::Blueprint::CommandStack::Undo | ( | ) |
Definition at line 52 of file BPCommandSystem.cpp.
References GetComponentTypeID_Static(), m_RedoStack, and m_UndoStack.
Referenced by Olympe::BlueprintEditor::Undo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 85 of file BPCommandSystem.h.
Referenced by ExecuteCommand().
|
private |
Definition at line 84 of file BPCommandSystem.h.
Referenced by CanRedo(), Clear(), ExecuteCommand(), GetNextRedoDescription(), GetRedoStackDescriptions(), GetRedoStackSize(), Redo(), and Undo().
|
private |
Definition at line 83 of file BPCommandSystem.h.
Referenced by CanUndo(), Clear(), ExecuteCommand(), GetLastCommand(), GetLastCommandDescription(), GetUndoStackDescriptions(), GetUndoStackSize(), Redo(), and Undo().