diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index 1803e45c..028e80d1 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -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()) { diff --git a/src/gui/qt/mainwindow/mainwindowimpl.h b/src/gui/qt/mainwindow/mainwindowimpl.h index 095bd572..a7c380f0 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.h +++ b/src/gui/qt/mainwindow/mainwindowimpl.h @@ -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;