Add DiffEditorManager, refactoring.

GitDiffSwitcher operates now on IDocument.
GitDiffHandler operates now on DiffEditorController.
"source" property now attached to editor's document (VcsBasePlugin).

Change-Id: Ie2570a597b8b992ac1dc33b9179eca459c8a751a
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
This commit is contained in:
jkobus
2014-02-11 13:00:35 +01:00
committed by Jarek Kobus
parent 84e8a79c81
commit 73cf43f323
19 changed files with 445 additions and 266 deletions

View File

@@ -737,12 +737,12 @@ void VcsBaseEditorWidget::setForceReadOnly(bool b)
QString VcsBaseEditorWidget::source() const
{
return VcsBasePlugin::source(editor());
return VcsBasePlugin::source(baseTextDocument());
}
void VcsBaseEditorWidget::setSource(const QString &source)
{
VcsBasePlugin::setSource(editor(), source);
VcsBasePlugin::setSource(baseTextDocument(), source);
}
QString VcsBaseEditorWidget::annotateRevisionTextFormat() const