summaryrefslogtreecommitdiffstats
path: root/kspaceduel/mainview.h
diff options
context:
space:
mode:
Diffstat (limited to 'kspaceduel/mainview.h')
-rw-r--r--kspaceduel/mainview.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/kspaceduel/mainview.h b/kspaceduel/mainview.h
index 98dd8e15..c56a4f12 100644
--- a/kspaceduel/mainview.h
+++ b/kspaceduel/mainview.h
@@ -1,8 +1,8 @@
#ifndef __MY_MAIN_VIEW_H
#define __MY_MAIN_VIEW_H
-#include <qwidget.h>
-#include <qimage.h>
+#include <tqwidget.h>
+#include <tqimage.h>
class KToggleAction;
class KActionCollection;
@@ -20,7 +20,7 @@ class MyMainView:public QWidget
{
Q_OBJECT
public:
- MyMainView(QWidget *parent=0);
+ MyMainView(TQWidget *parent=0);
~MyMainView();
static KToggleAction *pauseAction;
@@ -42,16 +42,16 @@ signals:
void hitPoints(int pn,int hp);
void energy(int pn,int en);
void wins(int pn,int w);
- void setStatusText(const QString & str,int id);
+ void setStatusText(const TQString & str,int id);
protected:
- virtual void resizeEvent(QResizeEvent *event);
- virtual void timerEvent(QTimerEvent *event);
- virtual void keyPressEvent(QKeyEvent *event);
- virtual void keyReleaseEvent(QKeyEvent *event);
+ virtual void resizeEvent(TQResizeEvent *event);
+ virtual void timerEvent(TQTimerEvent *event);
+ virtual void keyPressEvent(TQKeyEvent *event);
+ virtual void keyReleaseEvent(TQKeyEvent *event);
SConfig modifyConfig(SConfig conf);
- QCanvasPixmapArray* loadOldPixmapSequence(const QString& datapattern,
- const QString& maskpattern, int framecount=1);
+ TQCanvasPixmapArray* loadOldPixmapSequence(const TQString& datapattern,
+ const TQString& maskpattern, int framecount=1);
void moveShips();
void moveBullets();
void moveMines();
@@ -61,8 +61,8 @@ protected:
private:
KActionCollection *actionCollection;
- QCanvas field;
- QCanvasView view;
+ TQCanvas field;
+ TQCanvasView view;
SConfig customConfig,config;
@@ -75,24 +75,24 @@ private:
double timeToNextPowerup;
// sprites
- QPtrList<QImage> shipImages;
- QPtrList<QPoint> points;
- QImage bulletImage;
- QCanvasPixmapArray *bulletsequence[2];
- QCanvasPixmapArray *shipsequence[2];
- QCanvasPixmapArray *explosionsequence;
- QCanvasPixmapArray *minesequence[2];
- QCanvasPixmapArray *mineexplosionsequence;
- QCanvasPixmapArray *powerupsequence[PowerupSprite::PowerupNum];
+ TQPtrList<TQImage> shipImages;
+ TQPtrList<TQPoint> points;
+ TQImage bulletImage;
+ TQCanvasPixmapArray *bulletsequence[2];
+ TQCanvasPixmapArray *shipsequence[2];
+ TQCanvasPixmapArray *explosionsequence;
+ TQCanvasPixmapArray *minesequence[2];
+ TQCanvasPixmapArray *mineexplosionsequence;
+ TQCanvasPixmapArray *powerupsequence[PowerupSprite::PowerupNum];
ShipSprite *ship[2];
SunSprite *sun;
- QCanvasText *textSprite;
- QPtrList<BulletSprite> *bullets[2];
- QPtrList<MineSprite> *mines[2];
- QPtrList<ExplosionSprite> explosions;
- QPtrList<PowerupSprite> powerups;
+ TQCanvasText *textSprite;
+ TQPtrList<BulletSprite> *bullets[2];
+ TQPtrList<MineSprite> *mines[2];
+ TQPtrList<ExplosionSprite> explosions;
+ TQPtrList<PowerupSprite> powerups;
KRandomSequence random;