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

Undo Class Reference

Stores the information about an undo action. More...

#include <Undo.h>

List of all members.

Public Methods

 Undo (Project *)
 Constructor.

 ~Undo ()
 Destructor.

void setAction (int a)
 Sets the undo action.

int getAction ()
 Returns the undo action.

void setModified (bool m)
 Sets the modified flag.

bool getModified ()
 Returns the modified flag.

void setState (GState *s)
 Sets the state.

GStategetState ()
 Returns the state.

void setState2 (GState *s)
 Sets the second state.

GStategetState2 ()
 Returns the second state.

void setInitialState (GState *s)
 Sets the initial state.

GStategetInitialState ()
 Returns the initial state.

void setTransition (GTransition *t)
 Sets the transition.

GTransitiongetTransition ()
 Returns the transition.

void setTransition2 (GTransition *t)
 Sets the second transition.

GTransitiongetTransition2 ()
 Returns the second transition.

void setInitialTransition (GITransition *t)
 Sets the initial transition.

GITransitiongetInitialTransition ()
 Returns the initial transition.

void setInitialTransition2 (GITransition *t)
 Sets the second initial transition.

GITransitiongetInitialTransition2 ()
 Returns the second initial transition.

void getMovedBy (double &x, double &y)
 Gets the coordinates which store the distance objects were moved by.

void setMovedBy (double x, double y)
 Returns the coordinates which store the distance objects were moved by.

void getMachineInfo (Machine *&m, QString &n, int &t, int &nb, QStringList &olistm, int &ni, QStringList &ilist, int &no, QStringList &olist, QFont &sf, QFont &tf, int &at)
 Returns the properties of the machine.

void setMachineInfo (Machine *m, QString n, int t, int nb, QStringList olistm, int ni, QStringList ilist, int no, QStringList olist, QFont sf, QFont tf, int at)
 Sets the properties of a machine.

void setNumBits (int nb)
 Sets the number of bits (moore outputs) to nb.

int getNumBits ()
 Returns the number of bits (moore outputs).

void setNumInputs (int ni)
 Sets the number of input bits to ni.

int getNumInputs ()
 Returns the number of input bits.

void setNumOutputs (int no)
 Sets the number of output bits to ni.

int getNumOutputs ()
 Returns the number of output bits.

ProjectgetProject ()
 Returns the project.

QList< GTransition > * getCopyList ()
 Returns the list of transitions which contain copied information.

QList< GState > * getSList ()
 Returns the list of states.

QList< GState > * getSList2 ()
 Returns the second list of states.

QList< GTransition > * getTList ()
 Returns the list of transitions.

QList< GTransition > * getTList2 ()
 Returns the second list of transitions.

QList< dtlist > * getDoubleTList ()
 Returns the two lists of transition.


Private Attributes

int action
 Action this undo object can undo.

Projectproject
 Pointer to the project.

bool modified
 TRUE if the project was modified before the action.

GStatestate
 State.

GStatestate2
 State 2.

GStateistate
 Initial state.

GTransitiontransition
 Transition.

GTransitiontransition2
 Transition 2.

GITransitionitrans
 Initial transition.

GITransitionitrans2
 Initial transition 2.

QList< GTransitioncopylist
 Copy of pointers to save the order of the copied transitions (Change state).

QList< GStateslist
 List of states (for ChangeMultiple).

QList< GStateslist2
 List of states 2.

QList< GTransitiontlist
 List of transitions.

QList< GTransitiontlist2
 List of transitions 2.

QList< dtlistdoubletlist
 Pair of transition lists.

double movedbyx
 Moved by x.

double movedbyy
 Moved by y.

Machinemachine
 Machine.

QString mname
 Machine name.

int type
 Type of the machine.

int numin
 Number of input bits of a machine.

int numout
 Number of output bits of a machine.

int numbits
 Number of bits of a machine.

QFont sfont
 State font.

QFont tfont
 Transition font.

int arrowtype
 Arrow type.

QStringList strlist1
 String list 1.

QStringList strlist2
 String list 2.

QStringList strlist3
 String list 3.


Detailed Description

Stores the information about an undo action.


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