First step towards dynamic ui completion. Add hooks in cppmodelmanager

This adds a way for plugins to tell the cppmodel that for certain files,
the actual contents come from it, instead of reading from the disk.
(For texteditors the cppmodel does that automatically.)

Reviewed-By: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
dt
2009-05-12 13:45:24 +02:00
parent 278fa73718
commit 5c9916478f
3 changed files with 42 additions and 0 deletions

View File

@@ -91,6 +91,9 @@ public:
void stopEditorSelectionsUpdate()
{ m_updateEditorSelectionsTimer->stop(); }
virtual void addEditorSupport(AbstractEditorSupport *editorSupport);
virtual void removeEditorSupport(AbstractEditorSupport *editorSupport);
Q_SIGNALS:
void projectPathChanged(const QString &projectPath);
@@ -161,6 +164,8 @@ private:
// editor integration
QMap<TextEditor::ITextEditor *, CppEditorSupport *> m_editorSupport;
QSet<AbstractEditorSupport *> m_addtionalEditorSupport;
// project integration
QMap<ProjectExplorer::Project *, ProjectInfo> m_projects;