VPTissue Reference Manual
|
Undo Stack for actions performed on a tissue. More...
#include <UndoStack.h>
Public Member Functions | |
UndoStack () | |
Constructor. | |
virtual | ~UndoStack () |
Destructor. | |
bool | CanRedo () const |
True if the current action can be redone. | |
bool | CanUndo () const |
True if the current action can be undone. | |
void | Initialize (const boost::property_tree::ptree &tissue) |
Initialize the undo stack with a given tissue. More... | |
void | Push (const boost::property_tree::ptree &tissue) |
Push a tissue to the stack. More... | |
const boost::property_tree::ptree & | Redo () |
Redo an action. More... | |
const boost::property_tree::ptree & | Undo () |
Undo an action. More... | |
Undo Stack for actions performed on a tissue.
Definition at line 31 of file UndoStack.h.
void SimPT_Editor::UndoStack::Initialize | ( | const boost::property_tree::ptree & | tissue | ) |
Initialize the undo stack with a given tissue.
tissue | The given tissue. |
Definition at line 28 of file UndoStack.cpp.
Referenced by SimPT_Editor::TissueEditor::OpenPath().
void SimPT_Editor::UndoStack::Push | ( | const boost::property_tree::ptree & | tissue | ) |
Push a tissue to the stack.
tissue | The given tissue. |
Definition at line 35 of file UndoStack.cpp.
References SimPT_Sim::Container::next(), and SimPT_Sim::Container::prev().
const boost::property_tree::ptree & SimPT_Editor::UndoStack::Redo | ( | ) |
Redo an action.
Definition at line 67 of file UndoStack.cpp.
References CanRedo().
const boost::property_tree::ptree & SimPT_Editor::UndoStack::Undo | ( | ) |
Undo an action.
Definition at line 58 of file UndoStack.cpp.
References CanUndo().