summaryrefslogtreecommitdiffstats
path: root/kgoldrunner/src/kgrcanvas.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 /kgoldrunner/src/kgrcanvas.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 'kgoldrunner/src/kgrcanvas.h')
-rw-r--r--kgoldrunner/src/kgrcanvas.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/kgoldrunner/src/kgrcanvas.h b/kgoldrunner/src/kgrcanvas.h
index 02b89bed..2c0ab270 100644
--- a/kgoldrunner/src/kgrcanvas.h
+++ b/kgoldrunner/src/kgrcanvas.h
@@ -22,22 +22,22 @@
#include <config.h>
#endif
-#include <qcursor.h>
-#include <qcanvas.h>
-#include <qlabel.h>
-#include <qimage.h>
-#include <qpainter.h>
+#include <tqcursor.h>
+#include <tqcanvas.h>
+#include <tqlabel.h>
+#include <tqimage.h>
+#include <tqpainter.h>
class KGrCanvas : public QCanvasView
{
Q_OBJECT
public:
- KGrCanvas (QWidget * parent = 0, const char *name = 0);
+ KGrCanvas (TQWidget * parent = 0, const char *name = 0);
virtual ~KGrCanvas();
- void changeLandscape (const QString & name);
+ void changeLandscape (const TQString & name);
- QPoint getMousePos ();
+ TQPoint getMousePos ();
void setMousePos (int, int);
bool changeSize (int);
@@ -45,7 +45,7 @@ public:
void updateCanvas ();
void paintCell (int, int, char, int offset = 0);
- void setTitle (QString);
+ void setTitle (TQString);
void makeHeroSprite (int, int, int);
void setHeroVisible (bool);
@@ -55,55 +55,55 @@ public:
void moveEnemy (int, int, int, int, int);
void deleteEnemySprites();
- QPixmap getPixmap (char type);
+ TQPixmap getPixmap (char type);
signals:
void mouseClick (int);
void mouseLetGo (int);
protected:
- void contentsMousePressEvent (QMouseEvent *);
- void contentsMouseReleaseEvent (QMouseEvent *);
+ void contentsMousePressEvent (TQMouseEvent *);
+ void contentsMouseReleaseEvent (TQMouseEvent *);
private:
- QCursor * m;
+ TQCursor * m;
- QCanvas * field;
- QCanvasView * fieldView;
+ TQCanvas * field;
+ TQCanvasView * fieldView;
int scaleStep; // Current scale-factor of canvas.
int baseScale; // Starting scale-factor of canvas.
int baseFontSize;
int border; // Number of tiles allowed for border.
int cw, bw, lw, mw; // Dimensions (in pixels) of the border.
- QColor borderColor, textColor; // Border colours.
- QLabel * title; // Title and top part of border.
- QCanvasRectangle * borderB; // Bottom part of border.
- QCanvasRectangle * borderL; // Left-hand part of border.
- QCanvasRectangle * borderR; // Right-hand part of border.
+ TQColor borderColor, textColor; // Border colours.
+ TQLabel * title; // Title and top part of border.
+ TQCanvasRectangle * borderB; // Bottom part of border.
+ TQCanvasRectangle * borderL; // Left-hand part of border.
+ TQCanvasRectangle * borderR; // Right-hand part of border.
int freebg, nuggetbg, polebg, ladderbg, hladderbg;
int edherobg, edenemybg, betonbg, brickbg, fbrickbg;
int bgw, bgh, bgd;
- QPixmap bgPix;
+ TQPixmap bgPix;
- QCanvasPixmapArray * heroArray;
- QCanvasPixmapArray * enemyArray;
+ TQCanvasPixmapArray * heroArray;
+ TQCanvasPixmapArray * enemyArray;
int goldEnemy;
- QCanvasSprite * heroSprite;
+ TQCanvasSprite * heroSprite;
#ifdef QT3
- QPtrList<QCanvasSprite> * enemySprites;
+ TQPtrList<TQCanvasSprite> * enemySprites;
#else
- QList<QCanvasSprite> * enemySprites;
+ QList<TQCanvasSprite> * enemySprites;
#endif
void initView();
void makeTiles();
void makeBorder();
void makeTitle();
- QColor colour;
- QCanvasRectangle * drawRectangle (int, int, int, int, int);
+ TQColor colour;
+ TQCanvasRectangle * drawRectangle (int, int, int, int, int);
void changeColours (const char * colours []);
void recolourObject (const char * object [], const char * colours []);
};