src/edithistory.cpp

Wed, 22 Sep 2021 00:25:31 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 22 Sep 2021 00:25:31 +0300
changeset 135
d384df40c8e7
parent 133
e39326ee48dc
child 136
e8444e0d7f1a
permissions
-rw-r--r--

Merge commit

#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<InsertHistoryEntry*>(this)->redo(editContext);
}

void DeleteHistoryEntry::redo(Model::EditContext &editContext)
{
	static_cast<InsertHistoryEntry*>(this)->undo(editContext);
}

void EditHistoryEntry::undo(Model::EditContext &editContext)
{
	
}

void EditHistoryEntry::redo(Model::EditContext &editContext)
{
	
}

mercurial