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 } |