summaryrefslogtreecommitdiffstats
path: root/kpacman/painter.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpacman/painter.h')
-rw-r--r--kpacman/painter.h156
1 files changed, 78 insertions, 78 deletions
diff --git a/kpacman/painter.h b/kpacman/painter.h
index 7e63b96..ebd5bba 100644
--- a/kpacman/painter.h
+++ b/kpacman/painter.h
@@ -4,13 +4,13 @@
#include <kapp.h>
#include <klocale.h>
-#include <qpixmap.h>
-#include <qbitmap.h>
-#include <qlabel.h>
-#include <qcolor.h>
-#include <qlist.h>
-#include <qstrlist.h>
-#include <qregexp.h>
+#include <ntqpixmap.h>
+#include <ntqbitmap.h>
+#include <ntqlabel.h>
+#include <ntqcolor.h>
+#include <ntqlist.h>
+#include <ntqstrlist.h>
+#include <ntqregexp.h>
#include "board.h"
#include "bitfont.h"
@@ -24,23 +24,23 @@ enum DrawWidget { Widget, RoomPix, BackPix };
class Painter
{
public:
- Painter (Board *, QWidget *parent=0, int scheme=-1, int mode=-1,Bitfont *font=0);
- QPixmap levelPix() { return roomPix; }
+ Painter (Board *, TQWidget *parent=0, int scheme=-1, int mode=-1,Bitfont *font=0);
+ TQPixmap levelPix() { return roomPix; }
void setScheme(int scheme=-1, int mode=-1, Bitfont *font=0);
void setLevel(int level=0);
- QRect rect(int pos, PixMap pix, uint i = 0);
- QRect rect(int pos, QString str, int align = QLabel::AlignCenter );
- QRect rect(QRect r1, QRect r2);
+ TQRect rect(int pos, PixMap pix, uint i = 0);
+ TQRect rect(int pos, TQString str, int align = TQLabel::AlignCenter );
+ TQRect rect(TQRect r1, TQRect r2);
- void draw(QPoint point, DrawWidget where, QPixmap pix);
- void draw(QRect rect, DrawWidget where, QPixmap pix);
+ void draw(TQPoint point, DrawWidget where, TQPixmap pix);
+ void draw(TQRect rect, DrawWidget where, TQPixmap pix);
void draw(int pos, DrawWidget where, PixMap pix, uint i = 0);
- QPixmap draw(int pos, DrawWidget where, QString str,
- QColor fg, QColor bg = QColor(), int align = QLabel::AlignCenter);
- QRect draw(int col, int row, DrawWidget where, QString str,
- QColor fg, QColor bg = QColor(), int align = QLabel::AlignCenter);
+ TQPixmap draw(int pos, DrawWidget where, TQString str,
+ TQColor fg, TQColor bg = TQColor(), int align = TQLabel::AlignCenter);
+ TQRect draw(int col, int row, DrawWidget where, TQString str,
+ TQColor fg, TQColor bg = TQColor(), int align = TQLabel::AlignCenter);
void drawBrick(int pos);
void drawPrison(int pos);
@@ -51,12 +51,12 @@ public:
int maxPixmaps(PixMap pix);
protected:
- QString decodeHexOctString(QString str);
+ TQString decodeHexOctString(TQString str);
- void fillScoreString(QStrList &, QArray<int> &);
- void fillArray(QArray<int> &, QString, int);
- void fillStrList(QStrList &, QString, int);
- void fillPixmapName(QStrList &);
+ void fillScoreString(TQStrList &, TQArray<int> &);
+ void fillArray(TQArray<int> &, TQString, int);
+ void fillStrList(TQStrList &, TQString, int);
+ void fillPixmapName(TQStrList &);
void confScheme();
void confLevels(bool defGroup=TRUE);
@@ -68,71 +68,71 @@ protected:
void initbackPixmaps();
private:
- QWidget *w;
+ TQWidget *w;
Board *board;
Bitfont *bitfont;
int BlockWidth;
int BlockHeight;
- QArray<int> fruitScore;
- QStrList fruitScoreString;
- QArray<int> monsterScore;
- QStrList monsterScoreString;
-
- QString pixmapDirectory;
-
- QStrList pointPixmapName;
- QStrList wallPixmapName;
- QStrList prisonPixmapName;
- QStrList energizerPixmapName;
- QStrList fruitPixmapName;
- QStrList pacmanPixmapName;
- QStrList dyingPixmapName;
- QStrList eyesPixmapName;
- QStrList monsterPixmapName;
- QStrList fruitScorePixmapName;
- QStrList monsterScorePixmapName;
-
- QString lastPointPixmapName;
- QString lastWallPixmapName;
- QString lastPrisonPixmapName;
- QString lastEnergizerPixmapName;
- QString lastFruitPixmapName;
- QString lastPacmanPixmapName;
- QString lastDyingPixmapName;
- QString lastEyesPixmapName;
- QString lastMonsterPixmapName;
- QString lastFruitScorePixmapName;
- QString lastMonsterScorePixmapName;
-
- QList<QPixmap> *loadPixmap(QWidget *parent, QString pixmapName,
- QList<QPixmap> *pixmaps=0);
- QList<QPixmap> *textPixmap(QStrList &, QList<QPixmap> *pixmaps=0,
- QColor fg = BLACK, QColor bg = QColor());
- QList<QPixmap> *textPixmap(QString str, QList<QPixmap> *pixmaps=0,
- QColor fg = BLACK, QColor bg = QColor());
-
- QPoint point(int pos);
+ TQArray<int> fruitScore;
+ TQStrList fruitScoreString;
+ TQArray<int> monsterScore;
+ TQStrList monsterScoreString;
+
+ TQString pixmapDirectory;
+
+ TQStrList pointPixmapName;
+ TQStrList wallPixmapName;
+ TQStrList prisonPixmapName;
+ TQStrList energizerPixmapName;
+ TQStrList fruitPixmapName;
+ TQStrList pacmanPixmapName;
+ TQStrList dyingPixmapName;
+ TQStrList eyesPixmapName;
+ TQStrList monsterPixmapName;
+ TQStrList fruitScorePixmapName;
+ TQStrList monsterScorePixmapName;
+
+ TQString lastPointPixmapName;
+ TQString lastWallPixmapName;
+ TQString lastPrisonPixmapName;
+ TQString lastEnergizerPixmapName;
+ TQString lastFruitPixmapName;
+ TQString lastPacmanPixmapName;
+ TQString lastDyingPixmapName;
+ TQString lastEyesPixmapName;
+ TQString lastMonsterPixmapName;
+ TQString lastFruitScorePixmapName;
+ TQString lastMonsterScorePixmapName;
+
+ TQList<TQPixmap> *loadPixmap(TQWidget *parent, TQString pixmapName,
+ TQList<TQPixmap> *pixmaps=0);
+ TQList<TQPixmap> *textPixmap(TQStrList &, TQList<TQPixmap> *pixmaps=0,
+ TQColor fg = BLACK, TQColor bg = TQColor());
+ TQList<TQPixmap> *textPixmap(TQString str, TQList<TQPixmap> *pixmaps=0,
+ TQColor fg = BLACK, TQColor bg = TQColor());
+
+ TQPoint point(int pos);
int checkRange(int value, int max, int min=0);
- QList<QPixmap> *wallPix;
- QList<QPixmap> *prisonPix;
- QList<QPixmap> *pointPix;
- QList<QPixmap> *energizerPix;
- QList<QPixmap> *fruitPix;
- QList<QPixmap> *pacmanPix;
- QList<QPixmap> *dyingPix;
- QList<QPixmap> *eyesPix;
- QList<QPixmap> *monsterPix;
- QList<QPixmap> *fruitScorePix;
- QList<QPixmap> *monsterScorePix;
-
- QPixmap roomPix;
- QPixmap backPix;
+ TQList<TQPixmap> *wallPix;
+ TQList<TQPixmap> *prisonPix;
+ TQList<TQPixmap> *pointPix;
+ TQList<TQPixmap> *energizerPix;
+ TQList<TQPixmap> *fruitPix;
+ TQList<TQPixmap> *pacmanPix;
+ TQList<TQPixmap> *dyingPix;
+ TQList<TQPixmap> *eyesPix;
+ TQList<TQPixmap> *monsterPix;
+ TQList<TQPixmap> *fruitScorePix;
+ TQList<TQPixmap> *monsterScorePix;
+
+ TQPixmap roomPix;
+ TQPixmap backPix;
bool plainColor;
- QColor backgroundColor;
+ TQColor backgroundColor;
int maxLevel;
int level;