This commit is contained in:
doitux
2007-01-22 22:25:58 +00:00
parent ff0881df3e
commit e67c72e010
11 changed files with 65 additions and 73 deletions
+7 -8
View File
@@ -66,7 +66,7 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent, const char *name)
int i;
//Toolbox verstecken?
// if (!myConfig->readConfigInt("ShowToolBox", 1)) { groupBox_tools->hide(); }
if (!myConfig->readConfigInt("ShowToolBox", 1)) { groupBox_tools->hide(); }
pushButton_raise->setDisabled(TRUE);
@@ -196,7 +196,7 @@ void mainWindowImpl::callNewGameDialog() {
//wenn Dialogfenster gezeigt werden soll
// if(myConfig->readConfigInt("ShowGameSettingsDialogOnNewGame", 1)){
if(myConfig->readConfigInt("ShowGameSettingsDialogOnNewGame", 1)){
newGameDialogImpl *v = new newGameDialogImpl();
v->exec();
@@ -254,7 +254,7 @@ void mainWindowImpl::callNewGameDialog() {
label_Pot->setText("<p align='center'><span style='font-size:x-large; font-weight:bold'>Pot Total</span></p>");
label_Sets->setText("<p align='center'><span style='font-size:medium; font-weight:bold'>Sets:</span></p>");
guiGameSpeed = 4/*myConfig->readConfigInt("GameSpeed",4)*/;
guiGameSpeed = myConfig->readConfigInt("GameSpeed",4);
// debugMode = v->checkBox_debugMode->isChecked();
//Tools und Board aufhellen und enablen
@@ -271,11 +271,10 @@ void mainWindowImpl::callNewGameDialog() {
//Start Game!!!
// mySession->startGame(myConfig->readConfigInt("NumberOfPlayers",5), myConfig->readConfigInt("StartCash",2000), myConfig->readConfigInt("SmallBlind",10));
mySession->startGame(5, 2000, 10);
mySession->startGame(myConfig->readConfigInt("NumberOfPlayers",5), myConfig->readConfigInt("StartCash",2000), myConfig->readConfigInt("SmallBlind",10));
// }
}
}
@@ -293,8 +292,8 @@ void mainWindowImpl::callSettingsDialog() {
if (v->result()) {
//Toolbox verstecken?
// if (!myConfig->readConfigInt("ShowToolBox", 1)) { groupBox_tools->hide(); }
// else { groupBox_tools->show(); }
if (!myConfig->readConfigInt("ShowToolBox", 1)) { groupBox_tools->hide(); }
else { groupBox_tools->show(); }
}
}