diff options
Diffstat (limited to 'kasteroids/view.h')
-rw-r--r-- | kasteroids/view.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kasteroids/view.h b/kasteroids/view.h index 6807037a..5d62f640 100644 --- a/kasteroids/view.h +++ b/kasteroids/view.h @@ -7,11 +7,11 @@ #ifndef __AST_VIEW_H__ #define __AST_VIEW_H__ -#include <qwidget.h> -#include <qptrlist.h> -#include <qtimer.h> -#include <qcanvas.h> -#include <qintdict.h> +#include <tqwidget.h> +#include <tqptrlist.h> +#include <tqtimer.h> +#include <tqcanvas.h> +#include <tqintdict.h> #include "sprites.h" #include <krandomsequence.h> @@ -21,7 +21,7 @@ class KAsteroidsView : public QWidget { Q_OBJECT public: - KAsteroidsView( QWidget *parent = 0, const char *name = 0 ); + KAsteroidsView( TQWidget *parent = 0, const char *name = 0 ); virtual ~KAsteroidsView(); int refreshRate; @@ -42,7 +42,7 @@ public: void brake( bool b ); void pause( bool p); - void showText( const QString &text, const QColor &color, bool scroll=TRUE ); + void showText( const TQString &text, const TQColor &color, bool scroll=TRUE ); void hideText(); int shots() const { return shotsFired; } @@ -65,8 +65,8 @@ private slots: protected: void readSprites(); - void wrapSprite( QCanvasItem * ); - void rockHit( QCanvasItem * ); + void wrapSprite( TQCanvasItem * ); + void rockHit( TQCanvasItem * ); void reducePower( int val ); void addExhaust( double x, double y, double dx, double dy, int count ); void processMissiles(); @@ -74,21 +74,21 @@ protected: void processPowerups(); void processShield(); - virtual void resizeEvent( QResizeEvent *event ); - virtual void timerEvent( QTimerEvent * ); + virtual void resizeEvent( TQResizeEvent *event ); + virtual void timerEvent( TQTimerEvent * ); private: - QCanvas field; - QCanvasView view; - QIntDict<QCanvasPixmapArray> animation; - QPtrList<QCanvasSprite> rocks; - QPtrList<KMissile> missiles; - QPtrList<KBit> bits; - QPtrList<KExhaust> exhaust; - QPtrList<KPowerup> powerups; + TQCanvas field; + TQCanvasView view; + TQIntDict<TQCanvasPixmapArray> animation; + TQPtrList<TQCanvasSprite> rocks; + TQPtrList<KMissile> missiles; + TQPtrList<KBit> bits; + TQPtrList<KExhaust> exhaust; + TQPtrList<KPowerup> powerups; KShield *shield; - QCanvasSprite *ship; - QCanvasText *textSprite; + TQCanvasSprite *ship; + TQCanvasText *textSprite; bool rotateL; bool rotateR; @@ -127,7 +127,7 @@ private: double powerupSpeed; KRandomSequence krandom; - QTimer *shieldTimer; + TQTimer *shieldTimer; }; #endif |