25 #ifndef WACTIONHANDLER_H 
   26 #define WACTIONHANDLER_H 
   31 #include "WFiberAction.h" 
   43     typedef std::shared_ptr< WActionHandler > 
SPtr;
 
   75     typedef std::shared_ptr< std::vector< WFiberAction::SPtr > > 
ActionStack;
 
Handles undo and redo 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.
 
std::shared_ptr< WActionHandler > SPtr
A shared_ptr to this class.
 
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.