Libksieve

sievetexteditwidget.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-only
5*/
6
7#pragma once
8
9#include "ksieveui_private_export.h"
10#include <QWidget>
11#include <memory>
12namespace TextCustomEditor
13{
14class PlainTextEditFindBar;
15}
16namespace TextAddonsWidgets
17{
18class SlideContainer;
19}
20
21namespace KSieveUi
22{
23class SieveTextEdit;
24class SieveTextEditWidgetPrivate;
25class KSIEVEUI_TESTS_EXPORT SieveTextEditWidget : public QWidget
26{
27 Q_OBJECT
28public:
29 explicit SieveTextEditWidget(QWidget *parent = nullptr);
30 SieveTextEditWidget(KSieveUi::SieveTextEdit *customTextEdit, QWidget *parent);
31 ~SieveTextEditWidget() override;
32 void setReadOnly(bool readOnly);
33
34 [[nodiscard]] KSieveUi::SieveTextEdit *textEdit() const;
35
36public Q_SLOTS:
37 void slotReplace();
38 void slotFind();
39
40private:
41 KSIEVEUI_NO_EXPORT void initialize(KSieveUi::SieveTextEdit *custom = nullptr);
42 std::unique_ptr<SieveTextEditWidgetPrivate> const d;
43};
44}
The SieveTextEdit class.
KCRASH_EXPORT void initialize()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.