/* SPDX-FileCopyrightText: 2013-2016 Simon St James SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef KATEVI_EMULATED_COMMAND_BAR_MATCHHIGHLIGHTER_H #define KATEVI_EMULATED_COMMAND_BAR_MATCHHIGHLIGHTER_H #include #include namespace KTextEditor { class ViewPrivate; class Range; class MovingRange; } namespace KateVi { class MatchHighlighter : public QObject { public: explicit MatchHighlighter(KTextEditor::ViewPrivate *view); ~MatchHighlighter() override; void updateMatchHighlight(KTextEditor::Range matchRange); private: void updateMatchHighlightAttrib(); private: KTextEditor::ViewPrivate *m_view = nullptr; KTextEditor::Attribute::Ptr m_highlightMatchAttribute; KTextEditor::MovingRange *m_highlightedMatch; }; } #endif