summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/mp_interface.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /libksirtet/lib/mp_interface.h
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-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 'libksirtet/lib/mp_interface.h')
-rw-r--r--libksirtet/lib/mp_interface.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/libksirtet/lib/mp_interface.h b/libksirtet/lib/mp_interface.h
index ad925cba..e52ea9f7 100644
--- a/libksirtet/lib/mp_interface.h
+++ b/libksirtet/lib/mp_interface.h
@@ -1,9 +1,9 @@
#ifndef MP_INTERFACE_H
#define MP_INTERFACE_H
-#include <qwidget.h>
-#include <qvaluelist.h>
-#include <qptrlist.h>
+#include <tqwidget.h>
+#include <tqvaluelist.h>
+#include <tqptrlist.h>
#include "mp_board.h"
#include "mp_option.h"
@@ -82,7 +82,7 @@ class MPInterface : public QWidget
*/
MPInterface(const MPGameInfo &gameInfo,
uint nbActions, const ActionData *data,
- QWidget *parent = 0, const char *name = 0);
+ TQWidget *parent = 0, const char *name = 0);
virtual ~MPInterface();
public slots:
@@ -135,7 +135,7 @@ class MPInterface : public QWidget
/** @return the player name.
Do not call from client !
*/
- QString playerName(uint i) const;
+ TQString playerName(uint i) const;
/**
* Create a new @ref MPBoard.
@@ -161,11 +161,11 @@ class MPInterface : public QWidget
/** @return the reading stream for board #i.
* Do not call from client !
*/
- QDataStream &readingStream(uint i) const;
+ TQDataStream &readingStream(uint i) const;
/** @return the writing stream for board #i.
*/
- QDataStream &writingStream(uint i) const;
+ TQDataStream &writingStream(uint i) const;
/**
* Read data sent from server to clients "MultiplayersInterface"
@@ -175,13 +175,13 @@ class MPInterface : public QWidget
* local games.
* NB: the use of this method is optional.
*/
- virtual void dataFromServer(QDataStream &) {}
+ virtual void dataFromServer(TQDataStream &) {}
/** Used by the server to write meta data to clients.
* NB: the use of this method is optional.
* Do not call from client !
*/
- QDataStream &dataToClientsStream() const;
+ TQDataStream &dataToClientsStream() const;
/** Write immediately data to clients and local boards.
* It is unlike the normal exchange which is driven
@@ -203,12 +203,12 @@ class MPInterface : public QWidget
* ie it stops the current game. By overloading this method, it is
* possible to continue the game at this point with the remaining players.
*/
- virtual void hostDisconnected(uint i, const QString &msg);
+ virtual void hostDisconnected(uint i, const TQString &msg);
protected:
- void paintEvent(QPaintEvent *);
- void keyPressEvent(QKeyEvent *);
- void keyReleaseEvent(QKeyEvent *);
+ void paintEvent(TQPaintEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void keyReleaseEvent(TQKeyEvent *);
private slots:
void enableKeys(bool enable);
@@ -220,21 +220,21 @@ class MPInterface : public QWidget
Data() {}
MPBoard *ptr;
int humanIndex;
- QString name;
+ TQString name;
};
private:
Local *internal;
const MPGameInfo gameInfo;
- QValueList<Data> boards;
+ TQValueList<Data> boards;
uint nbLocalHumans;
- QHBoxLayout *hbl;
+ TQHBoxLayout *hbl;
bool _server, disconnected;
KeyData *_keyData;
- QMemArray<KeyCollection *> _keyCol;
+ TQMemArray<KeyCollection *> _keyCol;
- void createServerGame(const QPtrList<RemoteHostData> &);
+ void createServerGame(const TQPtrList<RemoteHostData> &);
void createClientGame(const RemoteHostData &);
void createLocalGame(const ConnectionData &);
void specialLocalGame(uint nbHumans, uint nbComputers);