Changeset View
Changeset View
Standalone View
Standalone View
plugins/patchreview/patchhighlighter.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | class MovingRange; | 42 | class MovingRange; | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | ///Delete itself when the document(or textDocument), or Diff-Model is deleted. | 45 | ///Delete itself when the document(or textDocument), or Diff-Model is deleted. | ||
46 | class PatchHighlighter : public QObject | 46 | class PatchHighlighter : public QObject | ||
47 | { | 47 | { | ||
48 | Q_OBJECT | 48 | Q_OBJECT | ||
49 | public: | 49 | public: | ||
50 | PatchHighlighter( Diff2::DiffModel* model, KDevelop::IDocument* doc, PatchReviewPlugin* plugin, bool updatePatchFromEdits ) throw( QString ); | 50 | PatchHighlighter( Diff2::DiffModel* model, KDevelop::IDocument* doc, PatchReviewPlugin* plugin, bool updatePatchFromEdits ); | ||
51 | ~PatchHighlighter() override; | 51 | ~PatchHighlighter() override; | ||
52 | KDevelop::IDocument* doc(); | 52 | KDevelop::IDocument* doc(); | ||
53 | QList< KTextEditor::MovingRange* > ranges() const; | 53 | QList< KTextEditor::MovingRange* > ranges() const; | ||
54 | private slots: | 54 | private slots: | ||
55 | void documentDestroyed(); | 55 | void documentDestroyed(); | ||
56 | void aboutToDeleteMovingInterfaceContent( KTextEditor::Document* ); | 56 | void aboutToDeleteMovingInterfaceContent( KTextEditor::Document* ); | ||
57 | private: | 57 | private: | ||
58 | void highlightFromScratch(KTextEditor::Document* doc); | 58 | void highlightFromScratch(KTextEditor::Document* doc); | ||
Show All 26 Lines |