KTextEditor

matchhighlighter.h
1/*
2 SPDX-FileCopyrightText: 2013-2016 Simon St James <kdedevel@etotheipiplusone.com>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KATEVI_EMULATED_COMMAND_BAR_MATCHHIGHLIGHTER_H
8#define KATEVI_EMULATED_COMMAND_BAR_MATCHHIGHLIGHTER_H
9
10#include <ktexteditor/attribute.h>
11
12#include <QObject>
13
14namespace KTextEditor
15{
16class ViewPrivate;
17class Range;
18class MovingRange;
19}
20
21namespace KateVi
22{
23class MatchHighlighter : public QObject
24{
25public:
26 explicit MatchHighlighter(KTextEditor::ViewPrivate *view);
27 ~MatchHighlighter() override;
28 void updateMatchHighlight(KTextEditor::Range matchRange);
29
30private:
31 void updateMatchHighlightAttrib();
32
33private:
34 KTextEditor::ViewPrivate *m_view = nullptr;
35 KTextEditor::Attribute::Ptr m_highlightMatchAttribute;
36 KTextEditor::MovingRange *m_highlightedMatch;
37};
38}
39#endif
QExplicitlySharedDataPointer< Attribute > Ptr
Shared data pointer for Attribute.
Definition attribute.h:56
A range that is bound to a specific Document, and maintains its position.
An object representing a section of text, from one Cursor to another.
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:25 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.