forked from qt-creator/qt-creator
CppEditor: Remove RefactoringEngine
Another useless indirection. Change-Id: Icfcc0704a1056d8002a674edbe74b946cb56ff27 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "cppeditor_global.h"
|
||||
#include "cursorineditor.h"
|
||||
#include "usages.h"
|
||||
|
||||
#include <utils/link.h>
|
||||
|
||||
@@ -44,7 +46,7 @@ namespace CppEditor {
|
||||
class AbstractOverviewModel;
|
||||
class BaseEditorDocumentProcessor;
|
||||
class CppCompletionAssistProvider;
|
||||
class CursorInEditor;
|
||||
class ProjectPart;
|
||||
class RefactoringEngineInterface;
|
||||
|
||||
class CPPEDITOR_EXPORT ModelManagerSupport
|
||||
@@ -60,7 +62,6 @@ public:
|
||||
virtual TextEditor::BaseHoverHandler *createHoverHandler() = 0;
|
||||
virtual BaseEditorDocumentProcessor *createEditorDocumentProcessor(
|
||||
TextEditor::TextDocument *baseTextDocument) = 0;
|
||||
virtual RefactoringEngineInterface &refactoringEngineInterface() = 0;
|
||||
virtual std::unique_ptr<AbstractOverviewModel> createOverviewModel() = 0;
|
||||
virtual bool supportsOutline(const TextEditor::TextDocument *) const { return true; }
|
||||
virtual bool hasSpecialHoverHandler(const TextEditor::TextDocument *) const { return false; }
|
||||
@@ -71,6 +72,14 @@ public:
|
||||
bool resolveTarget, bool inNextSplit) = 0;
|
||||
virtual void switchDeclDef(const CursorInEditor &data,
|
||||
Utils::ProcessLinkCallback &&processLinkCallback) = 0;
|
||||
virtual void startLocalRenaming(const CursorInEditor &data,
|
||||
const ProjectPart *projectPart,
|
||||
RenameCallback &&renameSymbolsCallback) = 0;
|
||||
virtual void globalRename(const CursorInEditor &data,
|
||||
UsagesCallback &&renameCallback,
|
||||
const QString &replacement) = 0;
|
||||
virtual void findUsages(const CursorInEditor &data,
|
||||
UsagesCallback &&showUsagesCallback) const = 0;
|
||||
};
|
||||
|
||||
class CPPEDITOR_EXPORT ModelManagerSupportProvider
|
||||
|
||||
Reference in New Issue
Block a user