|
1 #include "edithistory.h" |
|
2 |
|
3 EditHistory::EditHistory() |
|
4 { |
|
5 |
|
6 } |
|
7 |
|
8 void InsertHistoryEntry::undo(Model::EditContext &editContext) |
|
9 { |
|
10 editContext.remove(this->position); |
|
11 } |
|
12 |
|
13 void InsertHistoryEntry::redo(Model::EditContext &editContext) |
|
14 { |
|
15 |
|
16 } |
|
17 |
|
18 void DeleteHistoryEntry::undo(Model::EditContext &editContext) |
|
19 { |
|
20 static_cast<InsertHistoryEntry*>(this)->redo(editContext); |
|
21 } |
|
22 |
|
23 void DeleteHistoryEntry::redo(Model::EditContext &editContext) |
|
24 { |
|
25 static_cast<InsertHistoryEntry*>(this)->undo(editContext); |
|
26 } |
|
27 |
|
28 void EditHistoryEntry::undo(Model::EditContext &editContext) |
|
29 { |
|
30 |
|
31 } |
|
32 |
|
33 void EditHistoryEntry::redo(Model::EditContext &editContext) |
|
34 { |
|
35 |
|
36 } |