kcharselect
kcharselectdia.h
Go to the documentation of this file.00001 /* 00002 * Copyright 1999 Reginald Stadlbauer <reggie@kde.org> 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License as 00006 * published by the Free Software Foundation; either version 2 of 00007 * the License, or (at your option) any later version. 00008 * 00009 * This program 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 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 #ifndef KCHARSELECTDIA_H 00019 #define KCHARSELECTDIA_H 00020 00021 #include <QClipboard> 00022 #include <QLayout> 00023 00024 #include <KCharSelect> 00025 #include <KLineEdit> 00026 #include <KPushButton> 00027 #include <KXmlGuiWindow> 00028 00029 /******************************************************************/ 00030 /* class KCharSelectDia */ 00031 /******************************************************************/ 00032 00033 class KCharSelectDia : public KXmlGuiWindow 00034 { 00035 Q_OBJECT 00036 00037 public: 00038 KCharSelectDia(); 00039 00040 protected: 00041 virtual bool queryExit(); 00042 00043 QGridLayout *grid; 00044 KCharSelect *charSelect; 00045 KLineEdit *lined; 00046 KPushButton *bClip; 00047 00048 QChar vChr; 00049 QFont vFont; 00050 bool _rtl; 00051 00052 protected slots: 00053 void charChanged(const QChar &_chr); 00054 void fontSelected(const QFont &_font); 00055 void add() 00056 { add(vChr); } 00057 void add(const QChar &_chr); 00058 void toClip(); 00059 void toClipUTF8(); 00060 void toClipHTML(); 00061 void fromClip(); 00062 void fromClipUTF8(); 00063 void flipText(); 00064 void setRtl(bool rtl); 00065 void lineEditChanged(); 00066 00067 }; 00068 00069 #endif
KDE 4.2 API Reference