src/edithistory.cpp

changeset 152
03f8e6d42e13
parent 136
e8444e0d7f1a
child 153
2f79053c2e9a
equal deleted inserted replaced
151:e628fc2e0c72 152:03f8e6d42e13
22 EditHistory::EditHistory() 22 EditHistory::EditHistory()
23 { 23 {
24 24
25 } 25 }
26 26
27 void InsertHistoryEntry::undo(Model::EditContext &editContext) 27 void InsertHistoryEntry::undo(ModelEditor &editContext)
28 { 28 {
29 editContext.remove(this->position); 29 editContext.remove(this->position);
30 } 30 }
31 31
32 void InsertHistoryEntry::redo(Model::EditContext &editContext) 32 void InsertHistoryEntry::redo(ModelEditor &editContext)
33 { 33 {
34 34
35 } 35 }
36 36
37 void DeleteHistoryEntry::undo(Model::EditContext &editContext) 37 void DeleteHistoryEntry::undo(ModelEditor &editContext)
38 { 38 {
39 static_cast<InsertHistoryEntry*>(this)->redo(editContext); 39 static_cast<InsertHistoryEntry*>(this)->redo(editContext);
40 } 40 }
41 41
42 void DeleteHistoryEntry::redo(Model::EditContext &editContext) 42 void DeleteHistoryEntry::redo(ModelEditor &editContext)
43 { 43 {
44 static_cast<InsertHistoryEntry*>(this)->undo(editContext); 44 static_cast<InsertHistoryEntry*>(this)->undo(editContext);
45 } 45 }
46 46
47 void EditHistoryEntry::undo(Model::EditContext &editContext) 47 void EditHistoryEntry::undo(ModelEditor &editContext)
48 { 48 {
49 49
50 } 50 }
51 51
52 void EditHistoryEntry::redo(Model::EditContext &editContext) 52 void EditHistoryEntry::redo(ModelEditor &editContext)
53 { 53 {
54 54
55 } 55 }

mercurial