VPTissue Reference Manual
SimPT_Editor::UndoStack Class Reference

Undo Stack for actions performed on a tissue. More...

#include <UndoStack.h>

Collaboration diagram for SimPT_Editor::UndoStack:
Collaboration graph

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...
 

Detailed Description

Undo Stack for actions performed on a tissue.

Definition at line 31 of file UndoStack.h.

Member Function Documentation

void SimPT_Editor::UndoStack::Initialize ( const boost::property_tree::ptree &  tissue)

Initialize the undo stack with a given tissue.

Parameters
tissueThe given tissue.

Definition at line 28 of file UndoStack.cpp.

Referenced by SimPT_Editor::TissueEditor::OpenPath().

Here is the caller graph for this function:

void SimPT_Editor::UndoStack::Push ( const boost::property_tree::ptree &  tissue)

Push a tissue to the stack.

Parameters
tissueThe given tissue.

Definition at line 35 of file UndoStack.cpp.

References SimPT_Sim::Container::next(), and SimPT_Sim::Container::prev().

Here is the call graph for this function:

const boost::property_tree::ptree & SimPT_Editor::UndoStack::Redo ( )

Redo an action.

Returns
The next tissue.

Definition at line 67 of file UndoStack.cpp.

References CanRedo().

Here is the call graph for this function:

const boost::property_tree::ptree & SimPT_Editor::UndoStack::Undo ( )

Undo an action.

Returns
The previous tissue.

Definition at line 58 of file UndoStack.cpp.

References CanUndo().

Here is the call graph for this function:


The documentation for this class was generated from the following files: