Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

UndoBuffer Class Reference

Stores all undo information and handles the undo process. More...

#include <UndoBuffer.h>

List of all members.

Public Methods

 UndoBuffer (QObject *)
 Constructor.

 ~UndoBuffer ()
 Destructor.

bool isEmpty ()
 Returns TRUE if the undo list is empty, otherwise FALSE.

void clear ()
 Clears the undo list.

void tidyUp ()
 Tidys up old undo actions.

void addState (Machine *m, GState *)
 Adds undo information about adding a state. More...

void addTransition (GTransition *)
 Adds undo information about adding a transition. More...

void changeState (GState *, GState *, GITransition *)
 Adds undo information about changing a state. More...

void changeTransition (GTransition *)
 Adds undo information about changing a transition. More...

void changeInitialTransition (GITransition *)
 Adds undo information about changing the initial transition. More...

void changeTransitions (QList< GTransition > *)
 Adds undo information about changing several transitions. More...

void moveMultiple (QList< GState > *, QList< GTransition > *, double, double)
 Adds undo information about moving several objects. More...

void deleteSelection (QList< GState > *, QList< GTransition > *)
 Adds undo information about deleting the selection. More...

void deleteState (GState *)
 Adds undo information about deleting the state s.

void deleteTransition (GTransition *)
 Adds undo information about deleting the transition t.

void setInitialState (GITransition *)
 Adds undo information about setting the initial state. More...

void setEndStates (const QList< GState > &sl)
 Adds undo information about setting/resetting the end state. More...

void changeMachine (Machine *)
 Adds undo information about changing the properties of the machine. More...

void paste (QList< GState > *, QList< GTransition > *, GState *oldistate, GState *newistate, GITransition *olditrans, GITransition *newitrans, int oldnumbits, int oldnumin, int oldnumout)
 Adds undo information about pasting in objects. More...

void undo ()
 Undo the last action.

void undoAddState (Undo *)
 Undo adding a state.

void undoAddTransition (Undo *)
 Undo adding a transition.

void undoChangeState (Undo *)
 Undo changing a state.

void undoChangeTransition (Undo *)
 Undo changing a transition.

void undoChangeInitialTransition (Undo *)
 Undo changing the initial transition.

void undoChangeTransitions (Undo *)
 Undo changing several transitions.

void undoMoveMultiple (Undo *)
 Undo moving several objects.

void undoDeleteSelection (Undo *)
 Undo deleting the selection.

void undoDeleteState (Undo *)
 Undo deleting a state.

void undoDeleteTransition (Undo *)
 Undo deleting a transition.

void undoSetInitialState (Undo *)
 Undo setting the initial state.

void undoSetEndStates (Undo *)
 Undo setting/resetting the end state.

void undoChangeMachine (Undo *)
 Undo changing the machine properties.

void undoPaste (Undo *)
 Undo pasting of objects.


Private Attributes

Projectproject
 Pointer to the project.

QList< Undoundolist
 List of undo objects.


Detailed Description

Stores all undo information and handles the undo process.


Member Function Documentation

void UndoBuffer::addState Machine * m,
GState * s
 

Adds undo information about adding a state.

Parameters:
s   state which was added

void UndoBuffer::addTransition GTransition * t
 

Adds undo information about adding a transition.

Parameters:
t   transition which was added

void UndoBuffer::changeInitialTransition GITransition * t
 

Adds undo information about changing the initial transition.

Parameters:
t   initial transition containing old information

void UndoBuffer::changeMachine Machine * m
 

Adds undo information about changing the properties of the machine.

Parameters:
m   machine containing the old properties

void UndoBuffer::changeState GState * old,
GState * newSt,
GITransition * oldit
 

Adds undo information about changing a state.

Parameters:
old   state containing old information
newSt   state containing new information
oldit   information about the old initial transition

void UndoBuffer::changeTransition GTransition * t
 

Adds undo information about changing a transition.

Parameters:
t   transition containing old information

void UndoBuffer::changeTransitions QList< GTransition > * tl
 

Adds undo information about changing several transitions.

Parameters:
tl   list containing transitions with old information

void UndoBuffer::deleteSelection QList< GState > * sl,
QList< GTransition > * tl
 

Adds undo information about deleting the selection.

Parameters:
sl   list of deleted states
tl   list of deleted transitions

void UndoBuffer::moveMultiple QList< GState > * sl,
QList< GTransition > * tl,
double movedbyx,
double movedbyy
 

Adds undo information about moving several objects.

Parameters:
sl   list of moved states with old information
tl   list of moved transitions with old information
movedbyx   x value the objects were moved by
movedbyy   y value the objects were moved by

void UndoBuffer::paste QList< GState > * sl,
QList< GTransition > * tl,
GState * oldistate,
GState * newistate,
GITransition * olditrans,
GITransition * newitrans,
int numbits,
int numin,
int numout
 

Adds undo information about pasting in objects.

Parameters:
sl   List of states that were pasted
tl   List of transitions that were pasted
oldistate   Old initial state
newistate   New initial state
olditrans   Old initial transition
newitrans   New initial transition
numbits   Old number of bits
numin   Old number of inputs
numout   Old number of outputs

void UndoBuffer::setEndStates const QList< GState > & sl
 

Adds undo information about setting/resetting the end state.

Parameters:
s   state that is to toggle its state

void UndoBuffer::setInitialState GITransition * t
 

Adds undo information about setting the initial state.

Parameters:
t   old initial transition


The documentation for this class was generated from the following files:
Generated at Fri Apr 11 22:37:18 2003 for Qfsm by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001