summaryrefslogtreecommitdiffstats
path: root/twin4/twin4/twin4doc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'twin4/twin4/twin4doc.cpp')
-rw-r--r--twin4/twin4/twin4doc.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/twin4/twin4/twin4doc.cpp b/twin4/twin4/twin4doc.cpp
index 1ee5e25b..07deb165 100644
--- a/twin4/twin4/twin4doc.cpp
+++ b/twin4/twin4/twin4doc.cpp
@@ -38,8 +38,8 @@
Kwin4Doc::Kwin4Doc(TQWidget *parent, const char *) : KGame(1234,parent), pView(0), mHintProcess(0)
{
- connect(this,TQT_SIGNAL(signalPropertyChanged(KGamePropertyBase *,KGame *)),
- this,TQT_SLOT(slotPropertyChanged(KGamePropertyBase *,KGame *)));
+ connect(this,TQ_SIGNAL(signalPropertyChanged(KGamePropertyBase *,KGame *)),
+ this,TQ_SLOT(slotPropertyChanged(KGamePropertyBase *,KGame *)));
dataHandler()->Debug();
//kdDebug(12010) << "Property 7 policy=" << dataHandler()->find(7)->policy() << endl;
@@ -93,14 +93,14 @@ Kwin4Doc::Kwin4Doc(TQWidget *parent, const char *) : KGame(1234,parent), pView(0
setGameStatus(Intro);
// Listen to network
- connect(this,TQT_SIGNAL(signalMessageUpdate(int,TQ_UINT32,TQ_UINT32)),
- this,TQT_SLOT(slotMessageUpdate(int, TQ_UINT32,TQ_UINT32)));
- connect(this,TQT_SIGNAL(signalClientJoinedGame(TQ_UINT32,KGame *)),
- this,TQT_SLOT(slotClientConnected(TQ_UINT32, KGame *)));
+ connect(this,TQ_SIGNAL(signalMessageUpdate(int,TQ_UINT32,TQ_UINT32)),
+ this,TQ_SLOT(slotMessageUpdate(int, TQ_UINT32,TQ_UINT32)));
+ connect(this,TQ_SIGNAL(signalClientJoinedGame(TQ_UINT32,KGame *)),
+ this,TQ_SLOT(slotClientConnected(TQ_UINT32, KGame *)));
// Debug only
- connect(this,TQT_SIGNAL(signalGameOver(int, KPlayer *,KGame *)),
- this,TQT_SLOT(slotGameOver(int, KPlayer *,KGame *)));
+ connect(this,TQ_SIGNAL(signalGameOver(int, KPlayer *,KGame *)),
+ this,TQ_SLOT(slotGameOver(int, KPlayer *,KGame *)));
// Change global KGame policy
//dataHandler()->setPolicy(KGamePropertyBase::PolicyDirty,false);
@@ -813,8 +813,8 @@ KPlayer *Kwin4Doc::createPlayer(int /*rtti*/,int io,bool isvirtual)
if (!isvirtual)
createIO(player,(KGameIO::IOMode)io);
- connect(player,TQT_SIGNAL(signalPropertyChanged(KGamePropertyBase *, KPlayer *)),
- this,TQT_SLOT(slotPlayerPropertyChanged(KGamePropertyBase *, KPlayer *)));
+ connect(player,TQ_SIGNAL(signalPropertyChanged(KGamePropertyBase *, KPlayer *)),
+ this,TQ_SLOT(slotPlayerPropertyChanged(KGamePropertyBase *, KPlayer *)));
((Kwin4Player *)player)->setWidget(pView->statusWidget());
return player;
}
@@ -828,7 +828,7 @@ bool Kwin4Doc::playerInput(TQDataStream &msg, KPlayer * /*player*/)
int move, pl;
msg >> pl >> move;
if (!Move(move,pl))
- TQTimer::singleShot(0, this,TQT_SLOT(slotRepeatMove()));
+ TQTimer::singleShot(0, this,TQ_SLOT(slotRepeatMove()));
return false;
}
@@ -907,8 +907,8 @@ void Kwin4Doc::createIO(KPlayer *player,KGameIO::IOMode io)
input=new KGameMouseIO(pView);
if (global_debug>1) kdDebug(12010) << "MOUSE IO added " << endl;
// Connect mouse input to a function to process the actual input
- connect(input,TQT_SIGNAL(signalMouseEvent(KGameIO *,TQDataStream &,TQMouseEvent *,bool *)),
- pView,TQT_SLOT(slotMouseInput(KGameIO *,TQDataStream &,TQMouseEvent *,bool *)));
+ connect(input,TQ_SIGNAL(signalMouseEvent(KGameIO *,TQDataStream &,TQMouseEvent *,bool *)),
+ pView,TQ_SLOT(slotMouseInput(KGameIO *,TQDataStream &,TQMouseEvent *,bool *)));
player->addGameIO(input);
}
else if (io&KGameIO::ProcessIO)
@@ -920,11 +920,11 @@ void Kwin4Doc::createIO(KPlayer *player,KGameIO::IOMode io)
// We want a computer player
input=new KGameProcessIO(file);
// Connect computer player to the setTurn
- connect(input,TQT_SIGNAL(signalPrepareTurn(TQDataStream &,bool,KGameIO *,bool *)),
- this,TQT_SLOT(slotPrepareTurn(TQDataStream &,bool,KGameIO *,bool *)));
+ connect(input,TQ_SIGNAL(signalPrepareTurn(TQDataStream &,bool,KGameIO *,bool *)),
+ this,TQ_SLOT(slotPrepareTurn(TQDataStream &,bool,KGameIO *,bool *)));
- connect(input,TQT_SIGNAL(signalProcessQuery(TQDataStream &,KGameProcessIO *)),
- this,TQT_SLOT(slotProcessQuery(TQDataStream &,KGameProcessIO *)));
+ connect(input,TQ_SIGNAL(signalProcessQuery(TQDataStream &,KGameProcessIO *)),
+ this,TQ_SLOT(slotProcessQuery(TQDataStream &,KGameProcessIO *)));
player->addGameIO(input);
}
else if (io&KGameIO::KeyIO)
@@ -934,8 +934,8 @@ void Kwin4Doc::createIO(KPlayer *player,KGameIO::IOMode io)
KGameKeyIO *input;
input=new KGameKeyIO(pView->parentWidget());
// Connect keys input to a function to process the actual input
- connect((KGameKeyIO *)input,TQT_SIGNAL(signalKeyEvent(KGameIO *,TQDataStream &,TQKeyEvent *,bool *)),
- pView,TQT_SLOT(slotKeyInput(KGameIO *,TQDataStream &,TQKeyEvent *,bool *)));
+ connect((KGameKeyIO *)input,TQ_SIGNAL(signalKeyEvent(KGameIO *,TQDataStream &,TQKeyEvent *,bool *)),
+ pView,TQ_SLOT(slotKeyInput(KGameIO *,TQDataStream &,TQKeyEvent *,bool *)));
player->addGameIO(input);
}
}
@@ -1104,8 +1104,8 @@ void Kwin4Doc::calcHint()
// We want a computer player
mHintProcess=new KGameProcessIO(file);
- connect(mHintProcess,TQT_SIGNAL(signalProcessQuery(TQDataStream &,KGameProcessIO *)),
- this,TQT_SLOT(slotProcessHint(TQDataStream &,KGameProcessIO *)));
+ connect(mHintProcess,TQ_SIGNAL(signalProcessQuery(TQDataStream &,KGameProcessIO *)),
+ this,TQ_SLOT(slotProcessHint(TQDataStream &,KGameProcessIO *)));
}
TQ_INT32 pl;
TQByteArray buffer;