27 #include "WActionHandler.h"
44 m_undo->push_back( action );
60 m_redo->push_back( action );
74 m_undo->push_back( action );
~WActionHandler()
Clears the vectors for destruction.
void pushAction(WFiberAction::SPtr action)
Pushes an action to the undo vector and clears the redo vector.
WActionHandler()
Creates the undo and redo vectors.
void redo()
Redos the last action and pushes it to the undo vector.
ActionStack m_redo
The redo vector.
void undo()
Undos the last action and pushes it to the redo vector.
std::shared_ptr< std::vector< WFiberAction::SPtr > > ActionStack
A shared_ptr to a vector of an action.
ActionStack m_undo
The undo vector.
std::shared_ptr< WFiberAction > SPtr
A shared_ptr to this class.