diff --git a/src/config/configfile.cpp b/src/config/configfile.cpp index ddf871dd..a7a9d19d 100644 --- a/src/config/configfile.cpp +++ b/src/config/configfile.cpp @@ -39,7 +39,7 @@ ConfigFile::ConfigFile(int argc, char **argv) : noWriteAccess(0) if(strcmp(argv[i], "--nowriteaccess") == 0) { noWriteAccess = 1; } } // !!!! Revisionsnummer der Configdefaults !!!!! - configRev = 20; + configRev = 21; //standard defaults logOnOffDefault = "1"; @@ -131,6 +131,7 @@ ConfigFile::ConfigFile(int argc, char **argv) : noWriteAccess(0) configList.push_back(ConfigInfo("ShowIntro", CONFIG_TYPE_INT, "1")); configList.push_back(ConfigInfo("ShowFadeOutCardsAnimation", CONFIG_TYPE_INT, "1")); configList.push_back(ConfigInfo("ShowFlipCardsAnimation", CONFIG_TYPE_INT, "1")); + configList.push_back(ConfigInfo("ShowBlindButtons", CONFIG_TYPE_INT, "1")); configList.push_back(ConfigInfo("FlipsideTux", CONFIG_TYPE_INT, "1")); configList.push_back(ConfigInfo("FlipsideOwn", CONFIG_TYPE_INT, "0")); configList.push_back(ConfigInfo("FlipsideOwnFile", CONFIG_TYPE_STRING, "")); diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index a69c411b..3e5569e3 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -759,6 +759,10 @@ void mainWindowImpl::callSettingsDialog() { } else { flipside->load(":/cards/resources/graphics/cards/flipside.png"); } + if(mySession->getCurrentGame()) { + //blind buttons refresh + refreshButton(); + } int i,j; for (i=1; igetPlayerArray()[i]->getMyActiveStatus()) { if(activePlayersCounter > 2) { - if (currentHand->getPlayerArray()[i]->getMyButton()==1) { - buttonLabelArray[i]->setPixmap(dealerButton); - } - else { - buttonLabelArray[i]->setPixmap(onePix); + switch (currentHand->getPlayerArray()[i]->getMyButton()) { + + case 1 : buttonLabelArray[i]->setPixmap(dealerButton); + break; + case 2 : { + if ( myConfig->readConfigInt("ShowBlindButtons")) buttonLabelArray[i]->setPixmap(smallblindButton); + else { buttonLabelArray[i]->setPixmap(onePix); } + } + break; + case 3 : { + if (myConfig->readConfigInt("ShowBlindButtons")) buttonLabelArray[i]->setPixmap(bigblindButton); + else { buttonLabelArray[i]->setPixmap(onePix); } + } + break; + default: buttonLabelArray[i]->setPixmap(onePix); + } } else { diff --git a/src/gui/qt/resources.qrc b/src/gui/qt/resources.qrc index 9bf4833f..77eea62d 100755 --- a/src/gui/qt/resources.qrc +++ b/src/gui/qt/resources.qrc @@ -86,6 +86,8 @@ resources/graphics/toolboxFrameBG.png resources/graphics/logoChip3D.png resources/graphics/windowicon.png + resources/graphics/smallblindPuck.png + resources/graphics/bigblindPuck.png resources/guiv2/cardholder_03.png diff --git a/src/gui/qt/resources/graphics/bigblindPuck.png b/src/gui/qt/resources/graphics/bigblindPuck.png new file mode 100644 index 00000000..83390ff9 Binary files /dev/null and b/src/gui/qt/resources/graphics/bigblindPuck.png differ diff --git a/src/gui/qt/resources/graphics/smallblindPuck.png b/src/gui/qt/resources/graphics/smallblindPuck.png new file mode 100644 index 00000000..cf4e3a0a Binary files /dev/null and b/src/gui/qt/resources/graphics/smallblindPuck.png differ diff --git a/src/gui/qt/settingsdialog.ui b/src/gui/qt/settingsdialog.ui index 148ed5ca..ca312fb3 100644 --- a/src/gui/qt/settingsdialog.ui +++ b/src/gui/qt/settingsdialog.ui @@ -32,40 +32,7 @@ 6 - - - - - 75 - true - - - - Interface - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - Show flip-card animation - - - - Flipside of Cards @@ -159,34 +126,6 @@ p, li { white-space: pre-wrap; } - - - - Show fade-out animation for non-winning cards - - - - - - - Show intro on startup - - - - - - - Qt::Horizontal - - - - - - - Show right toolbox (F11 to switch on/off) - - - @@ -201,6 +140,74 @@ p, li { white-space: pre-wrap; } + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Show fade-out animation for non-winning cards + + + + + + + Qt::Horizontal + + + + + + + + 75 + true + + + + Interface + + + + + + + Show flip-card animation + + + + + + + Show intro on startup + + + + + + + Show right toolbox (F11 to switch on/off) + + + + + + + Show buttons for small blind and big blind + + + diff --git a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp index 556eb98d..fbb43635 100644 --- a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp +++ b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp @@ -104,6 +104,7 @@ void settingsDialogImpl::exec() { checkBox_showIntro->setChecked(myConfig->readConfigInt("ShowIntro")); checkBox_showFadeOutCardsAnimation->setChecked(myConfig->readConfigInt("ShowFadeOutCardsAnimation")); checkBox_showFlipCardsAnimation->setChecked(myConfig->readConfigInt("ShowFlipCardsAnimation")); + checkBox_showBlindButtons->setChecked(myConfig->readConfigInt("ShowBlindButtons")); radioButton_flipsideTux->setChecked(myConfig->readConfigInt("FlipsideTux")); radioButton_flipsideOwn->setChecked(myConfig->readConfigInt("FlipsideOwn")); if(radioButton_flipsideOwn->isChecked()) { @@ -232,6 +233,7 @@ void settingsDialogImpl::isAccepted() { myConfig->writeConfigInt("ShowIntro", checkBox_showIntro->isChecked()); myConfig->writeConfigInt("ShowFadeOutCardsAnimation", checkBox_showFadeOutCardsAnimation->isChecked()); myConfig->writeConfigInt("ShowFlipCardsAnimation", checkBox_showFlipCardsAnimation->isChecked()); + myConfig->writeConfigInt("ShowBlindButtons", checkBox_showBlindButtons->isChecked()); myConfig->writeConfigInt("FlipsideTux", radioButton_flipsideTux->isChecked()); myConfig->writeConfigInt("FlipsideOwn", radioButton_flipsideOwn->isChecked());