F:/KPlato/koffice/libs/kofficeui/KoCharSelectDia.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002    Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
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 /* class KoCharSelectDia                                           */
00034 /******************************************************************/
00035 
00036 class KOFFICEUI_EXPORT KoCharSelectDia : public KDialog
00037 {
00038     Q_OBJECT
00039 
00040 public:
00041 
00042     // constructor - destructor
00043     KoCharSelectDia( QWidget *parent, const char *name, const QChar &_chr,
00044                      const QString &_font, bool _enableFont, bool _modal=true );
00045 
00046     //constructor when you want to insert multi char
00047     KoCharSelectDia( QWidget *parent, const char *name, const QString &_font,
00048                      const QChar &_chr, bool _modal=true );
00049     ~KoCharSelectDia();
00050     // select char dialog
00051     KOFFICEUI_EXPORT static bool selectChar( QString &_font, QChar &_chr, bool _enableFont = true, QWidget* parent = 0, const char* name = 0);
00052 
00053     // internal
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     // dialog objects
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

Généré le Wed Nov 22 23:41:04 2006 pour KPlato par  doxygen 1.5.1-p1