1 #line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.10-windows/ufe/include/undoableCommand.h" 2 #ifndef _undoableCommand 3 #define _undoableCommand 18 #include <initializer_list> 39 typedef std::shared_ptr<UndoableCommand>
Ptr;
51 virtual void execute();
53 virtual void undo() = 0;
54 virtual void redo() = 0;
80 static std::shared_ptr<CompositeUndoableCommand> create(
81 std::initializer_list<Ptr> undoableCommands
100 void redo()
override;
103 void append(
const Ptr& cmd);
106 const CmdList& cmdsList()
const;
124 typedef std::shared_ptr<InsertChildCommand>
Ptr;
148 typedef std::shared_ptr<SceneItemResultUndoableCommand>
Ptr;
170 typedef std::shared_ptr<ConnectionResultUndoableCommand>
Ptr;
179 virtual std::shared_ptr<Connection> connection()
const = 0;
195 typedef std::shared_ptr<SelectionUndoableCommand>
Ptr;
std::shared_ptr< UndoableCommand > Ptr
std::string string(const Path &path)
std::shared_ptr< SelectionUndoableCommand > Ptr
Definition of macros for symbol visibility.
Command that modifies the data model and produces either a new or modified Connection.
Composite undoable command.
Identify an object or 3D path in the scene.
Abstract base class for undoable commands.
virtual std::string commandString() const
Get a user friendly string representation of the command.
std::shared_ptr< ConnectionResultUndoableCommand > Ptr
std::shared_ptr< SceneItem > Ptr
Command that handles a selection.
Command to change the parent of a scene item.
Command that modifies the data model and produces either a new or modified SceneItem.
std::shared_ptr< SceneItemResultUndoableCommand > Ptr
std::shared_ptr< InsertChildCommand > Ptr