summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/kgameio.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/kgame/kgameio.h')
-rw-r--r--libkdegames/kgame/kgameio.h76
1 files changed, 38 insertions, 38 deletions
diff --git a/libkdegames/kgame/kgameio.h b/libkdegames/kgame/kgameio.h
index 4d7e0f5b..82b84740 100644
--- a/libkdegames/kgame/kgameio.h
+++ b/libkdegames/kgame/kgameio.h
@@ -23,8 +23,8 @@
#ifndef __KGAMEIO_H__
#define __KGAMEIO_H__
-#include <qstring.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqobject.h>
#include <kdemacros.h>
class KPlayer;
class KGame;
@@ -128,7 +128,7 @@ public:
/**
* Send an input message using @ref KPlayer::forwardInput
**/
- bool sendInput(QDataStream& stream, bool transmit = true, Q_UINT32 sender = 0);
+ bool sendInput(TQDataStream& stream, bool transmit = true, Q_UINT32 sender = 0);
signals:
/**
@@ -147,7 +147,7 @@ signals:
*
* Example:
* \code
- * void GameWindow::slotPrepareTurn(QDataStream &stream,bool b,KGameIO *input,bool * )
+ * void GameWindow::slotPrepareTurn(TQDataStream &stream,bool b,KGameIO *input,bool * )
* {
* KPlayer *player=input->player();
* if (!player->myTurn()) return ;
@@ -162,7 +162,7 @@ signals:
* @param send set this to true to send the generated move using @ref
* sendInput
**/
- void signalPrepareTurn(QDataStream & stream, bool turn, KGameIO *io, bool * send);
+ void signalPrepareTurn(TQDataStream & stream, bool turn, KGameIO *io, bool * send);
private:
@@ -193,13 +193,13 @@ public:
* \code
* KGameKeyIO *input;
* input=new KGameKeyIO(myWidget);
- * connect(input,SIGNAL(signalKeyEvent(KGameIO *,QDataStream &,QKeyEvent *,bool *)),
- * this,SLOT(slotKeyInput(KGameIO *,QDataStream &,QKeyEvent *,bool *)));
+ * connect(input,TQT_SIGNAL(signalKeyEvent(KGameIO *,TQDataStream &,TQKeyEvent *,bool *)),
+ * this,TQT_SLOT(slotKeyInput(KGameIO *,TQDataStream &,TQKeyEvent *,bool *)));
* \endcode
*
* @param parent The parents widget whose keyboard events * should be grabbed
*/
- KGameKeyIO(QWidget *parent);
+ KGameKeyIO(TQWidget *parent);
virtual ~KGameKeyIO();
/**
@@ -228,16 +228,16 @@ signals:
*
* @param io the IO device we belong to
* @param stream the stream where we write our move into
- * @param m The QKeyEvent we can evaluate
+ * @param m The TQKeyEvent we can evaluate
* @param eatevent set this to true if we processed the event
*/
- void signalKeyEvent(KGameIO *io,QDataStream &stream,QKeyEvent *m,bool *eatevent);
+ void signalKeyEvent(KGameIO *io,TQDataStream &stream,TQKeyEvent *m,bool *eatevent);
protected:
/**
* Internal method to process the events
*/
- bool eventFilter( QObject *o, QEvent *e );
+ bool eventFilter( TQObject *o, TQEvent *e );
};
/**
@@ -258,14 +258,14 @@ public:
* \code
* KGameMouseIO *input;
* input=new KGameMouseIO(mView);
- * connect(input,SIGNAL(signalMouseEvent(KGameIO *,QDataStream &,QMouseEvent *,bool *)),
- * this,SLOT(slotMouseInput(KGameIO *,QDataStream &,QMouseEvent *,bool *)));
+ * connect(input,TQT_SIGNAL(signalMouseEvent(KGameIO *,TQDataStream &,TQMouseEvent *,bool *)),
+ * this,TQT_SLOT(slotMouseInput(KGameIO *,TQDataStream &,TQMouseEvent *,bool *)));
* \endcode
*
* @param parent The widget whose events should be captured
* @param trackmouse enables mouse tracking (gives mouse move events)
*/
- KGameMouseIO(QWidget *parent,bool trackmouse=false);
+ KGameMouseIO(TQWidget *parent,bool trackmouse=false);
virtual ~KGameMouseIO();
/**
@@ -298,16 +298,16 @@ signals:
*
* @param io the IO device we belong to
* @param stream the stream where we write our move into
- * @param m The QMouseEvent we can evaluate
+ * @param m The TQMouseEvent we can evaluate
* @param eatevent set this to true if we processed the event
*/
- void signalMouseEvent(KGameIO *io,QDataStream &stream,QMouseEvent *m,bool *eatevent);
+ void signalMouseEvent(KGameIO *io,TQDataStream &stream,TQMouseEvent *m,bool *eatevent);
protected:
/**
* Internal event filter
*/
- bool eventFilter( QObject *o, QEvent *e );
+ bool eventFilter( TQObject *o, TQEvent *e );
};
@@ -332,15 +332,15 @@ public:
* \code
* KGameProcessIO *input;
* input=new KGameProcessIO(executable_file);
- * connect(input,SIGNAL(signalPrepareTurn(QDataStream &,bool,KGameIO *,bool *)),
- * this,SLOT(slotPrepareTurn(QDataStream &,bool,KGameIO *,bool *)));
- * connect(input,SIGNAL(signalProcessQuery(QDataStream &,KGameProcessIO *)),
- * this,SLOT(slotProcessQuery(QDataStream &,KGameProcessIO *)));
+ * connect(input,TQT_SIGNAL(signalPrepareTurn(TQDataStream &,bool,KGameIO *,bool *)),
+ * this,TQT_SLOT(slotPrepareTurn(TQDataStream &,bool,KGameIO *,bool *)));
+ * connect(input,TQT_SIGNAL(signalProcessQuery(TQDataStream &,KGameProcessIO *)),
+ * this,TQT_SLOT(slotProcessQuery(TQDataStream &,KGameProcessIO *)));
* \endcode
*
* @param name the filename of the process to start
*/
- KGameProcessIO(const QString& name);
+ KGameProcessIO(const TQString& name);
/**
* Deletes the process input devices
@@ -364,7 +364,7 @@ public:
* @param receiver - not used
* @param sender - who send the message
*/
- void sendMessage(QDataStream &stream,int msgid, Q_UINT32 receiver, Q_UINT32 sender);
+ void sendMessage(TQDataStream &stream,int msgid, Q_UINT32 receiver, Q_UINT32 sender);
/**
* Send a system message to the process. This is analogous to the sendMessage
@@ -376,7 +376,7 @@ public:
* @param receiver - not used
* @param sender - who send the message
*/
- void sendSystemMessage(QDataStream &stream, int msgid, Q_UINT32 receiver, Q_UINT32 sender);
+ void sendSystemMessage(TQDataStream &stream, int msgid, Q_UINT32 receiver, Q_UINT32 sender);
/**
* Init this device by setting the player and e.g. sending an
@@ -403,13 +403,13 @@ public:
/**
* Internal ~ombined function for all message handling
**/
- void sendAllMessages(QDataStream &stream,int msgid, Q_UINT32 receiver, Q_UINT32 sender, bool usermsg);
+ void sendAllMessages(TQDataStream &stream,int msgid, Q_UINT32 receiver, Q_UINT32 sender, bool usermsg);
protected slots:
/**
* Internal message handler to receive data from the process
*/
- void receivedMessage(const QByteArray& receiveBuffer);
+ void receivedMessage(const TQByteArray& receiveBuffer);
signals:
@@ -423,20 +423,20 @@ signals:
*
* Example:
* \code
- * void GameWindow::slotProcessQuery(QDataStream &stream,KGameProcessIO *reply)
+ * void GameWindow::slotProcessQuery(TQDataStream &stream,KGameProcessIO *reply)
* {
* int no;
* stream >> no; // We assume the process sends us an integer question numner
* if (no==1) // but YOU have to do this in the process player
* {
- * QByteArray buffer;
- * QDataStream out(buffer,IO_WriteOnly);
+ * TQByteArray buffer;
+ * TQDataStream out(buffer,IO_WriteOnly);
* reply->sendSystemMessage(out,4242,0,0); // lets reply something...
* }
* }
* \endcode
*/
- void signalProcessQuery(QDataStream &stream,KGameProcessIO *me);
+ void signalProcessQuery(TQDataStream &stream,KGameProcessIO *me);
/**
* Signal generated when the computer player is added.
@@ -448,7 +448,7 @@ signals:
* @param p the player itself
* @param send set this to false if no move should be generated
*/
- void signalIOAdded(KGameIO *game,QDataStream &stream,KPlayer *p,bool *send);
+ void signalIOAdded(KGameIO *game,TQDataStream &stream,KPlayer *p,bool *send);
protected:
@@ -497,7 +497,7 @@ public:
int reactionPeriod() const;
/**
- * Start a QTimer which calls advance every @p ms milli seconds.
+ * Start a TQTimer which calls advance every @p ms milli seconds.
**/
void setAdvancePeriod(int ms);
@@ -525,18 +525,18 @@ public:
public slots:
/**
- * Works kind of similar to QCanvas::advance. Increase the internal
+ * Works kind of similar to TQCanvas::advance. Increase the internal
* advance counter. If @p reactionPeriod is reached the counter is set back to
* 0 and @ref signalReaction is emitted. This is when the player is meant
* to do something (move its units or so).
*
- * This is very useful if you use QCanvas as you can use this in your
- * QCanvas::advance call. The advantage is that if you change the speed
- * of the game (i.e. change QCanvas::setAdvancePeriod) the computer
+ * This is very useful if you use TQCanvas as you can use this in your
+ * TQCanvas::advance call. The advantage is that if you change the speed
+ * of the game (i.e. change TQCanvas::setAdvancePeriod) the computer
* player gets slower as well.
*
- * If you don't use QCanvas you can use setAdvancePeriod to get
- * the same result. Alternatively you can just use a QTimer.
+ * If you don't use TQCanvas you can use setAdvancePeriod to get
+ * the same result. Alternatively you can just use a TQTimer.
*
**/
virtual void advance();