13#include "../../Source/third_party/nlohmann/json.hpp"
97 float posX,
float posY,
const std::string& nodeName =
"");
100 void Undo()
override;
159 void Undo()
override;
177 void Undo()
override;
198 void Undo()
override;
218 void Undo()
override;
239 void Undo()
override;
ComponentTypeID GetComponentTypeID_Static()
CommandStack - Manages undo/redo command history Maintains two stacks for undo and redo operations.
std::string GetNextRedoDescription() const
size_t GetRedoStackSize() const
std::vector< std::unique_ptr< EditorCommand > > m_UndoStack
std::vector< std::string > GetRedoStackDescriptions() const
std::vector< std::unique_ptr< EditorCommand > > m_RedoStack
const EditorCommand * GetLastCommand() const
void ExecuteCommand(std::unique_ptr< EditorCommand > cmd)
std::string GetLastCommandDescription() const
std::vector< std::string > GetUndoStackDescriptions() const
size_t GetUndoStackSize() const
CreateNodeCommand - Command to create a new node in graph.
std::string GetDescription() const override
DeleteNodeCommand - Command to delete a node from graph.
void Undo() override
Undo the command.
void Execute() override
Execute the command.
std::string GetDescription() const override
Get a human-readable description of the command.
DuplicateNodeCommand - Command to duplicate a node.
std::string GetDescription() const override
EditNodeCommand - Command to edit node properties (name, type-specific fields)
std::string GetDescription() const override
EditorCommand - Base class for all undoable editor commands Implements command pattern for undo/redo ...
virtual ~EditorCommand()=default
virtual std::string GetDescription() const =0
LinkNodesCommand - Command to create a link between nodes.
std::string GetDescription() const override
MoveNodeCommand - Command to move a node's position.
std::string GetDescription() const override
Get a human-readable description of the command.
void Undo() override
Undo the command.
void Execute() override
Execute the command.
SetParameterCommand - Command to set a node parameter.
std::string GetDescription() const override
UnlinkNodesCommand - Command to remove a link between nodes.
std::string GetDescription() const override