From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ktuberling/playground.h | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'ktuberling/playground.h') diff --git a/ktuberling/playground.h b/ktuberling/playground.h index ee1a9a51..a84a7e63 100644 --- a/ktuberling/playground.h +++ b/ktuberling/playground.h @@ -10,9 +10,9 @@ #include -#include -#include -#include +#include +#include +#include #include "todraw.h" #include "action.h" @@ -34,50 +34,50 @@ public: void repaintAll(); bool undo(); bool redo(); - bool loadFrom(const QString &name); - bool saveAs(const QString &name); + bool loadFrom(const TQString &name); + bool saveAs(const TQString &name); bool printPicture(KPrinter &printer) const; - QPixmap getPicture() const; + TQPixmap getPicture() const; inline bool isFirstAction() const { return currentAction == 0; } inline bool isLastAction() const { return currentAction >= history.count(); } protected: - virtual void paintEvent(QPaintEvent *event); - virtual void mousePressEvent(QMouseEvent *event); - virtual void mouseReleaseEvent(QMouseEvent *event); + virtual void paintEvent(TQPaintEvent *event); + virtual void mousePressEvent(TQMouseEvent *event); + virtual void mouseReleaseEvent(TQMouseEvent *event); private: - bool registerPlayGrounds(QDomDocument &layoutDocument); - bool loadPlayGround(QDomDocument &layoutDocument, uint toLoad); + bool registerPlayGrounds(TQDomDocument &layoutDocument); + bool loadPlayGround(TQDomDocument &layoutDocument, uint toLoad); void loadFailure(); void setupGeometry(); - bool zone(QPoint &position); - void drawText(QPainter &artist, QRect &area, QString &textId) const; - void drawGameboard(QPainter &artist, const QRect &area) const; + bool zone(TQPoint &position); + void drawText(TQPainter &artist, TQRect &area, TQString &textId) const; + void drawGameboard(TQPainter &artist, const TQRect &area) const; private: - QPixmap gameboard; // Picture of the game board - QBitmap masks; // Pictures of the objects' shapes - QRect editableArea; // Part of the gameboard where the player can lay down objects - QString menuItem, // Menu item describing describing this gameboard + TQPixmap gameboard; // Picture of the game board + TQBitmap masks; // Pictures of the objects' shapes + TQRect editableArea; // Part of the gameboard where the player can lay down objects + TQString menuItem, // Menu item describing describing this gameboard editableSound; // Sound associated with this area int texts, // Number of categories of objects names decorations; // Number of draggable objects on the right side of the gameboard - QRect *textsLayout, // Positions of the categories names + TQRect *textsLayout, // Positions of the categories names *objectsLayout; // Position of the draggable objects on right side of the gameboard - QString *textsList, // List of the message numbers associated with categories + TQString *textsList, // List of the message numbers associated with categories *soundsList; // List of sounds associated with each object - QCursor *draggedCursor; // Cursor's shape for currently dragged object + TQCursor *draggedCursor; // Cursor's shape for currently dragged object ToDraw draggedObject; // Object currently dragged int draggedZOrder; // Z-order (in to-draw buffer) of this object - QPtrList toDraw; // List of objects in z-order - QPtrList history; // List of actions in chronological order + TQPtrList toDraw; // List of objects in z-order + TQPtrList history; // List of actions in chronological order unsigned int currentAction; // Number of current action (not the last one if used "undo" button!) TopLevel *topLevel; // Top-level window -- cgit v1.2.1