Messagelib

templatestexteditor.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <TextCustomEditor/PlainTextEditor>
10
11#include <KSyntaxHighlighting/Repository>
12
13class QKeyEvent;
14namespace TextCustomEditor
15{
16class TextEditorCompleter;
17}
18namespace TemplateParser
19{
20class TemplatesTextEditor : public TextCustomEditor::PlainTextEditor
21{
23public:
24 explicit TemplatesTextEditor(QWidget *parent = nullptr);
25 ~TemplatesTextEditor() override;
26
27protected:
28 void initCompleter();
29 void keyPressEvent(QKeyEvent *e) override;
30
31 void updateHighLighter() override;
32
33 void clearDecorator() override;
34 void createHighlighter() override;
35
36private:
37 TextCustomEditor::TextEditorCompleter *mTextEditorCompleter = nullptr;
39};
40}
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.