summaryrefslogtreecommitdiffstats
path: root/ksokoban/ImageData.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/ImageData.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/ImageData.h')
-rw-r--r--ksokoban/ImageData.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/ksokoban/ImageData.h b/ksokoban/ImageData.h
index 4e57bc7d..ae2f2a42 100644
--- a/ksokoban/ImageData.h
+++ b/ksokoban/ImageData.h
@@ -20,9 +20,9 @@
#ifndef IMAGEDATA_H
#define IMAGEDATA_H
-#include <qimage.h>
-#include <qpixmap.h>
-#include <qcstring.h>
+#include <tqimage.h>
+#include <tqpixmap.h>
+#include <tqcstring.h>
#include <krandomsequence.h>
@@ -41,44 +41,44 @@ public:
int resize(int size);
int size() { return size_; }
- void wall(QPainter &p, int x, int y, int index, bool left, bool right);
- void floor(QPainter &p, int x, int y);
- void goal(QPainter &p, int x, int y);
- void man(QPainter &p, int x, int y);
- void object(QPainter &p, int x, int y);
- void saveman(QPainter &p, int x, int y);
- void treasure(QPainter &p, int x, int y);
- void brightObject(QPainter &p, int x, int y);
- void brightTreasure(QPainter &p, int x, int y);
+ void wall(TQPainter &p, int x, int y, int index, bool left, bool right);
+ void floor(TQPainter &p, int x, int y);
+ void goal(TQPainter &p, int x, int y);
+ void man(TQPainter &p, int x, int y);
+ void object(TQPainter &p, int x, int y);
+ void saveman(TQPainter &p, int x, int y);
+ void treasure(TQPainter &p, int x, int y);
+ void brightObject(TQPainter &p, int x, int y);
+ void brightTreasure(TQPainter &p, int x, int y);
- const QPixmap &background() { return background_; }
- const QImage& objectImg() const { return objectImg_; }
+ const TQPixmap &background() { return background_; }
+ const TQImage& objectImg() const { return objectImg_; }
protected:
ImageData();
void expandIndex(int size);
- void image2pixmap(QImage img, QPixmap& xpm, bool diffuse=true);
- void brighten(QImage& img);
+ void image2pixmap(TQImage img, TQPixmap& xpm, bool diffuse=true);
+ void brighten(TQImage& img);
- const QPixmap &upperLarge(int index);
- const QPixmap &lowerLarge(int index);
- const QPixmap &leftSmall(int index);
- const QPixmap &rightSmall(int index);
+ const TQPixmap &upperLarge(int index);
+ const TQPixmap &lowerLarge(int index);
+ const TQPixmap &leftSmall(int index);
+ const TQPixmap &rightSmall(int index);
- QImage images_[NO_OF_IMAGES];
+ TQImage images_[NO_OF_IMAGES];
- QPixmap smallStone_xpm_[SMALL_STONES];
- QPixmap largeStone_xpm_[LARGE_STONES];
- QPixmap otherPixmaps_[OTHER_IMAGES];
- QPixmap background_, brightObject_, brightTreasure_;
- QImage objectImg_;
+ TQPixmap smallStone_xpm_[SMALL_STONES];
+ TQPixmap largeStone_xpm_[LARGE_STONES];
+ TQPixmap otherPixmaps_[OTHER_IMAGES];
+ TQPixmap background_, brightObject_, brightTreasure_;
+ TQImage objectImg_;
int indexSize_;
- QByteArray upperLargeIndex_;
- QByteArray lowerLargeIndex_;
- QByteArray leftSmallIndex_;
- QByteArray rightSmallIndex_;
+ TQByteArray upperLargeIndex_;
+ TQByteArray lowerLargeIndex_;
+ TQByteArray leftSmallIndex_;
+ TQByteArray rightSmallIndex_;
int size_, halfSize_;
KRandomSequence random;