LLUndoBuffer Class Reference

#include <llundo.h>

Collaboration diagram for LLUndoBuffer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLUndoBuffer (LLUndoAction(*create_func()), S32 initial_count)
virtual ~LLUndoBuffer ()
LLUndoActiongetNextAction (BOOL setClusterBegin=TRUE)
BOOL undoAction ()
BOOL redoAction ()
BOOL canUndo ()
BOOL canRedo ()
void flushActions ()

Private Attributes

LLUndoAction ** mActions
S32 mNumActions
S32 mNextAction
S32 mLastAction
S32 mFirstAction
S32 mOperationID

Classes

class  LLUndoAction


Detailed Description

Definition at line 36 of file llundo.h.


Constructor & Destructor Documentation

LLUndoBuffer::LLUndoBuffer ( LLUndoAction(*  create_func  ) 

Definition at line 42 of file llundo.cpp.

References i, llendl, llerrs, mActions, mFirstAction, mLastAction, mNextAction, mNumActions, mOperationID, and S32.

LLUndoBuffer::~LLUndoBuffer (  )  [virtual]

Definition at line 67 of file llundo.cpp.

References i, mActions, mNumActions, and S32.


Member Function Documentation

LLUndoBuffer::LLUndoAction * LLUndoBuffer::getNextAction ( BOOL  setClusterBegin = TRUE  ) 

Definition at line 80 of file llundo.cpp.

References LLUndoBuffer::LLUndoAction::cleanup(), mActions, LLUndoBuffer::LLUndoAction::mClusterID, mFirstAction, mLastAction, mNextAction, mNumActions, and mOperationID.

Referenced by LLPanelEditWearable::addVisualParamToUndoBuffer().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLUndoBuffer::undoAction (  ) 

Definition at line 105 of file llundo.cpp.

References canUndo(), FALSE, mActions, mFirstAction, mNextAction, mNumActions, mOperationID, S32, TRUE, and LLUndoBuffer::LLUndoAction::undo().

Referenced by LLPanelEditWearable::undo().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLUndoBuffer::redoAction (  ) 

Definition at line 141 of file llundo.cpp.

References canRedo(), FALSE, mActions, mLastAction, mNextAction, mNumActions, mOperationID, LLUndoBuffer::LLUndoAction::redo(), and TRUE.

Referenced by LLPanelEditWearable::redo().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLUndoBuffer::canUndo (  )  [inline]

Definition at line 59 of file llundo.h.

References mFirstAction, and mNextAction.

Referenced by LLPanelEditWearable::canUndo(), and undoAction().

Here is the caller graph for this function:

BOOL LLUndoBuffer::canRedo (  )  [inline]

Definition at line 60 of file llundo.h.

References mLastAction, and mNextAction.

Referenced by LLPanelEditWearable::canRedo(), and redoAction().

Here is the caller graph for this function:

void LLUndoBuffer::flushActions (  ) 

Definition at line 169 of file llundo.cpp.

References LLUndoBuffer::LLUndoAction::cleanup(), i, mActions, mFirstAction, mLastAction, mNextAction, mNumActions, mOperationID, and S32.

Referenced by LLPanelEditWearable::setWearable().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 68 of file llundo.h.

Referenced by canRedo(), flushActions(), getNextAction(), LLUndoBuffer(), and redoAction().

Definition at line 69 of file llundo.h.

Referenced by canUndo(), flushActions(), getNextAction(), LLUndoBuffer(), and undoAction().

Definition at line 70 of file llundo.h.

Referenced by flushActions(), getNextAction(), LLUndoBuffer(), redoAction(), and undoAction().


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

Generated on Fri May 16 09:19:59 2008 for SecondLife by  doxygen 1.5.5