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 --- kpat/dealer.h | 64 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'kpat/dealer.h') diff --git a/kpat/dealer.h b/kpat/dealer.h index c5593cbd..fef7e6ce 100644 --- a/kpat/dealer.h +++ b/kpat/dealer.h @@ -19,9 +19,9 @@ public: static DealerInfoList *self(); void add(DealerInfo *); - const QValueList games() const { return list; } + const TQValueList games() const { return list; } private: - QValueList list; + TQValueList list; static DealerInfoList *_self; }; @@ -40,12 +40,12 @@ public: class CardState; -typedef QValueList CardStateList; +typedef TQValueList CardStateList; struct State { CardStateList cards; - QString gameData; + TQString gameData; }; @@ -65,14 +65,14 @@ public: static const Dealer *instance(); - void enlargeCanvas(QCanvasRectangle *c); + void enlargeCanvas(TQCanvasRectangle *c); void setGameNumber(long gmn); long gameNumber() const; virtual bool isGameWon() const; virtual bool isGameLost() const; - void setViewSize(const QSize &size); + void setViewSize(const TQSize &size); void addPile(Pile *p); void removePile(Pile *p); @@ -89,11 +89,11 @@ public: void drawPile(KPixmap &, Pile *p, bool selected); - QColor midColor() const { return _midcolor; } - void setBackgroundPixmap(const QPixmap &background, const QColor &midcolor); + TQColor midColor() const { return _midcolor; } + void setBackgroundPixmap(const TQPixmap &background, const TQColor &midcolor); - void saveGame(QDomDocument &doc); - void openGame(QDomDocument &doc); + void saveGame(TQDomDocument &doc); + void openGame(TQDomDocument &doc); void setGameId(int id) { _id = id; } int gameId() const { return _id; } @@ -103,13 +103,13 @@ public: bool isMoving(Card *c) const; - virtual QSize minimumCardSize() const; - virtual void resizeEvent(QResizeEvent *); + virtual TQSize minimumCardSize() const; + virtual void resizeEvent(TQResizeEvent *); int freeCells() const; - QString anchorName() const; - void setAnchorName(const QString &name); + TQString anchorName() const; + void setAnchorName(const TQString &name); void setAutoDropEnabled(bool a); bool autoDrop() const { return _autodrop; } @@ -131,7 +131,7 @@ signals: void gameWon(bool withhelp); void gameLost(); void saveGame(); // emergency - void gameInfo(const QString &info); + void gameInfo(const TQString &info); void updateMoves(); public slots: @@ -150,11 +150,11 @@ protected: virtual void restart() = 0; - virtual void contentsMousePressEvent(QMouseEvent* e); - virtual void contentsMouseMoveEvent( QMouseEvent* ); - virtual void contentsMouseReleaseEvent( QMouseEvent* ); - virtual void contentsMouseDoubleClickEvent( QMouseEvent* ); - virtual void wheelEvent( QWheelEvent *e ); + virtual void contentsMousePressEvent(TQMouseEvent* e); + virtual void contentsMouseMoveEvent( TQMouseEvent* ); + virtual void contentsMouseReleaseEvent( TQMouseEvent* ); + virtual void contentsMouseDoubleClickEvent( TQMouseEvent* ); + virtual void wheelEvent( TQWheelEvent *e ); void unmarkAll(); void mark(Card *c); @@ -182,26 +182,26 @@ protected: void setState(State *); // reimplement this to add game-specific information in the state structure - virtual QString getGameState() const { return QString::null; } + virtual TQString getGameState() const { return TQString::null; } // reimplement this to use the game-specific information from the state structure - virtual void setGameState( const QString & ) {} + virtual void setGameState( const TQString & ) {} virtual void newDemoMove(Card *m); bool moved; CardList movingCards; - QCanvasItemList marked; - QPoint moving_start; + TQCanvasItemList marked; + TQPoint moving_start; Dealer( Dealer& ); // don't allow copies or assignments void operator = ( Dealer& ); // don't allow copies or assignments - QCanvas myCanvas; - QSize minsize; - QSize viewsize; - QPtrList undoList; + TQCanvas myCanvas; + TQSize minsize; + TQSize viewsize; + TQPtrList undoList; long gamenumber; - QValueList hints; + TQValueList hints; Card *towait; - QTimer *demotimer; + TQTimer *demotimer; int myActions; bool toldAboutLostGame; @@ -209,13 +209,13 @@ protected: KAction *ahint, *aredeal; KRandomSequence randseq; - QColor _midcolor; + TQColor _midcolor; Q_UINT32 _id; bool takeTargets; bool _won; int _waiting; bool stop_demo_next; - QString ac; + TQString ac; static Dealer *s_instance; bool _autodrop; bool _gameRecorded; -- cgit v1.2.1