diff options
Diffstat (limited to 'kbackgammon/engines')
| -rw-r--r-- | kbackgammon/engines/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | kbackgammon/engines/fibs/kbgfibs.cpp | 124 | ||||
| -rw-r--r-- | kbackgammon/engines/fibs/kbgfibs.h | 2 | ||||
| -rw-r--r-- | kbackgammon/engines/fibs/kbgfibschat.cpp | 80 | ||||
| -rw-r--r-- | kbackgammon/engines/fibs/kbgfibschat.h | 2 | ||||
| -rw-r--r-- | kbackgammon/engines/fibs/kbginvite.cpp | 10 | ||||
| -rw-r--r-- | kbackgammon/engines/fibs/kbginvite.h | 2 | ||||
| -rw-r--r-- | kbackgammon/engines/fibs/kplayerlist.cpp | 90 | ||||
| -rw-r--r-- | kbackgammon/engines/fibs/kplayerlist.h | 2 | ||||
| -rw-r--r-- | kbackgammon/engines/generic/kbgengine.cpp | 2 | ||||
| -rw-r--r-- | kbackgammon/engines/generic/kbgengine.h | 2 | ||||
| -rw-r--r-- | kbackgammon/engines/gnubg/kbggnubg.cpp | 24 | ||||
| -rw-r--r-- | kbackgammon/engines/gnubg/kbggnubg.h | 4 | ||||
| -rw-r--r-- | kbackgammon/engines/nextgen/kbggame.h | 6 | ||||
| -rw-r--r-- | kbackgammon/engines/nextgen/kbgng.cpp | 36 | ||||
| -rw-r--r-- | kbackgammon/engines/nextgen/kbgng.h | 2 | ||||
| -rw-r--r-- | kbackgammon/engines/nextgen/kbgplayer.h | 2 | ||||
| -rw-r--r-- | kbackgammon/engines/offline/kbgoffline.cpp | 22 | ||||
| -rw-r--r-- | kbackgammon/engines/offline/kbgoffline.h | 2 |
19 files changed, 209 insertions, 209 deletions
diff --git a/kbackgammon/engines/CMakeLists.txt b/kbackgammon/engines/CMakeLists.txt index 6a4e4be2..7f33aa33 100644 --- a/kbackgammon/engines/CMakeLists.txt +++ b/kbackgammon/engines/CMakeLists.txt @@ -28,8 +28,6 @@ link_directories( ) -file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp "" ) - ##### kbgengines (static) ####################### tde_add_library( kbgengines STATIC_PIC AUTOMOC @@ -37,3 +35,5 @@ tde_add_library( kbgengines STATIC_PIC AUTOMOC LINK kbgoffline-static kbggnubg-static kbggeneric-static kbgfibs-static kbgnextgen-static ) + +configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake dummy.cpp COPYONLY ) diff --git a/kbackgammon/engines/fibs/kbgfibs.cpp b/kbackgammon/engines/fibs/kbgfibs.cpp index 4f30a87c..47154022 100644 --- a/kbackgammon/engines/fibs/kbgfibs.cpp +++ b/kbackgammon/engines/fibs/kbgfibs.cpp @@ -51,7 +51,7 @@ #include <tqdatetime.h> #include <tqwhatsthis.h> #include <kaudioplayer.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h> #include <tqvbox.h> #include <kiconloader.h> #include <ktabctl.h> @@ -84,7 +84,7 @@ void KBgEngineFIBS::start() */ void KBgEngineFIBS::readConfig() { - TDEConfig *config = kapp->config(); + TDEConfig *config = tdeApp->config(); config->setGroup("fibs engine"); // history variables @@ -119,7 +119,7 @@ void KBgEngineFIBS::readConfig() */ void KBgEngineFIBS::saveConfig() { - TDEConfig *config = kapp->config(); + TDEConfig *config = tdeApp->config(); config->setGroup("fibs engine"); // history variables @@ -207,7 +207,7 @@ void KBgEngineFIBS::getSetupPages(KDialogBase *nb) * Main Widget */ TQVBox *vbp = nb->addVBoxPage(i18n("FIBS Engine"), i18n("Here you can configure the FIBS backgammon engine"), - kapp->iconLoader()->loadIcon(PROG_NAME "_engine", TDEIcon::Desktop)); + tdeApp->iconLoader()->loadIcon(PROG_NAME "_engine", TDEIcon::Desktop)); /* * Get a multi page work space @@ -272,7 +272,7 @@ void KBgEngineFIBS::getSetupPages(KDialogBase *nb) lem[i] = new TQLineEdit(autoMsg[i], gbm); gl->addWidget(cbm[i], i, 0); gl->addWidget(lem[i], i, 1); - connect(cbm[i], TQT_SIGNAL(toggled(bool)), lem[i], TQT_SLOT(setEnabled(bool))); + connect(cbm[i], TQ_SIGNAL(toggled(bool)), lem[i], TQ_SLOT(setEnabled(bool))); cbm[i]->setChecked(useAutoMsg[i]); lem[i]->setEnabled(useAutoMsg[i]); TQWhatsThis::add(lem[i], TQWhatsThis::textFor(cbm[i])); @@ -657,7 +657,7 @@ bool KBgEngineFIBS::queryClose() */ bool KBgEngineFIBS::queryExit() { - if( kapp->sessionSaving()) + if( tdeApp->sessionSaving()) return true; if (connection->state() != TQSocket::Idle) disconnectFIBS(); @@ -838,8 +838,8 @@ void KBgEngineFIBS::fibsRequestInvitation(const TQString &player) if (!invitationDlg) { TQString p = player; invitationDlg = new KBgInvite("invite"); - connect(invitationDlg, TQT_SIGNAL(inviteCommand(const TQString &)), this, TQT_SLOT(handleCommand(const TQString &))); - connect(invitationDlg, TQT_SIGNAL(dialogDone()), this, TQT_SLOT(invitationDone())); + connect(invitationDlg, TQ_SIGNAL(inviteCommand(const TQString &)), this, TQ_SLOT(handleCommand(const TQString &))); + connect(invitationDlg, TQ_SIGNAL(dialogDone()), this, TQ_SLOT(invitationDone())); } invitationDlg->setPlayer(player); invitationDlg->show(); @@ -2094,55 +2094,55 @@ KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmen /* * No connection, not playing, ready for login */ - connection = new TQSocket(TQT_TQOBJECT(parent), "fibs connection"); + connection = new TQSocket(parent, "fibs connection"); playing = false; login = true; - connect(connection, TQT_SIGNAL(hostFound()), this, TQT_SLOT(hostFound())); - connect(connection, TQT_SIGNAL(connected()), this, TQT_SLOT(connected())); - connect(connection, TQT_SIGNAL(error(int)), this, TQT_SLOT(connError(int))); - connect(connection, TQT_SIGNAL(connectionClosed()), this, TQT_SLOT(connectionClosed())); - connect(connection, TQT_SIGNAL(delayedCloseFinished()), this, TQT_SLOT(connectionClosed())); - connect(connection, TQT_SIGNAL(readyRead()), this, TQT_SLOT(readData())); + connect(connection, TQ_SIGNAL(hostFound()), this, TQ_SLOT(hostFound())); + connect(connection, TQ_SIGNAL(connected()), this, TQ_SLOT(connected())); + connect(connection, TQ_SIGNAL(error(int)), this, TQ_SLOT(connError(int))); + connect(connection, TQ_SIGNAL(connectionClosed()), this, TQ_SLOT(connectionClosed())); + connect(connection, TQ_SIGNAL(delayedCloseFinished()), this, TQ_SLOT(connectionClosed())); + connect(connection, TQ_SIGNAL(readyRead()), this, TQ_SLOT(readData())); - connect(this, TQT_SIGNAL(serverString(const TQString &)), this, TQT_SLOT(sendData(const TQString &))); + connect(this, TQ_SIGNAL(serverString(const TQString &)), this, TQ_SLOT(sendData(const TQString &))); /* * No invitation dialog */ invitationDlg = 0; - connect(this, TQT_SIGNAL(fibsWhoInfo(const TQString &)), this, TQT_SLOT(changeJoin(const TQString &))); - connect(this, TQT_SIGNAL(fibsLogout (const TQString &)), this, TQT_SLOT(cancelJoin(const TQString &))); - connect(this, TQT_SIGNAL(gameOver()), this, TQT_SLOT(endGame())); + connect(this, TQ_SIGNAL(fibsWhoInfo(const TQString &)), this, TQ_SLOT(changeJoin(const TQString &))); + connect(this, TQ_SIGNAL(fibsLogout (const TQString &)), this, TQ_SLOT(cancelJoin(const TQString &))); + connect(this, TQ_SIGNAL(gameOver()), this, TQ_SLOT(endGame())); /* * Creating, initializing and connecting the player list */ playerlist = new KFibsPlayerList(0, "fibs player list"); - connect(this, TQT_SIGNAL(fibsWhoInfo(const TQString &)), playerlist, TQT_SLOT(changePlayer(const TQString &))); - connect(this, TQT_SIGNAL(fibsLogout (const TQString &)), playerlist, TQT_SLOT(deletePlayer(const TQString &))); - connect(this, TQT_SIGNAL(fibsWhoEnd()), playerlist, TQT_SLOT(stopUpdate())); - connect(this, TQT_SIGNAL(fibsConnectionClosed()), playerlist, TQT_SLOT(stopUpdate())); - connect(this, TQT_SIGNAL(changePlayerStatus(const TQString &, int, bool)), - playerlist, TQT_SLOT(changePlayerStatus(const TQString &, int, bool))); - connect(playerlist, TQT_SIGNAL(fibsCommand(const TQString &)), this, TQT_SLOT(handleCommand(const TQString &))); - connect(playerlist, TQT_SIGNAL(fibsInvite(const TQString &)), this, TQT_SLOT(fibsRequestInvitation(const TQString &))); + connect(this, TQ_SIGNAL(fibsWhoInfo(const TQString &)), playerlist, TQ_SLOT(changePlayer(const TQString &))); + connect(this, TQ_SIGNAL(fibsLogout (const TQString &)), playerlist, TQ_SLOT(deletePlayer(const TQString &))); + connect(this, TQ_SIGNAL(fibsWhoEnd()), playerlist, TQ_SLOT(stopUpdate())); + connect(this, TQ_SIGNAL(fibsConnectionClosed()), playerlist, TQ_SLOT(stopUpdate())); + connect(this, TQ_SIGNAL(changePlayerStatus(const TQString &, int, bool)), + playerlist, TQ_SLOT(changePlayerStatus(const TQString &, int, bool))); + connect(playerlist, TQ_SIGNAL(fibsCommand(const TQString &)), this, TQ_SLOT(handleCommand(const TQString &))); + connect(playerlist, TQ_SIGNAL(fibsInvite(const TQString &)), this, TQ_SLOT(fibsRequestInvitation(const TQString &))); /* * Create, initialize and connect the chat window */ chatWindow = new KBgChat(0, "chat window"); - connect(this, TQT_SIGNAL(chatMessage(const TQString &)), chatWindow, TQT_SLOT(handleData(const TQString &))); - connect(this, TQT_SIGNAL(fibsStartNewGame(const TQString &)), chatWindow, TQT_SLOT(startGame(const TQString &))); - connect(this, TQT_SIGNAL(gameOver()), chatWindow, TQT_SLOT(endGame())); - connect(this, TQT_SIGNAL(fibsLogout (const TQString &)), chatWindow, TQT_SLOT(deletePlayer(const TQString &))); - connect(chatWindow, TQT_SIGNAL(fibsCommand(const TQString &)), this, TQT_SLOT(handleCommand(const TQString &))); - connect(chatWindow, TQT_SIGNAL(fibsRequestInvitation(const TQString &)), this, TQT_SLOT(fibsRequestInvitation(const TQString &))); - connect(chatWindow, TQT_SIGNAL(personalMessage(const TQString &)), this, TQT_SLOT(personalMessage(const TQString &))); - connect(playerlist, TQT_SIGNAL(fibsTalk(const TQString &)), chatWindow, TQT_SLOT(fibsTalk(const TQString &))); + connect(this, TQ_SIGNAL(chatMessage(const TQString &)), chatWindow, TQ_SLOT(handleData(const TQString &))); + connect(this, TQ_SIGNAL(fibsStartNewGame(const TQString &)), chatWindow, TQ_SLOT(startGame(const TQString &))); + connect(this, TQ_SIGNAL(gameOver()), chatWindow, TQ_SLOT(endGame())); + connect(this, TQ_SIGNAL(fibsLogout (const TQString &)), chatWindow, TQ_SLOT(deletePlayer(const TQString &))); + connect(chatWindow, TQ_SIGNAL(fibsCommand(const TQString &)), this, TQ_SLOT(handleCommand(const TQString &))); + connect(chatWindow, TQ_SIGNAL(fibsRequestInvitation(const TQString &)), this, TQ_SLOT(fibsRequestInvitation(const TQString &))); + connect(chatWindow, TQ_SIGNAL(personalMessage(const TQString &)), this, TQ_SLOT(personalMessage(const TQString &))); + connect(playerlist, TQ_SIGNAL(fibsTalk(const TQString &)), chatWindow, TQ_SLOT(fibsTalk(const TQString &))); /* * Creating, initializing and connecting the menu @@ -2156,9 +2156,9 @@ KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmen /* * Initialize the FIBS submenu - this is also put in the play menu */ - conAction = new TDEAction(i18n("&Connect"), 0, this, TQT_SLOT( connectFIBS()), this); - newAction = new TDEAction(i18n("New Account"), 0, this, TQT_SLOT( newAccount()), this); - disAction = new TDEAction(i18n("&Disconnect"), 0, this, TQT_SLOT(disconnectFIBS()), this); + conAction = new TDEAction(i18n("&Connect"), 0, this, TQ_SLOT( connectFIBS()), this); + newAction = new TDEAction(i18n("New Account"), 0, this, TQ_SLOT( newAccount()), this); + disAction = new TDEAction(i18n("&Disconnect"), 0, this, TQ_SLOT(disconnectFIBS()), this); conAction->setEnabled(true ); conAction->plug(menu); disAction->setEnabled(false); disAction->plug(menu); @@ -2166,7 +2166,7 @@ KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmen menu->insertSeparator(); - (invAction = new TDEAction(i18n("&Invite..."), 0, this, TQT_SLOT(inviteDialog()), this))->plug(menu); + (invAction = new TDEAction(i18n("&Invite..."), 0, this, TQ_SLOT(inviteDialog()), this))->plug(menu); /* * Create and fill the response menu. This is for all these: type this or @@ -2174,8 +2174,8 @@ KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmen */ cmdMenuID = menu->insertItem(i18n("&Commands"), cmdMenu); { - (actAway = new TDEAction(i18n("Away"), 0, this, TQT_SLOT(away()), this))->plug(cmdMenu); - (actBack = new TDEAction(i18n("Back"), 0, this, TQT_SLOT(back()), this))->plug(cmdMenu); + (actAway = new TDEAction(i18n("Away"), 0, this, TQ_SLOT(away()), this))->plug(cmdMenu); + (actBack = new TDEAction(i18n("Back"), 0, this, TQ_SLOT(back()), this))->plug(cmdMenu); actAway->setEnabled(true); actBack->setEnabled(false); @@ -2192,14 +2192,14 @@ KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmen fibsOpt[i] = 0; fibsOpt[OptReady] = new TDEToggleAction(i18n("Ready to Play"), - 0, this, TQT_SLOT(toggle_ready()), this); + 0, this, TQ_SLOT(toggle_ready()), this); fibsOpt[OptRatings] = new TDEToggleAction(i18n("Show Rating Computations"), - 0, this, TQT_SLOT(toggle_ratings()), this); + 0, this, TQ_SLOT(toggle_ratings()), this); fibsOpt[OptRatings]->setCheckedState(i18n("Hide Rating Computations")); fibsOpt[OptGreedy] = new TDEToggleAction(i18n("Greedy Bearoffs"), - 0, this, TQT_SLOT(toggle_greedy()), this); + 0, this, TQ_SLOT(toggle_greedy()), this); fibsOpt[OptDouble] = new TDEToggleAction(i18n("Ask for Doubles"), - 0, this, TQT_SLOT(toggle_double()), this); + 0, this, TQ_SLOT(toggle_double()), this); for (int i = 0; i < NumFIBSOpt; i++) if (fibsOpt[i]) @@ -2213,16 +2213,16 @@ KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmen */ respMenuID = menu->insertItem(i18n("&Response"), respMenu); { - (actAccept = new TDEAction(i18n("Accept"), 0, this, TQT_SLOT(accept()), this))->plug(respMenu); - (actReject = new TDEAction(i18n("Reject"), 0, this, TQT_SLOT(reject()), this))->plug(respMenu); + (actAccept = new TDEAction(i18n("Accept"), 0, this, TQ_SLOT(accept()), this))->plug(respMenu); + (actReject = new TDEAction(i18n("Reject"), 0, this, TQ_SLOT(reject()), this))->plug(respMenu); actAccept->setEnabled(false); actReject->setEnabled(false); respMenu->insertSeparator(); - (actConti = new TDEAction(i18n("Join"), 0, this, TQT_SLOT(match_conti()), this))->plug(respMenu); - (actLeave = new TDEAction(i18n("Leave"), 0, this, TQT_SLOT(match_leave()), this))->plug(respMenu); + (actConti = new TDEAction(i18n("Join"), 0, this, TQ_SLOT(match_conti()), this))->plug(respMenu); + (actLeave = new TDEAction(i18n("Leave"), 0, this, TQ_SLOT(match_leave()), this))->plug(respMenu); actConti->setEnabled(false); actLeave->setEnabled(false); @@ -2235,14 +2235,14 @@ KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmen joinMenuID = menu->insertItem(i18n("&Join"), joinMenu); { numJoin = -1; - actJoin[0] = new TDEAction("", 0, this, TQT_SLOT(join_0()), this); - actJoin[1] = new TDEAction("", 0, this, TQT_SLOT(join_1()), this); - actJoin[2] = new TDEAction("", 0, this, TQT_SLOT(join_2()), this); - actJoin[3] = new TDEAction("", 0, this, TQT_SLOT(join_3()), this); - actJoin[4] = new TDEAction("", 0, this, TQT_SLOT(join_4()), this); - actJoin[5] = new TDEAction("", 0, this, TQT_SLOT(join_5()), this); - actJoin[6] = new TDEAction("", 0, this, TQT_SLOT(join_6()), this); - actJoin[7] = new TDEAction("", 0, this, TQT_SLOT(join_7()), this); + actJoin[0] = new TDEAction("", 0, this, TQ_SLOT(join_0()), this); + actJoin[1] = new TDEAction("", 0, this, TQ_SLOT(join_1()), this); + actJoin[2] = new TDEAction("", 0, this, TQ_SLOT(join_2()), this); + actJoin[3] = new TDEAction("", 0, this, TQ_SLOT(join_3()), this); + actJoin[4] = new TDEAction("", 0, this, TQ_SLOT(join_4()), this); + actJoin[5] = new TDEAction("", 0, this, TQ_SLOT(join_5()), this); + actJoin[6] = new TDEAction("", 0, this, TQ_SLOT(join_6()), this); + actJoin[7] = new TDEAction("", 0, this, TQ_SLOT(join_7()), this); } menu->setItemEnabled(joinMenuID, false); @@ -2255,11 +2255,11 @@ KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmen */ menu->insertSeparator(); - (listAct = new TDEToggleAction(i18n("&Player List"), 0, this, TQT_SLOT(showList()), this))->plug(menu); - (chatAct = new TDEToggleAction(i18n("&Chat"), 0, this, TQT_SLOT(showChat()), this))->plug(menu); + (listAct = new TDEToggleAction(i18n("&Player List"), 0, this, TQ_SLOT(showList()), this))->plug(menu); + (chatAct = new TDEToggleAction(i18n("&Chat"), 0, this, TQ_SLOT(showChat()), this))->plug(menu); - connect(playerlist, TQT_SIGNAL(windowVisible(bool)), listAct, TQT_SLOT(setChecked(bool))); - connect(chatWindow, TQT_SIGNAL(windowVisible(bool)), chatAct, TQT_SLOT(setChecked(bool))); + connect(playerlist, TQ_SIGNAL(windowVisible(bool)), listAct, TQ_SLOT(setChecked(bool))); + connect(chatWindow, TQ_SIGNAL(windowVisible(bool)), chatAct, TQ_SLOT(setChecked(bool))); /* * Create message IDs. This sets up a lot of regular expressions. @@ -2287,7 +2287,7 @@ KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmen // FIXME: move the start to connect... keepaliveTimer = new TQTimer(this); - connect(keepaliveTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(keepAlive())); + connect(keepaliveTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(keepAlive())); keepaliveTimer->start(1200000); } diff --git a/kbackgammon/engines/fibs/kbgfibs.h b/kbackgammon/engines/fibs/kbgfibs.h index 9e74a497..76b388fd 100644 --- a/kbackgammon/engines/fibs/kbgfibs.h +++ b/kbackgammon/engines/fibs/kbgfibs.h @@ -58,7 +58,7 @@ class TDEToggleAction; */ class KBgEngineFIBS : public KBgEngine { - Q_OBJECT + TQ_OBJECT public: diff --git a/kbackgammon/engines/fibs/kbgfibschat.cpp b/kbackgammon/engines/fibs/kbgfibschat.cpp index 19a4a7a2..7a8954c6 100644 --- a/kbackgammon/engines/fibs/kbgfibschat.cpp +++ b/kbackgammon/engines/fibs/kbgfibschat.cpp @@ -205,10 +205,10 @@ KBgChat::KBgChat(TQWidget *parent, const char *name) if (!addSendingEntry(i18n("Whisper to watchers only"), CLIP_YOU_WHISPER)) kdDebug(10500) << "adding whisper" << endl; - connect(this, TQT_SIGNAL(rightButtonClicked(TQListBoxItem *, const TQPoint &)), - this, TQT_SLOT(contextMenu(TQListBoxItem *, const TQPoint &))); - connect(this, TQT_SIGNAL(signalSendMessage(int, const TQString &)), - this, TQT_SLOT(handleCommand(int, const TQString &))); + connect(this, TQ_SIGNAL(rightButtonClicked(TQListBoxItem *, const TQPoint &)), + this, TQ_SLOT(contextMenu(TQListBoxItem *, const TQPoint &))); + connect(this, TQ_SIGNAL(signalSendMessage(int, const TQString &)), + this, TQ_SLOT(handleCommand(int, const TQString &))); d->mName2ID = new TQDict<int>(17, true); d->mName2ID->setAutoDelete(true); @@ -216,7 +216,7 @@ KBgChat::KBgChat(TQWidget *parent, const char *name) /* * some eye candy :) */ - setIcon(kapp->miniIcon()); + setIcon(tdeApp->miniIcon()); setCaption(i18n("Chat Window")); TQWhatsThis::add(this, i18n("This is the chat window.\n\n" @@ -229,34 +229,34 @@ KBgChat::KBgChat(TQWidget *parent, const char *name) * Define set of available actions */ d->mAct[KBgChatPrivate::Inquire] = new TDEAction(i18n("Info On"), - TQIconSet(kapp->iconLoader()->loadIcon( + TQIconSet(tdeApp->iconLoader()->loadIcon( "help.xpm", TDEIcon::Small)), - 0, TQT_TQOBJECT(this), TQT_SLOT(slotInquire()), actions); + 0, this, TQ_SLOT(slotInquire()), actions); d->mAct[KBgChatPrivate::Talk] = new TDEAction(i18n("Talk To"), - TQIconSet(kapp->iconLoader()->loadIcon( + TQIconSet(tdeApp->iconLoader()->loadIcon( PROG_NAME "-chat.png", TDEIcon::Small)), - 0, TQT_TQOBJECT(this), TQT_SLOT(slotTalk()), actions); - - d->mAct[KBgChatPrivate::InviteD] = new TDEAction(i18n("Use Dialog"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInviteD()), actions); - d->mAct[KBgChatPrivate::Invite1] = new TDEAction(i18n("1 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite1()), actions); - d->mAct[KBgChatPrivate::Invite2] = new TDEAction(i18n("2 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite2()), actions); - d->mAct[KBgChatPrivate::Invite3] = new TDEAction(i18n("3 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite3()), actions); - d->mAct[KBgChatPrivate::Invite4] = new TDEAction(i18n("4 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite4()), actions); - d->mAct[KBgChatPrivate::Invite5] = new TDEAction(i18n("5 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite5()), actions); - d->mAct[KBgChatPrivate::Invite6] = new TDEAction(i18n("6 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite6()), actions); - d->mAct[KBgChatPrivate::Invite7] = new TDEAction(i18n("7 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite7()), actions); - d->mAct[KBgChatPrivate::InviteU] = new TDEAction(i18n("Unlimited"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInviteU()), actions); - d->mAct[KBgChatPrivate::InviteR] = new TDEAction(i18n("Resume"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInviteR()), actions); + 0, this, TQ_SLOT(slotTalk()), actions); + + d->mAct[KBgChatPrivate::InviteD] = new TDEAction(i18n("Use Dialog"), 0, this, + TQ_SLOT(slotInviteD()), actions); + d->mAct[KBgChatPrivate::Invite1] = new TDEAction(i18n("1 Point Match"), 0, this, + TQ_SLOT(slotInvite1()), actions); + d->mAct[KBgChatPrivate::Invite2] = new TDEAction(i18n("2 Point Match"), 0, this, + TQ_SLOT(slotInvite2()), actions); + d->mAct[KBgChatPrivate::Invite3] = new TDEAction(i18n("3 Point Match"), 0, this, + TQ_SLOT(slotInvite3()), actions); + d->mAct[KBgChatPrivate::Invite4] = new TDEAction(i18n("4 Point Match"), 0, this, + TQ_SLOT(slotInvite4()), actions); + d->mAct[KBgChatPrivate::Invite5] = new TDEAction(i18n("5 Point Match"), 0, this, + TQ_SLOT(slotInvite5()), actions); + d->mAct[KBgChatPrivate::Invite6] = new TDEAction(i18n("6 Point Match"), 0, this, + TQ_SLOT(slotInvite6()), actions); + d->mAct[KBgChatPrivate::Invite7] = new TDEAction(i18n("7 Point Match"), 0, this, + TQ_SLOT(slotInvite7()), actions); + d->mAct[KBgChatPrivate::InviteU] = new TDEAction(i18n("Unlimited"), 0, this, + TQ_SLOT(slotInviteU()), actions); + d->mAct[KBgChatPrivate::InviteR] = new TDEAction(i18n("Resume"), 0, this, + TQ_SLOT(slotInviteR()), actions); d->mAct[KBgChatPrivate::InviteD]->plug(d->mInvt); @@ -275,13 +275,13 @@ KBgChat::KBgChat(TQWidget *parent, const char *name) d->mAct[KBgChatPrivate::InviteU]->plug(d->mInvt); d->mAct[KBgChatPrivate::InviteR]->plug(d->mInvt); - d->mAct[KBgChatPrivate::Gag] = new TDEAction(i18n("Gag"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotGag()), actions); - d->mAct[KBgChatPrivate::Ungag] = new TDEAction(i18n("Ungag"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotUngag()), actions); - d->mAct[KBgChatPrivate::Cleargag] = new TDEAction(i18n("Clear Gag List"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCleargag()), actions); - d->mAct[KBgChatPrivate::Copy] = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(slotCopy()), actions); - d->mAct[KBgChatPrivate::Clear] = new TDEAction(i18n("Clear"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotClear()), actions); - d->mAct[KBgChatPrivate::Close] = KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(hide()), actions); - d->mAct[KBgChatPrivate::Silent] = new TDEToggleAction(i18n("Silent"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSilent()), actions); + d->mAct[KBgChatPrivate::Gag] = new TDEAction(i18n("Gag"), 0, this, TQ_SLOT(slotGag()), actions); + d->mAct[KBgChatPrivate::Ungag] = new TDEAction(i18n("Ungag"), 0, this, TQ_SLOT(slotUngag()), actions); + d->mAct[KBgChatPrivate::Cleargag] = new TDEAction(i18n("Clear Gag List"), 0, this, TQ_SLOT(slotCleargag()), actions); + d->mAct[KBgChatPrivate::Copy] = KStdAction::copy(this, TQ_SLOT(slotCopy()), actions); + d->mAct[KBgChatPrivate::Clear] = new TDEAction(i18n("Clear"), 0, this, TQ_SLOT(slotClear()), actions); + d->mAct[KBgChatPrivate::Close] = KStdAction::close(this, TQ_SLOT(hide()), actions); + d->mAct[KBgChatPrivate::Silent] = new TDEToggleAction(i18n("Silent"), 0, this, TQ_SLOT(slotSilent()), actions); } @@ -304,7 +304,7 @@ KBgChat::~KBgChat() */ void KBgChat::readConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("chat window"); TQPoint pos(10, 10); @@ -324,7 +324,7 @@ void KBgChat::readConfig() */ void KBgChat::saveConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("chat window"); config->writeEntry("ori", pos()); @@ -800,7 +800,7 @@ void KBgChat::slotCopy() d->mText.replace(TQRegExp("</font>"), ""); d->mText.replace(TQRegExp("^.*\">"), ""); - kapp->clipboard()->setText(d->mText); + tdeApp->clipboard()->setText(d->mText); } /* diff --git a/kbackgammon/engines/fibs/kbgfibschat.h b/kbackgammon/engines/fibs/kbgfibschat.h index f2863397..b444672d 100644 --- a/kbackgammon/engines/fibs/kbgfibschat.h +++ b/kbackgammon/engines/fibs/kbgfibschat.h @@ -53,7 +53,7 @@ class KBgChatPrivate; */ class KBgChat : public KChat { - Q_OBJECT + TQ_OBJECT public: diff --git a/kbackgammon/engines/fibs/kbginvite.cpp b/kbackgammon/engines/fibs/kbginvite.cpp index ef186f03..fd4b35a7 100644 --- a/kbackgammon/engines/fibs/kbginvite.cpp +++ b/kbackgammon/engines/fibs/kbginvite.cpp @@ -116,11 +116,11 @@ KBgInvite::KBgInvite(const char *name) /* * Connect the buttons */ - connect(d->mUnlimited, TQT_SIGNAL(clicked()), TQT_SLOT(unlimitedClicked())); - connect(d->mResume, TQT_SIGNAL(clicked()), TQT_SLOT(resumeClicked())); - connect(d->mInvite, TQT_SIGNAL(clicked()), TQT_SLOT(inviteClicked())); - connect(d->mClose, TQT_SIGNAL(clicked()), TQT_SLOT(hide())); - connect(d->mCancel, TQT_SIGNAL(clicked()), TQT_SLOT(cancelClicked())); + connect(d->mUnlimited, TQ_SIGNAL(clicked()), TQ_SLOT(unlimitedClicked())); + connect(d->mResume, TQ_SIGNAL(clicked()), TQ_SLOT(resumeClicked())); + connect(d->mInvite, TQ_SIGNAL(clicked()), TQ_SLOT(inviteClicked())); + connect(d->mClose, TQ_SIGNAL(clicked()), TQ_SLOT(hide())); + connect(d->mCancel, TQ_SIGNAL(clicked()), TQ_SLOT(cancelClicked())); } /* diff --git a/kbackgammon/engines/fibs/kbginvite.h b/kbackgammon/engines/fibs/kbginvite.h index 0c0aaf43..220e012a 100644 --- a/kbackgammon/engines/fibs/kbginvite.h +++ b/kbackgammon/engines/fibs/kbginvite.h @@ -44,7 +44,7 @@ class KBgInvitePrivate; */ class KBgInvite : public KDialog { - Q_OBJECT + TQ_OBJECT public: diff --git a/kbackgammon/engines/fibs/kplayerlist.cpp b/kbackgammon/engines/fibs/kplayerlist.cpp index deffaa91..c8639a61 100644 --- a/kbackgammon/engines/fibs/kplayerlist.cpp +++ b/kbackgammon/engines/fibs/kplayerlist.cpp @@ -254,7 +254,7 @@ KFibsPlayerList::KFibsPlayerList(TQWidget *parent, const char *name) * configuration - needed for the column information. */ updateCaption(); - setIcon(kapp->miniIcon()); + setIcon(tdeApp->miniIcon()); TQWhatsThis::add(this, i18n("This window contains the player list. It shows " "all players that are currently logged into FIBS." "Use the right mouse button to get a context " @@ -286,44 +286,44 @@ KFibsPlayerList::KFibsPlayerList(TQWidget *parent, const char *name) * Create the whole set of actions */ d->mAct[KFibsPlayerListPrivate::Info] = new TDEAction(i18n("Info"), - TQIconSet(kapp->iconLoader()->loadIcon + TQIconSet(tdeApp->iconLoader()->loadIcon ("help.xpm", TDEIcon::Small)), - 0, TQT_TQOBJECT(this), TQT_SLOT(slotInfo()), actions); + 0, this, TQ_SLOT(slotInfo()), actions); d->mAct[KFibsPlayerListPrivate::Talk] = new TDEAction(i18n("Talk"), - TQIconSet(kapp->iconLoader()->loadIcon + TQIconSet(tdeApp->iconLoader()->loadIcon (PROG_NAME "-chat.png", TDEIcon::Small)), - 0, TQT_TQOBJECT(this), TQT_SLOT(slotTalk()), actions); - - d->mAct[KFibsPlayerListPrivate::Look] = new TDEAction(i18n("Look"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotLook()), actions); - d->mAct[KFibsPlayerListPrivate::Watch] = new TDEAction(i18n("Watch"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotWatch()), actions); - d->mAct[KFibsPlayerListPrivate::Unwatch] = new TDEAction(i18n("Unwatch"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotUnwatch()),actions); - d->mAct[KFibsPlayerListPrivate::BlindAct] = new TDEAction(i18n("Blind"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotBlind()), actions); - d->mAct[KFibsPlayerListPrivate::Update] = new TDEAction(i18n("Update"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotUpdate()), actions); - - d->mAct[KFibsPlayerListPrivate::Reload] = KStdAction::redisplay(TQT_TQOBJECT(this), TQT_SLOT(slotReload()), actions); - d->mAct[KFibsPlayerListPrivate::Mail] = KStdAction::mail(TQT_TQOBJECT(this), TQT_SLOT(slotMail()), actions); - d->mAct[KFibsPlayerListPrivate::Close] = KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(hide()), actions); - - d->mAct[KFibsPlayerListPrivate::InviteD] = new TDEAction(i18n("Use Dialog"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInviteD()), actions); - d->mAct[KFibsPlayerListPrivate::Invite1] = new TDEAction(i18n("1 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite1()), actions); - d->mAct[KFibsPlayerListPrivate::Invite2] = new TDEAction(i18n("2 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite2()), actions); - d->mAct[KFibsPlayerListPrivate::Invite3] = new TDEAction(i18n("3 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite3()), actions); - d->mAct[KFibsPlayerListPrivate::Invite4] = new TDEAction(i18n("4 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite4()), actions); - d->mAct[KFibsPlayerListPrivate::Invite5] = new TDEAction(i18n("5 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite5()), actions); - d->mAct[KFibsPlayerListPrivate::Invite6] = new TDEAction(i18n("6 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite6()), actions); - d->mAct[KFibsPlayerListPrivate::Invite7] = new TDEAction(i18n("7 Point Match"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInvite7()), actions); - d->mAct[KFibsPlayerListPrivate::InviteU] = new TDEAction(i18n("Unlimited"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInviteU()), actions); - d->mAct[KFibsPlayerListPrivate::InviteR] = new TDEAction(i18n("Resume"), 0, TQT_TQOBJECT(this), - TQT_SLOT(slotInviteR()), actions); + 0, this, TQ_SLOT(slotTalk()), actions); + + d->mAct[KFibsPlayerListPrivate::Look] = new TDEAction(i18n("Look"), 0, this, TQ_SLOT(slotLook()), actions); + d->mAct[KFibsPlayerListPrivate::Watch] = new TDEAction(i18n("Watch"), 0, this, TQ_SLOT(slotWatch()), actions); + d->mAct[KFibsPlayerListPrivate::Unwatch] = new TDEAction(i18n("Unwatch"), 0, this, TQ_SLOT(slotUnwatch()),actions); + d->mAct[KFibsPlayerListPrivate::BlindAct] = new TDEAction(i18n("Blind"), 0, this, TQ_SLOT(slotBlind()), actions); + d->mAct[KFibsPlayerListPrivate::Update] = new TDEAction(i18n("Update"), 0, this, TQ_SLOT(slotUpdate()), actions); + + d->mAct[KFibsPlayerListPrivate::Reload] = KStdAction::redisplay(this, TQ_SLOT(slotReload()), actions); + d->mAct[KFibsPlayerListPrivate::Mail] = KStdAction::mail(this, TQ_SLOT(slotMail()), actions); + d->mAct[KFibsPlayerListPrivate::Close] = KStdAction::close(this, TQ_SLOT(hide()), actions); + + d->mAct[KFibsPlayerListPrivate::InviteD] = new TDEAction(i18n("Use Dialog"), 0, this, + TQ_SLOT(slotInviteD()), actions); + d->mAct[KFibsPlayerListPrivate::Invite1] = new TDEAction(i18n("1 Point Match"), 0, this, + TQ_SLOT(slotInvite1()), actions); + d->mAct[KFibsPlayerListPrivate::Invite2] = new TDEAction(i18n("2 Point Match"), 0, this, + TQ_SLOT(slotInvite2()), actions); + d->mAct[KFibsPlayerListPrivate::Invite3] = new TDEAction(i18n("3 Point Match"), 0, this, + TQ_SLOT(slotInvite3()), actions); + d->mAct[KFibsPlayerListPrivate::Invite4] = new TDEAction(i18n("4 Point Match"), 0, this, + TQ_SLOT(slotInvite4()), actions); + d->mAct[KFibsPlayerListPrivate::Invite5] = new TDEAction(i18n("5 Point Match"), 0, this, + TQ_SLOT(slotInvite5()), actions); + d->mAct[KFibsPlayerListPrivate::Invite6] = new TDEAction(i18n("6 Point Match"), 0, this, + TQ_SLOT(slotInvite6()), actions); + d->mAct[KFibsPlayerListPrivate::Invite7] = new TDEAction(i18n("7 Point Match"), 0, this, + TQ_SLOT(slotInvite7()), actions); + d->mAct[KFibsPlayerListPrivate::InviteU] = new TDEAction(i18n("Unlimited"), 0, this, + TQ_SLOT(slotInviteU()), actions); + d->mAct[KFibsPlayerListPrivate::InviteR] = new TDEAction(i18n("Resume"), 0, this, + TQ_SLOT(slotInviteR()), actions); /* * Fill normal context menu @@ -362,10 +362,10 @@ KFibsPlayerList::KFibsPlayerList(TQWidget *parent, const char *name) /* * Right mouse button gets context menu, double click gets player info */ - connect(this, TQT_SIGNAL(contextMenu(TDEListView *, TQListViewItem *, const TQPoint &)), - this, TQT_SLOT(showContextMenu(TDEListView *, TQListViewItem *, const TQPoint &))); - connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem *, const TQPoint &, int)), - this, TQT_SLOT(getPlayerInfo(TQListViewItem *, const TQPoint &, int))); + connect(this, TQ_SIGNAL(contextMenu(TDEListView *, TQListViewItem *, const TQPoint &)), + this, TQ_SLOT(showContextMenu(TDEListView *, TQListViewItem *, const TQPoint &))); + connect(this, TQ_SIGNAL(doubleClicked(TQListViewItem *, const TQPoint &, int)), + this, TQ_SLOT(getPlayerInfo(TQListViewItem *, const TQPoint &, int))); } /* @@ -482,7 +482,7 @@ void KFibsPlayerList::getSetupPages(KTabCtl *nb, int space) */ nb->addTab(w, i18n("&Playerlist")); - connect(nb, TQT_SIGNAL(applyButtonPressed()), TQT_TQOBJECT(this), TQT_SLOT(setupOk())); + connect(nb, TQ_SIGNAL(applyButtonPressed()), this, TQ_SLOT(setupOk())); } /* @@ -507,7 +507,7 @@ void KFibsPlayerList::setupDefault() */ void KFibsPlayerList::readColumns() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup(name()); for (int i = 0; i < LVEnd; i++) { @@ -521,7 +521,7 @@ void KFibsPlayerList::readColumns() */ void KFibsPlayerList::readConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup(name()); TQPoint pos, defpos(10, 10); @@ -539,7 +539,7 @@ void KFibsPlayerList::readConfig() */ void KFibsPlayerList::saveConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup(name()); config->writeEntry("ori", pos()); @@ -656,7 +656,7 @@ void KFibsPlayerList::slotLook() */ void KFibsPlayerList::slotMail() { - kapp->invokeMailer(d->mMail, TQString()); + tdeApp->invokeMailer(d->mMail, TQString()); } /* diff --git a/kbackgammon/engines/fibs/kplayerlist.h b/kbackgammon/engines/fibs/kplayerlist.h index 56513e65..85c561aa 100644 --- a/kbackgammon/engines/fibs/kplayerlist.h +++ b/kbackgammon/engines/fibs/kplayerlist.h @@ -44,7 +44,7 @@ class KFibsPlayerListPrivate; */ class KFibsPlayerList : public TDEListView { - Q_OBJECT + TQ_OBJECT public: diff --git a/kbackgammon/engines/generic/kbgengine.cpp b/kbackgammon/engines/generic/kbgengine.cpp index 3e193984..677c8b49 100644 --- a/kbackgammon/engines/generic/kbgengine.cpp +++ b/kbackgammon/engines/generic/kbgengine.cpp @@ -38,7 +38,7 @@ KBgEngine::KBgEngine(TQWidget *parent, TQString *name, TQPopupMenu *pmenu) menu = pmenu; cl = -1; ct = new TQTimer(this); - connect(ct, TQT_SIGNAL(timeout()), this, TQT_SLOT(done())); + connect(ct, TQ_SIGNAL(timeout()), this, TQ_SLOT(done())); } /* diff --git a/kbackgammon/engines/generic/kbgengine.h b/kbackgammon/engines/generic/kbgengine.h index 75d1cc6d..6964e065 100644 --- a/kbackgammon/engines/generic/kbgengine.h +++ b/kbackgammon/engines/generic/kbgengine.h @@ -59,7 +59,7 @@ class KBgStatus; */ class KBgEngine:public TQObject { - Q_OBJECT + TQ_OBJECT public: diff --git a/kbackgammon/engines/gnubg/kbggnubg.cpp b/kbackgammon/engines/gnubg/kbggnubg.cpp index 6b49a78d..44998caf 100644 --- a/kbackgammon/engines/gnubg/kbggnubg.cpp +++ b/kbackgammon/engines/gnubg/kbggnubg.cpp @@ -379,7 +379,7 @@ void KBgEngineGNU::getSetupPages(KDialogBase *nb) * Main Widget */ TQVBox *w = nb->addVBoxPage(i18n("GNU Engine"), i18n("Here you can configure the GNU backgammon engine"), - kapp->iconLoader()->loadIcon(PROG_NAME "_engine", TDEIcon::Desktop)); + tdeApp->iconLoader()->loadIcon(PROG_NAME "_engine", TDEIcon::Desktop)); } /* @@ -387,7 +387,7 @@ void KBgEngineGNU::getSetupPages(KDialogBase *nb) */ void KBgEngineGNU::readConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("gnu engine"); // nothing yet @@ -398,7 +398,7 @@ void KBgEngineGNU::readConfig() */ void KBgEngineGNU::saveConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("gnu engine"); // nothing yet @@ -433,12 +433,12 @@ KBgEngineGNU::KBgEngineGNU(TQWidget *parent, TQString *name, TQPopupMenu *pmenu) * internal statue variables */ rollingAllowed = undoPossible = gameRunning = donePossible = false; - connect(this, TQT_SIGNAL(allowCommand(int, bool)), this, TQT_SLOT(setAllowed(int, bool))); + connect(this, TQ_SIGNAL(allowCommand(int, bool)), this, TQ_SLOT(setAllowed(int, bool))); /* * Setup of menu */ - resAction = new TDEAction(i18n("&Restart GNU Backgammon"), 0, this, TQT_SLOT(startGNU()), this); + resAction = new TDEAction(i18n("&Restart GNU Backgammon"), 0, this, TQ_SLOT(startGNU()), this); resAction->setEnabled(false); resAction->plug(menu); /* @@ -468,7 +468,7 @@ void KBgEngineGNU::start() * Will be started later */ cmdTimer = new TQTimer(this); - connect(cmdTimer, TQT_SIGNAL(timeout()), TQT_SLOT(nextCommand()) ); + connect(cmdTimer, TQ_SIGNAL(timeout()), TQ_SLOT(nextCommand()) ); emit infoText(i18n("This is experimental code which currently requires a specially " "patched version of GNU Backgammon.<br/><br/>")); @@ -483,12 +483,12 @@ void KBgEngineGNU::start() */ gnubg << "gnubg" << "--tty"; - connect(&gnubg, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(gnubgExit(TDEProcess *))); - connect(&gnubg, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), - this, TQT_SLOT(receiveData(TDEProcess *, char *, int))); - connect(&gnubg, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), - this, TQT_SLOT(receiveData(TDEProcess *, char *, int))); - connect(&gnubg, TQT_SIGNAL(wroteStdin(TDEProcess *)), this, TQT_SLOT(wroteStdin(TDEProcess *))); + connect(&gnubg, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(gnubgExit(TDEProcess *))); + connect(&gnubg, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), + this, TQ_SLOT(receiveData(TDEProcess *, char *, int))); + connect(&gnubg, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), + this, TQ_SLOT(receiveData(TDEProcess *, char *, int))); + connect(&gnubg, TQ_SIGNAL(wroteStdin(TDEProcess *)), this, TQ_SLOT(wroteStdin(TDEProcess *))); startGNU(); } diff --git a/kbackgammon/engines/gnubg/kbggnubg.h b/kbackgammon/engines/gnubg/kbggnubg.h index dcde6f1f..f32da01f 100644 --- a/kbackgammon/engines/gnubg/kbggnubg.h +++ b/kbackgammon/engines/gnubg/kbggnubg.h @@ -33,7 +33,7 @@ #include <tqspinbox.h> #include <tdeaction.h> #include <krandomsequence.h> -#include <kprocess.h> +#include <tdeprocess.h> #include <tqstringlist.h> /** @@ -42,7 +42,7 @@ */ class KBgEngineGNU : public KBgEngine { - Q_OBJECT + TQ_OBJECT public: diff --git a/kbackgammon/engines/nextgen/kbggame.h b/kbackgammon/engines/nextgen/kbggame.h index c224f7d2..295410ea 100644 --- a/kbackgammon/engines/nextgen/kbggame.h +++ b/kbackgammon/engines/nextgen/kbggame.h @@ -28,7 +28,7 @@ #endif #include <kgame/kgame.h> -#include <kdemacros.h> +#include <tdemacros.h> class TQObject; class KPlayer; @@ -36,9 +36,9 @@ class KPlayer; * * */ -class KDE_EXPORT KBgGame : public KGame +class TDE_EXPORT KBgGame : public KGame { - Q_OBJECT + TQ_OBJECT public: diff --git a/kbackgammon/engines/nextgen/kbgng.cpp b/kbackgammon/engines/nextgen/kbgng.cpp index aadb536f..6b0f72b3 100644 --- a/kbackgammon/engines/nextgen/kbgng.cpp +++ b/kbackgammon/engines/nextgen/kbgng.cpp @@ -67,13 +67,13 @@ KBgEngineNg::KBgEngineNg(TQWidget *parent, TQString *name, TQPopupMenu *pmenu) for (int i = 0; i < MaxTypes; i++) list.append(label[i]); - _gameSelect = new TDESelectAction(i18n("&Types"), 0, this, TQT_SLOT(setGame()), this); + _gameSelect = new TDESelectAction(i18n("&Types"), 0, this, TQ_SLOT(setGame()), this); _gameSelect->setItems(list); _gameSelect->plug(menu); menu->insertSeparator(); - _connectAction = new TDEAction(i18n("&Names..."), 0, this, TQT_SLOT(changeName()), this); + _connectAction = new TDEAction(i18n("&Names..."), 0, this, TQ_SLOT(changeName()), this); _connectAction->plug(menu); // Restore last settings @@ -446,7 +446,7 @@ KBgEngineNg::~KBgEngineNg() */ void KBgEngineNg::readConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("next generation engine"); _port = config->readNumEntry("port", PROG_COOKIE); @@ -461,7 +461,7 @@ void KBgEngineNg::readConfig() */ void KBgEngineNg::saveConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("next generation engine"); config->writeEntry("port", _port); @@ -588,8 +588,8 @@ KBgPlayer * KBgEngineNg::createPlayer(int i, TQString name) p->findProperty(KGamePropertyBase::IdName)->setEmittingSignal(true); - connect(p, TQT_SIGNAL(signalPropertyChanged(KGamePropertyBase *, KPlayer *)), - this, TQT_SLOT(slotPropertyChanged(KGamePropertyBase *, KPlayer *))); + connect(p, TQ_SIGNAL(signalPropertyChanged(KGamePropertyBase *, KPlayer *)), + this, TQ_SLOT(slotPropertyChanged(KGamePropertyBase *, KPlayer *))); return (_player[i] = p); } @@ -602,20 +602,20 @@ void KBgEngineNg::initGame() _game = new KBgGame(PROG_COOKIE); _game->random()->setSeed(getpid()*time(NULL)); - connect(_game, TQT_SIGNAL(signalPlayerJoinedGame(KPlayer *)), - this, TQT_SLOT(slotPlayerJoinedGame(KPlayer *))); - connect(_game, TQT_SIGNAL(signalCreatePlayer(KPlayer *&, int, int, bool, KGame *)), - this, TQT_SLOT(slotCreatePlayer(KPlayer *&, int, int, bool, KGame *))); + connect(_game, TQ_SIGNAL(signalPlayerJoinedGame(KPlayer *)), + this, TQ_SLOT(slotPlayerJoinedGame(KPlayer *))); + connect(_game, TQ_SIGNAL(signalCreatePlayer(KPlayer *&, int, int, bool, KGame *)), + this, TQ_SLOT(slotCreatePlayer(KPlayer *&, int, int, bool, KGame *))); - connect(_game, TQT_SIGNAL(signalClientConnected(TQ_UINT32)), - this, TQT_SLOT(slotClientConnected(TQ_UINT32))); - connect(_game, TQT_SIGNAL(signalClientDisconnected(TQ_UINT32, bool)), - this, TQT_SLOT(slotClientDisconnected(TQ_UINT32, bool))); + connect(_game, TQ_SIGNAL(signalClientConnected(TQ_UINT32)), + this, TQ_SLOT(slotClientConnected(TQ_UINT32))); + connect(_game, TQ_SIGNAL(signalClientDisconnected(TQ_UINT32, bool)), + this, TQ_SLOT(slotClientDisconnected(TQ_UINT32, bool))); - connect(_game, TQT_SIGNAL(signalPropertyChanged(KGamePropertyBase *, KGame *)), - this, TQT_SLOT(slotPropertyChanged(KGamePropertyBase *, KGame *))); - connect(_game, TQT_SIGNAL(signalNetworkData(int,const TQByteArray &, TQ_UINT32, TQ_UINT32)), - this, TQT_SLOT(slotNetworkData(int,const TQByteArray &, TQ_UINT32, TQ_UINT32))); + connect(_game, TQ_SIGNAL(signalPropertyChanged(KGamePropertyBase *, KGame *)), + this, TQ_SLOT(slotPropertyChanged(KGamePropertyBase *, KGame *))); + connect(_game, TQ_SIGNAL(signalNetworkData(int,const TQByteArray &, TQ_UINT32, TQ_UINT32)), + this, TQ_SLOT(slotNetworkData(int,const TQByteArray &, TQ_UINT32, TQ_UINT32))); } // EOF diff --git a/kbackgammon/engines/nextgen/kbgng.h b/kbackgammon/engines/nextgen/kbgng.h index 42468f1d..a03db0c6 100644 --- a/kbackgammon/engines/nextgen/kbgng.h +++ b/kbackgammon/engines/nextgen/kbgng.h @@ -49,7 +49,7 @@ */ class KBgEngineNg : public KBgEngine { - Q_OBJECT + TQ_OBJECT public: diff --git a/kbackgammon/engines/nextgen/kbgplayer.h b/kbackgammon/engines/nextgen/kbgplayer.h index 244a4aeb..a860b6e4 100644 --- a/kbackgammon/engines/nextgen/kbgplayer.h +++ b/kbackgammon/engines/nextgen/kbgplayer.h @@ -39,7 +39,7 @@ class KGame; */ class KBgPlayer : public KPlayer { - Q_OBJECT + TQ_OBJECT public: diff --git a/kbackgammon/engines/offline/kbgoffline.cpp b/kbackgammon/engines/offline/kbgoffline.cpp index ce8dd54d..3b6f81cd 100644 --- a/kbackgammon/engines/offline/kbgoffline.cpp +++ b/kbackgammon/engines/offline/kbgoffline.cpp @@ -119,11 +119,11 @@ KBgEngineOffline::KBgEngineOffline(TQWidget *parent, TQString *name, TQPopupMenu /* * Create engine specific actions */ - d->mNew = new TDEAction(i18n("&New Game..."), 0, this, TQT_SLOT(newGame()), this); - d->mSwap = new TDEAction(i18n("&Swap Colors"), 0, this, TQT_SLOT(swapColors()), this); + d->mNew = new TDEAction(i18n("&New Game..."), 0, this, TQ_SLOT(newGame()), this); + d->mSwap = new TDEAction(i18n("&Swap Colors"), 0, this, TQ_SLOT(swapColors()), this); d->mEdit = new TDEToggleAction(i18n("&Edit Mode"), 0, this, - TQT_SLOT(toggleEditMode()), this); + TQ_SLOT(toggleEditMode()), this); d->mEdit->setChecked(false); /* @@ -143,13 +143,13 @@ KBgEngineOffline::KBgEngineOffline(TQWidget *parent, TQString *name, TQPopupMenu * initialize the commit timeout */ ct = new TQTimer(this); - connect(ct, TQT_SIGNAL(timeout()), this, TQT_SLOT(done())); + connect(ct, TQ_SIGNAL(timeout()), this, TQ_SLOT(done())); /* * internal statue variables */ d->mRollFlag = d->mUndoFlag = d->mGameFlag = d->mDoneFlag = false; - connect(this, TQT_SIGNAL(allowCommand(int, bool)), this, TQT_SLOT(setAllowed(int, bool))); + connect(this, TQ_SIGNAL(allowCommand(int, bool)), this, TQ_SLOT(setAllowed(int, bool))); /* * Restore last stored settings @@ -179,7 +179,7 @@ void KBgEngineOffline::getSetupPages(KDialogBase *nb) * Main Widget */ TQVBox *vbp = nb->addVBoxPage(i18n("Offline Engine"), i18n("Use this to configure the Offline engine"), - kapp->iconLoader()->loadIcon(PROG_NAME "_engine", TDEIcon::Desktop)); + tdeApp->iconLoader()->loadIcon(PROG_NAME "_engine", TDEIcon::Desktop)); /* * Get a multi page work space @@ -246,7 +246,7 @@ void KBgEngineOffline::setupCancel() */ void KBgEngineOffline::readConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("offline engine"); d->mName[0] = config->readEntry("player-one", i18n("South")); // same as above @@ -259,7 +259,7 @@ void KBgEngineOffline::readConfig() */ void KBgEngineOffline::saveConfig() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("offline engine"); config->writeEntry("player-one", d->mName[0] ); @@ -698,11 +698,11 @@ bool KBgEngineOffline::queryClose() i18n("In the middle of a game. " "Really quit?"), TQString(), KStdGuiItem::quit())) { case KMessageBox::Continue : - return TRUE; + return true; case KMessageBox::Cancel : - return FALSE; + return false; default: // cancel - return FALSE; + return false; } return true; } diff --git a/kbackgammon/engines/offline/kbgoffline.h b/kbackgammon/engines/offline/kbgoffline.h index 673e94a1..9f38efa3 100644 --- a/kbackgammon/engines/offline/kbgoffline.h +++ b/kbackgammon/engines/offline/kbgoffline.h @@ -47,7 +47,7 @@ class KBgEngineOfflinePrivate; */ class KBgEngineOffline : public KBgEngine { - Q_OBJECT + TQ_OBJECT public: |
