Libksieve

sievetexteditwidget.h
1 /*
2  Copyright (C) 2015-2020 Laurent Montel <[email protected]>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef SIEVETEXTEDITWIDGET_H
19 #define SIEVETEXTEDITWIDGET_H
20 
21 #include <QWidget>
22 #include "ksieveui_private_export.h"
23 namespace KPIMTextEdit {
24 class SlideContainer;
25 class PlainTextEditFindBar;
26 }
27 
28 namespace KSieveUi {
29 class SieveTextEdit;
30 class SieveTextEditWidgetPrivate;
31 class KSIEVEUI_TESTS_EXPORT SieveTextEditWidget : public QWidget
32 {
33  Q_OBJECT
34 public:
35  explicit SieveTextEditWidget(QWidget *parent = nullptr);
36  SieveTextEditWidget(KSieveUi::SieveTextEdit *customTextEdit, QWidget *parent);
37  ~SieveTextEditWidget();
38  void setReadOnly(bool readOnly);
39 
40  Q_REQUIRED_RESULT KSieveUi::SieveTextEdit *textEdit() const;
41 
42 public Q_SLOTS:
43  void slotReplace();
44  void slotFind();
45 
46 private:
47  void initialize(KSieveUi::SieveTextEdit *custom = nullptr);
48  SieveTextEditWidgetPrivate *const d;
49  KSieveUi::SieveTextEdit *mTextEdit = nullptr;
50  KPIMTextEdit::SlideContainer *mSliderContainer = nullptr;
51  KPIMTextEdit::PlainTextEditFindBar *mFindBar = nullptr;
52 };
53 }
54 #endif // SIEVETEXTEDITWIDGET_H
KCRASH_EXPORT void initialize()
The SieveTextEdit class.
Definition: sievetextedit.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 14 2020 23:08:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.