diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 2bda8f7717adf28da4af0d34fb82f63d2868c31d (patch) | |
tree | 8d927b7b47a90c4adb646482a52613f58acd6f8c /kcharselect/kcharselectdia.h | |
download | tdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.tar.gz tdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcharselect/kcharselectdia.h')
-rw-r--r-- | kcharselect/kcharselectdia.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/kcharselect/kcharselectdia.h b/kcharselect/kcharselectdia.h new file mode 100644 index 0000000..a3a0ea1 --- /dev/null +++ b/kcharselect/kcharselectdia.h @@ -0,0 +1,71 @@ +/******************************************************************/ +/* KCharSelectDia - (c) by Reginald Stadlbauer 1999 */ +/* Author: Reginald Stadlbauer */ +/* E-Mail: reggie@kde.org */ +/******************************************************************/ + +#ifndef kcharselectdia_h +#define kcharselectdia_h + + +#include <qlayout.h> +#include <qlineedit.h> +#include <qclipboard.h> + +#include <kpushbutton.h> +#include <kcharselect.h> +#include <kmainwindow.h> + +static const char *version = "v1.1"; + +/******************************************************************/ +/* class KCharSelectDia */ +/******************************************************************/ + +class KCharSelectDia : public KMainWindow +{ + Q_OBJECT + +public: + KCharSelectDia(QWidget *parent,const char *name,const QChar &_chr,const QString &_font,int _tableNum, bool direction); + + static bool selectChar(QString &_font,QChar &_chr,int _tableNum); + + int chr() { return vChr; } + QString font() { return vFont; } + +protected: + void closeEvent(QCloseEvent *) { _exit(); } + + QGridLayout *grid; + KCharSelect *charSelect; + QLineEdit *lined; + KPushButton *bClip,*bClear; + KPushButton *bHelp; + + QChar vChr; + QString vFont; + int pointSize; + bool entryDirection; + +protected slots: + void charChanged(const QChar &_chr); + void fontSelected(const QString &_font); + void add() + { add(vChr); } + void add(const QChar &_chr); + void toClip(); + void toClipUTF8(); + void toClipHTML(); + void fromClip(); + void fromClipUTF8(); + void flipText(); + void toggleEntryDirection(); + void lineEditChanged(); + void _exit(); + void clear(); + void help(); + +}; + +#endif |