diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /ktuberling/playground.h | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-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 'ktuberling/playground.h')
-rw-r--r-- | ktuberling/playground.h | 46 |
1 files changed, 23 insertions, 23 deletions
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 <kprinter.h> -#include <qwidget.h> -#include <qbitmap.h> -#include <qptrlist.h> +#include <tqwidget.h> +#include <tqbitmap.h> +#include <tqptrlist.h> #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> toDraw; // List of objects in z-order - QPtrList<Action> history; // List of actions in chronological order + TQPtrList<ToDraw> toDraw; // List of objects in z-order + TQPtrList<Action> 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 |