1 /*
2     SPDX-License-Identifier: GPL-2.0-or-later
3 
4     SPDX-FileCopyrightText: 2004 Peter Simonsson <psn@linux.se>
5 */
6 
7 #ifndef KONVERSATIONINSERTCHARDIALOG_H
8 #define KONVERSATIONINSERTCHARDIALOG_H
9 
10 #include <QDialog>
11 
12 
13 class KCharSelect;
14 
15 namespace Konversation
16 {
17 
18     class InsertCharDialog : public QDialog
19     {
20         Q_OBJECT
21 
22         public:
23             explicit InsertCharDialog(const QString& font = QString(), QWidget *parent = nullptr);
24             ~InsertCharDialog() override;
25 
26             void setFont(const QFont &font);
27             uint chr() const;
28 
29         Q_SIGNALS:
30             void insertChar(uint);
31 
32         private Q_SLOTS:
33             void charSelected();
34             void slotAccepted();
35 
36         private:
37             KCharSelect* m_charTable;
38 
39             Q_DISABLE_COPY(InsertCharDialog)
40     };
41 
42 }
43 #endif
44