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 /kpat/dealer.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 'kpat/dealer.h')
-rw-r--r-- | kpat/dealer.h | 64 |
1 files changed, 32 insertions, 32 deletions
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<DealerInfo*> games() const { return list; } + const TQValueList<DealerInfo*> games() const { return list; } private: - QValueList<DealerInfo*> list; + TQValueList<DealerInfo*> list; static DealerInfoList *_self; }; @@ -40,12 +40,12 @@ public: class CardState; -typedef QValueList<CardState> CardStateList; +typedef TQValueList<CardState> 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<State> undoList; + TQCanvas myCanvas; + TQSize minsize; + TQSize viewsize; + TQPtrList<State> undoList; long gamenumber; - QValueList<MoveHint*> hints; + TQValueList<MoveHint*> 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; |