summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/mp_interface.h
diff options
context:
space:
mode:
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);