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 ()

Protected Attributes

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

Detailed Description

Definition at line 52 of file llundo.h.


Constructor & Destructor Documentation

LLUndoBuffer::LLUndoBuffer ( LLUndoAction(*  create_func  ) 

Definition at line 47 of file llundo.cpp.

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

LLUndoBuffer::~LLUndoBuffer (  )  [virtual]

Definition at line 72 of file llundo.cpp.

References i, mActions, mNumActions, and S32.


Member Function Documentation

BOOL LLUndoBuffer::canRedo (  )  [inline]

Definition at line 70 of file llundo.h.

References mLastAction, and mNextAction.

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

BOOL LLUndoBuffer::canUndo (  )  [inline]

Definition at line 69 of file llundo.h.

References mFirstAction, and mNextAction.

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

void LLUndoBuffer::flushActions (  ) 

Definition at line 174 of file llundo.cpp.

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

Referenced by LLPanelEditWearable::setWearable().

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

Definition at line 85 of file llundo.cpp.

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

Referenced by LLPanelEditWearable::addVisualParamToUndoBuffer().

BOOL LLUndoBuffer::redoAction (  ) 

Definition at line 146 of file llundo.cpp.

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

Referenced by LLPanelEditWearable::redo().

BOOL LLUndoBuffer::undoAction (  ) 

Definition at line 110 of file llundo.cpp.

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

Referenced by LLPanelEditWearable::undo().


Member Data Documentation

LLUndoAction** LLUndoBuffer::mActions [protected]

Definition at line 55 of file llundo.h.

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

S32 LLUndoBuffer::mFirstAction [protected]

Definition at line 59 of file llundo.h.

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

S32 LLUndoBuffer::mLastAction [protected]

Definition at line 58 of file llundo.h.

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

S32 LLUndoBuffer::mNextAction [protected]

Definition at line 57 of file llundo.h.

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

S32 LLUndoBuffer::mNumActions [protected]

Definition at line 56 of file llundo.h.

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

S32 LLUndoBuffer::mOperationID [protected]

Definition at line 60 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 Thu Jul 1 06:11:55 2010 for Second Life Viewer by  doxygen 1.4.7