#include <Undoable.h>
Public Member Functions | |
| UndoCommand () | |
| ~UndoCommand () | |
| UndoCommand (UndoItem &ui) | |
| UndoCommand (Undoable &u) | |
| UndoCommand (const UndoCommand &rhs) | |
| UndoCommand & | operator= (UndoCommand &rhs) |
| void | Undo () |
| void | Redo () |
|
|
Definition at line 63 of file Undoable.h. 00063 {}
|
|
|
Definition at line 64 of file Undoable.h. 00064 {}
|
|
|
Definition at line 67 of file Undoable.h. 00067 { this->push_back(ui); }
|
|
|
Definition at line 68 of file Undoable.h. 00068 { this->push_back(UndoItem(u)); }
|
|
|
Definition at line 71 of file Undoable.h. 00071 : std::list<UndoItem>() {
00072 this->insert(this->end(),rhs.begin(),rhs.end());
00073 UndoCommand& ncrhs = const_cast<UndoCommand&>(rhs);
00074 ncrhs.erase(ncrhs.begin(),ncrhs.end());
00075 }
|
|
|
Definition at line 77 of file Undoable.h. 00077 {
00078 if (this == &rhs) return rhs;
00079 this->insert(this->end(),rhs.begin(),rhs.end());
00080 rhs.erase(rhs.begin(),rhs.end());
00081 return *this;
00082 }
|
|
|
Definition at line 92 of file Undoable.h. References UndoMemento. Referenced by UndoHistory::Redo(). 00092 {
00093 std::list<UndoItem>::iterator i;
00094 for (i = begin(); i != end(); ++i) {
00095 UndoMemento m = i->undoable.GetMemento();
00096 i->memento();
00097 i->memento = m;
00098 }
00099 }
|
|
|
Definition at line 84 of file Undoable.h. References UndoMemento. Referenced by UndoHistory::Undo(). 00084 {
00085 std::list<UndoItem>::reverse_iterator i;
00086 for (i = rbegin(); i != rend(); ++i) {
00087 UndoMemento m = i->undoable.GetMemento();
00088 i->memento();
00089 i->memento = m;
00090 }
00091 }
|
1.3.9.1