#include <rs_undo.h>
Inheritance diagram for RS_Undo:

Public Member Functions | |
| RS_Undo () | |
| Default constructor. | |
| void | addUndoCycle (RS_UndoCycle *i) |
| Adds an Undo Cycle at the current position in the list. | |
| virtual void | undo () |
| Undoes the last undo cycle. | |
| virtual void | redo () |
| Redoes the undo cycle which was at last undone. | |
| virtual RS_UndoCycle * | getUndoCycle () |
| virtual RS_UndoCycle * | getRedoCycle () |
| virtual int | countUndoCycles () |
| virtual int | countRedoCycles () |
| virtual void | startUndoCycle () |
| Starts a new cycle for one undo step. | |
| virtual void | addUndoable (RS_Undoable *u) |
| Adds an undoable to the current undo cycle. | |
| virtual void | endUndoCycle () |
| Ends the current undo cycle. | |
| virtual void | removeUndoable (RS_Undoable *u)=0 |
| Must be overwritten by the implementing class and delete the given Undoable (unrecoverable). | |
Protected Attributes | |
| RS_PtrList< RS_UndoCycle > | undoList |
| List of undo list items. every item is something that can be undone. | |
| int | undoPointer |
| Index that points to the current position in the undo list. | |
| RS_UndoCycle * | currentCycle |
| Current undo cycle. | |
The internal undo list consists of RS_UndoCycle entries.
|
|
Adds an Undo Cycle at the current position in the list. All Cycles after the new one are removed and the Undoabels on them deleted. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Must be overwritten by the implementing class and delete the given Undoable (unrecoverable). This method is called for Undoables that are no longer in the undo buffer. Implemented in RS_Document. |
|
|
Starts a new cycle for one undo step. Every undoable that is added after calling this method goes into this cycle. Reimplemented in RS_Document. |
|
|
Index that points to the current position in the undo list. The item it points on will be undone the next time undo is called. The item after will be redone (if there is an item) when redo is called. |
1.4.4