From 5bf83898d2fa1b22d027d376ee43ae84c21577b9 Mon Sep 17 00:00:00 2001 From: doitux Date: Thu, 4 Dec 2008 14:15:41 +0000 Subject: [PATCH] --- src/gui/qt/gametable.ui | 11 ++++++++++- src/gui/qt/gametable/gametableimpl.cpp | 17 ++++++++++++++++- src/gui/qt/gametable/gametableimpl.h | 1 + 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/gui/qt/gametable.ui b/src/gui/qt/gametable.ui index 24d7b2f0..ac657c03 100644 --- a/src/gui/qt/gametable.ui +++ b/src/gui/qt/gametable.ui @@ -2976,7 +2976,7 @@ 0 0 1000 - 28 + 22 @@ -2988,6 +2988,7 @@ + @@ -3109,6 +3110,14 @@ Ctrl+X + + + Show/Hide Chance Window + + + Ctrl+C + + diff --git a/src/gui/qt/gametable/gametableimpl.cpp b/src/gui/qt/gametable/gametableimpl.cpp index 89280d19..b4f8cc7a 100755 --- a/src/gui/qt/gametable/gametableimpl.cpp +++ b/src/gui/qt/gametable/gametableimpl.cpp @@ -527,7 +527,7 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent) connect( actionShowHideHelp, SIGNAL( triggered() ), this, SLOT( switchHelpWindow() ) ); connect( actionShowHideLog, SIGNAL( triggered() ), this, SLOT( switchLogWindow() ) ); connect( actionShowHideAway, SIGNAL( triggered() ), this, SLOT( switchAwayWindow() ) ); - + connect( actionShowHideChance, SIGNAL( triggered() ), this, SLOT( switchChanceWindow() ) ); connect( pushButton_BetRaise, SIGNAL( clicked(bool) ), this, SLOT( pushButtonBetRaiseClicked(bool) ) ); connect( pushButton_Fold, SIGNAL( clicked(bool) ), this, SLOT( pushButtonFoldClicked(bool) ) ); @@ -2783,6 +2783,21 @@ void gameTableImpl::switchAwayWindow() { } } +void gameTableImpl::switchChanceWindow() { + + int tab = 2; + if (groupBox_RightToolBox->isHidden()) { + tabWidget_Right->setCurrentIndex(tab); + groupBox_RightToolBox->show(); + } else { + if (tabWidget_Right->currentIndex() == tab) { + groupBox_RightToolBox->hide(); + } else { + tabWidget_Right->setCurrentIndex(tab); + } + } +} + void gameTableImpl::switchFullscreen() { if (this->isFullScreen()) { diff --git a/src/gui/qt/gametable/gametableimpl.h b/src/gui/qt/gametable/gametableimpl.h index c9e7ba5c..f2fc9e78 100755 --- a/src/gui/qt/gametable/gametableimpl.h +++ b/src/gui/qt/gametable/gametableimpl.h @@ -256,6 +256,7 @@ public slots: void switchHelpWindow(); void switchLogWindow(); void switchAwayWindow(); + void switchChanceWindow(); void switchFullscreen(); void sendChatMessage();