Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

UndoStack Class Reference

#include <undostack.h>

List of all members.

Public Member Functions

 UndoStack (int maxSize=20)
 ~UndoStack ()
bool action (UndoState *state)
bool undo (uint steps, int objectId)
bool redo (uint steps, int objectId)
uint size () const
uint undoItems () const
uint redoItems () const
uint maxSize () const
void setMaxSize (uint maxSize)
void clear ()
UndoStategetNextUndo (int objectId)
UndoStategetNextRedo (int objectId)

Private Member Functions

bool checkSize ()

Private Attributes

StateList undoActions_
StateList redoActions_
uint maxSize_

Friends

class UndoManager


Detailed Description

Definition at line 37 of file undostack.h.


Constructor & Destructor Documentation

UndoStack::UndoStack ( int  maxSize = 20  )  [explicit]

Definition at line 31 of file undostack.cpp.

UndoStack::~UndoStack (  ) 

Definition at line 215 of file undostack.cpp.


Member Function Documentation

bool UndoStack::action ( UndoState state  ) 

Definition at line 36 of file undostack.cpp.

References checkSize(), redoActions_, and undoActions_.

bool UndoStack::undo ( uint  steps,
int  objectId 
)

bool UndoStack::redo ( uint  steps,
int  objectId 
)

uint UndoStack::size (  )  const

Definition at line 107 of file undostack.cpp.

References redoActions_, and undoActions_.

Referenced by checkSize().

uint UndoStack::undoItems (  )  const

Definition at line 112 of file undostack.cpp.

References undoActions_.

uint UndoStack::redoItems (  )  const

Definition at line 117 of file undostack.cpp.

References redoActions_.

uint UndoStack::maxSize (  )  const

Definition at line 122 of file undostack.cpp.

References maxSize_.

void UndoStack::setMaxSize ( uint  maxSize  ) 

Definition at line 127 of file undostack.cpp.

References checkSize(), and maxSize_.

void UndoStack::clear (  ) 

Definition at line 149 of file undostack.cpp.

References redoActions_, and undoActions_.

UndoState * UndoStack::getNextUndo ( int  objectId  ) 

UndoState * UndoStack::getNextRedo ( int  objectId  ) 

bool UndoStack::checkSize (  )  [private]

Definition at line 133 of file undostack.cpp.

References maxSize_, redoActions_, size(), and undoActions_.

Referenced by action(), and setMaxSize().


Friends And Related Function Documentation

friend class UndoManager [friend]

Definition at line 87 of file undostack.h.


Member Data Documentation

Definition at line 77 of file undostack.h.

Referenced by action(), checkSize(), clear(), getNextUndo(), redo(), size(), undo(), and undoItems().

Definition at line 78 of file undostack.h.

Referenced by action(), checkSize(), clear(), getNextRedo(), redo(), redoItems(), size(), and undo().

uint UndoStack::maxSize_ [private]

Definition at line 81 of file undostack.h.

Referenced by checkSize(), maxSize(), and setMaxSize().


The documentation for this class was generated from the following files:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.