Commit 049f8d53 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

TODO: process the edit-ops.

parent 62a15e04
...@@ -619,7 +619,36 @@ const Utils::ChangeSet &BaseTextEditor::changeSet() const ...@@ -619,7 +619,36 @@ const Utils::ChangeSet &BaseTextEditor::changeSet() const
void BaseTextEditor::setChangeSet(const Utils::ChangeSet &changeSet) void BaseTextEditor::setChangeSet(const Utils::ChangeSet &changeSet)
{ {
using namespace Utils;
d->m_changeSet = changeSet; d->m_changeSet = changeSet;
foreach (const ChangeSet::EditOp &op, changeSet.operationList()) {
// ### TODO: process the edit operation
switch (op.type) {
case ChangeSet::EditOp::Replace:
break;
case ChangeSet::EditOp::Move:
break;
case ChangeSet::EditOp::Insert:
break;
case ChangeSet::EditOp::Remove:
break;
case ChangeSet::EditOp::Flip:
break;
case ChangeSet::EditOp::Copy:
break;
default:
break;
} // switch
}
} }
Core::IFile *BaseTextEditor::file() Core::IFile *BaseTextEditor::file()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment