forked from qt-creator/qt-creator
Add a DiffShowEditor showing an additional info
Task-number: QTCREATORBUG-9489 Change-Id: I3ae2e59ccaf397f4236505f21e027a42e2798784 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Petar Perisin <petar.perisin@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
@@ -33,18 +33,9 @@
|
||||
#include "diffeditor_global.h"
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
#include <coreplugin/editormanager/ieditorfactory.h>
|
||||
#include <coreplugin/icontext.h>
|
||||
#include <coreplugin/idocument.h>
|
||||
|
||||
#include <QStringList>
|
||||
|
||||
namespace Core { class IEditor; }
|
||||
|
||||
namespace DiffEditor {
|
||||
|
||||
class DiffEditorWidget;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
class DiffEditorPlugin : public ExtensionSystem::IPlugin
|
||||
@@ -59,9 +50,6 @@ public:
|
||||
bool initialize(const QStringList &arguments, QString *errorMessage = 0);
|
||||
void extensionsInitialized();
|
||||
|
||||
// Connect editor to settings changed signals.
|
||||
void initializeEditor(DiffEditorWidget *editor);
|
||||
|
||||
private slots:
|
||||
void diff();
|
||||
|
||||
@@ -74,23 +62,6 @@ private:
|
||||
|
||||
};
|
||||
|
||||
class DiffEditorFactory : public Core::IEditorFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DiffEditorFactory(DiffEditorPlugin *owner);
|
||||
|
||||
QStringList mimeTypes() const;
|
||||
Core::IEditor *createEditor(QWidget *parent);
|
||||
Core::Id id() const;
|
||||
QString displayName() const;
|
||||
|
||||
private:
|
||||
const QStringList m_mimeTypes;
|
||||
DiffEditorPlugin *m_owner;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace DiffEditor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user