start implementing ingame votekick gui signals
This commit is contained in:
@@ -1832,14 +1832,14 @@ from this game?</string>
|
||||
<item row="3" column="0" colspan="2" >
|
||||
<layout class="QHBoxLayout" name="horizontalLayout" >
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton" >
|
||||
<widget class="QPushButton" name="pushButton_voteOnKickYes" >
|
||||
<property name="text" >
|
||||
<string>Yes</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_2" >
|
||||
<widget class="QPushButton" name="pushButton_voteOnKickNo" >
|
||||
<property name="text" >
|
||||
<string>No</string>
|
||||
</property>
|
||||
@@ -2947,7 +2947,7 @@ from this game?</string>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1000</width>
|
||||
<height>28</height>
|
||||
<height>30</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuView" >
|
||||
|
||||
@@ -537,6 +537,9 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
|
||||
connect( radioButton_autoCheckFold, SIGNAL( clicked() ) , this, SLOT( changePlayingMode() ) );
|
||||
connect( radioButton_autoCheckCallAny, SIGNAL( clicked() ), this, SLOT( changePlayingMode() ) );
|
||||
|
||||
connect( pushButton_voteOnKickYes, SIGNAL( clicked() ), this, SLOT( voteOnKickYes() ) );
|
||||
connect( pushButton_voteOnKickNo, SIGNAL( clicked() ), this, SLOT( voteOnKickNo() ) );
|
||||
|
||||
//Nachrichten Thread-Save
|
||||
connect(this, SIGNAL(signalInitGui(int)), this, SLOT(initGui(int)));
|
||||
connect(this, SIGNAL(signalRefreshSet()), this, SLOT(refreshSet()));
|
||||
@@ -575,6 +578,8 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
|
||||
connect(this, SIGNAL(signalPostRiverRunAnimation1()), this, SLOT(postRiverRunAnimation1()));
|
||||
connect(this, SIGNAL(signalFlipHolecardsAllIn()), this, SLOT(flipHolecardsAllIn()));
|
||||
connect(this, SIGNAL(signalNextRoundCleanGui()), this, SLOT(nextRoundCleanGui()));
|
||||
connect(this, SIGNAL(signalStartVoteOnKick()), this, SLOT(startVoteOnKick()));
|
||||
connect(this, SIGNAL(signalEndVoteOnKick()), this, SLOT(endVoteOnKick()));
|
||||
|
||||
}
|
||||
|
||||
@@ -3054,3 +3059,27 @@ void gameTableImpl::triggerVoteOnKick(int id) {
|
||||
// myStartWindow->getSession()->sendVoteKickSignal(id);
|
||||
}
|
||||
|
||||
void gameTableImpl::startVoteOnKick()
|
||||
{
|
||||
if(tabWidget_Left->widget(2) != tab_Kick)
|
||||
tabWidget_Left->insertTab(2, tab_Chat, QString(tr("Kick")));
|
||||
|
||||
tabWidget_Left->setCurrentIndex(2);
|
||||
}
|
||||
|
||||
void gameTableImpl::endVoteOnKick()
|
||||
{
|
||||
if(tabWidget_Left->widget(2) == tab_Kick)
|
||||
tabWidget_Left->removeTab(2);
|
||||
|
||||
tabWidget_Left->setCurrentIndex(1);
|
||||
}
|
||||
|
||||
void gameTableImpl::voteOnKickYes()
|
||||
{
|
||||
}
|
||||
|
||||
void gameTableImpl::voteOnKickNo()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -118,6 +118,9 @@ signals:
|
||||
void signalFlipHolecardsAllIn();
|
||||
|
||||
void signalNextRoundCleanGui();
|
||||
|
||||
void signalStartVoteOnKick();
|
||||
void signalEndVoteOnKick();
|
||||
|
||||
public slots:
|
||||
|
||||
@@ -276,6 +279,10 @@ public slots:
|
||||
void showMaximized ();
|
||||
void closeGameTable();
|
||||
|
||||
void startVoteOnKick();
|
||||
void endVoteOnKick();
|
||||
void voteOnKickYes();
|
||||
void voteOnKickNo();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -105,6 +105,9 @@ void GuiWrapper::disableMyButtons() { myW->signalDisableMyButtons(); }
|
||||
void GuiWrapper::startTimeoutAnimation(int playerId, int timeoutSec) { myW->signalStartTimeoutAnimation(playerId, timeoutSec); }
|
||||
void GuiWrapper::stopTimeoutAnimation(int playerId) { myW->signalStopTimeoutAnimation(playerId); }
|
||||
|
||||
void GuiWrapper::startVoteOnKick() { myW->signalStartVoteOnKick(); }
|
||||
void GuiWrapper::endVoteOnKick() { myW->signalEndVoteOnKick(); }
|
||||
|
||||
void GuiWrapper::logPlayerActionMsg(string playerName, int action, int setValue) { myLog->signalLogPlayerActionMsg(QString::fromUtf8(playerName.c_str()), action, setValue); }
|
||||
void GuiWrapper::logNewGameHandMsg(int gameID, int handID) { myLog->signalLogNewGameHandMsg(gameID, handID); }
|
||||
void GuiWrapper::logNewBlindsSetsMsg(int sbSet, int bbSet, std::string sbName, std::string bbName) { myLog->signalLogNewBlindsSetsMsg(sbSet, bbSet, QString::fromUtf8(sbName.c_str()), QString::fromUtf8(bbName.c_str())); }
|
||||
|
||||
@@ -96,6 +96,9 @@ public:
|
||||
void startTimeoutAnimation(int playerId, int timeoutSec);
|
||||
void stopTimeoutAnimation(int playerId);
|
||||
|
||||
void startVoteOnKick();
|
||||
void endVoteOnKick();
|
||||
|
||||
void logPlayerActionMsg(std::string playerName, int action, int setValue) ;
|
||||
void logNewGameHandMsg(int gameID, int handID) ;
|
||||
void logNewBlindsSetsMsg(int sbSet, int bbSet, std::string sbName, std::string bbName);
|
||||
|
||||
Reference in New Issue
Block a user