#include <Undoable.h>
Public Member Functions | |
| UndoHistory () | |
| ~UndoHistory () | |
| void | Store (UndoCommand uc) |
| bool | Undo (void) |
| bool | Redo (void) |
| void | Clear () |
Private Attributes | |
| std::list< UndoCommand > | fUndoList |
| std::list< UndoCommand > | fRedoList |
|
|
Definition at line 116 of file Undoable.h. 00116 {}
|
|
|
Definition at line 117 of file Undoable.h. 00117 {}
|
|
|
Definition at line 139 of file Undoable.h. References fUndoList.
|
|
|
Definition at line 130 of file Undoable.h. References fRedoList, fUndoList, and UndoCommand::Redo(). Referenced by test1(), and test2(). 00130 {
00131 if (fRedoList.size() == 0) return false;
00132 UndoCommand uc = fRedoList.back();
00133 fRedoList.pop_back();
00134 uc.Redo();
00135 fUndoList.push_back(uc);
00136 return true;
00137 }
|
|
|
Definition at line 119 of file Undoable.h. References fUndoList. Referenced by set_pad_in_history(), test1(), and test2(). 00120 { fUndoList.push_back(uc); }
|
|
|
Definition at line 122 of file Undoable.h. References fRedoList, fUndoList, and UndoCommand::Undo(). Referenced by test1(), and test2(). 00122 {
00123 if (fUndoList.size() == 0) return false;
00124 UndoCommand uc = fUndoList.back();
00125 fUndoList.pop_back();
00126 uc.Undo();
00127 fRedoList.push_back(uc);
00128 return true;
00129 }
|
|
|
Definition at line 146 of file Undoable.h. |
|
|
Definition at line 145 of file Undoable.h. |
1.3.9.1