#include <Undo.h>
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. | |
| GState * | getState () |
| Returns the state. | |
| void | setState2 (GState *s) |
| Sets the second state. | |
| GState * | getState2 () |
| Returns the second state. | |
| void | setInitialState (GState *s) |
| Sets the initial state. | |
| GState * | getInitialState () |
| Returns the initial state. | |
| void | setTransition (GTransition *t) |
| Sets the transition. | |
| GTransition * | getTransition () |
| Returns the transition. | |
| void | setTransition2 (GTransition *t) |
| Sets the second transition. | |
| GTransition * | getTransition2 () |
| Returns the second transition. | |
| void | setInitialTransition (GITransition *t) |
| Sets the initial transition. | |
| GITransition * | getInitialTransition () |
| Returns the initial transition. | |
| void | setInitialTransition2 (GITransition *t) |
| Sets the second initial transition. | |
| GITransition * | getInitialTransition2 () |
| 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. | |
| Project * | getProject () |
| 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. | |
| Project * | project |
| Pointer to the project. | |
| bool | modified |
| TRUE if the project was modified before the action. | |
| GState * | state |
| State. | |
| GState * | state2 |
| State 2. | |
| GState * | istate |
| Initial state. | |
| GTransition * | transition |
| Transition. | |
| GTransition * | transition2 |
| Transition 2. | |
| GITransition * | itrans |
| Initial transition. | |
| GITransition * | itrans2 |
| Initial transition 2. | |
| QList< GTransition > | copylist |
| Copy of pointers to save the order of the copied transitions (Change state). | |
| QList< GState > | slist |
| List of states (for ChangeMultiple). | |
| QList< GState > | slist2 |
| List of states 2. | |
| QList< GTransition > | tlist |
| List of transitions. | |
| QList< GTransition > | tlist2 |
| List of transitions 2. | |
| QList< dtlist > | doubletlist |
| Pair of transition lists. | |
| double | movedbyx |
| Moved by x. | |
| double | movedbyy |
| Moved by y. | |
| Machine * | machine |
| 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. | |
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001