diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-07 15:09:08 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-02-08 14:30:14 +0100 |
commit | dbc3332b8e1442c0903e129586c08986ce752ff9 (patch) | |
tree | ec9b94df1464e6693c09fb6638a38a7095722386 /src/libs/cplusplus/ModelManagerInterface.h | |
parent | b64d103bfbe5fea3283e8a3c014f4a48dca3c482 (diff) | |
download | qt-creator-dbc3332b8e1442c0903e129586c08986ce752ff9.tar.gz |
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 <leandro.melo@nokia.com>
Diffstat (limited to 'src/libs/cplusplus/ModelManagerInterface.h')
-rw-r--r-- | src/libs/cplusplus/ModelManagerInterface.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<CPlusPlus::Document::DiagnosticMessage> 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); |