summaryrefslogtreecommitdiffstats
path: root/kmahjongg/Tileset.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmahjongg/Tileset.h')
-rw-r--r--kmahjongg/Tileset.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/kmahjongg/Tileset.h b/kmahjongg/Tileset.h
index 45bc9281..3c09a37c 100644
--- a/kmahjongg/Tileset.h
+++ b/kmahjongg/Tileset.h
@@ -2,16 +2,16 @@
#define _TILE_SET_H_
-#include <qbitmap.h>
+#include <tqbitmap.h>
class Tileset {
public:
Tileset(bool scaled=false);
~Tileset();
- bool loadTileset(const QString &filesetPath, const bool isPreview = false);
- QRgb *createTile(short x, short y, QRgb *dst, QImage &src , QRgb *face);
- QRgb *copyTileImage(short tileX, short tileY, QRgb *to, QImage &from);
+ bool loadTileset(const TQString &filesetPath, const bool isPreview = false);
+ QRgb *createTile(short x, short y, QRgb *dst, TQImage &src , QRgb *face);
+ QRgb *copyTileImage(short tileX, short tileY, QRgb *to, TQImage &from);
void setScaled(bool sc) {isScaled = sc; divisor = (sc) ? 2 : 1;}
@@ -26,28 +26,28 @@ class Tileset {
short qHeight() {return qh/divisor;}
- QPixmap *selectedPixmaps(int num) {
+ TQPixmap *selectedPixmaps(int num) {
if (!isScaled)
return &(selectedPix[num]);
else
return &(selectedMiniPix[num]);
}
- QPixmap *unselectedPixmaps(int num) {
+ TQPixmap *unselectedPixmaps(int num) {
if (!isScaled)
return &(unselectedPix[num]);
else
return &(unselectedMiniPix[num]);
}
- QPixmap *selectedShadowPixmaps(int num) {
+ TQPixmap *selectedShadowPixmaps(int num) {
if (!isScaled)
return &(selectedShadowPix[num]);
else
return &(selectedShadowMiniPix[num]);
}
- QPixmap *unselectedShadowPixmaps(int num) {
+ TQPixmap *unselectedShadowPixmaps(int num) {
if (!isScaled)
return &(unselectedShadowPix[num]);
else
@@ -57,12 +57,12 @@ class Tileset {
protected:
enum { maxTiles=45 };
- void createPixmap(QRgb *src, QPixmap &dest, bool scale, bool shadow);
+ void createPixmap(QRgb *src, TQPixmap &dest, bool scale, bool shadow);
private:
- QBitmap maskBits; // xbm mask for the tile
- QBitmap maskBitsMini; // xbm mask for the tile
+ TQBitmap maskBits; // xbm mask for the tile
+ TQBitmap maskBitsMini; // xbm mask for the tile
QRgb* tiles; // Buffer containing all tiles (unselected glyphs)
QRgb* selectedTiles; // Buffer containing all tiles (selected glyphs)
@@ -70,15 +70,15 @@ class Tileset {
// in version 0.5 we have moved ftom using images and calculating
// masks etc, to using pixmaps and letting the blt do the hard work,
// in hardware.
- QPixmap selectedPix[maxTiles]; // selected tiles
- QPixmap unselectedPix[maxTiles]; // unselected tiles
- QPixmap selectedMiniPix[maxTiles]; // selected tiles
- QPixmap unselectedMiniPix[maxTiles]; // unselected tiles
+ TQPixmap selectedPix[maxTiles]; // selected tiles
+ TQPixmap unselectedPix[maxTiles]; // unselected tiles
+ TQPixmap selectedMiniPix[maxTiles]; // selected tiles
+ TQPixmap unselectedMiniPix[maxTiles]; // unselected tiles
- QPixmap selectedShadowPix[maxTiles]; // selected tiles as above in shadow
- QPixmap unselectedShadowPix[maxTiles]; // unselected tiles
- QPixmap selectedShadowMiniPix[maxTiles]; // selected tiles
- QPixmap unselectedShadowMiniPix[maxTiles]; // unselected tiles
+ TQPixmap selectedShadowPix[maxTiles]; // selected tiles as above in shadow
+ TQPixmap unselectedShadowPix[maxTiles]; // unselected tiles
+ TQPixmap selectedShadowMiniPix[maxTiles]; // selected tiles
+ TQPixmap unselectedShadowMiniPix[maxTiles]; // unselected tiles
@@ -96,7 +96,7 @@ class Tileset {
short qh; // quarter tile height used in 3d rendering
short s; // buffer size for tile (width*height)
- QString filename; // cache the last file loaded to save reloading it
+ TQString filename; // cache the last file loaded to save reloading it
bool isScaled;
int divisor;
};