spinbox change resets raise-bet preaction

This commit is contained in:
doitux
2007-11-15 23:20:45 +00:00
parent 5b9e666df2
commit 991c4367e2
2 changed files with 13 additions and 1 deletions
+11 -1
View File
@@ -62,7 +62,7 @@
using namespace std;
mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
: QMainWindow(parent), myChat(NULL), myConfig(c), gameSpeed(0), myActionIsBet(0), myActionIsRaise(0), pushButtonBetRaiseIsChecked(FALSE), pushButtonCallCheckIsChecked(FALSE), pushButtonFoldIsChecked(FALSE), pushButtonAllInIsChecked(FALSE), myButtonsAreCheckable(FALSE), breakAfterCurrentHand(FALSE), currentGameOver(FALSE)
: QMainWindow(parent), myChat(NULL), myConfig(c), gameSpeed(0), myActionIsBet(0), myActionIsRaise(0), pushButtonBetRaiseIsChecked(FALSE), pushButtonCallCheckIsChecked(FALSE), pushButtonFoldIsChecked(FALSE), pushButtonAllInIsChecked(FALSE), myButtonsAreCheckable(FALSE), breakAfterCurrentHand(FALSE), currentGameOver(FALSE), myLastPreActionBetValue(0)
{
int i;
@@ -525,6 +525,7 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
// connect( pushButton_backToLobby , SIGNAL( clicked(bool) ), this, SLOT(leaveCurrentNetworkGame() ) );
connect( horizontalSlider_bet, SIGNAL( valueChanged(int)), this, SLOT ( changeSpinBoxBetValue(int) ) );
connect( spinBox_set, SIGNAL( valueChanged(int)), this, SLOT ( spinBoxBetValueChanged(int) ) );
connect( horizontalSlider_speed, SIGNAL( valueChanged(int)), this, SLOT ( setGameSpeed(int) ) );
connect( pushButton_break, SIGNAL( clicked()), this, SLOT ( breakButtonClicked() ) ); // auch wieder starten!!!!
@@ -1929,6 +1930,10 @@ void mainWindowImpl::provideMyActions(int mode) {
pushButton_AllIn->setText("All-In");
myBetRaise();
//bet-raise pre-action
}
}
@@ -3722,6 +3727,11 @@ void mainWindowImpl::changeSpinBoxBetValue(int value) {
spinBox_set->setValue((int)((value/50)*50));
}
void mainWindowImpl::spinBoxBetValueChanged(int) {
if(pushButton_BetRaise->isChecked() && pushButton_BetRaise->isCheckable()) pushButton_BetRaise->click();
}
void mainWindowImpl::leaveCurrentNetworkGame() {
if (mySession->isNetworkClientRunning()) {
+2
View File
@@ -326,6 +326,7 @@ public slots:
void changePlayingMode();
void changeSpinBoxBetValue(int);
void spinBoxBetValueChanged(int);
void showMaximized ();
void quitPokerTH();
@@ -458,6 +459,7 @@ private:
QSemaphore guiUpdateSemaphore;
int keyUpDownChatCounter;
int myLastPreActionBetValue;
friend class GuiWrapper;