1/*
2 * Copyright 1999 Reginald Stadlbauer <reggie@kde.org>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef KCHARSELECTDIA_H
19#define KCHARSELECTDIA_H
20
21#include <QClipboard>
22#include <QLayout>
23
24#include <KCharSelect>
25#include <KLineEdit>
26#include <KPushButton>
27#include <KXmlGuiWindow>
28
29/******************************************************************/
30/* class KCharSelectDia */
31/******************************************************************/
32
33class KCharSelectDia : public KXmlGuiWindow
34{
35 Q_OBJECT
36
37public:
38 KCharSelectDia();
39
40protected:
41 void closeEvent(QCloseEvent *event);
42
43 QGridLayout *grid;
44 KCharSelect *charSelect;
45 KLineEdit *lined;
46 KPushButton *bClip;
47
48 QChar vChr;
49 QFont vFont;
50 bool _rtl;
51
52protected slots:
53 void charChanged(const QChar &_chr);
54 void fontSelected(const QFont &_font);
55 void add()
56 { add(vChr); }
57 void add(const QChar &_chr);
58 void toClip();
59 void toClipUTF8();
60 void toClipHTML();
61 void fromClip();
62 void fromClipUTF8();
63 void flipText();
64 void setRtl(bool rtl);
65 void lineEditChanged();
66
67};
68
69#endif
70