add timout warning in ranking game dialog
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user