diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /kspaceduel/mainview.h | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-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 'kspaceduel/mainview.h')
-rw-r--r-- | kspaceduel/mainview.h | 52 |
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; |