forked from qt-creator/qt-creator
DiffEditor: Refactor the user-facing parts
* Move all data handling into DiffEditorDocument * Move much of the logic of how to update views into the DiffEditor. * Introduce a base class for the different views on the diff to implement. * Remove DiffEditorGuiController * Make DiffEditorController smaller and merge the DiffEditorReloader into the class * Simplify communication between the classes involved * Make much of the implementation private to the plugin Change-Id: I7ccb9df6061923bcb34cf3090d6d8331895e83c7 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
This commit is contained in:
@@ -41,7 +41,7 @@ namespace Subversion {
|
||||
namespace Internal {
|
||||
|
||||
class SubversionSettings;
|
||||
class SubversionDiffEditorReloader;
|
||||
class DiffController;
|
||||
|
||||
class SubversionClient : public VcsBase::VcsBaseClient
|
||||
{
|
||||
@@ -83,10 +83,8 @@ protected:
|
||||
Core::Id vcsEditorKind(VcsCommandTag cmd) const;
|
||||
|
||||
private:
|
||||
SubversionDiffEditorReloader *findOrCreateDiffEditor(const QString &documentId,
|
||||
const QString &source,
|
||||
const QString &title,
|
||||
const QString &workingDirectory) const;
|
||||
DiffController *findOrCreateDiffEditor(const QString &documentId, const QString &source,
|
||||
const QString &title, const QString &workingDirectory) const;
|
||||
|
||||
mutable Utils::FileName m_svnVersionBinary;
|
||||
mutable QString m_svnVersion;
|
||||
|
||||
Reference in New Issue
Block a user