File indexing completed on 2021-12-21 14:36:21

0001 /*
0002  * SPDX-FileCopyrightText: 1999 Reginald Stadlbauer <reggie@kde.org>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef KCHARSELECTDIA_H
0008 #define KCHARSELECTDIA_H
0009 
0010 #include <QLineEdit>
0011 #include <QPushButton>
0012 
0013 #include <KCharSelect>
0014 #include <KXmlGuiWindow>
0015 
0016 /******************************************************************/
0017 /* class KCharSelectDia                                           */
0018 /******************************************************************/
0019 class QGridLayout;
0020 class KCharSelectDia : public KXmlGuiWindow
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     explicit KCharSelectDia(QWidget *parent = nullptr);
0026 
0027     friend class KCharSelectBookmarkOwner;
0028 
0029 protected:
0030     void closeEvent(QCloseEvent *event) override;
0031 
0032     QGridLayout *grid;
0033     KCharSelect *charSelect;
0034     QLineEdit *lined;
0035     QPushButton *bClip;
0036 
0037     uint vChr;
0038     QFont vFont;
0039     bool _rtl;
0040 
0041 protected Q_SLOTS:
0042     void charChanged(uint _chr);
0043     void fontSelected(const QFont &_font);
0044     void add()
0045     {
0046         add(vChr);
0047     }
0048     void add(uint _chr);
0049     void toClip();
0050     void toClipUTF8();
0051     void toClipHTML();
0052     void fromClip();
0053     void fromClipUTF8();
0054     void flipText();
0055     void setRtl(bool rtl);
0056     void lineEditChanged();
0057 };
0058 
0059 #endif