summaryrefslogtreecommitdiffstats
path: root/ksokoban/PlayField.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 /ksokoban/PlayField.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 'ksokoban/PlayField.h')
-rw-r--r--ksokoban/PlayField.h76
1 files changed, 38 insertions, 38 deletions
diff --git a/ksokoban/PlayField.h b/ksokoban/PlayField.h
index 57524ea8..0066442a 100644
--- a/ksokoban/PlayField.h
+++ b/ksokoban/PlayField.h
@@ -20,13 +20,13 @@
#ifndef PLAYFIELD_H
#define PLAYFIELD_H
-#include <qwidget.h>
-#include <qstring.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qpixmap.h>
-#include <qimage.h>
-#include <qbrush.h>
+#include <tqwidget.h>
+#include <tqstring.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqpixmap.h>
+#include <tqimage.h>
+#include <tqbrush.h>
#include "ImageData.h"
#include "LevelMap.h"
@@ -41,10 +41,10 @@ class LevelCollection;
class QPainter;
class QCursor;
-class PlayField : public QWidget {
+class PlayField : public TQWidget {
Q_OBJECT
public:
- PlayField(QWidget *parent, const char *name=0, WFlags f=0);
+ PlayField(TQWidget *parent, const char *name=0, WFlags f=0);
~PlayField ();
bool canMoveNow();
@@ -57,7 +57,7 @@ public:
void goToBookmark(Bookmark *bm);
int level() const;
- const QString &collectionName();
+ const TQString &collectionName();
int totalMoves() const;
int totalPushes() const;
@@ -87,30 +87,30 @@ protected:
bool dragInProgress_;
PathFinder pathFinder_;
int animDelay_;
- const QCursor* cursor_;
+ const TQCursor* cursor_;
void levelChange ();
- void paintSquare (int x, int y, QPainter &paint);
+ void paintSquare (int x, int y, TQPainter &paint);
void paintDelta ();
- void paintEvent (QPaintEvent *e);
- void paintPainterClip(QPainter& paint, int x, int y, int w, int h);
- void paintPainter(QPainter& paint, const QRect& rect);
- void resizeEvent (QResizeEvent *e);
- void mouseMoveEvent(QMouseEvent* e);
- void keyPressEvent (QKeyEvent *);
- void focusInEvent (QFocusEvent *);
- void focusOutEvent (QFocusEvent *);
- void mousePressEvent (QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent*);
- void leaveEvent(QEvent*);
- void wheelEvent (QWheelEvent *);
+ void paintEvent (TQPaintEvent *e);
+ void paintPainterClip(TQPainter& paint, int x, int y, int w, int h);
+ void paintPainter(TQPainter& paint, const TQRect& rect);
+ void resizeEvent (TQResizeEvent *e);
+ void mouseMoveEvent(TQMouseEvent* e);
+ void keyPressEvent (TQKeyEvent *);
+ void focusInEvent (TQFocusEvent *);
+ void focusOutEvent (TQFocusEvent *);
+ void mousePressEvent (TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent*);
+ void leaveEvent(TQEvent*);
+ void wheelEvent (TQWheelEvent *);
void step (int _x, int _y);
void push (int _x, int _y);
- virtual void timerEvent (QTimerEvent *);
+ virtual void timerEvent (TQTimerEvent *);
void stopDrag();
void dragObject(int xpixel, int ypixel);
void highlight();
- void changeCursor(const QCursor* c);
+ void changeCursor(const TQCursor* c);
void eatKeyPressEvents();
private:
@@ -131,18 +131,18 @@ private:
void startMoving (MoveSequence *ms);
void stopMoving ();
- QRect pnumRect_, ptxtRect_, snumRect_, stxtRect_, lnumRect_, ltxtRect_;
- QRect collRect_;
-
- const QString levelText_, stepsText_, pushesText_;
- QPixmap pnumXpm_, ptxtXpm_, snumXpm_, stxtXpm_, lnumXpm_, ltxtXpm_;
- QPixmap collXpm_;
- QPixmap dragXpm_;
- QImage dragImage_;
- QFont statusFont_;
- QFontMetrics statusMetrics_;
- QBrush background_;
- QBrush floor_;
+ TQRect pnumRect_, ptxtRect_, snumRect_, stxtRect_, lnumRect_, ltxtRect_;
+ TQRect collRect_;
+
+ const TQString levelText_, stepsText_, pushesText_;
+ TQPixmap pnumXpm_, ptxtXpm_, snumXpm_, stxtXpm_, lnumXpm_, ltxtXpm_;
+ TQPixmap collXpm_;
+ TQPixmap dragXpm_;
+ TQImage dragImage_;
+ TQFont statusFont_;
+ TQFontMetrics statusMetrics_;
+ TQBrush background_;
+ TQBrush floor_;
};