Libksieve

sievetexteditwidget.h
1 /*
2  SPDX-FileCopyrightText: 2015-2021 Laurent Montel <[email protected]>
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>
12 namespace KPIMTextEdit
13 {
14 class SlideContainer;
15 class PlainTextEditFindBar;
16 }
17 
18 namespace KSieveUi
19 {
20 class SieveTextEdit;
21 class SieveTextEditWidgetPrivate;
22 class KSIEVEUI_TESTS_EXPORT SieveTextEditWidget : public QWidget
23 {
24  Q_OBJECT
25 public:
26  explicit SieveTextEditWidget(QWidget *parent = nullptr);
27  SieveTextEditWidget(KSieveUi::SieveTextEdit *customTextEdit, QWidget *parent);
28  ~SieveTextEditWidget() override;
29  void setReadOnly(bool readOnly);
30 
31  Q_REQUIRED_RESULT KSieveUi::SieveTextEdit *textEdit() const;
32 
33 public Q_SLOTS:
34  void slotReplace();
35  void slotFind();
36 
37 private:
38  void initialize(KSieveUi::SieveTextEdit *custom = nullptr);
39  std::unique_ptr<SieveTextEditWidgetPrivate> const d;
40  KSieveUi::SieveTextEdit *mTextEdit = nullptr;
41  KPIMTextEdit::SlideContainer *mSliderContainer = nullptr;
42  KPIMTextEdit::PlainTextEditFindBar *mFindBar = nullptr;
43 };
44 }
KCRASH_EXPORT void initialize()
The SieveTextEdit class.
Definition: sievetextedit.h:20
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Apr 11 2021 23:09:37 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.