diff -r e2080ac44039 -r e39326ee48dc src/edithistory.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/edithistory.cpp Tue Sep 21 19:58:06 2021 +0300 @@ -0,0 +1,36 @@ +#include "edithistory.h" + +EditHistory::EditHistory() +{ + +} + +void InsertHistoryEntry::undo(Model::EditContext &editContext) +{ + editContext.remove(this->position); +} + +void InsertHistoryEntry::redo(Model::EditContext &editContext) +{ + +} + +void DeleteHistoryEntry::undo(Model::EditContext &editContext) +{ + static_cast(this)->redo(editContext); +} + +void DeleteHistoryEntry::redo(Model::EditContext &editContext) +{ + static_cast(this)->undo(editContext); +} + +void EditHistoryEntry::undo(Model::EditContext &editContext) +{ + +} + +void EditHistoryEntry::redo(Model::EditContext &editContext) +{ + +}