UndoBuffer

Undo/Redo buffer

Members

Functions

clear
void clear()

clears both undo and redo buffers

redo
EditOperation redo()

returns operation to be redone (put it to undo), null if no undo ops available

saveForUndo
void saveForUndo(EditOperation op)

adds undo operation

saved
void saved()

current state is saved

savedInRedo
bool savedInRedo()

returns true if saved state is in redo buffer

undo
EditOperation undo()

returns operation to be undone (put it to redo), null if no undo ops available

Properties

hasRedo
bool hasRedo [@property getter]

returns true if buffer contains any redo items

hasUndo
bool hasUndo [@property getter]

returns true if buffer contains any undo items

modified
bool modified [@property getter]

returns true if content has been changed since last saved() or clear() call

Variables

_redoList
Collection!EditOperation _redoList;
Undocumented in source.
_savedState
EditOperation _savedState;
Undocumented in source.
_undoList
Collection!EditOperation _undoList;
Undocumented in source.

Meta