This commit is contained in:
doitux
2007-11-17 00:23:47 +00:00
parent 22051d38ed
commit e5e09c1dd8
2 changed files with 24 additions and 5 deletions
+6 -2
View File
@@ -1,6 +1,10 @@
// Copyright information for files in data/* shipped with PokerTH // // Copyright information for files in data/* shipped with PokerTH //
fonts: fonts:
- c059013l.pfb, n019003l.pfb --> http://sourceforge.net/project/showfiles.php?group_id=3498 - c059013l.pfb, n019003l.pfb --> http://sourceforge.net/project/showfiles.php?group_id=3498
- VeraBd.ttf --> http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/ - VeraBd.ttf --> http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/
sounds/default:
- yourturn.wav --> http://websvn.kde.org/trunk/KDE/kdebase/runtime/knotify/sounds/KDE_Beep_Connect.ogg
- lobbychatnotify.wav --> http://websvn.kde.org/trunk/KDE/kdebase/runtime/knotify/sounds/KDE_Beep.ogg
+18 -3
View File
@@ -1891,9 +1891,9 @@ void mainWindowImpl::provideMyActions(int mode) {
default: {} default: {}
} }
//if text changed on checked button --> uncheck to prevent unwanted actions //if text changed on checked button --> uncheck to prevent unwanted actions
//if value changed on bet/raise button --> uncheck to prevent unwanted actions if((pushButtonCallCheckString != lastPushButtonCallCheckString && pushButton_CallCheck->isChecked())) {
if((pushButtonCallCheckString != lastPushButtonCallCheckString && pushButton_CallCheck->isChecked()) || (pushButtonBetRaiseString != lastPushButtonBetRaiseString && pushButton_BetRaise->isChecked()) ) {
// cout << "jo" << endl; // cout << "jo" << endl;
uncheckMyButtons(); uncheckMyButtons();
@@ -1932,6 +1932,20 @@ void mainWindowImpl::provideMyActions(int mode) {
pushButton_AllIn->setText("All-In"); pushButton_AllIn->setText("All-In");
myBetRaise(); myBetRaise();
//if value changed on bet/raise button --> uncheck to prevent unwanted actions
QString lastBetValueString = lastPushButtonBetRaiseString.section(" ",1 ,1);
int index = lastBetValueString.indexOf("$");
lastBetValueString.remove(index,index);
bool ok;
int lastBetValue = lastBetValueString.toInt(&ok,10);
if(lastBetValue < horizontalSlider_bet->minimum() && pushButton_BetRaise->isChecked()) {
uncheckMyButtons();
resetMyButtonsCheckStateMemory();
}
} }
} }
@@ -2129,7 +2143,8 @@ int mainWindowImpl::getMyBetAmount(int mode) {
else { else {
minimum = -1; minimum = -1;
} }
cout << betValue << endl;
if(betValue < minimum) { if(betValue < minimum) {
return minimum; return minimum;
} }