summaryrefslogtreecommitdiffstats
path: root/kasteroids/view.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /kasteroids/view.h
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kasteroids/view.h')
-rw-r--r--kasteroids/view.h44
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