|
A container class to store multiple Operations and undo/redo them. More...
#include <MemoryX/gui-plugins/SceneEditor/controller/UndoAction.h>
Public Member Functions | |
const std::shared_ptr< std::vector< OperationPtr > > | getOperations () const |
Returns all Operations saved in this class. More... | |
std::shared_ptr< std::vector< OperationPtr > > | redo () |
Returns all Operations needed to redo this Action. More... | |
std::shared_ptr< std::vector< OperationPtr > > | undo () |
Returns all Operations needed to undo this Action. More... | |
UndoAction (const std::shared_ptr< std::vector< OperationPtr > > &operations) | |
A Constructor. More... | |
A container class to store multiple Operations and undo/redo them.
Definition at line 42 of file UndoAction.h.
UndoAction | ( | const std::shared_ptr< std::vector< OperationPtr > > & | operations | ) |
A Constructor.
Creates a new UndoAction containing multiple Operations.
operations | The operations, the new instance should contain. |
Definition at line 31 of file UndoAction.cpp.
const std::shared_ptr< std::vector< controller::OperationPtr > > getOperations | ( | ) | const |
Returns all Operations saved in this class.
Definition at line 53 of file UndoAction.cpp.
std::shared_ptr< std::vector< controller::OperationPtr > > redo | ( | ) |
Returns all Operations needed to redo this Action.
Definition at line 36 of file UndoAction.cpp.
std::shared_ptr< std::vector< controller::OperationPtr > > undo | ( | ) |
Returns all Operations needed to undo this Action.
Definition at line 41 of file UndoAction.cpp.