1 #ifndef SIMPT_EDITOR_UNDO_STACK_H_INCLUDED
2 #define SIMPT_EDITOR_UNDO_STACK_H_INCLUDED
24 #include <boost/property_tree/ptree.hpp>
49 void Initialize(
const boost::property_tree::ptree& tissue);
56 void Push(
const boost::property_tree::ptree& tissue);
73 const boost::property_tree::ptree&
Undo();
80 const boost::property_tree::ptree&
Redo();
83 std::list<boost::property_tree::ptree> m_stack;
84 std::list<boost::property_tree::ptree>::iterator m_current;
87 const unsigned int m_max_tissues = 25;
92 #endif // end_of_include_guard
const boost::property_tree::ptree & Redo()
Redo an action.
Namespace for SimPT tissue editor package.
void Push(const boost::property_tree::ptree &tissue)
Push a tissue to the stack.
void Initialize(const boost::property_tree::ptree &tissue)
Initialize the undo stack with a given tissue.
const boost::property_tree::ptree & Undo()
Undo an action.
Undo Stack for actions performed on a tissue.
virtual ~UndoStack()
Destructor.
bool CanUndo() const
True if the current action can be undone.
bool CanRedo() const
True if the current action can be redone.
Interface for LeafControlLogic.