|
|
|
@ -32,7 +32,7 @@ MainWindow::MainWindow(TQWidget* parent, const char* name)
|
|
|
|
|
menuBar()->insertItem(i18n("Knight's tour"), mMenu);
|
|
|
|
|
|
|
|
|
|
mGame = new TDEPopupMenu(this);
|
|
|
|
|
mGame->setCheckable(TRUE);
|
|
|
|
|
mGame->setCheckable(true);
|
|
|
|
|
idTip = mGame->insertItem(i18n("&Highlight tips"),
|
|
|
|
|
this, TQ_SLOT(toggleTips()));
|
|
|
|
|
idKnight = mGame->insertItem(i18n("&Show the knight"),
|
|
|
|
@ -85,15 +85,15 @@ MainWindow::loadSettings()
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val = settings->readBoolEntry("/KnightTour/Tip", TRUE);
|
|
|
|
|
val = settings->readBoolEntry("/KnightTour/Tip", true);
|
|
|
|
|
mGame->setItemChecked(idTip, !val);
|
|
|
|
|
toggleTips();
|
|
|
|
|
|
|
|
|
|
val = settings->readBoolEntry("/KnightTour/Visibility", TRUE);
|
|
|
|
|
val = settings->readBoolEntry("/KnightTour/Visibility", true);
|
|
|
|
|
mGame->setItemChecked(idKnight, !val);
|
|
|
|
|
toggleKnight();
|
|
|
|
|
|
|
|
|
|
val = settings->readBoolEntry("/KnightTour/RandomCell", TRUE);
|
|
|
|
|
val = settings->readBoolEntry("/KnightTour/RandomCell", true);
|
|
|
|
|
mGame->setItemChecked(idCell, !val);
|
|
|
|
|
randomCell();
|
|
|
|
|
}
|
|
|
|
@ -129,7 +129,7 @@ MainWindow::newGame()
|
|
|
|
|
TQCheckBox *rnd;
|
|
|
|
|
TQButton *ok, *cancel;
|
|
|
|
|
|
|
|
|
|
dlg = new TQDialog(this, nullptr, TRUE);
|
|
|
|
|
dlg = new TQDialog(this, nullptr, true);
|
|
|
|
|
dlg->setCaption(i18n("Board size"));
|
|
|
|
|
|
|
|
|
|
vbox = new TQVBoxLayout(dlg);
|
|
|
|
|