lib Library API Documentation

koCharSelectDia.h

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., 59 Temple Place - Suite 330, 00017 Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef KOCHARSELECTDIA_H 00021 #define KOCHARSELECTDIA_H 00022 00023 #include <kdialogbase.h> 00024 00025 class QWidget; 00026 class QGridLayout; 00027 class QPushButton; 00028 class KCharSelect; 00029 class KButtonBox; 00030 00031 /******************************************************************/ 00032 /* class KoCharSelectDia */ 00033 /******************************************************************/ 00034 00035 class KoCharSelectDia : public KDialogBase 00036 { 00037 Q_OBJECT 00038 00039 public: 00040 00041 // constructor - destructor 00042 KoCharSelectDia( QWidget *parent, const char *name, const QChar &_chr, 00043 const QString &_font, bool _enableFont, bool _modal=true ); 00044 00045 //constructor when you want to insert multi char 00046 KoCharSelectDia( QWidget *parent, const char *name, const QString &_font, 00047 const QChar &_chr, bool _modal=true ); 00048 ~KoCharSelectDia(); 00049 // select char dialog 00050 static bool selectChar( QString &_font, QChar &_chr, bool _enableFont = true ); 00051 00052 // internal 00053 QChar chr(); 00054 QString font(); 00055 void closeDialog(); 00056 00057 private: 00058 void initDialog(const QChar &_chr, const QString &_font, bool _enableFont); 00059 00060 private slots: 00061 void slotUser1(); 00062 void slotDoubleClicked(); 00063 00064 protected: 00065 // dialog objects 00066 QGridLayout *grid; 00067 KButtonBox *bbox; 00068 QPushButton *bOk, *bCancel; 00069 KCharSelect *charSelect; 00070 00071 signals: 00072 void insertChar(QChar,const QString &); 00073 }; 00074 00075 #endif
KDE Logo
This file is part of the documentation for lib Library Version 1.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Sep 28 04:03:59 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003