mainwindowimpl code cleaning removed 138 lines

This commit is contained in:
doitux
2007-11-19 09:24:31 +00:00
parent f5ab28d0fe
commit 6fd8a399f7
+17 -156
View File
@@ -297,20 +297,12 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
// Schriftart laden und für Dialoge setzen // Schriftart laden und für Dialoge setzen
#ifdef _WIN32 #ifdef _WIN32
font1String = "font-family: \"Arial\";"; font1String = "font-family: \"Arial\";";
// if(this->logicalDpiX() > 105) { tmpFont.setFont("Arial",8); }
// else { QFont tmpFont("Arial",9); }
#else #else
font1String = "font-family: \"Nimbus Sans L\";"; font1String = "font-family: \"Nimbus Sans L\";";
#endif #endif
font2String = "font-family: \"Bitstream Vera Sans\";"; font2String = "font-family: \"Bitstream Vera Sans\";";
//Schriftart und Schriftgrößen für Widgets festlegen
// QScrollBar *myLogScrollBar = textBrowser_Log->verticalScrollBar();
// myLogScrollBar->setStyleSheet("QScrollBar:vertical { border: 2px solid grey; background: #32CC99; height: 15px; margin: 0px 20px 0 20px; } QScrollBar::handle:vertical { background: white; min-width: 20px; } QScrollBar::add-line:vertical { border: 2px solid grey; background: #32CC99; width: 20px; subcontrol-position: right; subcontrol-origin: margin;} QScrollBar::sub-line:vertical { border: 2px solid grey; background: #32CC99; width: 20px; subcontrol-position: left; subcontrol-origin: margin; }");
// textBrowser_Log->setVerticalScrollBar(myLogScrollBar);
// textBrowser_Log->verticalScrollBar()->setAutoFillBackground ( TRUE );
#ifdef _WIN32 #ifdef _WIN32
QString fontsize= "11"; QString fontsize= "11";
#else #else
@@ -375,10 +367,6 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
pushButton_break->setStyleSheet("QPushButton:enabled { background-color: #145300; color: white;} QPushButton:disabled { background-color: #145300; color: #486F3E; font-weight: 900;}"); pushButton_break->setStyleSheet("QPushButton:enabled { background-color: #145300; color: white;} QPushButton:disabled { background-color: #145300; color: #486F3E; font-weight: 900;}");
// pushButton_backToLobby->setStyleSheet("QPushButton { background-color: #145300; color: white;}");
// horizontalSlider_speed->setStyleSheet("QSlider::groove:horizontal { border: 1px solid #286400; height: 3px; background: #689700; } QSlider::handle:horizontal { background: #689700; border: 1px solid #286400; width: 10px; margin: -8px 0; border-radius: 3px; }");
statusbar->setStyleSheet(" QStatusBar { "+ font1String +" font-size: 12px; color: white; }"); statusbar->setStyleSheet(" QStatusBar { "+ font1String +" font-size: 12px; color: white; }");
//Groupbox Background //Groupbox Background
@@ -465,10 +453,6 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
myChat = new Chat(this, myConfig); myChat = new Chat(this, myConfig);
// //ShortCuts
// QShortcut *quitPokerTHKeys = new QShortcut(QKeySequence(Qt::Key_Control + Qt::Key_Q), this);
// connect( quitPokerTHKeys, SIGNAL(activated() ), actionQuit, SLOT( trigger() ) );
lineEdit_ChatInput->installEventFilter(this); lineEdit_ChatInput->installEventFilter(this);
this->installEventFilter(this); this->installEventFilter(this);
@@ -530,8 +514,6 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
connect( pushButton_Fold, SIGNAL( clicked(bool) ), this, SLOT( pushButtonFoldClicked(bool) ) ); connect( pushButton_Fold, SIGNAL( clicked(bool) ), this, SLOT( pushButtonFoldClicked(bool) ) );
connect( pushButton_CallCheck, SIGNAL( clicked(bool) ), this, SLOT( pushButtonCallCheckClicked(bool) ) ); connect( pushButton_CallCheck, SIGNAL( clicked(bool) ), this, SLOT( pushButtonCallCheckClicked(bool) ) );
connect( pushButton_AllIn, SIGNAL( clicked(bool) ), this, SLOT(pushButtonAllInClicked(bool) ) ); connect( pushButton_AllIn, SIGNAL( clicked(bool) ), this, SLOT(pushButtonAllInClicked(bool) ) );
// connect( pushButton_backToLobby , SIGNAL( clicked(bool) ), this, SLOT(leaveCurrentNetworkGame() ) );
connect( horizontalSlider_bet, SIGNAL( valueChanged(int)), this, SLOT ( changeLineEditBetValue(int) ) ); connect( horizontalSlider_bet, SIGNAL( valueChanged(int)), this, SLOT ( changeLineEditBetValue(int) ) );
connect( lineEdit_betValue, SIGNAL( textChanged(QString)), this, SLOT ( lineEditBetValueChanged(QString) ) ); connect( lineEdit_betValue, SIGNAL( textChanged(QString)), this, SLOT ( lineEditBetValueChanged(QString) ) );
@@ -665,7 +647,6 @@ void mainWindowImpl::callNewGameDialog() {
myNewGameDialog->exec(); myNewGameDialog->exec();
if (myNewGameDialog->result() == QDialog::Accepted ) { startNewLocalGame(myNewGameDialog); } if (myNewGameDialog->result() == QDialog::Accepted ) { startNewLocalGame(myNewGameDialog); }
// else { startNewLocalGame(); }
} }
// sonst mit gespeicherten Werten starten // sonst mit gespeicherten Werten starten
else { startNewLocalGame(); } else { startNewLocalGame(); }
@@ -1071,7 +1052,7 @@ void mainWindowImpl::callSettingsDialog() {
void mainWindowImpl::initGui(int speed) void mainWindowImpl::initGui(int speed)
{ {
//restliche Singleshots killen!!! //kill running Singleshots!!!
stopTimer(); stopTimer();
label_Pot->setText("Pot"); label_Pot->setText("Pot");
@@ -1080,10 +1061,6 @@ void mainWindowImpl::initGui(int speed)
label_handNumber->setText("Hand:"); label_handNumber->setText("Hand:");
label_gameNumber->setText("Game:"); label_gameNumber->setText("Game:");
//Tools und Board aufhellen und enablen
// QPalette tempPalette = groupBox_board->palette();
// tempPalette.setColor(QPalette::Window, active);
// groupBox_board->setPalette(tempPalette);
groupBox_RightToolBox->setDisabled(FALSE); groupBox_RightToolBox->setDisabled(FALSE);
groupBox_LeftToolBox->setDisabled(FALSE); groupBox_LeftToolBox->setDisabled(FALSE);
@@ -1240,9 +1217,7 @@ void mainWindowImpl::refreshPlayerName() {
playerNameLabelArray[(*it_c)->getMyID()]->setText(""); playerNameLabelArray[(*it_c)->getMyID()]->setText("");
} }
} }
} }
QStringList mainWindowImpl::getPlayerNicksList() { QStringList mainWindowImpl::getPlayerNicksList() {
@@ -1278,7 +1253,6 @@ void mainWindowImpl::refreshPlayerAvatar() {
playerAvatarLabelArray[(*it_c)->getMyID()]->setPixmap(onePix); playerAvatarLabelArray[(*it_c)->getMyID()]->setPixmap(onePix);
} }
} }
} }
void mainWindowImpl::setPlayerAvatar(int myID, QString myAvatar) { void mainWindowImpl::setPlayerAvatar(int myID, QString myAvatar) {
@@ -1326,7 +1300,6 @@ void mainWindowImpl::refreshAction(int playerID, int playerAction) {
} }
if ((*it_c)->getMyAction()==1) { if ((*it_c)->getMyAction()==1) {
// groupBoxArray[i]->setDisabled(TRUE);
if((*it_c)->getMyID() != 0) { if((*it_c)->getMyID() != 0) {
holeCardsArray[(*it_c)->getMyID()][0]->setPixmap(onePix, FALSE); holeCardsArray[(*it_c)->getMyID()][0]->setPixmap(onePix, FALSE);
@@ -1380,10 +1353,6 @@ void mainWindowImpl::refreshCash() {
cashTopLabelArray[(*it_c)->getMyID()]->setText(""); cashTopLabelArray[(*it_c)->getMyID()]->setText("");
} }
} }
} }
void mainWindowImpl::refreshGroupbox(int playerID, int status) { void mainWindowImpl::refreshGroupbox(int playerID, int status) {
@@ -1551,7 +1520,6 @@ void mainWindowImpl::refreshChangePlayer() {
refreshAction( (*it_c)->getMyID(), (*it_c)->getMyAction()); refreshAction( (*it_c)->getMyID(), (*it_c)->getMyAction());
} }
refreshCash(); refreshCash();
} }
@@ -1669,11 +1637,11 @@ void mainWindowImpl::dealFlopCards4() {
//Config? mit oder ohne Eye-Candy? //Config? mit oder ohne Eye-Candy?
if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { if(myConfig->readConfigInt("ShowFlipCardsAnimation")) {
//mit Eye-Candy //with Eye-Candy
boardCardsArray[0]->startFlipCards(guiGameSpeed, card, *flipside); boardCardsArray[0]->startFlipCards(guiGameSpeed, card, *flipside);
} }
else { else {
//ohne Eye-Candy //without Eye-Candy
boardCardsArray[0]->setPixmap(card, FALSE); boardCardsArray[0]->setPixmap(card, FALSE);
} }
dealFlopCards4Timer->start(dealCardsSpeed); dealFlopCards4Timer->start(dealCardsSpeed);
@@ -1689,11 +1657,11 @@ void mainWindowImpl::dealFlopCards5() {
//Config? mit oder ohne Eye-Candy? //Config? mit oder ohne Eye-Candy?
if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { if(myConfig->readConfigInt("ShowFlipCardsAnimation")) {
//mit Eye-Candy //with Eye-Candy
boardCardsArray[1]->startFlipCards(guiGameSpeed, card, *flipside); boardCardsArray[1]->startFlipCards(guiGameSpeed, card, *flipside);
} }
else { else {
//ohne Eye-Candy //without Eye-Candy
boardCardsArray[1]->setPixmap(card, FALSE); boardCardsArray[1]->setPixmap(card, FALSE);
} }
dealFlopCards5Timer->start(dealCardsSpeed); dealFlopCards5Timer->start(dealCardsSpeed);
@@ -1709,11 +1677,11 @@ void mainWindowImpl::dealFlopCards6() {
//Config? mit oder ohne Eye-Candy? //Config? mit oder ohne Eye-Candy?
if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { if(myConfig->readConfigInt("ShowFlipCardsAnimation")) {
//mit Eye-Candy //with Eye-Candy
boardCardsArray[2]->startFlipCards(guiGameSpeed, card, *flipside); boardCardsArray[2]->startFlipCards(guiGameSpeed, card, *flipside);
} }
else { else {
//ohne Eye-Candy //without Eye-Candy
boardCardsArray[2]->setPixmap(card, FALSE); boardCardsArray[2]->setPixmap(card, FALSE);
} }
@@ -1745,11 +1713,11 @@ void mainWindowImpl::dealTurnCards2() {
//Config? mit oder ohne Eye-Candy? //Config? mit oder ohne Eye-Candy?
if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { if(myConfig->readConfigInt("ShowFlipCardsAnimation")) {
//mit Eye-Candy //with Eye-Candy
boardCardsArray[3]->startFlipCards(guiGameSpeed, card, *flipside); boardCardsArray[3]->startFlipCards(guiGameSpeed, card, *flipside);
} }
else { else {
//ohne Eye-Candy //without Eye-Candy
boardCardsArray[3]->setPixmap(card, FALSE); boardCardsArray[3]->setPixmap(card, FALSE);
} }
@@ -1785,11 +1753,11 @@ void mainWindowImpl::dealRiverCards2() {
//Config? mit oder ohne Eye-Candy? //Config? mit oder ohne Eye-Candy?
if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { if(myConfig->readConfigInt("ShowFlipCardsAnimation")) {
//mit Eye-Candy //with Eye-Candy
boardCardsArray[4]->startFlipCards(guiGameSpeed, card, *flipside); boardCardsArray[4]->startFlipCards(guiGameSpeed, card, *flipside);
} }
else { else {
//ohne Eye-Candy //without Eye-Candy
boardCardsArray[4]->setPixmap(card, FALSE); boardCardsArray[4]->setPixmap(card, FALSE);
} }
@@ -1841,7 +1809,7 @@ void mainWindowImpl::provideMyActions(int mode) {
if(currentHand->getCurrentRound() == 0) { // preflop if(currentHand->getCurrentRound() == 0) { // preflop
if (currentGame->getSeatsList()->front()->getMyCash()+currentGame->getSeatsList()->front()->getMySet() > currentHand->getCurrentBeRo()->getHighestSet()) { if (currentGame->getSeatsList()->front()->getMyCash()+currentGame->getSeatsList()->front()->getMySet() > currentHand->getCurrentBeRo()->getHighestSet()) {
pushButtonBetRaiseString = "Raise "+QString::number(getMyBetAmount(1))+"$"; pushButtonBetRaiseString = "Raise "+QString::number(getMyBetAmount())+"$";
} }
if (currentGame->getSeatsList()->front()->getMySet()== currentHand->getCurrentBeRo()->getHighestSet() && currentGame->getSeatsList()->front()->getMyButton() == 3) { pushButtonCallCheckString = "Check"; } if (currentGame->getSeatsList()->front()->getMySet()== currentHand->getCurrentBeRo()->getHighestSet() && currentGame->getSeatsList()->front()->getMyButton() == 3) { pushButtonCallCheckString = "Check"; }
@@ -1859,19 +1827,19 @@ void mainWindowImpl::provideMyActions(int mode) {
if (currentHand->getCurrentBeRo()->getHighestSet() == 0) { if (currentHand->getCurrentBeRo()->getHighestSet() == 0) {
pushButtonCallCheckString = "Check"; pushButtonCallCheckString = "Check";
pushButtonBetRaiseString = "Bet "+QString::number(getMyBetAmount(0))+"$"; pushButtonBetRaiseString = "Bet "+QString::number(getMyBetAmount())+"$";
} }
if (currentHand->getCurrentBeRo()->getHighestSet() > 0 && currentHand->getCurrentBeRo()->getHighestSet() > currentGame->getSeatsList()->front()->getMySet()) { if (currentHand->getCurrentBeRo()->getHighestSet() > 0 && currentHand->getCurrentBeRo()->getHighestSet() > currentGame->getSeatsList()->front()->getMySet()) {
pushButtonCallCheckString = "Call "+QString::number(getMyCallAmount())+"$" ; pushButtonCallCheckString = "Call "+QString::number(getMyCallAmount())+"$" ;
if (currentGame->getSeatsList()->front()->getMyCash()+currentGame->getSeatsList()->front()->getMySet() > currentHand->getCurrentBeRo()->getHighestSet()) { if (currentGame->getSeatsList()->front()->getMyCash()+currentGame->getSeatsList()->front()->getMySet() > currentHand->getCurrentBeRo()->getHighestSet()) {
pushButtonBetRaiseString = "Raise "+QString::number(getMyBetAmount(1))+"$"; pushButtonBetRaiseString = "Raise "+QString::number(getMyBetAmount())+"$";
} }
} }
} }
if(mode == 0) { if(mode == 0) {
if( currentHand->getSeatsList()->front()->getMyAction() != PLAYER_ACTION_FOLD ) { if( currentHand->getSeatsList()->front()->getMyAction() != PLAYER_ACTION_FOLD ) {
pushButtonBetRaiseString = "Bet "+QString::number(getMyBetAmount(0))+"$"; pushButtonBetRaiseString = "Bet "+QString::number(getMyBetAmount())+"$";
pushButtonCallCheckString = "Check"; pushButtonCallCheckString = "Check";
if( currentGame->getActivePlayerList()->size() > 2 && currentGame->getSeatsList()->front()->getMyButton() == BUTTON_SMALL_BLIND || ( currentGame->getActivePlayerList()->size() <= 2 && currentGame->getSeatsList()->front()->getMyButton() == BUTTON_BIG_BLIND)) { pushButtonFoldString = "Fold"; } if( currentGame->getActivePlayerList()->size() > 2 && currentGame->getSeatsList()->front()->getMyButton() == BUTTON_SMALL_BLIND || ( currentGame->getActivePlayerList()->size() <= 2 && currentGame->getSeatsList()->front()->getMyButton() == BUTTON_BIG_BLIND)) { pushButtonFoldString = "Fold"; }
else { pushButtonFoldString = "Check / Fold"; } else { pushButtonFoldString = "Check / Fold"; }
@@ -1956,10 +1924,6 @@ void mainWindowImpl::provideMyActions(int mode) {
void mainWindowImpl::meInAction() { void mainWindowImpl::meInAction() {
//fix buttons if escape is pressed during raise or bet
// lineEdit_betValue->hide();
// pushButton_BetRaise->show();
myButtonsCheckable(FALSE); myButtonsCheckable(FALSE);
horizontalSlider_bet->setEnabled(TRUE); horizontalSlider_bet->setEnabled(TRUE);
@@ -2035,34 +1999,13 @@ void mainWindowImpl::disableMyButtons() {
HandInterface *currentHand = mySession->getCurrentGame()->getCurrentHand(); HandInterface *currentHand = mySession->getCurrentGame()->getCurrentHand();
//clear userWidgets //clear userWidgets
// lineEdit_betValue->setMinimum(0);
horizontalSlider_bet->setMinimum(0); horizontalSlider_bet->setMinimum(0);
// lineEdit_betValue->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
lineEdit_betValue->clear(); lineEdit_betValue->clear();
horizontalSlider_bet->setValue(0); horizontalSlider_bet->setValue(0);
pushButton_AllIn->setDisabled(TRUE); pushButton_AllIn->setDisabled(TRUE);
horizontalSlider_bet->setDisabled(TRUE); horizontalSlider_bet->setDisabled(TRUE);
lineEdit_betValue->setDisabled(TRUE); lineEdit_betValue->setDisabled(TRUE);
}
void mainWindowImpl::myBetRaise() {
// if(pushButton_BetRaise->text().startsWith("Raise")) {
// myRaise();
// }
// else if(pushButton_BetRaise->text().startsWith("Bet")) {
// myBet();
// }
// else {}
//
// if(mySession->getGameType() == Session::GAME_TYPE_LOCAL) {
// lineEdit_betValue->setFocus();
// lineEdit_betValue->selectAll();
// }
} }
void mainWindowImpl::myCallCheck() { void mainWindowImpl::myCallCheck() {
@@ -2071,7 +2014,6 @@ void mainWindowImpl::myCallCheck() {
if(pushButton_CallCheck->text() == "Check") { myCheck(); } if(pushButton_CallCheck->text() == "Check") { myCheck(); }
} }
void mainWindowImpl::myFold(){ void mainWindowImpl::myFold(){
if(pushButton_Fold->text() == "Fold") { if(pushButton_Fold->text() == "Fold") {
@@ -2118,8 +2060,6 @@ int mainWindowImpl::getMyCallAmount() {
else { else {
return tempHighestSet - currentHand->getSeatsList()->front()->getMySet(); return tempHighestSet - currentHand->getSeatsList()->front()->getMySet();
} }
} }
int mainWindowImpl::getBetRaisePushButtonValue() { int mainWindowImpl::getBetRaisePushButtonValue() {
@@ -2139,16 +2079,6 @@ int mainWindowImpl::getMyBetAmount(int mode) {
int betValue = getBetRaisePushButtonValue(); int betValue = getBetRaisePushButtonValue();
int minimum; int minimum;
// if(mode == 0) { // bet
// minimum = currentHand->getSmallBlind()*2;
// }
// else if(mode == 1) { // raise
// minimum = currentHand->getCurrentBeRo()->getHighestSet() - currentHand->getSeatsList()->front()->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise();
// }
// else {
// minimum = -1;
// }
minimum = currentHand->getCurrentBeRo()->getHighestSet() - currentHand->getSeatsList()->front()->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise(); minimum = currentHand->getCurrentBeRo()->getHighestSet() - currentHand->getSeatsList()->front()->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise();
if(betValue < minimum) { if(betValue < minimum) {
@@ -2157,7 +2087,6 @@ int mainWindowImpl::getMyBetAmount(int mode) {
else { else {
return betValue; return betValue;
} }
} }
void mainWindowImpl::myCall(){ void mainWindowImpl::myCall(){
@@ -2191,29 +2120,6 @@ void mainWindowImpl::myCall(){
myActionDone(); myActionDone();
} }
void mainWindowImpl::myBet(){
// HandInterface *currentHand = mySession->getCurrentGame()->getCurrentHand();
//
// horizontalSlider_bet->setMinimum(currentHand->getSmallBlind()*2);
// horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
// horizontalSlider_bet->setSingleStep(10);
//
// myActionIsBet = 1;
}
void mainWindowImpl::myRaise(){
// HandInterface *currentHand = mySession->getCurrentGame()->getCurrentHand();
//
// horizontalSlider_bet->setMinimum(currentHand->getCurrentBeRo()->getHighestSet() - currentHand->getSeatsList()->front()->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise());
// horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
// horizontalSlider_bet->setSingleStep(10);
//
// myActionIsRaise = 1;
}
void mainWindowImpl::mySet(){ void mainWindowImpl::mySet(){
if(pushButton_BetRaise->text() != "") { if(pushButton_BetRaise->text() != "") {
@@ -2545,7 +2451,7 @@ void mainWindowImpl::postRiverRunAnimation2() {
} }
} }
else { else {
//Ohne Eye-Candy //without Eye-Candy
//Karten der aktiven Spieler umdrehen //Karten der aktiven Spieler umdrehen
QPixmap onePix(myAppDataPath +"gfx/gui/misc/1px.png"); QPixmap onePix(myAppDataPath +"gfx/gui/misc/1px.png");
@@ -2589,16 +2495,6 @@ void mainWindowImpl::postRiverRunAnimation2() {
} }
else { postRiverRunAnimation3(); } else { postRiverRunAnimation3(); }
} }
// TODO // TODO
@@ -2792,8 +2688,6 @@ void mainWindowImpl::postRiverRunAnimation5() {
potDistributeTimer->stop(); potDistributeTimer->stop();
postRiverRunAnimation5Timer->start(gameSpeed); postRiverRunAnimation5Timer->start(gameSpeed);
} }
} }
void mainWindowImpl::postRiverRunAnimation6() { void mainWindowImpl::postRiverRunAnimation6() {
@@ -2887,7 +2781,7 @@ void mainWindowImpl::flipHolecardsAllIn() {
} }
} }
else { else {
//Ohne Eye-Candy //without Eye-Candy
//Karten der aktiven Spieler umdrehen //Karten der aktiven Spieler umdrehen
QPixmap onePix(myAppDataPath +"gfx/gui/misc/1px.png"); QPixmap onePix(myAppDataPath +"gfx/gui/misc/1px.png");
@@ -2915,12 +2809,6 @@ void mainWindowImpl::flipHolecardsAllIn() {
} }
} }
//Wenn einmal umgedreht dann fertig!! //Wenn einmal umgedreht dann fertig!!
flipHolecardsAllInAlreadyDone = TRUE; flipHolecardsAllInAlreadyDone = TRUE;
} }
@@ -2983,24 +2871,13 @@ void mainWindowImpl::nextRoundCleanGui() {
for ( j=0; j<=1; j++ ) { holeCardsArray[i][j]->setFadeOutAction(FALSE);} for ( j=0; j<=1; j++ ) { holeCardsArray[i][j]->setFadeOutAction(FALSE);}
} }
// QPalette labelPalette = label_Pot->palette();
// labelPalette.setColor(QPalette::WindowText, c);
// label_Pot->setPalette(labelPalette);
// for startNewGame during human player is active // for startNewGame during human player is active
if(mySession->getCurrentGame()->getCurrentHand()->getSeatsList()->front()->getMyActiveStatus() == 1) { if(mySession->getCurrentGame()->getCurrentHand()->getSeatsList()->front()->getMyActiveStatus() == 1) {
disableMyButtons(); disableMyButtons();
} }
// QPalette tempPalette = frame_Pot->palette();
// tempPalette.setColor(QPalette::Window, active);
// frame_Pot->setPalette(tempPalette);
textLabel_handLabel->setText(""); textLabel_handLabel->setText("");
// tempPalette = frame_handLabel->palette();
// tempPalette.setColor(QPalette::Window, active);
// frame_handLabel->setPalette(tempPalette);
refreshAll(); refreshAll();
flipHolecardsAllInAlreadyDone = FALSE; flipHolecardsAllInAlreadyDone = FALSE;
@@ -3758,20 +3635,6 @@ void mainWindowImpl::quitPokerTH() {
else { qApp->quit();} else { qApp->quit();}
} }
// void mainWindowImpl::paintEvent(QPaintEvent *event) {
//
// QPainter painter(this);
// QPixmap pm;
// QPixmapCache::setCacheLimit(2048);
// if (!QPixmapCache::find("my_big_image", pm)) {
// pm.load(myAppDataPath +"gfx/gui/table/default/table.png");
// QPixmapCache::insert("my_big_image", pm);
// }
// painter.drawPixmap(0, 0, pm);
//
// QMainWindow::paintEvent(event);
// }
void mainWindowImpl::changeLineEditBetValue(int value) { void mainWindowImpl::changeLineEditBetValue(int value) {
int temp; int temp;
@@ -3795,7 +3658,6 @@ void mainWindowImpl::changeLineEditBetValue(int value) {
lineEdit_betValue->setText(QString::number(temp)); lineEdit_betValue->setText(QString::number(temp));
} }
} }
} }
void mainWindowImpl::lineEditBetValueChanged(QString valueString) { void mainWindowImpl::lineEditBetValueChanged(QString valueString) {
@@ -3822,7 +3684,6 @@ void mainWindowImpl::lineEditBetValueChanged(QString valueString) {
betSliderChangedByInput = TRUE; betSliderChangedByInput = TRUE;
horizontalSlider_bet->setValue(horizontalSlider_bet->minimum()); horizontalSlider_bet->setValue(horizontalSlider_bet->minimum());
} }
} }
void mainWindowImpl::leaveCurrentNetworkGame() { void mainWindowImpl::leaveCurrentNetworkGame() {