diff options
author | Erik Verbruggen <[email protected]> | 2013-09-06 13:14:15 +0200 |
---|---|---|
committer | Erik Verbruggen <[email protected]> | 2013-09-13 14:37:48 +0200 |
commit | c9f5a14bdde5a9ba7cbdcddf6b7799abac32a5e2 (patch) | |
tree | c4c389cd6ef805f25444de975740bae4adf9794c /src/plugins/cpptools/cpptoolsplugin.h | |
parent | f33d145e64aed43e4b59df3cd028b14eca105e71 (diff) |
C++: add code-model settings to choose one by mime-type.
The model-manager now supports multiple code models for semantic
highlighting and code completion, and will choose one based on the
mime-type of the editor.
The settings page is currently disabled. It will get enabled when a
second plug-in lands that has a ModelManagerSupport class.
Change-Id: I10023f52322ed6860397da15dba1c231e80e6517
Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.h')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.h b/src/plugins/cpptools/cpptoolsplugin.h index 05f37be6a4b..4f7653ddaf2 100644 --- a/src/plugins/cpptools/cpptoolsplugin.h +++ b/src/plugins/cpptools/cpptoolsplugin.h @@ -49,6 +49,7 @@ namespace Internal { class CppModelManager; struct CppFileSettings; +class CppCodeModelSettings; class CPPTOOLS_EXPORT CppToolsPlugin : public ExtensionSystem::IPlugin { @@ -68,6 +69,8 @@ public: void extensionsInitialized(); ShutdownFlag aboutToShutdown(); + QSharedPointer<CppCodeModelSettings> codeModelSettings() const; + public slots: void switchHeaderSource(); void switchHeaderSourceInNextSplit(); @@ -225,6 +228,7 @@ private: private: QSharedPointer<CppFileSettings> m_fileSettings; + QSharedPointer<CppCodeModelSettings> m_codeModelSettings; CppToolsSettings *m_settings; }; |