Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/vcs/interfaces/ipatchsource.h
Context not available. | |||||
49 | ///should re-compare the files or whatever needs to be done | 49 | ///should re-compare the files or whatever needs to be done | ||
---|---|---|---|---|---|
50 | ///If the patch has changed, patchChanged needs to be emitted | 50 | ///If the patch has changed, patchChanged needs to be emitted | ||
51 | virtual void update() = 0; | 51 | virtual void update() = 0; | ||
52 | ///change the number of lines of context the patch should show | ||||
53 | ///virtual so it can be overridden, for instance to call update(). | ||||
54 | virtual void setContextLines(int contextLines) { m_contextLines = contextLines; } | ||||
52 | 55 | | |||
53 | ///Name of the patch file | 56 | ///Name of the patch file | ||
54 | virtual QUrl file() const = 0; | 57 | virtual QUrl file() const = 0; | ||
Context not available. | |||||
92 | Q_SIGNALS: | 95 | Q_SIGNALS: | ||
93 | ///Should be emitted whenever the patch has changed. | 96 | ///Should be emitted whenever the patch has changed. | ||
94 | void patchChanged(); | 97 | void patchChanged(); | ||
98 | protected: | ||||
99 | int m_contextLines = -1; | ||||
95 | }; | 100 | }; | ||
96 | 101 | | |||
97 | class KDEVPLATFORMVCS_EXPORT IPatchReview | 102 | class KDEVPLATFORMVCS_EXPORT IPatchReview | ||
Context not available. |