From e5e09c1dd8e2c8dd945c143ad07bc428432bb941 Mon Sep 17 00:00:00 2001 From: doitux Date: Sat, 17 Nov 2007 00:23:47 +0000 Subject: [PATCH] --- data/data-copyright.txt | 8 ++++++-- src/gui/qt/mainwindow/mainwindowimpl.cpp | 21 ++++++++++++++++++--- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/data/data-copyright.txt b/data/data-copyright.txt index 4d797698..78ab6cc2 100644 --- a/data/data-copyright.txt +++ b/data/data-copyright.txt @@ -1,6 +1,10 @@ // Copyright information for files in data/* shipped with PokerTH // fonts: - - 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/ + - 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/ +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 \ No newline at end of file diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index 9d8a54f3..38f42d40 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -1891,9 +1891,9 @@ void mainWindowImpl::provideMyActions(int mode) { default: {} } + //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()) || (pushButtonBetRaiseString != lastPushButtonBetRaiseString && pushButton_BetRaise->isChecked()) ) { + if((pushButtonCallCheckString != lastPushButtonCallCheckString && pushButton_CallCheck->isChecked())) { // cout << "jo" << endl; uncheckMyButtons(); @@ -1932,6 +1932,20 @@ void mainWindowImpl::provideMyActions(int mode) { pushButton_AllIn->setText("All-In"); 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 { minimum = -1; } - + cout << betValue << endl; + if(betValue < minimum) { return minimum; }