summaryrefslogtreecommitdiffstats
path: root/kbackgammon/kbg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbackgammon/kbg.cpp')
-rw-r--r--kbackgammon/kbg.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/kbackgammon/kbg.cpp b/kbackgammon/kbg.cpp
index 0b51b056..6034d670 100644
--- a/kbackgammon/kbg.cpp
+++ b/kbackgammon/kbg.cpp
@@ -96,45 +96,45 @@ KBg::KBg()
/*
* Create all actions needed by the application
*/
- newAction = KStdGameAction::gameNew(this, TQT_SLOT(openNew()), actionCollection());
+ newAction = KStdGameAction::gameNew(this, TQ_SLOT(openNew()), actionCollection());
newAction->setEnabled(false);
- KStdGameAction::print(this, TQT_SLOT(print()), actionCollection());
- KStdGameAction::quit(this, TQT_SLOT(close()), actionCollection());
+ KStdGameAction::print(this, TQ_SLOT(print()), actionCollection());
+ KStdGameAction::quit(this, TQ_SLOT(close()), actionCollection());
TQStringList list;
for (int i = 0; i < MaxEngine; i++)
list.append(engineString[i]);
- engineSet = new TDESelectAction(i18n("&Engine"), 0, this, TQT_SLOT(setupEngine()), actionCollection(),
+ engineSet = new TDESelectAction(i18n("&Engine"), 0, this, TQ_SLOT(setupEngine()), actionCollection(),
"move_engine");
engineSet->setItems(list);
// AB: what the heck has this to do with redisplay? perhaps use reload instead?
- loadAction = KStdAction::redisplay(this, TQT_SLOT(load()), actionCollection(), "move_load");
+ loadAction = KStdAction::redisplay(this, TQ_SLOT(load()), actionCollection(), "move_load");
loadAction->setEnabled(false);
- undoAction = KStdGameAction::undo(this, TQT_SLOT(undo()), actionCollection());
+ undoAction = KStdGameAction::undo(this, TQ_SLOT(undo()), actionCollection());
undoAction->setEnabled(false);
- redoAction = KStdGameAction::redo(this, TQT_SLOT(redo()), actionCollection());
+ redoAction = KStdGameAction::redo(this, TQ_SLOT(redo()), actionCollection());
redoAction->setEnabled(false);
- rollAction = KStdGameAction::roll(this, TQT_SLOT(roll()), actionCollection());
+ rollAction = KStdGameAction::roll(this, TQ_SLOT(roll()), actionCollection());
rollAction->setEnabled(false);
- endAction = KStdGameAction::endTurn(this, TQT_SLOT(done()), actionCollection());
+ endAction = KStdGameAction::endTurn(this, TQ_SLOT(done()), actionCollection());
endAction->setEnabled(false);
cubeAction = new TDEAction(i18n("Double Cube"), TQIconSet(kapp->iconLoader()->loadIcon
(PROG_NAME "-double.xpm", TDEIcon::Toolbar)),
- 0, this, TQT_SLOT(cube()), actionCollection(), "move_cube");
+ 0, this, TQ_SLOT(cube()), actionCollection(), "move_cube");
cubeAction->setEnabled(false);
- KStdAction::showMenubar(this, TQT_SLOT(toggleMenubar()), actionCollection());
- KStdAction::preferences(this, TQT_SLOT(setupDlg()), actionCollection());
- KStdAction::saveOptions(this, TQT_SLOT(saveConfig()), actionCollection());
+ KStdAction::showMenubar(this, TQ_SLOT(toggleMenubar()), actionCollection());
+ KStdAction::preferences(this, TQ_SLOT(setupDlg()), actionCollection());
+ KStdAction::saveOptions(this, TQ_SLOT(saveConfig()), actionCollection());
TDEPopupMenu *p = (new TDEActionMenu(i18n("&Backgammon on the Web"),
actionCollection(), "help_www"))->popupMenu();
- (new TDEAction(helpTopic[FIBSHome][0], 0, this, TQT_SLOT(wwwFIBS()),
+ (new TDEAction(helpTopic[FIBSHome][0], 0, this, TQ_SLOT(wwwFIBS()),
actionCollection(), "help_www_fibs"))->plug(p);
- (new TDEAction(helpTopic[RuleHome][0], 0, this, TQT_SLOT(wwwRule()),
+ (new TDEAction(helpTopic[RuleHome][0], 0, this, TQ_SLOT(wwwRule()),
actionCollection(), "help_www_rule"))->plug(p);
/*
@@ -148,7 +148,7 @@ KBg::KBg()
actionCmdLine->setAutoSized(true);
cmdLine->completionObject()->setOrder(TDECompletion::Weighted);
- connect(cmdLine, TQT_SIGNAL(returnPressed(const TQString &)), this, TQT_SLOT(handleCmd(const TQString &)));
+ connect(cmdLine, TQ_SIGNAL(returnPressed(const TQString &)), this, TQ_SLOT(handleCmd(const TQString &)));
/*
* Done with the actions, create the XML-defined parts of the
* user interface
@@ -172,8 +172,8 @@ KBg::KBg()
* Set up configuration handling.
* FIXME: support session management
*/
- connect(this, TQT_SIGNAL(readSettings()), board, TQT_SLOT(readConfig()));
- connect(this, TQT_SIGNAL(saveSettings()), board, TQT_SLOT(saveConfig()));
+ connect(this, TQ_SIGNAL(readSettings()), board, TQ_SLOT(readConfig()));
+ connect(this, TQ_SIGNAL(saveSettings()), board, TQ_SLOT(saveConfig()));
/*
* Set up some whatis messages for the online help
@@ -274,26 +274,26 @@ void KBg::setupEngine()
newAction->setEnabled(engine[currEngine]->haveNewGame());
// engine -> this
- connect(engine[currEngine], TQT_SIGNAL(statText(const TQString &)), this, TQT_SLOT(updateCaption(const TQString &)));
- connect(engine[currEngine], TQT_SIGNAL(infoText(const TQString &)), status, TQT_SLOT(write(const TQString &)));
- connect(engine[currEngine], TQT_SIGNAL(allowCommand(int, bool)), this, TQT_SLOT(allowCommand(int, bool)));
+ connect(engine[currEngine], TQ_SIGNAL(statText(const TQString &)), this, TQ_SLOT(updateCaption(const TQString &)));
+ connect(engine[currEngine], TQ_SIGNAL(infoText(const TQString &)), status, TQ_SLOT(write(const TQString &)));
+ connect(engine[currEngine], TQ_SIGNAL(allowCommand(int, bool)), this, TQ_SLOT(allowCommand(int, bool)));
// this -> engine
- connect(this, TQT_SIGNAL(readSettings()), engine[currEngine], TQT_SLOT(readConfig()));
- connect(this, TQT_SIGNAL(saveSettings()), engine[currEngine], TQT_SLOT(saveConfig()));
+ connect(this, TQ_SIGNAL(readSettings()), engine[currEngine], TQ_SLOT(readConfig()));
+ connect(this, TQ_SIGNAL(saveSettings()), engine[currEngine], TQ_SLOT(saveConfig()));
// board -> engine
- connect(board, TQT_SIGNAL(rollDice(const int)), engine[currEngine], TQT_SLOT(rollDice(const int)));
- connect(board, TQT_SIGNAL(doubleCube(const int)), engine[currEngine], TQT_SLOT(doubleCube(const int)));
- connect(board, TQT_SIGNAL(currentMove(TQString *)), engine[currEngine], TQT_SLOT(handleMove(TQString *)));
+ connect(board, TQ_SIGNAL(rollDice(const int)), engine[currEngine], TQ_SLOT(rollDice(const int)));
+ connect(board, TQ_SIGNAL(doubleCube(const int)), engine[currEngine], TQ_SLOT(doubleCube(const int)));
+ connect(board, TQ_SIGNAL(currentMove(TQString *)), engine[currEngine], TQ_SLOT(handleMove(TQString *)));
// engine -> board
- connect(engine[currEngine], TQT_SIGNAL(undoMove()), board, TQT_SLOT(undoMove()));
- connect(engine[currEngine], TQT_SIGNAL(redoMove()), board, TQT_SLOT(redoMove()));
- connect(engine[currEngine], TQT_SIGNAL(setEditMode(const bool)), board, TQT_SLOT(setEditMode(const bool)));
- connect(engine[currEngine], TQT_SIGNAL(allowMoving(const bool)), board, TQT_SLOT(allowMoving(const bool)));
- connect(engine[currEngine], TQT_SIGNAL(getState(KBgStatus *)), board, TQT_SLOT(getState(KBgStatus *)));
- connect(engine[currEngine], TQT_SIGNAL(newState(const KBgStatus &)), board, TQT_SLOT(setState(const KBgStatus &)));
+ connect(engine[currEngine], TQ_SIGNAL(undoMove()), board, TQ_SLOT(undoMove()));
+ connect(engine[currEngine], TQ_SIGNAL(redoMove()), board, TQ_SLOT(redoMove()));
+ connect(engine[currEngine], TQ_SIGNAL(setEditMode(const bool)), board, TQ_SLOT(setEditMode(const bool)));
+ connect(engine[currEngine], TQ_SIGNAL(allowMoving(const bool)), board, TQ_SLOT(allowMoving(const bool)));
+ connect(engine[currEngine], TQ_SIGNAL(getState(KBgStatus *)), board, TQ_SLOT(getState(KBgStatus *)));
+ connect(engine[currEngine], TQ_SIGNAL(newState(const KBgStatus &)), board, TQ_SLOT(setState(const KBgStatus &)));
// now that all signals are connected, start the engine
engine[currEngine]->start();
@@ -535,7 +535,7 @@ void KBg::setupDlg()
sbt->setLabel(i18n("Move timeout in seconds:"));
sbt->setValue(config->readDoubleNumEntry("timeout", 2.5));
- connect(cbt, TQT_SIGNAL(toggled(bool)), sbt, TQT_SLOT(setEnabled(bool)));
+ connect(cbt, TQ_SIGNAL(toggled(bool)), sbt, TQ_SLOT(setEnabled(bool)));
sbt->setEnabled(cbt->isChecked());
TQGridLayout *gl = new TQGridLayout(gbt, 2, 1, 20);
@@ -577,7 +577,7 @@ void KBg::setupDlg()
lab->setMaximumSize(lab->sizeHint());
gle->addWidget(lab, 0, 0);
- connect(lab, TQT_SIGNAL(leftClickedURL(const TQString &)), TQT_SLOT(startKCM(const TQString &)));
+ connect(lab, TQ_SIGNAL(leftClickedURL(const TQString &)), TQ_SLOT(startKCM(const TQString &)));
/*
* Board settings
@@ -606,7 +606,7 @@ void KBg::setupDlg()
engine[i] = new KBgEngineNg(nb, &s, dummyPopup);
break;
}
- connect(this, TQT_SIGNAL(saveSettings()), engine[i], TQT_SLOT(saveConfig()));
+ connect(this, TQ_SIGNAL(saveSettings()), engine[i], TQ_SLOT(saveConfig()));
}
engine[i]->getSetupPages(nb);
}
@@ -614,12 +614,12 @@ void KBg::setupDlg()
/*
* Connect the signals of nb
*/
- connect(nb, TQT_SIGNAL(okClicked()), this, TQT_SLOT(setupOk()));
- connect(nb, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(setupOk()));
- connect(nb, TQT_SIGNAL(cancelClicked()), this, TQT_SLOT(setupCancel()));
- connect(nb, TQT_SIGNAL(defaultClicked()),this, TQT_SLOT(setupDefault()));
+ connect(nb, TQ_SIGNAL(okClicked()), this, TQ_SLOT(setupOk()));
+ connect(nb, TQ_SIGNAL(applyClicked()), this, TQ_SLOT(setupOk()));
+ connect(nb, TQ_SIGNAL(cancelClicked()), this, TQ_SLOT(setupCancel()));
+ connect(nb, TQ_SIGNAL(defaultClicked()),this, TQ_SLOT(setupDefault()));
- connect(nb, TQT_SIGNAL(finished()), this, TQT_SLOT(setupDone()));
+ connect(nb, TQ_SIGNAL(finished()), this, TQ_SLOT(setupDone()));
nb->resize(nb->minimumSize());
nb->show();
@@ -685,7 +685,7 @@ void KBg::configureToolbars()
{
saveMainWindowSettings(TDEGlobal::config(), "kedittoolbar settings"); // temp group
KEditToolbar dlg(actionCollection(), xmlFile(), true, this);
- connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(newToolbarConfig()));
+ connect(&dlg,TQ_SIGNAL(newToolbarConfig()),this,TQ_SLOT(newToolbarConfig()));
dlg.exec();
TDEGlobal::config()->deleteGroup( "kedittoolbar settings" ); // delete temp group
}