moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kwordquiz / src / dlgspecchar.h
blob4248e8169f7a7374fe8f34019b05f3998e96c0ef
1 /***************************************************************************
2 dlglspecchar.h - description
3 -------------------
4 copyright : (C) 2003 by Peter Hedlund
5 email : peter@peterandlinda.com
6 ***************************************************************************/
8 /***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
17 #ifndef DLGSPECCHAR_H
18 #define DLGSPECCHAR_H
20 #include <kdialogbase.h>
22 class QWidget;
23 class QGridLayout;
24 class QPushButton;
25 class KCharSelect;
26 class KButtonBox;
28 /**
29 @author Peter Hedlund
31 class DlgSpecChar : public KDialogBase
33 Q_OBJECT
34 public:
35 //constructor when you want to insert multi char
36 DlgSpecChar( QWidget *parent, const char *name, const QString &_font,
37 const QChar &_chr, bool _modal=true );
38 ~DlgSpecChar();
40 // internal
41 QChar chr();
43 void closeDialog();
45 private:
46 void initDialog(const QChar &_chr, const QString &_font, bool _enableFont);
48 private slots:
49 void slotUser1();
50 void slotDoubleClicked();
52 protected:
53 // dialog objects
54 QGridLayout *grid;
55 KButtonBox *bbox;
56 QPushButton *bOk, *bCancel;
57 KCharSelect *charSelect;
59 signals:
60 void insertChar(QChar);
63 #endif