Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateview.h
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | |||||
78 | 78 | | |||
79 | // | 79 | // | ||
80 | // Kate KTextEditor::View class ;) | 80 | // Kate KTextEditor::View class ;) | ||
81 | // | 81 | // | ||
82 | class KTEXTEDITOR_EXPORT ViewPrivate : public KTextEditor::View, | 82 | class KTEXTEDITOR_EXPORT ViewPrivate : public KTextEditor::View, | ||
83 | public KTextEditor::TextHintInterface, | 83 | public KTextEditor::TextHintInterface, | ||
84 | public KTextEditor::CodeCompletionInterface, | 84 | public KTextEditor::CodeCompletionInterface, | ||
85 | public KTextEditor::ConfigInterface, | 85 | public KTextEditor::ConfigInterface, | ||
86 | public KTextEditor::AnnotationViewInterface | 86 | public KTextEditor::AnnotationViewInterfaceV2 | ||
87 | { | 87 | { | ||
88 | Q_OBJECT | 88 | Q_OBJECT | ||
89 | Q_INTERFACES(KTextEditor::TextHintInterface) | 89 | Q_INTERFACES(KTextEditor::TextHintInterface) | ||
90 | Q_INTERFACES(KTextEditor::ConfigInterface) | 90 | Q_INTERFACES(KTextEditor::ConfigInterface) | ||
91 | Q_INTERFACES(KTextEditor::CodeCompletionInterface) | 91 | Q_INTERFACES(KTextEditor::CodeCompletionInterface) | ||
92 | Q_INTERFACES(KTextEditor::AnnotationViewInterface) | 92 | Q_INTERFACES(KTextEditor::AnnotationViewInterface) | ||
93 | Q_INTERFACES(KTextEditor::AnnotationViewInterfaceV2) | ||||
93 | 94 | | |||
94 | friend class KTextEditor::View; | 95 | friend class KTextEditor::View; | ||
95 | friend class ::KateViewInternal; | 96 | friend class ::KateViewInternal; | ||
96 | friend class ::KateIconBorder; | 97 | friend class ::KateIconBorder; | ||
97 | friend class ::KateTextPreview; | 98 | friend class ::KateTextPreview; | ||
98 | 99 | | |||
99 | public: | 100 | public: | ||
100 | ViewPrivate (KTextEditor::DocumentPrivate *doc, QWidget *parent, KTextEditor::MainWindow *mainWindow = nullptr); | 101 | ViewPrivate (KTextEditor::DocumentPrivate *doc, QWidget *parent, KTextEditor::MainWindow *mainWindow = nullptr); | ||
▲ Show 20 Lines • Show All 240 Lines • ▼ Show 20 Line(s) | 325 | public: | |||
341 | // | 342 | // | ||
342 | // KTextEditor::AnnotationView | 343 | // KTextEditor::AnnotationView | ||
343 | // | 344 | // | ||
344 | public: | 345 | public: | ||
345 | void setAnnotationModel(KTextEditor::AnnotationModel *model) Q_DECL_OVERRIDE; | 346 | void setAnnotationModel(KTextEditor::AnnotationModel *model) Q_DECL_OVERRIDE; | ||
346 | KTextEditor::AnnotationModel *annotationModel() const Q_DECL_OVERRIDE; | 347 | KTextEditor::AnnotationModel *annotationModel() const Q_DECL_OVERRIDE; | ||
347 | void setAnnotationBorderVisible(bool visible) Q_DECL_OVERRIDE; | 348 | void setAnnotationBorderVisible(bool visible) Q_DECL_OVERRIDE; | ||
348 | bool isAnnotationBorderVisible() const Q_DECL_OVERRIDE; | 349 | bool isAnnotationBorderVisible() const Q_DECL_OVERRIDE; | ||
350 | KTextEditor::AbstractAnnotationItemDelegate* annotationItemDelegate() const Q_DECL_OVERRIDE; | ||||
351 | void setAnnotationItemDelegate(KTextEditor::AbstractAnnotationItemDelegate *delegate) Q_DECL_OVERRIDE; | ||||
352 | bool uniformAnnotationItemSizes() const Q_DECL_OVERRIDE; | ||||
353 | void setUniformItemSizes(bool enable) Q_DECL_OVERRIDE; | ||||
349 | 354 | | |||
350 | Q_SIGNALS: | 355 | Q_SIGNALS: | ||
351 | void annotationContextMenuAboutToShow(KTextEditor::View *view, QMenu *menu, int line) Q_DECL_OVERRIDE; | 356 | void annotationContextMenuAboutToShow(KTextEditor::View *view, QMenu *menu, int line) Q_DECL_OVERRIDE; | ||
352 | void annotationActivated(KTextEditor::View *view, int line) Q_DECL_OVERRIDE; | 357 | void annotationActivated(KTextEditor::View *view, int line) Q_DECL_OVERRIDE; | ||
353 | // KF6: fix View -> KTextEditor::View | 358 | // KF6: fix View -> KTextEditor::View | ||
354 | void annotationBorderVisibilityChanged(View *view, bool visible) Q_DECL_OVERRIDE; | 359 | void annotationBorderVisibilityChanged(View *view, bool visible) Q_DECL_OVERRIDE; | ||
355 | 360 | | |||
356 | void navigateLeft(); | 361 | void navigateLeft(); | ||
▲ Show 20 Lines • Show All 308 Lines • ▼ Show 20 Line(s) | 627 | private: | |||
665 | KTextEditor::DocumentPrivate *const m_doc; | 670 | KTextEditor::DocumentPrivate *const m_doc; | ||
666 | Kate::TextFolding m_textFolding; | 671 | Kate::TextFolding m_textFolding; | ||
667 | KateViewConfig *const m_config; | 672 | KateViewConfig *const m_config; | ||
668 | KateRenderer *const m_renderer; | 673 | KateRenderer *const m_renderer; | ||
669 | KateViewInternal *const m_viewInternal; | 674 | KateViewInternal *const m_viewInternal; | ||
670 | KateSpellCheckDialog *m_spell; | 675 | KateSpellCheckDialog *m_spell; | ||
671 | KateBookmarks *const m_bookmarks; | 676 | KateBookmarks *const m_bookmarks; | ||
672 | 677 | | |||
678 | KTextEditor::AbstractAnnotationItemDelegate *m_annotationItemDelegate; | ||||
679 | bool m_uniformAnnotationItemSizes; | ||||
680 | bool m_defaultAnnotationItemDelegate; | ||||
681 | | ||||
673 | //* margins | 682 | //* margins | ||
674 | QSpacerItem *m_topSpacer; | 683 | QSpacerItem *m_topSpacer; | ||
675 | QSpacerItem *m_leftSpacer; | 684 | QSpacerItem *m_leftSpacer; | ||
676 | QSpacerItem *m_rightSpacer; | 685 | QSpacerItem *m_rightSpacer; | ||
677 | QSpacerItem *m_bottomSpacer; | 686 | QSpacerItem *m_bottomSpacer; | ||
678 | 687 | | |||
679 | private Q_SLOTS: | 688 | private Q_SLOTS: | ||
680 | void slotHlChanged(); | 689 | void slotHlChanged(); | ||
▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines |