summaryrefslogtreecommitdiffstats
path: root/kolf/newgame.h
diff options
context:
space:
mode:
Diffstat (limited to 'kolf/newgame.h')
-rw-r--r--kolf/newgame.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/kolf/newgame.h b/kolf/newgame.h
index b9770a80..3259846f 100644
--- a/kolf/newgame.h
+++ b/kolf/newgame.h
@@ -5,14 +5,14 @@
#include <klineedit.h>
#include <kcolorbutton.h>
-#include <qcheckbox.h>
-#include <qcolor.h>
-#include <qptrlist.h>
-#include <qstring.h>
+#include <tqcheckbox.h>
+#include <tqcolor.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
#include <kpushbutton.h>
-#include <qstringlist.h>
-#include <qvaluelist.h>
-#include <qwidget.h>
+#include <tqstringlist.h>
+#include <tqvaluelist.h>
+#include <tqwidget.h>
#include "game.h"
@@ -29,11 +29,11 @@ class PlayerEditor : public QWidget
Q_OBJECT
public:
- PlayerEditor(QString name = QString::null, QColor = red, QWidget *parent = 0, const char *_name = 0);
- QColor color() { return colorButton->color(); }
- QString name() { return editor->text(); }
- void setColor(QColor col) { colorButton->setColor(col); }
- void setName(const QString &newname) { editor->setText(newname); }
+ PlayerEditor(TQString name = TQString::null, TQColor = red, TQWidget *parent = 0, const char *_name = 0);
+ TQColor color() { return colorButton->color(); }
+ TQString name() { return editor->text(); }
+ void setColor(TQColor col) { colorButton->setColor(col); }
+ void setName(const TQString &newname) { editor->setText(newname); }
signals:
void deleteEditor(PlayerEditor *editor);
@@ -44,7 +44,7 @@ private slots:
private:
KLineEdit *editor;
KColorButton *colorButton;
- QPixmap grass;
+ TQPixmap grass;
};
class NewGameDialog : public KDialogBase
@@ -52,10 +52,10 @@ class NewGameDialog : public KDialogBase
Q_OBJECT
public:
- NewGameDialog(bool enableCourses, QWidget *parent, const char *_name = 0);
- QPtrList<PlayerEditor> *players() { return &editors; }
+ NewGameDialog(bool enableCourses, TQWidget *parent, const char *_name = 0);
+ TQPtrList<PlayerEditor> *players() { return &editors; }
bool competition() { return mode->isChecked(); }
- QString course() { return currentCourse; }
+ TQString course() { return currentCourse; }
public slots:
void deleteEditor(PlayerEditor *);
@@ -72,32 +72,32 @@ private slots:
void showHighscores();
private:
- QVBox *layout;
+ TQVBox *layout;
KPushButton *addButton;
- QFrame *playerPage;
- QScrollView *scroller;
- QFrame *coursePage;
- QFrame *optionsPage;
- QValueList<QColor> startColors;
- QPtrList<PlayerEditor> editors;
+ TQFrame *playerPage;
+ TQScrollView *scroller;
+ TQFrame *coursePage;
+ TQFrame *optionsPage;
+ TQValueList<TQColor> startColors;
+ TQPtrList<PlayerEditor> editors;
KPushButton *remove;
- QCheckBox *mode;
+ TQCheckBox *mode;
- QPixmap grass;
+ TQPixmap grass;
- QStringList names;
- QStringList externCourses;
- QMap<QString, CourseInfo> info;
+ TQStringList names;
+ TQStringList externCourses;
+ TQMap<TQString, CourseInfo> info;
- QStringList extraCourses;
+ TQStringList extraCourses;
KListBox *courseList;
- QLabel *name;
- QLabel *author;
- QLabel *par;
- QLabel *holes;
+ TQLabel *name;
+ TQLabel *author;
+ TQLabel *par;
+ TQLabel *holes;
- QString currentCourse;
+ TQString currentCourse;
void enableButtons();
bool enableCourses;