|
|
@ -120,7 +120,7 @@ KBg::KBg()
|
|
|
|
rollAction->setEnabled(false);
|
|
|
|
rollAction->setEnabled(false);
|
|
|
|
endAction = KStdGameAction::endTurn(this, TQ_SLOT(done()), actionCollection());
|
|
|
|
endAction = KStdGameAction::endTurn(this, TQ_SLOT(done()), actionCollection());
|
|
|
|
endAction->setEnabled(false);
|
|
|
|
endAction->setEnabled(false);
|
|
|
|
cubeAction = new TDEAction(i18n("Double Cube"), TQIconSet(kapp->iconLoader()->loadIcon
|
|
|
|
cubeAction = new TDEAction(i18n("Double Cube"), TQIconSet(tdeApp->iconLoader()->loadIcon
|
|
|
|
(PROG_NAME "-double.xpm", TDEIcon::Toolbar)),
|
|
|
|
(PROG_NAME "-double.xpm", TDEIcon::Toolbar)),
|
|
|
|
0, this, TQ_SLOT(cube()), actionCollection(), "move_cube");
|
|
|
|
0, this, TQ_SLOT(cube()), actionCollection(), "move_cube");
|
|
|
|
cubeAction->setEnabled(false);
|
|
|
|
cubeAction->setEnabled(false);
|
|
|
@ -267,7 +267,7 @@ void KBg::setupEngine()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
statusBar()->message(engineString[currEngine]);
|
|
|
|
statusBar()->message(engineString[currEngine]);
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
config->setGroup("global settings");
|
|
|
|
config->setGroup("global settings");
|
|
|
|
if (config->readBoolEntry("enable timeout", true))
|
|
|
|
if (config->readBoolEntry("enable timeout", true))
|
|
|
|
engine[currEngine]->setCommit(config->readDoubleNumEntry("timeout", 2.5));
|
|
|
|
engine[currEngine]->setCommit(config->readDoubleNumEntry("timeout", 2.5));
|
|
|
@ -307,7 +307,7 @@ void KBg::setupEngine()
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void KBg::saveConfig()
|
|
|
|
void KBg::saveConfig()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
config->setGroup("global settings");
|
|
|
|
config->setGroup("global settings");
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -351,7 +351,7 @@ void KBg::saveConfig()
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void KBg::readConfig()
|
|
|
|
void KBg::readConfig()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
config->setGroup("global settings");
|
|
|
|
config->setGroup("global settings");
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -363,7 +363,7 @@ void KBg::readConfig()
|
|
|
|
config->setGroup("main window");
|
|
|
|
config->setGroup("main window");
|
|
|
|
|
|
|
|
|
|
|
|
TQPoint pos, defpos(10, 10);
|
|
|
|
TQPoint pos, defpos(10, 10);
|
|
|
|
TQFont kappFont = kapp->font();
|
|
|
|
TQFont kappFont = tdeApp->font();
|
|
|
|
|
|
|
|
|
|
|
|
pos = config->readPointEntry("origin", &defpos);
|
|
|
|
pos = config->readPointEntry("origin", &defpos);
|
|
|
|
|
|
|
|
|
|
|
@ -406,7 +406,7 @@ void KBg::readConfig()
|
|
|
|
void KBg::setupOk()
|
|
|
|
void KBg::setupOk()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// global settings
|
|
|
|
// global settings
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
config->setGroup("global settings");
|
|
|
|
config->setGroup("global settings");
|
|
|
|
|
|
|
|
|
|
|
|
config->writeEntry("enable timeout", cbt->isChecked());
|
|
|
|
config->writeEntry("enable timeout", cbt->isChecked());
|
|
|
@ -499,15 +499,15 @@ void KBg::setupDlg()
|
|
|
|
KDialogBase::Apply|KDialogBase::Help,
|
|
|
|
KDialogBase::Apply|KDialogBase::Help,
|
|
|
|
KDialogBase::Ok, this, "setup", true, true);
|
|
|
|
KDialogBase::Ok, this, "setup", true, true);
|
|
|
|
|
|
|
|
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
config->setGroup("global settings");
|
|
|
|
config->setGroup("global settings");
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Main Widget
|
|
|
|
* Main Widget
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
TQVBox *w = nb->addVBoxPage(i18n("General"), i18n("Here you can configure general settings of %1").
|
|
|
|
TQVBox *w = nb->addVBoxPage(i18n("General"), i18n("Here you can configure general settings of %1").
|
|
|
|
arg(kapp->aboutData()->programName()),
|
|
|
|
arg(tdeApp->aboutData()->programName()),
|
|
|
|
kapp->iconLoader()->loadIcon("go", TDEIcon::Desktop));
|
|
|
|
tdeApp->iconLoader()->loadIcon("go", TDEIcon::Desktop));
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Group boxes
|
|
|
|
* Group boxes
|
|
|
@ -569,7 +569,7 @@ void KBg::setupDlg()
|
|
|
|
TQWhatsThis::add(gbe, i18n("Event notification of %1 is configured as part of the "
|
|
|
|
TQWhatsThis::add(gbe, i18n("Event notification of %1 is configured as part of the "
|
|
|
|
"system-wide notification process. Click here, and you "
|
|
|
|
"system-wide notification process. Click here, and you "
|
|
|
|
"will be able to configure system sounds, etc.").
|
|
|
|
"will be able to configure system sounds, etc.").
|
|
|
|
arg(kapp->aboutData()->programName()));
|
|
|
|
arg(tdeApp->aboutData()->programName()));
|
|
|
|
|
|
|
|
|
|
|
|
TQGridLayout *gle = new TQGridLayout(gbe, 1, 1, nb->spacingHint());
|
|
|
|
TQGridLayout *gle = new TQGridLayout(gbe, 1, 1, nb->spacingHint());
|
|
|
|
KURLLabel *lab = new KURLLabel("tdecmshell kcmnotify",
|
|
|
|
KURLLabel *lab = new KURLLabel("tdecmshell kcmnotify",
|
|
|
@ -636,7 +636,7 @@ void KBg::print()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KPrinter *prt = new KPrinter();
|
|
|
|
KPrinter *prt = new KPrinter();
|
|
|
|
|
|
|
|
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
config->setGroup("printing");
|
|
|
|
config->setGroup("printing");
|
|
|
|
|
|
|
|
|
|
|
|
prt->setNumCopies(config->readNumEntry("numcopies", 1));
|
|
|
|
prt->setNumCopies(config->readNumEntry("numcopies", 1));
|
|
|
@ -707,7 +707,7 @@ void KBg::wwwRule() {showWWW(RuleHome);}
|
|
|
|
|
|
|
|
|
|
|
|
void KBg::showWWW(int t)
|
|
|
|
void KBg::showWWW(int t)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
kapp->invokeBrowser(helpTopic[t][1]);
|
|
|
|
tdeApp->invokeBrowser(helpTopic[t][1]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|