Changeset View
Changeset View
Standalone View
Standalone View
vcs/vcspluginhelper.h
Show All 22 Lines | |||||
23 | class QMenu; | 23 | class QMenu; | ||
24 | 24 | | |||
25 | namespace KTextEditor | 25 | namespace KTextEditor | ||
26 | { | 26 | { | ||
27 | class View; | 27 | class View; | ||
28 | class Document; | 28 | class Document; | ||
29 | } | 29 | } | ||
30 | 30 | | |||
31 | // KTextEditor::AnnotationViewInterface has a bad signature in the | ||||
32 | // annotationBorderVisibilityChanged signal, using type "View" instead | ||||
33 | // of "KTextEditor::View". | ||||
34 | // To enable a string based signal-slot connection, as needed due to | ||||
35 | // annotationBorderVisibilityChanged being an "interface" signal, | ||||
36 | // with the slot VcsPluginHelper::removeAnnotationModel, | ||||
37 | // make View known here | ||||
31 | using KTextEditor::View; | 38 | using KTextEditor::View; | ||
32 | 39 | | |||
33 | namespace KDevelop | 40 | namespace KDevelop | ||
34 | { | 41 | { | ||
35 | class VcsDiff; | 42 | class VcsDiff; | ||
36 | class IPlugin; | 43 | class IPlugin; | ||
37 | class IBasicVersionControl; | 44 | class IBasicVersionControl; | ||
38 | class Context; | 45 | class Context; | ||
Show All 35 Lines | 68 | public Q_SLOTS: | |||
74 | void diffJobFinished(KJob* job); | 81 | void diffJobFinished(KJob* job); | ||
75 | 82 | | |||
76 | void revertDone(KJob* job); | 83 | void revertDone(KJob* job); | ||
77 | void disposeEventually(KTextEditor::Document*); | 84 | void disposeEventually(KTextEditor::Document*); | ||
78 | void disposeEventually(View*, bool); | 85 | void disposeEventually(View*, bool); | ||
79 | 86 | | |||
80 | private Q_SLOTS: | 87 | private Q_SLOTS: | ||
81 | void delayedModificationWarningOn(); | 88 | void delayedModificationWarningOn(); | ||
89 | // namespace-less type "View" needed here, see comment above on "using KTextEditor::View;" | ||||
90 | void handleAnnotationBorderVisibilityChanged(View* view, bool visible); | ||||
82 | 91 | | |||
83 | private: | 92 | private: | ||
84 | void diffForRev(const QUrl& url); | 93 | void diffForRev(const QUrl& url); | ||
85 | 94 | | |||
86 | struct VcsPluginHelperPrivate; | 95 | struct VcsPluginHelperPrivate; | ||
87 | QScopedPointer<VcsPluginHelperPrivate> d; | 96 | QScopedPointer<VcsPluginHelperPrivate> d; | ||
88 | }; | 97 | }; | ||
89 | 98 | | |||
90 | } // namespace KDevelop | 99 | } // namespace KDevelop | ||
91 | 100 | | |||
92 | #endif | 101 | #endif |