summaryrefslogtreecommitdiffstats
path: root/kbounce/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'kbounce/game.h')
-rw-r--r--kbounce/game.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/kbounce/game.h b/kbounce/game.h
index eb5208cd..b7ebe769 100644
--- a/kbounce/game.h
+++ b/kbounce/game.h
@@ -19,9 +19,9 @@
#ifndef GAME_H_INCLUDED
#define GAME_H_INCLUDED
-#include <qwidget.h>
-#include <qcanvas.h>
-#include <qmemarray.h>
+#include <tqwidget.h>
+#include <tqcanvas.h>
+#include <tqmemarray.h>
#if HAVE_ARTS
#include <arts/soundserver.h>
@@ -38,7 +38,7 @@ class JezzField;
class Ball : public QCanvasSprite
{
public:
- Ball(QCanvasPixmapArray* array, QCanvas* canvas);
+ Ball(TQCanvasPixmapArray* array, TQCanvas* canvas);
void update();
void advance(int stage);
@@ -57,7 +57,7 @@ public:
enum Direction { Up, Down, Left, Right };
Wall( JezzField *field, int x, int y, Direction dir, int tile,
- QObject *parent=0, const char *name=0 );
+ TQObject *parent=0, const char *name=0 );
void finish();
void fill( bool black );
@@ -87,10 +87,10 @@ class JezzField : public QCanvas
{
Q_OBJECT
public:
- JezzField( const QPixmap &tiles, const QPixmap &background, QObject* parent = 0, const char* name = 0 );
+ JezzField( const TQPixmap &tiles, const TQPixmap &background, TQObject* parent = 0, const char* name = 0 );
void setGameTile( int x, int y, bool black );
- void setBackground( const QPixmap &background );
+ void setBackground( const TQPixmap &background );
signals:
void ballCollision( Ball *ball, int x, int y, int tile );
@@ -98,10 +98,10 @@ signals:
private:
friend class Ball;
bool m_background;
- QPixmap m_tiles;
- QMemArray<QPixmap> m_backTiles;
+ TQPixmap m_tiles;
+ TQMemArray<TQPixmap> m_backTiles;
- void setPixmaps( const QPixmap &tiles, const QPixmap &background );
+ void setPixmaps( const TQPixmap &tiles, const TQPixmap &background );
void emitBallCollisiton( Ball *ball, int x, int y, int tile )
{ emit ballCollision( ball, x, y, tile ); }
@@ -112,13 +112,13 @@ class JezzView : public QCanvasView
{
Q_OBJECT
public:
- JezzView(QCanvas* viewing=0, QWidget* parent=0, const char* name=0, WFlags f=0);
+ JezzView(TQCanvas* viewing=0, TQWidget* parent=0, const char* name=0, WFlags f=0);
signals:
void buildWall( int x, int y, bool vertical );
protected:
- void viewportMouseReleaseEvent( QMouseEvent * );
+ void viewportMouseReleaseEvent( TQMouseEvent * );
private:
bool m_vertical;
@@ -130,13 +130,13 @@ class JezzGame : public QWidget
Q_OBJECT
public:
- JezzGame( const QPixmap &background, int ballNum, QWidget *parent=0, const char *name=0 );
+ JezzGame( const TQPixmap &background, int ballNum, TQWidget *parent=0, const char *name=0 );
~JezzGame();
int percent();
- static void playSound( const QString &name );
- void display( const QString &text, int size=20 );
- void setBackground( const QPixmap &background );
+ static void playSound( const TQString &name );
+ void display( const TQString &text, int size=20 );
+ void setBackground( const TQPixmap &background );
signals:
void died();
@@ -164,11 +164,11 @@ protected:
Wall *m_wall1, *m_wall2;
- QPtrList<Ball> m_balls;
- QCanvasPixmapArray *m_ballPixmaps;
- QCanvasText *m_text;
+ TQPtrList<Ball> m_balls;
+ TQCanvasPixmapArray *m_ballPixmaps;
+ TQCanvasText *m_text;
- QTimer *m_clock;
+ TQTimer *m_clock;
bool m_running;
int m_percent;
bool m_pictured;
@@ -176,7 +176,7 @@ protected:
#if HAVE_ARTS
static SimpleSoundServer *m_artsServer;
#endif
- static QString m_soundPath;
+ static TQString m_soundPath;
static bool m_sound;
};