summaryrefslogtreecommitdiffstats
path: root/kiten/rad.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kiten/rad.h
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kiten/rad.h')
-rw-r--r--kiten/rad.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/kiten/rad.h b/kiten/rad.h
index bae2f8dc..2337d7c2 100644
--- a/kiten/rad.h
+++ b/kiten/rad.h
@@ -22,7 +22,7 @@
#ifndef RAD_H
#define RAD_H
-#include <qstringlist.h>
+#include <tqstringlist.h>
class Config;
class QCheckBox;
@@ -36,18 +36,18 @@ class QButtonGroup;
class KDE_EXPORT Radical
{
public:
- Radical(QString = QString::null, unsigned int = 0);
+ Radical(TQString = TQString::null, unsigned int = 0);
- QString radical() { return _Radical; }
+ TQString radical() { return _Radical; }
unsigned int strokes() { return Strokes; }
- QString kanji() { return Kanji; }
+ TQString kanji() { return Kanji; }
- void addKanji(const QString &);
+ void addKanji(const TQString &);
private:
- QString _Radical;
+ TQString _Radical;
unsigned int Strokes;
- QString Kanji;
+ TQString Kanji;
};
class KDE_EXPORT Rad : public QObject
@@ -58,16 +58,16 @@ class KDE_EXPORT Rad : public QObject
Rad();
~Rad();
- QStringList radByStrokes(unsigned int);
- QStringList kanjiByRad(const QString &);
- QStringList kanjiByRad(const QStringList &);
- Radical radByKanji(const QString &);
- unsigned int strokesByRad(const QString &);
+ TQStringList radByStrokes(unsigned int);
+ TQStringList kanjiByRad(const TQString &);
+ TQStringList kanjiByRad(const TQStringList &);
+ Radical radByKanji(const TQString &);
+ unsigned int strokesByRad(const TQString &);
private:
void load();
- QValueList<Radical> list;
+ TQValueList<Radical> list;
bool loaded;
};
@@ -76,15 +76,15 @@ class KDE_EXPORT RadWidget : public QWidget
Q_OBJECT
public:
- RadWidget(Rad *, QWidget *parent = 0, const char *name = 0);
+ RadWidget(Rad *, TQWidget *parent = 0, const char *name = 0);
~RadWidget();
signals:
// if totalStrokes == 0, then don't search by total strokes
- void set(const QStringList &radical, unsigned int totalStrokes, unsigned int totalStrokesErr);
+ void set(const TQStringList &radical, unsigned int totalStrokes, unsigned int totalStrokesErr);
public slots:
- void addRadical(const QString &);
+ void addRadical(const TQString &);
private slots:
void updateList(int);
@@ -92,30 +92,30 @@ class KDE_EXPORT RadWidget : public QWidget
void totalClicked(void);
void selectionChanged();
void hotlistClicked(int);
- void addToSelected(const QString &);
- void executed(QListBoxItem *);
+ void addToSelected(const TQString &);
+ void executed(TQListBoxItem *);
void removeSelected();
void clearSelected();
private:
- QSpinBox *strokesSpin;
- QSpinBox *totalSpin;
- QSpinBox *totalErrSpin;
- QLabel *totalErrLabel;
+ TQSpinBox *strokesSpin;
+ TQSpinBox *totalSpin;
+ TQSpinBox *totalErrSpin;
+ TQLabel *totalErrLabel;
KPushButton *ok;
KPushButton *cancel;
KPushButton *remove;
KPushButton *clear;
- QButtonGroup *hotlistGroup;
- QCheckBox *totalStrokes;
+ TQButtonGroup *hotlistGroup;
+ TQCheckBox *totalStrokes;
KListBox *List;
KListBox *selectedList;
- QStringList selected;
+ TQStringList selected;
Rad *rad;
unsigned int hotlistNum;
- QStringList hotlist;
+ TQStringList hotlist;
void numChanged();
};