Changeset View
Changeset View
Standalone View
Standalone View
plugins/problemreporter/problemreporterplugin.h
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 52 | public: | |||
---|---|---|---|---|---|
59 | void unload() override; | 59 | void unload() override; | ||
60 | 60 | | |||
61 | ProblemReporterModel* model() const; | 61 | ProblemReporterModel* model() const; | ||
62 | 62 | | |||
63 | private Q_SLOTS: | 63 | private Q_SLOTS: | ||
64 | void updateReady(const KDevelop::IndexedString& url, const KDevelop::ReferencedTopDUContext&); | 64 | void updateReady(const KDevelop::IndexedString& url, const KDevelop::ReferencedTopDUContext&); | ||
65 | void updateHighlight(const KDevelop::IndexedString& url); | 65 | void updateHighlight(const KDevelop::IndexedString& url); | ||
66 | void textDocumentCreated(KDevelop::IDocument* document); | 66 | void textDocumentCreated(KDevelop::IDocument* document); | ||
67 | void documentActivated(KDevelop::IDocument* document); | ||||
67 | void showModel(const QString& name); | 68 | void showModel(const QString& name); | ||
68 | 69 | | |||
69 | private: | 70 | private: | ||
kfunk: Rename to `updateCurrentDocumentHighlight` maybe? | |||||
71 | void updateOpenedDocumentsHighlight(); | ||||
70 | class ProblemReporterFactory* m_factory; | 72 | class ProblemReporterFactory* m_factory; | ||
71 | ProblemReporterModel* m_model; | 73 | ProblemReporterModel* m_model; | ||
72 | 74 | | |||
73 | QHash<KDevelop::IndexedString, ProblemHighlighter*> m_highlighters; | 75 | QHash<KDevelop::IndexedString, ProblemHighlighter*> m_highlighters; | ||
76 | QSet<KDevelop::IndexedString> m_reHighlightNeeded; | ||||
74 | public slots: | 77 | public slots: | ||
75 | void documentClosed(KDevelop::IDocument*); | 78 | void documentClosed(KDevelop::IDocument*); | ||
76 | }; | 79 | }; | ||
77 | 80 | | |||
78 | #endif // KDEVPLATFORM_PLUGIN_PROBLEMREPORTERPLUGIN_H | 81 | #endif // KDEVPLATFORM_PLUGIN_PROBLEMREPORTERPLUGIN_H | ||
79 | 82 | | |||
80 | // kate: space-indent on; indent-width 2; tab-width 4; replace-tabs on; auto-insert-doxygen on | 83 | // kate: space-indent on; indent-width 2; tab-width 4; replace-tabs on; auto-insert-doxygen on |
Rename to updateCurrentDocumentHighlight maybe?