Class UndoBuffer
Undo/Redo buffer
Inherits from
-
(base class)Object
Fields
Name | Type | Description |
---|---|---|
_redoList
|
dlangui. |
|
_undoList
|
dlangui. |
Properties
Name | Type | Description |
---|---|---|
hasRedo
[get]
|
bool |
returns true if buffer contains any redo items
|
hasUndo
[get]
|
bool |
returns true if buffer contains any undo items
|
Methods
Name | Description |
---|---|
clear
|
clears both undo and redo buffers
|
redo
|
returns operation to be redone (put it to undo ), null if no undo ops available
|
saveForUndo
|
adds undo operation
|
undo
|
returns operation to be undone (put it to redo ), null if no undo ops available
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0