00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KOCHARSELECTDIA_H
00021 #define KOCHARSELECTDIA_H
00022
00023 #include <kdialog.h>
00024 #include <koffice_export.h>
00025
00026 class QWidget;
00027 class QGridLayout;
00028 class QPushButton;
00029 class KCharSelect;
00030 class KButtonBox;
00031
00032
00033
00034
00035
00036 class KOFFICEUI_EXPORT KoCharSelectDia : public KDialog
00037 {
00038 Q_OBJECT
00039
00040 public:
00041
00042
00043 KoCharSelectDia( QWidget *parent, const char *name, const QChar &_chr,
00044 const QString &_font, bool _enableFont, bool _modal=true );
00045
00046
00047 KoCharSelectDia( QWidget *parent, const char *name, const QString &_font,
00048 const QChar &_chr, bool _modal=true );
00049 ~KoCharSelectDia();
00050
00051 KOFFICEUI_EXPORT static bool selectChar( QString &_font, QChar &_chr, bool _enableFont = true, QWidget* parent = 0, const char* name = 0);
00052
00053
00054 QChar chr() const;
00055 QString font() const;
00056 void closeDialog();
00057
00058 private:
00059 void initDialog(const QChar &_chr, const QString &_font, bool _enableFont);
00060
00061 private slots:
00062 void slotUser1();
00063 void slotDoubleClicked();
00064
00065 protected:
00066
00067 QGridLayout *grid;
00068 KButtonBox *bbox;
00069 QPushButton *bOk, *bCancel;
00070 KCharSelect *charSelect;
00071
00072 signals:
00073 void insertChar(QChar,const QString &);
00074 };
00075
00076 #endif