From dbc3332b8e1442c0903e129586c08986ce752ff9 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Tue, 7 Feb 2012 15:09:08 +0100 Subject: C++: Moved completion/highlighting into the model manager. This way the editor does not need to know all the details of instantiating or maintaining classes for highlighting and/or completion, it can just ask the model manager. The change also enables different highlighting- or completion-engines without changes to the cppeditor. Change-Id: I8000d9d9fe446b292defddb2295493cf77d0f14a Reviewed-by: Leandro Melo --- src/libs/cplusplus/ModelManagerInterface.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libs/cplusplus/ModelManagerInterface.h') diff --git a/src/libs/cplusplus/ModelManagerInterface.h b/src/libs/cplusplus/ModelManagerInterface.h index 4397a82526..564bbfae8c 100644 --- a/src/libs/cplusplus/ModelManagerInterface.h +++ b/src/libs/cplusplus/ModelManagerInterface.h @@ -55,6 +55,8 @@ namespace ProjectExplorer { namespace CppTools { class AbstractEditorSupport; + class CppCompletionSupport; + class CppHighlightingSupport; } namespace CPlusPlus { @@ -151,6 +153,9 @@ public: virtual QList extraDiagnostics( const QString &fileName, int key = AllExtraDiagnostics) const = 0; + virtual CppTools::CppCompletionSupport *completionSupport(Core::IEditor *editor) const = 0; + virtual CppTools::CppHighlightingSupport *highlightingSupport(Core::IEditor *editor) const = 0; + Q_SIGNALS: void documentUpdated(CPlusPlus::Document::Ptr doc); void sourceFilesRefreshed(const QStringList &files); -- cgit v1.2.1