#include <UndoBuffer.h>
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 | |
Project * | project |
Pointer to the project. | |
QList< Undo > | undolist |
List of undo objects. |
|
Adds undo information about adding a state.
|
|
Adds undo information about adding a transition.
|
|
Adds undo information about changing the initial transition.
|
|
Adds undo information about changing the properties of the machine.
|
|
Adds undo information about changing a state.
|
|
Adds undo information about changing a transition.
|
|
Adds undo information about changing several transitions.
|
|
Adds undo information about deleting the selection.
|
|
Adds undo information about moving several objects.
|
|
Adds undo information about pasting in objects.
|
|
Adds undo information about setting/resetting the end state.
|
|
Adds undo information about setting the initial state.
|