add timout warning in ranking game dialog

This commit is contained in:
doitux
2010-09-05 13:13:42 +00:00
parent 76dd9a0289
commit af101c4fce
8 changed files with 24 additions and 6 deletions
+11 -1
View File
@@ -508,7 +508,7 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
connect(this, SIGNAL(signalEndVoteOnKick()), this, SLOT(endVoteOnKick()));
connect(this, SIGNAL(signalNetClientPlayerLeft(unsigned)), this, SLOT(netClientPlayerLeft(unsigned)));
connect(this, SIGNAL(signalWarningAutoFoldInRankingGame(unsigned)), this, SLOT(showWarningAutoFoldInRankingGame(unsigned)));
}
gameTableImpl::~gameTableImpl() {
@@ -3387,3 +3387,13 @@ void gameTableImpl::sendShowMyCardsSignal()
pushButton_showMyCards->hide();
}
}
void gameTableImpl::showWarningAutoFoldInRankingGame(unsigned remainingAutoFolds)
{
QMessageBox::warning(this, tr("PokerTH - Warning"),
tr("You have triggered a warning level of timeouts in a ranking game.\n"
"After %1 additional timeouts the server needs to kick you to provide a better game flow!\n\n"
"If you are temporarily away, you can use the \"away\" tools in the tool box on the right."),
QMessageBox::Ok);
tabWidget_Right->setCurrentIndex(1);
}
+3 -3
View File
@@ -119,14 +119,12 @@ signals:
void signalPostRiverShowCards(unsigned playerId);
void signalFlipHolecardsAllIn();
void signalNextRoundCleanGui();
void signalStartVoteOnKick(unsigned playerId, unsigned voteStarterPlayerId, int timeoutSec, int numVotesNeededToKick);
void signalChangeVoteOnKickButtonsState(bool showHide);
void signalEndVoteOnKick();
void signalNetClientPlayerLeft(unsigned playerId);
void signalWarningAutoFoldInRankingGame(unsigned remainingAutoFolds);
public slots:
@@ -309,6 +307,8 @@ public slots:
void showShowMyCardsButton();
void sendShowMyCardsSignal();
void showWarningAutoFoldInRankingGame(unsigned);
private:
boost::shared_ptr<GuiInterface> myServerGuiInterface;