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 /kpoker/kpoker.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 'kpoker/kpoker.h')
-rw-r--r-- | kpoker/kpoker.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kpoker/kpoker.h b/kpoker/kpoker.h index 21a41ebc..cd0bd42a 100644 --- a/kpoker/kpoker.h +++ b/kpoker/kpoker.h @@ -20,8 +20,8 @@ // QT includes -#include <qwidget.h> -#include <qptrlist.h> +#include <tqwidget.h> +#include <tqptrlist.h> // KDE includes #include <krandomsequence.h> @@ -158,8 +158,8 @@ public: int m_pot; // The amount of money people have bet. // The players in the game. - QPtrList<PokerPlayer> m_activePlayers; // players still in the round - QPtrList<PokerPlayer> m_removedPlayers; // players out of this round + TQPtrList<PokerPlayer> m_activePlayers; // players still in the round + TQPtrList<PokerPlayer> m_removedPlayers; // players out of this round }; @@ -172,10 +172,10 @@ class kpok : public QWidget Q_OBJECT public: - kpok(QWidget * parent = 0, const char *name = 0); + kpok(TQWidget * parent = 0, const char *name = 0); virtual ~kpok(); - QString getName (int playerNr); + TQString getName (int playerNr); void paintCash(); bool isDirty() const { return m_game.isDirty(); } @@ -191,9 +191,9 @@ class kpok : public QWidget bool getAdjust() const { return adjust; } signals: - void changeLastHand(const QString &newHand, bool lastHand = true); + void changeLastHand(const TQString &newHand, bool lastHand = true); void showClickToHold(bool show); - void statusBarMessage(QString); + void statusBarMessage(TQString); void clearStatusBar(); protected: @@ -202,11 +202,11 @@ class kpok : public QWidget void drawCards(PokerPlayer* p, bool skip[]); void newRound(); void noMoney(); - void paintEvent( QPaintEvent * ); - void playSound(const QString &filename); + void paintEvent( TQPaintEvent * ); + void playSound(const TQString &filename); void setBetButtonEnabled(bool enabled); - void setHand(const QString& newHand, bool lastHand = true); - void setLastWinner(const QString& lastWinner); + void setHand(const TQString& newHand, bool lastHand = true); + void setLastWinner(const TQString& lastWinner); void startBlinking(); void stopBlinking(); void stopDrawing(); @@ -215,7 +215,7 @@ class kpok : public QWidget void bet(); - void displayWin(const QString& hand, int cashWon); + void displayWin(const TQString& hand, int cashWon); /** * Displays the winner, adds the pot to his money @@ -325,14 +325,14 @@ class kpok : public QWidget int drawDelay; // Graphical layout. - QVBoxLayout *topLayout; - QHBoxLayout *inputLayout; - QLabel *potLabel; + TQVBoxLayout *topLayout; + TQHBoxLayout *inputLayout; + TQLabel *potLabel; BetBox *betBox; - QPushButton *drawButton; // the main Button - QLabel *wonLabel; // the winner - QLabel *clickToHold; - QWidget *mWonWidget; + TQPushButton *drawButton; // the main Button + TQLabel *wonLabel; // the winner + TQLabel *clickToHold; + TQWidget *mWonWidget; PlayerBox **playerBox; //one box per player @@ -342,9 +342,9 @@ class kpok : public QWidget // Other stuff KRandomSequence m_random; - QTimer *blinkTimer; // the winning cards will blink - QTimer *drawTimer; // delay between drawing of the cards - QTimer *waveTimer; // for displaying of the win (if winner == human) + TQTimer *blinkTimer; // the winning cards will blink + TQTimer *drawTimer; // delay between drawing of the cards + TQTimer *waveTimer; // for displaying of the win (if winner == human) bool adjust; // allow user to adjust the bet. int drawStat; // status of drawing (which card already was drawn etc. @@ -358,7 +358,7 @@ class kpok : public QWidget bool waveActive; int fCount; - QString lastHandText; + TQString lastHandText; }; #endif |