next steps implementing cardschance

This commit is contained in:
doitux
2008-10-14 20:45:51 +00:00
parent 01048bd7e9
commit 1451398331
41 changed files with 11744 additions and 5224 deletions
+16 -5
View File
@@ -102,10 +102,11 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
groupBox_LeftToolBox->hide();
}
//Intro abspielen?
// if (myConfig->readConfigInt("ShowIntro")) {
// // label_logo->hide();
// QTimer::singleShot(100, this, SLOT( paintStartSplash() )); }
//CardsChanceMonitor show/hide
if (!myConfig->readConfigInt("ShowCardsChanceMonitor")) {
tabWidget_Right->removeTab(2);
tabWidget_Right->setCurrentIndex(0);
}
// userWidgetsArray init
userWidgetsArray[0] = pushButton_BetRaise;
@@ -591,7 +592,6 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
connect(this, SIGNAL(signalStartVoteOnKick(int, int)), this, SLOT(startVoteOnKick(int, int)));
connect(this, SIGNAL(signalEndVoteOnKick()), this, SLOT(endVoteOnKick()));
refreshCardsChance();
}
gameTableImpl::~gameTableImpl() {
@@ -612,6 +612,17 @@ void gameTableImpl::applySettings(settingsDialogImpl* mySettingsDialog) {
if (myConfig->readConfigInt("ShowRightToolBox")) { groupBox_RightToolBox->show(); }
else { groupBox_RightToolBox->hide(); }
//cardschancemonitor show/hide
if (!myConfig->readConfigInt("ShowCardsChanceMonitor")) {
tabWidget_Right->removeTab(2);
tabWidget_Right->setCurrentIndex(0);
}
else {
if(tabWidget_Right->widget(2) != tab_Chance)
tabWidget_Right->insertTab(2, tab_Chance, QString(tr("Chance")));
}
//Add avatar (if set)
myStartWindow->getSession()->addOwnAvatar(myConfig->readConfigString("MyAvatar"));