diff --git a/src/gui/qt/mainwindowv2/mainwindowimpl.cpp b/src/gui/qt/mainwindowv2/mainwindowimpl.cpp deleted file mode 100755 index 9b012890..00000000 --- a/src/gui/qt/mainwindowv2/mainwindowimpl.cpp +++ /dev/null @@ -1,2052 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2006 by FThauer FHammer * - * f.thauer@web.de * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ -#include "mainwindowimpl.h" - -#include "newgamedialogimpl.h" -#include "aboutpokerthimpl.h" -#include "settingsdialogimpl.h" -#include "joinnetworkgamedialogimpl.h" -#include "connecttoserverdialogimpl.h" -#include "createnetworkgamedialogimpl.h" -#include "startnetworkgamedialogimpl.h" - - -#include "startsplash.h" -#include "mycardspixmaplabel.h" - -#include "playerinterface.h" -#include "boardinterface.h" - -#include "game.h" -#include "session.h" - -#include "log.h" -#include "configfile.h" - -#define FORMATLEFT(X) "

(X)" -#define FORMATRIGHT(X) "(X)

" - -// muss mit GUI übereinstimmen -const int maxQuantityPlayersConst = 5; -// !!! in game.h ebenfalls bei playerArray[?] setzen !!! -// !!! in hand.h ebenfalls bei roundStartCashArray[?] setzen !!! - - -using namespace std; - -mainWindowImpl::mainWindowImpl(QMainWindow *parent) - : QMainWindow(parent), actualGame(0), actualHand(0), mySession(0), maxQuantityPlayers(maxQuantityPlayersConst), gameSpeed(0), debugMode(0), breakAfterActualHand(FALSE) -{ - int i; - - myConfig = new ConfigFile; - -// Resourcen abladen - QFile preflopValuesFile(":data/resources/data/preflopValues"); - QFile preflopValuesFileDest(QString::fromStdString(myConfig->readConfigString("DataDir")+"preflopValues")); - if(!preflopValuesFileDest.exists()) { preflopValuesFile.copy(QString::fromStdString(myConfig->readConfigString("DataDir")+"preflopValues")); } - -// Schriftart laden -#ifdef _WIN32 - - QFont tmpFont; - tmpFont.setFamily("Arial"); - tmpFont.setPixelSize(12); - -// if(this->logicalDpiX() > 105) { tmpFont.setFont("Arial",8); } -// else { QFont tmpFont("Arial",9); } - -#else - QFontDatabase::addApplicationFont (":fonts/resources/fonts/n019003l.pfb"); -// QFont tmpFont("Nimbus Sans L",9); - QFont tmpFont; - tmpFont.setFamily("Nimbus Sans L"); - tmpFont.setPixelSize(12); - -#endif - QApplication::setFont(tmpFont); - - setupUi(this); - -// //Schriftgrößen festlegen -// #ifdef _WIN32 -// tmpFont.setPixelSize(11); -// textBrowser_Log->setFont(tmpFont); -// #else -// tmpFont.setPixelSize(10); -// textBrowser_Log->setFont(tmpFont); -// #endif -// tmpFont.setPixelSize(18); -// label_Pot->setFont(tmpFont); -// tmpFont.setPixelSize(13); -// label_Sets->setFont(tmpFont); -// tmpFont.setPixelSize(14); -// textLabel_handNumber->setFont(tmpFont); -// textLabel_gameNumber->setFont(tmpFont); -// textLabel_Sets->setFont(tmpFont); -// textLabel_Cash0->setFont(tmpFont); -// tmpFont.setPixelSize(15); -// textLabel_Pot->setFont(tmpFont); -// tmpFont.setPixelSize(21); -// tmpFont.setBold(TRUE); -// textLabel_handLabel->setFont(tmpFont); -// -// //Logos -// label_logoleft = new QLabel; -// label_logoleft->setPixmap(QPixmap(QString::fromUtf8(":/graphics/resources/graphics/logo-140-100.png"))); -// label_logoleft->hide(); -// vboxLayout->addWidget(label_logoleft); -// -// label_logoright = new QLabel; -// label_logoright->setPixmap(QPixmap(QString::fromUtf8(":/graphics/resources/graphics/logo-140-100.png"))); -// label_logoright->setAlignment(Qt::AlignRight); -// label_logoright->hide(); -// vboxLayout3->addWidget(label_logoright); -// -// //pixmapCardsLabel erstellen und ins Layout einfügen! -// pixmapLabel_cardBoard0 = new MyCardsPixmapLabel(frame_5); -// pixmapLabel_cardBoard0->setObjectName(QString::fromUtf8("pixmapLabel_cardBoard0")); -// pixmapLabel_cardBoard0->setMinimumSize(QSize(57, 80)); -// pixmapLabel_cardBoard0->setMaximumSize(QSize(57, 80)); -// pixmapLabel_cardBoard0->setScaledContents(true); -// gridLayout37->addWidget(pixmapLabel_cardBoard0, 0, 0, 1, 1); -// -// pixmapLabel_cardBoard1 = new MyCardsPixmapLabel(frame_5); -// pixmapLabel_cardBoard1->setObjectName(QString::fromUtf8("pixmapLabel_cardBoard1")); -// pixmapLabel_cardBoard1->setMinimumSize(QSize(57, 80)); -// pixmapLabel_cardBoard1->setMaximumSize(QSize(57, 80)); -// pixmapLabel_cardBoard1->setScaledContents(true); -// gridLayout37->addWidget(pixmapLabel_cardBoard1, 0, 1, 1, 1); -// -// pixmapLabel_cardBoard2 = new MyCardsPixmapLabel(frame_5); -// pixmapLabel_cardBoard2->setObjectName(QString::fromUtf8("pixmapLabel_cardBoard2")); -// pixmapLabel_cardBoard2->setMinimumSize(QSize(57, 80)); -// pixmapLabel_cardBoard2->setMaximumSize(QSize(57, 80)); -// pixmapLabel_cardBoard2->setScaledContents(true); -// gridLayout37->addWidget(pixmapLabel_cardBoard2, 0, 2, 1, 1); -// -// pixmapLabel_cardBoard3 = new MyCardsPixmapLabel(frame_5); -// pixmapLabel_cardBoard3->setObjectName(QString::fromUtf8("pixmapLabel_cardBoard3")); -// pixmapLabel_cardBoard3->setMinimumSize(QSize(57, 80)); -// pixmapLabel_cardBoard3->setMaximumSize(QSize(57, 80)); -// pixmapLabel_cardBoard3->setScaledContents(true); -// gridLayout37->addWidget(pixmapLabel_cardBoard3, 0, 3, 1, 1); -// -// pixmapLabel_cardBoard4 = new MyCardsPixmapLabel(frame_5); -// pixmapLabel_cardBoard4->setObjectName(QString::fromUtf8("pixmapLabel_cardBoard4")); -// pixmapLabel_cardBoard4->setMinimumSize(QSize(57, 80)); -// pixmapLabel_cardBoard4->setMaximumSize(QSize(57, 80)); -// pixmapLabel_cardBoard4->setScaledContents(true); -// gridLayout37->addWidget(pixmapLabel_cardBoard4, 0, 4, 1, 1); -// -// pixmapLabel_card0a = new MyCardsPixmapLabel(frame5); -// pixmapLabel_card0a->setObjectName(QString::fromUtf8("pixmapLabel_card0a")); -// pixmapLabel_card0a->setMinimumSize(QSize(80, 112)); -// pixmapLabel_card0a->setMaximumSize(QSize(80, 112)); -// pixmapLabel_card0a->setScaledContents(true); -// gridLayout4->addWidget(pixmapLabel_card0a, 0, 0, 1, 1); -// -// pixmapLabel_card0b = new MyCardsPixmapLabel(frame5); -// pixmapLabel_card0b->setObjectName(QString::fromUtf8("pixmapLabel_card0b")); -// pixmapLabel_card0b->setMinimumSize(QSize(80, 112)); -// pixmapLabel_card0b->setMaximumSize(QSize(80, 112)); -// pixmapLabel_card0b->setScaledContents(true); -// gridLayout4->addWidget(pixmapLabel_card0b, 0, 1, 1, 1); -// -// pixmapLabel_card1a = new MyCardsPixmapLabel(frame8_2_2_2_5); -// pixmapLabel_card1a->setObjectName(QString::fromUtf8("pixmapLabel_card1a")); -// pixmapLabel_card1a->setMinimumSize(QSize(57, 80)); -// pixmapLabel_card1a->setMaximumSize(QSize(57, 80)); -// pixmapLabel_card1a->setScaledContents(true); -// gridLayout13->addWidget(pixmapLabel_card1a, 0, 0, 1, 1); -// -// pixmapLabel_card1b = new MyCardsPixmapLabel(frame8_2_2_2_5); -// pixmapLabel_card1b->setObjectName(QString::fromUtf8("pixmapLabel_card1b")); -// pixmapLabel_card1b->setMinimumSize(QSize(57, 80)); -// pixmapLabel_card1b->setMaximumSize(QSize(57, 80)); -// pixmapLabel_card1b->setScaledContents(true); -// gridLayout13->addWidget(pixmapLabel_card1b, 0, 1, 1, 1); -// -// pixmapLabel_card2a = new MyCardsPixmapLabel(frame8_2_2_2_4); -// pixmapLabel_card2a->setObjectName(QString::fromUtf8("pixmapLabel_card2a")); -// pixmapLabel_card2a->setMinimumSize(QSize(57, 80)); -// pixmapLabel_card2a->setMaximumSize(QSize(57, 80)); -// pixmapLabel_card2a->setScaledContents(true); -// gridLayout19->addWidget(pixmapLabel_card2a, 0, 0, 1, 1); -// -// pixmapLabel_card2b = new MyCardsPixmapLabel(frame8_2_2_2_4); -// pixmapLabel_card2b->setObjectName(QString::fromUtf8("pixmapLabel_card2b")); -// pixmapLabel_card2b->setMinimumSize(QSize(57, 80)); -// pixmapLabel_card2b->setMaximumSize(QSize(57, 80)); -// pixmapLabel_card2b->setScaledContents(true); -// gridLayout19->addWidget(pixmapLabel_card2b, 0, 1, 1, 1); -// -// pixmapLabel_card3a = new MyCardsPixmapLabel(frame8_2_2_2_6); -// pixmapLabel_card3a->setObjectName(QString::fromUtf8("pixmapLabel_card3a")); -// pixmapLabel_card3a->setMinimumSize(QSize(57, 80)); -// pixmapLabel_card3a->setMaximumSize(QSize(57, 80)); -// pixmapLabel_card3a->setScaledContents(true); -// gridLayout25->addWidget(pixmapLabel_card3a, 0, 0, 1, 1); -// -// pixmapLabel_card3b = new MyCardsPixmapLabel(frame8_2_2_2_6); -// pixmapLabel_card3b->setObjectName(QString::fromUtf8("pixmapLabel_card3b")); -// pixmapLabel_card3b->setMinimumSize(QSize(57, 80)); -// pixmapLabel_card3b->setMaximumSize(QSize(57, 80)); -// pixmapLabel_card3b->setScaledContents(true); -// gridLayout25->addWidget(pixmapLabel_card3b, 0, 1, 1, 1); -// -// pixmapLabel_card4a = new MyCardsPixmapLabel(frame8_2_2_2_7); -// pixmapLabel_card4a->setObjectName(QString::fromUtf8("pixmapLabel_card4a")); -// pixmapLabel_card4a->setMinimumSize(QSize(57, 80)); -// pixmapLabel_card4a->setMaximumSize(QSize(57, 80)); -// pixmapLabel_card4a->setScaledContents(true); -// gridLayout31->addWidget(pixmapLabel_card4a, 0, 0, 1, 1); -// -// pixmapLabel_card4b = new MyCardsPixmapLabel(frame8_2_2_2_7); -// pixmapLabel_card4b->setObjectName(QString::fromUtf8("pixmapLabel_card4b")); -// pixmapLabel_card4b->setMinimumSize(QSize(57, 80)); -// pixmapLabel_card4b->setMaximumSize(QSize(57, 80)); -// pixmapLabel_card4b->setScaledContents(true); -// gridLayout31->addWidget(pixmapLabel_card4b, 0, 1, 1, 1); -// -// // pixmapLabel_card4b->setPixmap(QPixmap(":/cards/resources/graphics/cards/33.png"), FALSE); -// -// //Flipside festlegen; -// flipside = new QPixmap(":/cards/resources/graphics/cards/flipside.png"); -// -// if (myConfig->readConfigInt("FlipsideOwn") && myConfig->readConfigString("FlipsideOwnFile") != "") { -// QPixmap tmpFlipside(QString::fromStdString(myConfig->readConfigString("FlipsideOwnFile"))); -// flipside = new QPixmap(tmpFlipside.scaled(QSize(57, 80))); -// } -// else { flipside->load(":/cards/resources/graphics/cards/flipside.png"); } -// -// //Flipside Animation noch nicht erledigt -// flipHolecardsAllInAlreadyDone = FALSE; -// -// -// //Toolboxen verstecken? -// if (!myConfig->readConfigInt("ShowRightToolBox")) { -// groupBox_right_tools->hide(); -// label_logoright->show(); -// } -// if (!myConfig->readConfigInt("ShowLeftToolBox")) { -// groupBox_left_tools->hide(); -// label_logoleft->show(); -// } -// -// //Intro abspielen? -// if (myConfig->readConfigInt("ShowIntro")) { -// // label_logo->hide(); -// QTimer::singleShot(100, this, SLOT( paintStartSplash() )); } -// -// -// pushButton_raise->setDisabled(TRUE); -// pushButton_call->setDisabled(TRUE); -// pushButton_bet->setDisabled(TRUE); -// pushButton_set->setDisabled(TRUE); -// pushButton_fold->setDisabled(TRUE); -// pushButton_allin->setDisabled(TRUE); -// pushButton_check->setDisabled(TRUE); -// -// spinBox_set->setDisabled(TRUE); -// -// // userWidgetsArray init -// userWidgetsArray[0] = pushButton_raise; -// userWidgetsArray[1] = pushButton_call; -// userWidgetsArray[2] = pushButton_bet; -// userWidgetsArray[3] = pushButton_set; -// userWidgetsArray[4] = pushButton_fold; -// userWidgetsArray[5] = pushButton_allin; -// userWidgetsArray[6] = pushButton_check; -// userWidgetsArray[7] = spinBox_set; -// -// //Hintergrundfarbe der userWidgets anpassen; -// for(i=0; i<=7; i++) { -// QPalette tempPalette = userWidgetsArray[i]->palette(); -// QColor tempColor = tempPalette.color(QPalette::Window); -// tempPalette.setColor(QPalette::Button, tempColor); -// userWidgetsArray[i]->setPalette(tempPalette); -// } -// -// //Timer Objekt erstellen -// dealFlopCards0Timer = new QTimer(this); -// dealFlopCards1Timer = new QTimer(this); -// dealFlopCards2Timer = new QTimer(this); -// dealFlopCards3Timer = new QTimer(this); -// dealFlopCards4Timer = new QTimer(this); -// dealFlopCards5Timer = new QTimer(this); -// dealFlopCards6Timer = new QTimer(this); -// dealTurnCards0Timer = new QTimer(this); -// dealTurnCards1Timer = new QTimer(this); -// dealTurnCards2Timer = new QTimer(this); -// dealRiverCards0Timer = new QTimer(this); -// dealRiverCards1Timer = new QTimer(this); -// dealRiverCards2Timer = new QTimer(this); -// -// nextPlayerAnimationTimer = new QTimer(this); -// preflopAnimation1Timer = new QTimer(this); -// preflopAnimation2Timer = new QTimer(this); -// flopAnimation1Timer = new QTimer(this); -// flopAnimation2Timer = new QTimer(this); -// turnAnimation1Timer = new QTimer(this); -// turnAnimation2Timer = new QTimer(this); -// riverAnimation1Timer = new QTimer(this); -// riverAnimation2Timer = new QTimer(this); -// -// postRiverAnimation1Timer = new QTimer(this); -// postRiverRunAnimation1Timer = new QTimer(this); -// postRiverRunAnimation2Timer = new QTimer(this); -// postRiverRunAnimation3Timer = new QTimer(this); -// postRiverRunAnimation5Timer = new QTimer(this); -// potDistributeTimer = new QTimer(this); -// postRiverRunAnimation6Timer = new QTimer(this); -// -// dealFlopCards0Timer->setSingleShot(TRUE); -// dealFlopCards1Timer->setSingleShot(TRUE); -// dealFlopCards2Timer->setSingleShot(TRUE); -// dealFlopCards3Timer->setSingleShot(TRUE); -// dealFlopCards4Timer->setSingleShot(TRUE); -// dealFlopCards5Timer->setSingleShot(TRUE); -// dealFlopCards6Timer->setSingleShot(TRUE); -// dealTurnCards0Timer->setSingleShot(TRUE); -// dealTurnCards1Timer->setSingleShot(TRUE); -// dealTurnCards2Timer->setSingleShot(TRUE); -// dealRiverCards0Timer->setSingleShot(TRUE); -// dealRiverCards1Timer->setSingleShot(TRUE); -// dealRiverCards2Timer->setSingleShot(TRUE); -// -// nextPlayerAnimationTimer->setSingleShot(TRUE); -// preflopAnimation1Timer->setSingleShot(TRUE); -// preflopAnimation2Timer->setSingleShot(TRUE); -// flopAnimation1Timer->setSingleShot(TRUE); -// flopAnimation2Timer->setSingleShot(TRUE); -// turnAnimation1Timer->setSingleShot(TRUE); -// turnAnimation2Timer->setSingleShot(TRUE); -// riverAnimation1Timer->setSingleShot(TRUE); -// riverAnimation2Timer->setSingleShot(TRUE); -// -// postRiverAnimation1Timer->setSingleShot(TRUE); -// postRiverRunAnimation1Timer->setSingleShot(TRUE); -// postRiverRunAnimation2Timer->setSingleShot(TRUE); -// postRiverRunAnimation3Timer->setSingleShot(TRUE); -// postRiverRunAnimation5Timer->setSingleShot(TRUE); -// postRiverRunAnimation6Timer->setSingleShot(TRUE); -// -// // buttonLabelArray init -// buttonLabelArray[0] = textLabel_Button0; -// buttonLabelArray[1] = textLabel_Button1; -// buttonLabelArray[2] = textLabel_Button2; -// buttonLabelArray[3] = textLabel_Button3; -// buttonLabelArray[4] = textLabel_Button4; -// -// // cashLabelArray init -// cashLabelArray[0] = textLabel_Cash0; -// cashLabelArray[1] = textLabel_Cash1; -// cashLabelArray[2] = textLabel_Cash2; -// cashLabelArray[3] = textLabel_Cash3; -// cashLabelArray[4] = textLabel_Cash4; -// -// // cashTopLabelArray init -// cashTopLabelArray[0] = textLabel_TopCash0; -// cashTopLabelArray[1] = textLabel_TopCash1; -// cashTopLabelArray[2] = textLabel_TopCash2; -// cashTopLabelArray[3] = textLabel_TopCash3; -// cashTopLabelArray[4] = textLabel_TopCash4; -// -// // setLabelArray init -// setLabelArray[0] = textLabel_Set0; -// setLabelArray[1] = textLabel_Set1; -// setLabelArray[2] = textLabel_Set2; -// setLabelArray[3] = textLabel_Set3; -// setLabelArray[4] = textLabel_Set4; -// -// // statusLabelArray init -// actionLabelArray[0] = textLabel_Status0; -// actionLabelArray[1] = textLabel_Status1; -// actionLabelArray[2] = textLabel_Status2; -// actionLabelArray[3] = textLabel_Status3; -// actionLabelArray[4] = textLabel_Status4; -// -// // GroupBoxArray init -// groupBoxArray[0] = groupBox0; -// groupBoxArray[1] = groupBox1; -// groupBoxArray[2] = groupBox2; -// groupBoxArray[3] = groupBox3; -// groupBoxArray[4] = groupBox4; -// -// // boardCardsArray init -// boardCardsArray[0] = pixmapLabel_cardBoard0; -// boardCardsArray[1] = pixmapLabel_cardBoard1; -// boardCardsArray[2] = pixmapLabel_cardBoard2; -// boardCardsArray[3] = pixmapLabel_cardBoard3; -// boardCardsArray[4] = pixmapLabel_cardBoard4; -// -// // holeCardsArray int -// holeCardsArray[0][0] = pixmapLabel_card0a; -// holeCardsArray[0][1] = pixmapLabel_card0b; -// holeCardsArray[1][0] = pixmapLabel_card1a; -// holeCardsArray[1][1] = pixmapLabel_card1b; -// holeCardsArray[2][0] = pixmapLabel_card2a; -// holeCardsArray[2][1] = pixmapLabel_card2b; -// holeCardsArray[3][0] = pixmapLabel_card3a; -// holeCardsArray[3][1] = pixmapLabel_card3b; -// holeCardsArray[4][0] = pixmapLabel_card4a; -// holeCardsArray[4][1] = pixmapLabel_card4b; -// -// // Farben initalisieren -// active.setRgb(86,170,86); -// inactive.setRgb(83,141,107); -// highlight.setRgb(151,214,109); -// -// //ShortCuts -// // QShortcut *startNewGameKeys = new QShortcut(QKeySequence(Qt::Key_Control + Qt::Key_N), this); -// // connect( startNewGameKeys, SIGNAL(activated() ), actionNewGame, SLOT( trigger() ) ); -// -// //Statusbar -// statusBar()->showMessage(tr("Ctrl+N to start a new Game")); -// -// //Dialoge -// myJoinNetworkGameDialog = new joinNetworkGameDialogImpl(this); -// myConnectToServerDialog = new connectToServerDialogImpl(this); -// myStartNetworkGameDialog = new startNetworkGameDialogImpl(this); -// myCreateNetworkGameDialog = new createNetworkGameDialogImpl(this); -// -// //Connects -// connect(dealFlopCards0Timer, SIGNAL(timeout()), this, SLOT( dealFlopCards1() )); -// connect(dealFlopCards1Timer, SIGNAL(timeout()), this, SLOT( dealFlopCards2() )); -// connect(dealFlopCards2Timer, SIGNAL(timeout()), this, SLOT( dealFlopCards3() )); -// connect(dealFlopCards3Timer, SIGNAL(timeout()), this, SLOT( dealFlopCards4() )); -// connect(dealFlopCards4Timer, SIGNAL(timeout()), this, SLOT( dealFlopCards5() )); -// connect(dealFlopCards5Timer, SIGNAL(timeout()), this, SLOT( dealFlopCards6() )); -// connect(dealFlopCards6Timer, SIGNAL(timeout()), this, SLOT( handSwitchRounds() )); -// connect(dealTurnCards0Timer, SIGNAL(timeout()), this, SLOT( dealTurnCards1() )); -// connect(dealTurnCards1Timer, SIGNAL(timeout()), this, SLOT( dealTurnCards2() )); -// connect(dealTurnCards2Timer, SIGNAL(timeout()), this, SLOT( handSwitchRounds() )); -// connect(dealRiverCards0Timer, SIGNAL(timeout()), this, SLOT( dealRiverCards1() )); -// connect(dealRiverCards1Timer, SIGNAL(timeout()), this, SLOT( dealRiverCards2() )); -// connect(dealRiverCards2Timer, SIGNAL(timeout()), this, SLOT( handSwitchRounds() )); -// -// connect(nextPlayerAnimationTimer, SIGNAL(timeout()), this, SLOT( handSwitchRounds() )); -// connect(preflopAnimation1Timer, SIGNAL(timeout()), this, SLOT( preflopAnimation1Action() )); -// connect(preflopAnimation2Timer, SIGNAL(timeout()), this, SLOT( preflopAnimation2Action() )); -// connect(flopAnimation1Timer, SIGNAL(timeout()), this, SLOT( flopAnimation1Action() )); -// connect(flopAnimation2Timer, SIGNAL(timeout()), this, SLOT( flopAnimation2Action() )); -// connect(turnAnimation1Timer, SIGNAL(timeout()), this, SLOT( turnAnimation1Action() )); -// connect(turnAnimation2Timer, SIGNAL(timeout()), this, SLOT( turnAnimation2Action() )); -// connect(riverAnimation1Timer, SIGNAL(timeout()), this, SLOT( riverAnimation1Action() )); -// connect(riverAnimation2Timer, SIGNAL(timeout()), this, SLOT( riverAnimation2Action() )); -// -// connect(postRiverAnimation1Timer, SIGNAL(timeout()), this, SLOT( postRiverAnimation1Action() )); -// connect(postRiverRunAnimation1Timer, SIGNAL(timeout()), this, SLOT( postRiverRunAnimation2() )); -// connect(postRiverRunAnimation2Timer, SIGNAL(timeout()), this, SLOT( postRiverRunAnimation3() )); -// connect(postRiverRunAnimation3Timer, SIGNAL(timeout()), this, SLOT( postRiverRunAnimation4() )); -// connect(potDistributeTimer, SIGNAL(timeout()), this, SLOT(postRiverRunAnimation5())); -// connect(postRiverRunAnimation5Timer, SIGNAL(timeout()), this, SLOT( postRiverRunAnimation6() )); -// connect(postRiverRunAnimation6Timer, SIGNAL(timeout()), this, SLOT( startNewHand() )); -// -// connect( actionNewGame, SIGNAL( triggered() ), this, SLOT( callNewGameDialog() ) ); -// connect( actionAboutPokerth, SIGNAL( triggered() ), this, SLOT( callAboutPokerthDialog() ) ); -// connect( actionSettings, SIGNAL( triggered() ), this, SLOT( callSettingsDialog() ) ); -// connect( actionJoin_network_Game, SIGNAL( triggered() ), this, SLOT( callJoinNetworkGameDialog() ) ); -// connect( actionCreate_network_Game, SIGNAL( triggered() ), this, SLOT( callCreateNetworkGameDialog() ) ); -// connect( actionQuit, SIGNAL( triggered() ), qApp, SLOT( quit() ) ); -// connect( actionFullScreen, SIGNAL( triggered() ), this, SLOT( switchFullscreen() ) ); -// -// connect( pushButton_raise, SIGNAL( clicked() ), this, SLOT( myRaise() ) ); -// connect( pushButton_call, SIGNAL( clicked() ), this, SLOT( myCall() ) ); -// connect( pushButton_bet, SIGNAL( clicked() ), this, SLOT( myBet() ) ); -// connect( pushButton_set, SIGNAL( clicked() ), this, SLOT( mySet() ) ); -// connect( pushButton_fold, SIGNAL( clicked() ), this, SLOT( myFold() ) ); -// connect( pushButton_check, SIGNAL( clicked() ), this, SLOT( myCheck() ) ); -// connect( pushButton_allin, SIGNAL( clicked() ), this, SLOT( myAllIn() ) ); -// -// connect ( horizontalSlider_speed, SIGNAL( valueChanged(int)), this, SLOT ( setGameSpeed(int) ) ); -// connect ( pushButton_break, SIGNAL( clicked()), this, SLOT ( breakButtonClicked() ) ); // auch wieder starten!!!! -// -// //Nachrichten Thread-Save -// connect(this, SIGNAL(SignalNetSuccess(int)), myConnectToServerDialog, SLOT(refresh(int))); -// connect(this, SIGNAL(SignalNetError(int, int)), myConnectToServerDialog, SLOT(error(int, int))); -// -// // textBrowser_Log->append(QString::number(this->pos().x(),10)+" "+QString::number(this->pos().y(),10)); -// // textBrowser_Log->append(QString::number(this->x(),10)+" "+QString::number(this->y(),10)); - -} - -mainWindowImpl::~mainWindowImpl() {} - -// void mainWindowImpl::callNewGameDialog() { -// -// -// -// //wenn Dialogfenster gezeigt werden soll -// -// if(myConfig->readConfigInt("ShowGameSettingsDialogOnNewGame")){ -// -// newGameDialogImpl *v = new newGameDialogImpl(this); -// v->exec(); -// -// if (v->result() == QDialog::Accepted ) { -// -// -// if(actualGame) { -// mySession->deleteGame(); -// actualGame = 0; -// } -// -// guiGameSpeed = v->spinBox_gameSpeed->value(); -// // debugMode = v->checkBox_debugMode->isChecked(); -// //Speeds -// setSpeeds(); -// -// //restliche Singleshots killen!!! -// stopTimer(); -// -// label_Pot->setText("

Pot Total

"); -// label_Sets->setText("

Sets:

"); -// -// -// //Tools und Board aufhellen und enablen -// QPalette tempPalette = groupBox_board->palette(); -// tempPalette.setColor(QPalette::Window, active); -// groupBox_board->setPalette(tempPalette); -// groupBox_right_tools->setDisabled(FALSE); -// groupBox_left_tools->setDisabled(FALSE); -// -// -// //positioning Slider -// horizontalSlider_speed->setValue(guiGameSpeed); -// -// //Start Game!!! -// mySession->startGame(v->spinBox_quantityPlayers->value(), v->spinBox_startCash->value(), v->spinBox_smallBlind->value()); -// -// } -// } -// // sonst mit gespeicherten Werten starten -// else { -// -// if(actualGame) { -// mySession->deleteGame(); -// actualGame = 0; -// } -// -// guiGameSpeed = myConfig->readConfigInt("GameSpeed"); -// //Speeds -// setSpeeds(); -// -// //restliche Singleshots killen!!! -// stopTimer(); -// -// label_Pot->setText("

Pot Total

"); -// label_Sets->setText("

Sets:

"); -// -// -// // debugMode = v->checkBox_debugMode->isChecked(); -// -// //Tools und Board aufhellen und enablen -// QPalette tempPalette = groupBox_board->palette(); -// tempPalette.setColor(QPalette::Window, active); -// groupBox_board->setPalette(tempPalette); -// groupBox_right_tools->setDisabled(FALSE); -// groupBox_left_tools->setDisabled(FALSE); -// -// -// //positioning Slider -// horizontalSlider_speed->setValue(guiGameSpeed); -// -// //Start Game!!! -// mySession->startGame(myConfig->readConfigInt("NumberOfPlayers"), myConfig->readConfigInt("StartCash"), myConfig->readConfigInt("SmallBlind")); -// -// -// } -// -// } -// -// void mainWindowImpl::callAboutPokerthDialog() { -// -// aboutPokerthImpl *v = new aboutPokerthImpl(this); -// v->exec(); -// } -// -// void mainWindowImpl::callCreateNetworkGameDialog() { -// -// myCreateNetworkGameDialog->showDialog(); -// // -// if (myCreateNetworkGameDialog->result() == QDialog::Accepted ) { -// mySession->terminateNetworkServer(); -// mySession->startNetworkServer(); -// // -// // mySession->terminateNetworkClient(); -// // -// // // Maybe use QUrl::toPunycode. -// // mySession->startNetworkClient( -// // myJoinNetworkGameDialog->lineEdit_ipAddress->text().toUtf8().constData(), -// // myJoinNetworkGameDialog->spinBox_port->value(), -// // myJoinNetworkGameDialog->checkBox_ipv6->isChecked(), -// // myJoinNetworkGameDialog->lineEdit_password->text().toUtf8().constData()); -// // -// // //Dialog mit Statusbalken -// // myConnectToServerDialog->exec(); -// // -// // if (myConnectToServerDialog->result() == QDialog::Rejected ) { -// // mySession->terminateNetworkClient(); -// // actionJoin_network_Game->trigger(); // re-trigger -// // } -// // -// } -// -// } -// -// void mainWindowImpl::callJoinNetworkGameDialog() { -// -// myJoinNetworkGameDialog->exec(); -// -// if (myJoinNetworkGameDialog->result() == QDialog::Accepted ) { -// -// mySession->terminateNetworkClient(); -// -// // Maybe use QUrl::toPunycode. -// mySession->startNetworkClient( -// myJoinNetworkGameDialog->lineEdit_ipAddress->text().toUtf8().constData(), -// myJoinNetworkGameDialog->spinBox_port->value(), -// myJoinNetworkGameDialog->checkBox_ipv6->isChecked(), -// myJoinNetworkGameDialog->lineEdit_password->text().toUtf8().constData()); -// -// //Dialog mit Statusbalken -// myConnectToServerDialog->exec(); -// -// if (myConnectToServerDialog->result() == QDialog::Rejected ) { -// mySession->terminateNetworkClient(); -// actionJoin_network_Game->trigger(); // re-trigger -// } -// -// } -// -// } -// -// void mainWindowImpl::callSettingsDialog() { -// -// settingsDialogImpl *v = new settingsDialogImpl(this); -// v->exec(); -// -// if (v->getSettingsCorrect()) { -// -// //Toolbox verstecken? -// if (myConfig->readConfigInt("ShowLeftToolBox")) { -// label_logoleft->hide(); -// groupBox_left_tools->show(); -// } -// else { -// groupBox_left_tools->hide(); -// label_logoleft->show(); -// } -// -// if (myConfig->readConfigInt("ShowRightToolBox")) { -// label_logoright->hide(); -// groupBox_right_tools->show(); -// } -// else { -// groupBox_right_tools->hide(); -// label_logoright->show(); -// } -// -// -// -// //Falls Spielernamen geändert wurden --> neu zeichnen --> erst beim nächsten Neustart neu ausgelesen -// if (v->getPlayerNickIsChanged() && actualGame) { -// -// actualHand->getPlayerArray()[0]->setMyName(v->lineEdit_humanPlayerName->text().toStdString()); -// actualHand->getPlayerArray()[1]->setMyName(v->lineEdit_Opponent1Name->text().toStdString()); -// actualHand->getPlayerArray()[2]->setMyName(v->lineEdit_Opponent2Name->text().toStdString()); -// actualHand->getPlayerArray()[3]->setMyName(v->lineEdit_Opponent3Name->text().toStdString()); -// actualHand->getPlayerArray()[4]->setMyName(v->lineEdit_Opponent4Name->text().toStdString()); -// v->setPlayerNickIsChanged(FALSE); -// -// refreshPlayerName(); -// } -// -// //Flipside refresh -// if (myConfig->readConfigInt("FlipsideOwn") && myConfig->readConfigString("FlipsideOwnFile") != "") { -// -// QPixmap tmpFlipside(QString::fromStdString(myConfig->readConfigString("FlipsideOwnFile"))); -// flipside = new QPixmap(tmpFlipside.scaled(QSize(57, 80))); -// } -// else { flipside->load(":/cards/resources/graphics/cards/flipside.png"); } -// -// int i,j; -// -// for (i=1; i<=4; i++ ) { -// for ( j=0; j<=1; j++ ) { -// if (holeCardsArray[i][j]->getIsFlipside()) { -// holeCardsArray[i][j]->setPixmap(*flipside, TRUE); -// } -// } -// } -// } -// } -// -// void mainWindowImpl::setGame(Game *g) { actualGame = g; } -// -// void mainWindowImpl::setHand(HandInterface* br) { actualHand = br; } -// -// void mainWindowImpl::setSession(Session* s) { mySession = s; } -// -// void mainWindowImpl::setLog(Log* l) { myLog = l; } -// -// //refresh-Funktionen -// void mainWindowImpl::refreshSet() { -// -// -// int i; -// for (i=0; igetPlayerArray()[i]->getMySet() == 0) setLabelArray[i]->setText(""); -// else setLabelArray[i]->setText("

Set: "+QString::number(actualHand->getPlayerArray()[i]->getMySet(),10)+" $

"); -// } -// } -// -// void mainWindowImpl::refreshButton() { -// -// QPixmap dealerButton(":/graphics/resources/graphics/dealerbutton.png"); -// QPixmap onePix(":/graphics/resources/graphics/1px.png"); -// -// int i; -// int k; -// //Aktive Spieler zählen -// int activePlayersCounter = 0; -// for (k=0; kgetPlayerArray()[k]->getMyActiveStatus() == 1) activePlayersCounter++; -// } -// -// for (i=0; igetStartQuantityPlayers(); i++) { -// -// if(activePlayersCounter > 2) { -// if (actualHand->getPlayerArray()[i]->getMyButton()==1) { -// buttonLabelArray[i]->setPixmap(dealerButton); -// } -// else { -// buttonLabelArray[i]->setPixmap(onePix); -// } -// } -// else { -// if (actualHand->getPlayerArray()[i]->getMyButton()==3) { -// buttonLabelArray[i]->setPixmap(dealerButton); -// } -// else { -// buttonLabelArray[i]->setPixmap(onePix); -// } -// } -// -// } -// -// } -// -// void mainWindowImpl::refreshPlayerName() { -// -// int i; -// for (i=1; isetTitle(QString::fromStdString(actualHand->getPlayerArray()[i]->getMyName())); } -// } -// -// void mainWindowImpl::refreshAction() { -// -// QStringList actionArray; -// actionArray << "" << "Fold" << "Check" << "Call" << "Bet" << "Raise" << "All-In"; -// -// int i; -// for (i=0; isetText("

"+actionArray[actualHand->getPlayerArray()[i]->getMyAction()]+"

"); -// -// if (actualHand->getPlayerArray()[i]->getMyAction()==1) { -// groupBoxArray[i]->setDisabled(TRUE); -// QPixmap onePix(":/graphics/resources/graphics/1px.png"); -// if(i != 0) { -// holeCardsArray[i][0]->setPixmap(onePix, FALSE); -// holeCardsArray[i][1]->setPixmap(onePix, FALSE); -// } -// -// QColor c(199,199,199); -// QPalette labelPalette = cashTopLabelArray[i]->palette(); -// labelPalette.setColor(QPalette::WindowText, c); -// cashTopLabelArray[i]->setPalette(labelPalette); -// cashTopLabelArray[i]->setAutoFillBackground(FALSE); -// } -// // else { -// // QColor c(0,0,0); -// // QPalette labelPalette = cashTopLabelArray[i]->palette(); -// // labelPalette.setColor(QPalette::WindowText, c); -// // cashTopLabelArray[i]->setPalette(labelPalette); -// // cashTopLabelArray[i]->setAutoFillBackground(FALSE); -// // } -// } -// -// } -// -// void mainWindowImpl::refreshCash() { -// -// int i; -// for (i=0; igetPlayerArray()[i]->getMyActiveStatus()) { -// -// if (i==0) { -// cashLabelArray[0]->setText(QString::number(actualHand->getPlayerArray()[i]->getMyCash(),10)+" $"); -// cashTopLabelArray[0]->setText("

Cash:

"); -// } -// else { -// cashLabelArray[i]->setText(QString::number(actualHand->getPlayerArray()[i]->getMyCash(),10)+" $"); -// cashTopLabelArray[i]->setText("

Cash:

"); -// } -// } else { -// cashLabelArray[i]->setText(""); -// cashTopLabelArray[i]->setText(""); -// } -// } -// -// } -// -// void mainWindowImpl::refreshGroupbox() { -// -// int i; -// for (i=0; isetEnabled(actualHand->getPlayerArray()[i]->getMyActiveStatus()); -// if (actualHand->getPlayerArray()[i]->getMyAction() == 1) groupBoxArray[i]->setDisabled(TRUE); -// -// if(actualHand->getPlayerArray()[i]->getMyTurn()) { -// //Groupbox aufhellen wenn der Spiele dran ist. -// QPalette tempPalette = groupBoxArray[i]->palette(); -// tempPalette.setColor(QPalette::Window, highlight); -// groupBoxArray[i]->setPalette(tempPalette); -// -// } else { -// //Groupbox auf Hintergrundfarbe setzen wenn der Spiele nicht dran aber aktiv ist. -// if(actualHand->getPlayerArray()[i]->getMyActiveStatus()) { -// QPalette tempPalette = groupBoxArray[i]->palette(); -// tempPalette.setColor(QPalette::Window, active); -// groupBoxArray[i]->setPalette(tempPalette); -// } -// //Groupbox verdunkeln wenn der Spiele inactive ist. -// else { -// QPalette tempPalette = groupBoxArray[i]->palette(); -// tempPalette.setColor(QPalette::Window, inactive); -// groupBoxArray[i]->setPalette(tempPalette); -// } -// } -// } -// -// userWidgetsBackgroudColor(); -// -// -// } -// -// void mainWindowImpl::highlightRoundLabel(string tempround) { -// -// QString round (QString::fromStdString(tempround)); -// -// // für PostRiverRun (alte Runden stehen lassen) -// if(round != "") { -// -// QPalette tempPalette = frame_handLabel->palette(); -// tempPalette.setColor(QPalette::Window, highlight); -// frame_handLabel->setPalette(tempPalette); -// -// textLabel_handLabel->setText(round); -// textLabel_handNumber->setText("Hand: "+QString::number(actualHand->getMyID(),10)); -// textLabel_gameNumber->setText("Game: "+QString::number(actualGame->getMyGameID(),10)); -// -// -// } -// -// } -// -// void mainWindowImpl::refreshAll() { -// -// refreshSet(); -// refreshButton(); -// refreshAction(); -// refreshCash(); -// refreshGroupbox(); -// -// } -// -// void mainWindowImpl::refreshChangePlayer() { -// -// refreshSet(); -// refreshButton(); -// refreshAction(); -// refreshCash(); -// -// } -// -// void mainWindowImpl::refreshPot() { -// -// textLabel_Sets->setText("

"+QString::number(actualHand->getBoard()->getSets(),10)+" $

"); -// textLabel_Pot->setText("

"+QString::number(actualHand->getBoard()->getPot(),10)+" $

"); -// -// } -// -// void mainWindowImpl::dealHoleCards() { -// -// QPixmap onePix(":/graphics/resources/graphics/1px.png"); -// -// //TempArrays -// QPixmap tempCardsPixmapArray[2]; -// int tempCardsIntArray[2]; -// -// // Karten der Gegner austeilen -// int i, j; -// for(i=1; igetPlayerArray()[i]->getMyCards(tempCardsIntArray); -// for(j=0; j<2; j++) { -// if(actualHand->getPlayerArray()[i]->getMyActiveStatus()) { -// if (debugMode) { -// tempCardsPixmapArray[j].load(":/cards/resources/graphics/cards/"+QString::number(tempCardsIntArray[j], 10)+".png"); -// holeCardsArray[i][j]->setPixmap(tempCardsPixmapArray[j],FALSE); -// -// } -// else holeCardsArray[i][j]->setPixmap(*flipside, TRUE); -// -// } -// else { -// -// holeCardsArray[i][j]->setPixmap(onePix, FALSE); -// // holeCardsArray[i][j]->repaint(); -// } -// -// } -// } -// -// // eigenen Karten austeilen -// -// actualHand->getPlayerArray()[0]->getMyCards(tempCardsIntArray); -// for(i=0; i<2; i++) { -// -// if(actualHand->getPlayerArray()[0]->getMyActiveStatus()) { -// -// tempCardsPixmapArray[i].load(":/cards/resources/graphics/cards/"+QString::number(tempCardsIntArray[i], 10)+".png"); -// holeCardsArray[0][i]->setPixmap(tempCardsPixmapArray[i], FALSE); -// -// } -// else { -// -// holeCardsArray[0][i]->setPixmap(onePix, FALSE); -// // holeCardsArray[i][j]->repaint(); -// } -// } -// -// //Groupbox repaint() hline-bug?; -// refreshGroupbox(); -// } -// -// void mainWindowImpl::dealFlopCards0() { dealFlopCards0Timer->start(preDealCardsSpeed); } -// -// void mainWindowImpl::dealFlopCards1() { -// -// boardCardsArray[0]->setPixmap(*flipside, TRUE); -// -// dealFlopCards1Timer->start(dealCardsSpeed); -// } -// -// void mainWindowImpl::dealFlopCards2() { -// -// boardCardsArray[1]->setPixmap(*flipside, TRUE); -// -// dealFlopCards2Timer->start(dealCardsSpeed); -// -// } -// -// void mainWindowImpl::dealFlopCards3() { -// -// -// boardCardsArray[2]->setPixmap(*flipside, TRUE); -// -// dealFlopCards3Timer->start(dealCardsSpeed); -// -// } -// -// void mainWindowImpl::dealFlopCards4() { -// -// int tempBoardCardsArray[5]; -// QPixmap tempCardsPixmap; -// actualHand->getBoard()->getMyCards(tempBoardCardsArray); -// tempCardsPixmap.load(":/cards/resources/graphics/cards/"+QString::number(tempBoardCardsArray[0], 10)+".png"); -// QPixmap card(tempCardsPixmap); -// -// //Config? mit oder ohne Eye-Candy? -// if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { -// //mit Eye-Candy -// boardCardsArray[0]->startFlipCards(guiGameSpeed, card, flipside); -// } -// else { -// //ohne Eye-Candy -// boardCardsArray[0]->setPixmap(card, FALSE); -// } -// dealFlopCards4Timer->start(dealCardsSpeed); -// } -// -// void mainWindowImpl::dealFlopCards5() { -// -// int tempBoardCardsArray[5]; -// QPixmap tempCardsPixmap; -// actualHand->getBoard()->getMyCards(tempBoardCardsArray); -// tempCardsPixmap.load(":/cards/resources/graphics/cards/"+QString::number(tempBoardCardsArray[1], 10)+".png"); -// QPixmap card(tempCardsPixmap); -// -// //Config? mit oder ohne Eye-Candy? -// if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { -// //mit Eye-Candy -// boardCardsArray[1]->startFlipCards(guiGameSpeed, card, flipside); -// } -// else { -// //ohne Eye-Candy -// boardCardsArray[1]->setPixmap(card, FALSE); -// } -// dealFlopCards5Timer->start(dealCardsSpeed); -// -// } -// -// void mainWindowImpl::dealFlopCards6() { -// -// int tempBoardCardsArray[5]; -// QPixmap tempCardsPixmap; -// actualHand->getBoard()->getMyCards(tempBoardCardsArray); -// tempCardsPixmap.load(":/cards/resources/graphics/cards/"+QString::number(tempBoardCardsArray[2], 10)+".png"); -// QPixmap card(tempCardsPixmap); -// -// //Config? mit oder ohne Eye-Candy? -// if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { -// //mit Eye-Candy -// boardCardsArray[2]->startFlipCards(guiGameSpeed, card, flipside); -// } -// else { -// //ohne Eye-Candy -// boardCardsArray[2]->setPixmap(card, FALSE); -// } -// -// myLog->logDealBoardCardsMsg(1, tempBoardCardsArray[0], tempBoardCardsArray[1], tempBoardCardsArray[2]); -// // stable -// // wenn alle All In -// if(actualHand->getAllInCondition()) { dealFlopCards6Timer->start(AllInDealCardsSpeed); } -// // sonst normale Variante -// else { dealFlopCards6Timer->start(postDealCardsSpeed);} -// -// } -// -// void mainWindowImpl::dealTurnCards0() { dealTurnCards0Timer->start(preDealCardsSpeed); } -// -// void mainWindowImpl::dealTurnCards1() { -// -// boardCardsArray[3]->setPixmap(*flipside, TRUE); -// dealTurnCards1Timer->start(dealCardsSpeed); -// -// } -// -// void mainWindowImpl::dealTurnCards2() { -// -// int tempBoardCardsArray[5]; -// QPixmap tempCardsPixmap; -// actualHand->getBoard()->getMyCards(tempBoardCardsArray); -// tempCardsPixmap.load(":/cards/resources/graphics/cards/"+QString::number(tempBoardCardsArray[3], 10)+".png"); -// QPixmap card(tempCardsPixmap); -// -// //Config? mit oder ohne Eye-Candy? -// if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { -// //mit Eye-Candy -// boardCardsArray[3]->startFlipCards(guiGameSpeed, card, flipside); -// } -// else { -// //ohne Eye-Candy -// boardCardsArray[3]->setPixmap(card, FALSE); -// } -// -// myLog->logDealBoardCardsMsg(2, tempBoardCardsArray[0], tempBoardCardsArray[1], tempBoardCardsArray[2], tempBoardCardsArray[3]); -// // stable -// // wenn alle All In -// if(actualHand->getAllInCondition()) { dealTurnCards2Timer->start(AllInDealCardsSpeed); -// } -// // sonst normale Variante -// else { dealTurnCards2Timer->start(postDealCardsSpeed); } -// } -// -// void mainWindowImpl::dealRiverCards0() { dealRiverCards0Timer->start(preDealCardsSpeed); } -// -// void mainWindowImpl::dealRiverCards1() { -// -// boardCardsArray[4]->setPixmap(*flipside, TRUE); -// // QTimer::singleShot(dealCardsSpeed, this, SLOT( dealRiverCards2() )); -// dealRiverCards1Timer->start(dealCardsSpeed); -// -// } -// -// void mainWindowImpl::dealRiverCards2() { -// -// int tempBoardCardsArray[5]; -// QPixmap tempCardsPixmap; -// actualHand->getBoard()->getMyCards(tempBoardCardsArray); -// tempCardsPixmap.load(":/cards/resources/graphics/cards/"+QString::number(tempBoardCardsArray[4], 10)+".png"); -// QPixmap card(tempCardsPixmap); -// -// //Config? mit oder ohne Eye-Candy? -// if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { -// //mit Eye-Candy -// boardCardsArray[4]->startFlipCards(guiGameSpeed, card, flipside); -// } -// else { -// //ohne Eye-Candy -// boardCardsArray[4]->setPixmap(card, FALSE); -// } -// -// myLog->logDealBoardCardsMsg(3, tempBoardCardsArray[0], tempBoardCardsArray[1], tempBoardCardsArray[2], tempBoardCardsArray[3], tempBoardCardsArray[4]); -// // stable -// // wenn alle All In -// if(actualHand->getAllInCondition()) { dealRiverCards2Timer->start(AllInDealCardsSpeed); } -// // sonst normale Variante -// else { -// dealRiverCards2Timer->start(postDealCardsSpeed); -// } -// -// -// } -// -// void mainWindowImpl::meInAction() { -// -// -// switch (actualHand->getActualRound()) { -// -// case 0: { -// if (actualHand->getPlayerArray()[0]->getMyCash()+actualHand->getPlayerArray()[0]->getMySet() > actualHand->getPreflop()->getHighestSet()) { pushButton_raise->setEnabled(TRUE); } -// -// if ( actualHand->getPlayerArray()[0]->getMySet()== actualHand->getPreflop()->getHighestSet() && actualHand->getPlayerArray()[0]->getMyButton() == 3) { pushButton_check->setEnabled(TRUE); } -// else { pushButton_call->setEnabled(TRUE); } -// pushButton_fold->setEnabled(TRUE); -// } -// break; -// case 1: { -// -// pushButton_fold->setEnabled(TRUE); -// -// // cout << "highestSet in meInAction " << actualHand->getFlop()->getHighestSet() << endl; -// if (actualHand->getFlop()->getHighestSet() == 0) { -// pushButton_check->setEnabled(TRUE); -// pushButton_bet->setEnabled(TRUE); -// } -// if (actualHand->getFlop()->getHighestSet() > 0 && actualHand->getFlop()->getHighestSet() > actualHand->getPlayerArray()[0]->getMySet()) { -// pushButton_call->setEnabled(TRUE); -// if (actualHand->getPlayerArray()[0]->getMyCash()+actualHand->getPlayerArray()[0]->getMySet() > actualHand->getPreflop()->getHighestSet()) { pushButton_raise->setEnabled(TRUE); } -// } -// -// -// -// } -// break; -// case 2: { -// -// pushButton_fold->setEnabled(TRUE); -// -// // cout << "highestSet in meInAction " << actualHand->getFlop()->getHighestSet() << endl; -// if (actualHand->getTurn()->getHighestSet() == 0) { -// pushButton_check->setEnabled(TRUE); -// pushButton_bet->setEnabled(TRUE); -// } -// if (actualHand->getTurn()->getHighestSet() > 0 && actualHand->getTurn()->getHighestSet() > actualHand->getPlayerArray()[0]->getMySet()) { -// pushButton_call->setEnabled(TRUE); -// if (actualHand->getPlayerArray()[0]->getMyCash()+actualHand->getPlayerArray()[0]->getMySet() > actualHand->getPreflop()->getHighestSet()) { pushButton_raise->setEnabled(TRUE); } -// } -// -// -// -// } -// break; -// case 3: { -// -// pushButton_fold->setEnabled(TRUE); -// -// // cout << "highestSet in meInAction " << actualHand->getFlop()->getHighestSet() << endl; -// if (actualHand->getRiver()->getHighestSet() == 0) { -// pushButton_check->setEnabled(TRUE); -// pushButton_bet->setEnabled(TRUE); -// } -// if (actualHand->getRiver()->getHighestSet() > 0 && actualHand->getRiver()->getHighestSet() > actualHand->getPlayerArray()[0]->getMySet()) { -// pushButton_call->setEnabled(TRUE); -// if (actualHand->getPlayerArray()[0]->getMyCash()+actualHand->getPlayerArray()[0]->getMySet() > actualHand->getPreflop()->getHighestSet()) { pushButton_raise->setEnabled(TRUE); } -// } -// -// -// -// } -// break; -// default: {} -// -// } -// -// //Hintergrundfarbe der userWidgets anpassen; -// userWidgetsBackgroudColor(); -// -// } -// -// void mainWindowImpl::disableMyButtons() { -// -// pushButton_raise->setDisabled(TRUE); -// pushButton_call->setDisabled(TRUE); -// pushButton_bet->setDisabled(TRUE); -// pushButton_set->setDisabled(TRUE); -// pushButton_fold->setDisabled(TRUE); -// pushButton_allin->setDisabled(TRUE); -// pushButton_check->setDisabled(TRUE); -// spinBox_set->setMinimum(0); -// spinBox_set->setValue(0); -// spinBox_set->setDisabled(TRUE); -// -// userWidgetsBackgroudColor(); -// } -// -// void mainWindowImpl::myFold(){ -// -// actualHand->getPlayerArray()[0]->setMyAction(1); -// actualHand->getPlayerArray()[0]->setMyTurn(0); -// -// //Action in LogWindow -// myLog->logPlayerActionMsg(actualHand->getPlayerArray()[0]->getMyName(), actualHand->getPlayerArray()[0]->getMyAction(), actualHand->getPlayerArray()[0]->getMySet()); -// -// disableMyButtons(); -// -// //Spiel läuft weiter -// nextPlayerAnimation(); -// } -// -// void mainWindowImpl::myCheck() { -// -// actualHand->getPlayerArray()[0]->setMyAction(2); -// actualHand->getPlayerArray()[0]->setMyTurn(0); -// -// //Action in LogWindow -// myLog->logPlayerActionMsg(actualHand->getPlayerArray()[0]->getMyName(), actualHand->getPlayerArray()[0]->getMyAction(), actualHand->getPlayerArray()[0]->getMySet()); -// -// disableMyButtons(); -// -// //Spiel läuft weiter -// nextPlayerAnimation(); -// } -// -// void mainWindowImpl::myCall(){ -// -// int tempHighestSet = 0; -// switch (actualHand->getActualRound()) { -// -// case 0: {tempHighestSet = actualHand->getPreflop()->getHighestSet();} -// break; -// case 1: {tempHighestSet = actualHand->getFlop()->getHighestSet();} -// break; -// case 2: {tempHighestSet = actualHand->getTurn()->getHighestSet();} -// break; -// case 3: {tempHighestSet = actualHand->getRiver()->getHighestSet();} -// break; -// default: {} -// } -// -// if (actualHand->getPlayerArray()[0]->getMyCash()+actualHand->getPlayerArray()[0]->getMySet() <= tempHighestSet) { -// -// actualHand->getPlayerArray()[0]->setMyAction(6); -// actualHand->getPlayerArray()[0]->setMySet(actualHand->getPlayerArray()[0]->getMyCash()); -// actualHand->getPlayerArray()[0]->setMyCash(0); -// } -// else { -// actualHand->getPlayerArray()[0]->setMySet(tempHighestSet - actualHand->getPlayerArray()[0]->getMySet()); -// actualHand->getPlayerArray()[0]->setMyAction(3); -// } -// actualHand->getPlayerArray()[0]->setMyTurn(0); -// -// actualHand->getBoard()->collectSets(); -// refreshPot(); -// -// //Action in LogWindow -// myLog->logPlayerActionMsg(actualHand->getPlayerArray()[0]->getMyName(), actualHand->getPlayerArray()[0]->getMyAction(), actualHand->getPlayerArray()[0]->getMySet()); -// -// disableMyButtons(); -// -// //Spiel läuft weiter -// nextPlayerAnimation(); -// } -// -// void mainWindowImpl::myBet(){ -// -// pushButton_bet->setDisabled(TRUE); -// -// pushButton_set->setEnabled(TRUE); -// pushButton_allin->setEnabled(TRUE); -// spinBox_set->setEnabled(TRUE); -// -// //Hintergrundfarbe anpassen; -// userWidgetsBackgroudColor(); -// -// -// if (actualHand->getActualRound() <= 2 ) { spinBox_set->setMinimum(actualHand->getSmallBlind()*2); } -// else { spinBox_set->setMinimum(actualHand->getSmallBlind()*4); } -// -// spinBox_set->setMaximum(actualHand->getPlayerArray()[0]->getMyCash()); -// spinBox_set->setValue(spinBox_set->minimum()); -// spinBox_set->setFocus(); -// spinBox_set->selectAll(); -// -// actualHand->getPlayerArray()[0]->setMyAction(4); -// -// } -// -// void mainWindowImpl::myRaise(){ -// -// pushButton_raise->setDisabled(TRUE); -// -// pushButton_set->setEnabled(TRUE); -// pushButton_allin->setEnabled(TRUE); -// spinBox_set->setEnabled(TRUE); -// -// //Hintergrundfarbe der userWidgets anpassen; -// userWidgetsBackgroudColor(); -// -// -// int tempHighestSet = 0; -// switch (actualHand->getActualRound()) { -// -// case 0: {tempHighestSet = actualHand->getPreflop()->getHighestSet();} -// break; -// case 1: {tempHighestSet = actualHand->getFlop()->getHighestSet();} -// break; -// case 2: {tempHighestSet = actualHand->getTurn()->getHighestSet();} -// break; -// case 3: {tempHighestSet = actualHand->getRiver()->getHighestSet();} -// break; -// default: {} -// } -// -// spinBox_set->setMinimum(tempHighestSet*2 - actualHand->getPlayerArray()[0]->getMySet()); -// spinBox_set->setMaximum(actualHand->getPlayerArray()[0]->getMyCash()); -// spinBox_set->setValue(spinBox_set->minimum()); -// spinBox_set->setFocus(); -// spinBox_set->selectAll(); -// -// actualHand->getPlayerArray()[0]->setMyAction(5); -// -// } -// -// void mainWindowImpl::mySet(){ -// -// int tempCash = actualHand->getPlayerArray()[0]->getMyCash(); -// -// // cout << "Set-Value " << spinBox_set->value() << endl; -// actualHand->getPlayerArray()[0]->setMySet(spinBox_set->value()); -// // cout << "MySET " << actualHand->getPlayerArray()[0]->getMySet() << endl; -// if (spinBox_set->value() >= tempCash ) { -// -// actualHand->getPlayerArray()[0]->setMyAction(6); -// actualHand->getPlayerArray()[0]->setMySet(actualHand->getPlayerArray()[0]->getMyCash()); -// actualHand->getPlayerArray()[0]->setMyCash(0); -// -// } -// -// switch (actualHand->getActualRound()) { -// -// case 0: {actualHand->getPreflop()->setHighestSet(actualHand->getPlayerArray()[0]->getMySet());} -// break; -// case 1: {actualHand->getFlop()->setHighestSet( actualHand->getPlayerArray()[0]->getMySet());} -// break; -// case 2: {actualHand->getTurn()->setHighestSet( actualHand->getPlayerArray()[0]->getMySet());} -// break; -// case 3: {actualHand->getRiver()->setHighestSet( actualHand->getPlayerArray()[0]->getMySet());} -// break; -// default: {} -// } -// -// -// actualHand->getPlayerArray()[0]->setMyTurn(0); -// -// actualHand->getBoard()->collectSets(); -// refreshPot(); -// -// //Action in LogWindow -// myLog->logPlayerActionMsg(actualHand->getPlayerArray()[0]->getMyName(), actualHand->getPlayerArray()[0]->getMyAction(), actualHand->getPlayerArray()[0]->getMySet()); -// -// disableMyButtons(); -// -// //Spiel läuft weiter -// nextPlayerAnimation(); -// } -// -// void mainWindowImpl::myAllIn(){ -// -// actualHand->getPlayerArray()[0]->setMyAction(6); -// actualHand->getPlayerArray()[0]->setMySet(actualHand->getPlayerArray()[0]->getMyCash()); -// actualHand->getPlayerArray()[0]->setMyCash(0); -// -// switch (actualHand->getActualRound()) { -// -// case 0: {if(actualHand->getPlayerArray()[0]->getMySet() > actualHand->getPreflop()->getHighestSet()) actualHand->getPreflop()->setHighestSet(actualHand->getPlayerArray()[0]->getMySet());} -// break; -// case 1: {if(actualHand->getPlayerArray()[0]->getMySet() > actualHand->getFlop()->getHighestSet()) actualHand->getFlop()->setHighestSet(actualHand->getPlayerArray()[0]->getMySet());} -// break; -// case 2: {if(actualHand->getPlayerArray()[0]->getMySet() > actualHand->getTurn()->getHighestSet()) actualHand->getTurn()->setHighestSet(actualHand->getPlayerArray()[0]->getMySet());} -// break; -// case 3: {if(actualHand->getPlayerArray()[0]->getMySet() > actualHand->getRiver()->getHighestSet()) actualHand->getRiver()->setHighestSet(actualHand->getPlayerArray()[0]->getMySet());} -// break; -// default: {} -// } -// -// actualHand->getPlayerArray()[0]->setMyTurn(0); -// -// actualHand->getBoard()->collectSets(); -// refreshPot(); -// -// //Action in LogWindow -// myLog->logPlayerActionMsg(actualHand->getPlayerArray()[0]->getMyName(), actualHand->getPlayerArray()[0]->getMyAction(), actualHand->getPlayerArray()[0]->getMySet()); -// -// disableMyButtons(); -// -// //Spiel läuft weiter -// nextPlayerAnimation(); -// } -// -// void mainWindowImpl::nextPlayerAnimation() { -// -// refreshChangePlayer(); -// nextPlayerAnimationTimer->start(nextPlayerSpeed1); -// } -// -// void mainWindowImpl::preflopAnimation1() { preflopAnimation1Timer->start(nextPlayerSpeed2); } -// void mainWindowImpl::preflopAnimation1Action() { actualHand->getPreflop()->preflopRun(); } -// -// void mainWindowImpl::preflopAnimation2() { preflopAnimation2Timer->start(preflopNextPlayerSpeed); } -// void mainWindowImpl::preflopAnimation2Action() { actualHand->getPreflop()->nextPlayer2(); } -// -// -// void mainWindowImpl::flopAnimation1() { flopAnimation1Timer->start(nextPlayerSpeed2); } -// void mainWindowImpl::flopAnimation1Action() { actualHand->getFlop()->flopRun(); } -// -// void mainWindowImpl::flopAnimation2() { flopAnimation2Timer->start(nextPlayerSpeed3); } -// void mainWindowImpl::flopAnimation2Action() { actualHand->getFlop()->nextPlayer2(); } -// -// -// void mainWindowImpl::turnAnimation1() { turnAnimation1Timer->start(nextPlayerSpeed2); } -// void mainWindowImpl::turnAnimation1Action() { actualHand->getTurn()->turnRun(); } -// -// void mainWindowImpl::turnAnimation2() { turnAnimation2Timer->start(nextPlayerSpeed3); } -// void mainWindowImpl::turnAnimation2Action() { actualHand->getTurn()->nextPlayer2(); } -// -// -// void mainWindowImpl::riverAnimation1() { riverAnimation1Timer->start(nextPlayerSpeed2); } -// void mainWindowImpl::riverAnimation1Action() { actualHand->getRiver()->riverRun(); } -// -// void mainWindowImpl::riverAnimation2() { riverAnimation2Timer->start(nextPlayerSpeed3); } -// void mainWindowImpl::riverAnimation2Action() { actualHand->getRiver()->nextPlayer2(); } -// -// -// void mainWindowImpl::postRiverAnimation1() { postRiverAnimation1Timer->start(nextPlayerSpeed2); } -// void mainWindowImpl::postRiverAnimation1Action() { actualHand->getRiver()->postRiverRun(); } -// -// -// void mainWindowImpl::postRiverRunAnimation1() { -// -// //RoundsLabel mit "River" dunkel machen -// QPalette tempPalette = frame_handLabel->palette(); -// tempPalette.setColor(QPalette::Window, active); -// frame_handLabel->setPalette(tempPalette); -// -// //PotLabel aufhellen! -// tempPalette = frame_Pot->palette(); -// tempPalette.setColor(QPalette::Window, highlight); -// frame_Pot->setPalette(tempPalette); -// -// -// -// postRiverRunAnimation1Timer->start(postRiverRunAnimationSpeed); -// -// } -// -// void mainWindowImpl::postRiverRunAnimation2() { -// -// int i; -// -// //Aktive Spieler zählen --> wenn nur noch einer nicht-folded dann keine Karten umdrehen -// int activePlayersCounter = 0; -// for (i=0; igetPlayerArray()[i]->getMyAction() != 1 && actualHand->getPlayerArray()[i]->getMyActiveStatus() == 1) activePlayersCounter++; -// } -// -// if(activePlayersCounter!=1) { -// -// if(!flipHolecardsAllInAlreadyDone) { -// -// //Config? mit oder ohne Eye-Candy? -// if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { -// // mit Eye-Candy -// -// //TempArrays -// int tempCardsIntArray[2]; -// -// int i, j; -// -// for(i=1; igetPlayerArray()[i]->getMyCards(tempCardsIntArray); -// if(actualHand->getPlayerArray()[i]->getMyActiveStatus() && actualHand->getPlayerArray()[i]->getMyAction() != 1) { -// if(i) { -// for(j=0; j<2; j++) { -// -// holeCardsArray[i][j]->startFlipCards(guiGameSpeed, QPixmap(":/cards/resources/graphics/cards/"+QString::number(tempCardsIntArray[j], 10)+".png"), flipside); -// } -// } -// //Karten umdrehen Loggen -// myLog->logFlipHoleCardsMsg(actualHand->getPlayerArray()[i]->getMyName(), tempCardsIntArray[0], tempCardsIntArray[1], actualHand->getPlayerArray()[i]->getMyCardsValueInt()); -// -// actualHand->getPlayerArray()[i]->setMyCardsFlip(1); -// } -// } -// } -// else { -// //Ohne Eye-Candy -// -// //Karten der aktiven Spieler umdrehen -// QPixmap onePix(":/graphics/cards/1px.png"); -// -// //TempArrays -// QPixmap tempCardsPixmapArray[2]; -// int tempCardsIntArray[2]; -// -// int i, j; -// for(i=1; igetPlayerArray()[i]->getMyCards(tempCardsIntArray); -// if(actualHand->getPlayerArray()[i]->getMyActiveStatus() && actualHand->getPlayerArray()[i]->getMyAction() != 1) { -// if(i) { -// for(j=0; j<2; j++) { -// tempCardsPixmapArray[j].load(":/cards/resources/graphics/cards/"+QString::number(tempCardsIntArray[j], 10)+".png"); -// holeCardsArray[i][j]->setPixmap(tempCardsPixmapArray[j], FALSE); -// -// } -// } -// //Karten umdrehen Loggen -// myLog->logFlipHoleCardsMsg(actualHand->getPlayerArray()[i]->getMyName(), tempCardsIntArray[0], tempCardsIntArray[1], actualHand->getPlayerArray()[i]->getMyCardsValueInt() ); -// -// actualHand->getPlayerArray()[i]->setMyCardsFlip(1); -// } -// } -// } -// -// //Wenn einmal umgedreht dann fertig!! -// flipHolecardsAllInAlreadyDone = TRUE; -// } -// postRiverRunAnimation2Timer->start(postRiverRunAnimationSpeed); -// } -// else { postRiverRunAnimation3(); } -// -// } -// -// void mainWindowImpl::postRiverRunAnimation3() { -// -// int i; -// -// // cout << "Neue Runde" << endl; -// -// //Alle Winner erhellen und "Winner" schreiben -// for(i=0; igetPlayerArray()[i]->getMyActiveStatus() && actualHand->getPlayerArray()[i]->getMyAction() != 1 && actualHand->getPlayerArray()[i]->getMyCardsValueInt() == actualHand->getRiver()->getHighestCardsValue() ) { -// -// QPalette tempPalette = groupBoxArray[i]->palette(); -// tempPalette.setColor(QPalette::Window, highlight); -// groupBoxArray[i]->setPalette(tempPalette); -// actionLabelArray[i]->setText("

- Winner -

"); -// -// //nicht gewonnene Karten ausblenden -// if ( actualHand->getActivePlayersCounter() != 1 && myConfig->readConfigInt("ShowFadeOutCardsAnimation")) { -// -// int j; -// -// //index 0 testen --> Karte darf nicht im MyBestHand Position Array drin sein, es darf nicht nur ein Spieler Aktiv sein, die Config fordert die Animation -// bool index0 = TRUE; -// for(j=0; j<=4; j++) { -// // cout << (actualHand->getPlayerArray()[i]->getMyBestHandPosition())[j] << endl; -// if ((actualHand->getPlayerArray()[i]->getMyBestHandPosition())[j] == 0 ) { index0 = FALSE; } -// } -// if (index0) { holeCardsArray[i][0]->startFadeOut(guiGameSpeed); /*cout << "Fade Out index0" << endl;*/} -// //index 1 testen -// bool index1 = TRUE; -// for(j=0; j<=4; j++) { -// if ((actualHand->getPlayerArray()[i]->getMyBestHandPosition())[j] == 1 ) { index1 = FALSE; } -// } -// if (index1) { holeCardsArray[i][1]->startFadeOut(guiGameSpeed); /*cout << "Fade Out index1" << endl;*/} -// //index 2 testen -// bool index2 = TRUE; -// for(j=0; j<=4; j++) { -// if ((actualHand->getPlayerArray()[i]->getMyBestHandPosition())[j] == 2 ) { index2 = FALSE; } -// } -// if (index2) { boardCardsArray[0]->startFadeOut(guiGameSpeed); /*cout << "Fade Out index2" << endl;*/} -// //index 3 testen -// bool index3 = TRUE; -// for(j=0; j<=4; j++) { -// if ((actualHand->getPlayerArray()[i]->getMyBestHandPosition())[j] == 3 ) { index3 = FALSE; } -// } -// if (index3) { boardCardsArray[1]->startFadeOut(guiGameSpeed); /*cout << "Fade Out index3" << endl;*/} -// //index 4 testen -// bool index4 = TRUE; -// for(j=0; j<=4; j++) { -// if ((actualHand->getPlayerArray()[i]->getMyBestHandPosition())[j] == 4 ) { index4 = FALSE; } -// } -// if (index4) { boardCardsArray[2]->startFadeOut(guiGameSpeed); /*cout << "Fade Out index4" << endl;*/} -// //index 5 testen -// bool index5 = TRUE; -// for(j=0; j<=4; j++) { -// if ((actualHand->getPlayerArray()[i]->getMyBestHandPosition())[j] == 5 ) { index5 = FALSE; } -// } -// if (index5) { boardCardsArray[3]->startFadeOut(guiGameSpeed); /*cout << "Fade Out index5" << endl;*/} -// //index 6 testen -// bool index6 = TRUE; -// for(j=0; j<=4; j++) { -// if ((actualHand->getPlayerArray()[i]->getMyBestHandPosition())[j] == 6 ) { index6 = FALSE; } -// } -// if (index6) { boardCardsArray[4]->startFadeOut(guiGameSpeed); /*cout << "Fade Out index6" << endl;*/} -// } -// -// //Pot-Verteilung Loggen -// //Pro Spieler den Cash aus dem Player und dem Label auslesen. Player_cash - Label_cash = Gewinnsumme -// bool toIntBool = TRUE; -// int pot = actualHand->getPlayerArray()[i]->getMyCash() - cashLabelArray[i]->text().remove(" $").toInt(&toIntBool,10) ; -// //Wenn River dann auch das Blatt loggen! -// // if (textLabel_handLabel->text() == "River") { -// myLog->logPlayerWinsMsg(i, pot); -// // } -// // else { -// // myLog->logPlayerWinsMsg(i, pot); -// // } -// // -// -// } -// else { -// -// if( actualHand->getActivePlayersCounter() != 1 && actualHand->getPlayerArray()[i]->getMyAction() != 1 && actualHand->getPlayerArray()[i]->getMyActiveStatus() && myConfig->readConfigInt("ShowFadeOutCardsAnimation") ) { -// -// //aufgedeckte Gegner auch ausblenden -// holeCardsArray[i][0]->startFadeOut(guiGameSpeed); -// holeCardsArray[i][1]->startFadeOut(guiGameSpeed); -// } -// -// -// -// } -// } -// -// -// //Hintergrundfarbe der userWidgets anpassen; -// userWidgetsBackgroudColor(); -// -// postRiverRunAnimation3Timer->start(postRiverRunAnimationSpeed/2); -// -// } -// -// void mainWindowImpl::postRiverRunAnimation4() { -// -// distributePotAnimCounter=0; -// potDistributeTimer->start(winnerBlinkSpeed); -// } -// -// void mainWindowImpl::postRiverRunAnimation5() { -// -// int i; -// -// //CashTopLabel und PotLabel blinken lassen -// if (distributePotAnimCounter<10) { -// -// if (distributePotAnimCounter==0 || distributePotAnimCounter==2 || distributePotAnimCounter==4 || distributePotAnimCounter==6 || distributePotAnimCounter==8) { -// -// QPalette labelPalette = label_Pot->palette(); -// labelPalette.setColor(QPalette::WindowText, highlight); -// label_Pot->setPalette(labelPalette); -// -// for(i=0; igetPlayerArray()[i]->getMyActiveStatus() && actualHand->getPlayerArray()[i]->getMyAction() != 1 && actualHand->getPlayerArray()[i]->getMyCardsValueInt() == actualHand->getRiver()->getHighestCardsValue() ) { -// -// cashTopLabelArray[i]->setAutoFillBackground(TRUE); -// QPalette labelPalette = cashTopLabelArray[i]->palette(); -// labelPalette.setColor(QPalette::WindowText, highlight); -// cashTopLabelArray[i]->setPalette(labelPalette); -// -// } -// } -// } -// else { -// -// QColor c(0,0,0); -// QPalette labelPalette = label_Pot->palette(); -// labelPalette.setColor(QPalette::WindowText, c); -// label_Pot->setPalette(labelPalette); -// -// for(i=0; igetPlayerArray()[i]->getMyActiveStatus() && actualHand->getPlayerArray()[i]->getMyAction() != 1 && actualHand->getPlayerArray()[i]->getMyCardsValueInt() == actualHand->getRiver()->getHighestCardsValue() ) { -// -// QPalette labelPalette = cashTopLabelArray[i]->palette(); -// labelPalette.setColor(QPalette::WindowText, c); -// cashTopLabelArray[i]->setPalette(labelPalette); -// cashTopLabelArray[i]->setAutoFillBackground(FALSE); -// } -// } -// } -// -// distributePotAnimCounter++; -// } -// else { -// potDistributeTimer->stop(); -// postRiverRunAnimation5Timer->start(gameSpeed); -// } -// -// } -// -// void mainWindowImpl::postRiverRunAnimation6() { -// -// -// int i; -// refreshCash(); -// refreshPot(); -// -// // wenn nur noch ein Spieler aktive "neues Spiel"-Dialog anzeigen -// int playersPositiveCashCounter = 0; -// for (i=0; igetStartQuantityPlayers(); i++) { -// -// if (actualHand->getPlayerArray()[i]->getMyCash() > 0) playersPositiveCashCounter++; -// } -// if (playersPositiveCashCounter==1) { -// -// callNewGameDialog(); -// //Bei Cancel nichts machen!!! -// return; -// } -// -// postRiverRunAnimation6Timer->start(newRoundSpeed); -// } -// -// void mainWindowImpl::flipHolecardsAllIn() { -// -// -// int i; -// -// if(!flipHolecardsAllInAlreadyDone) { -// //Aktive Spieler zählen --> wenn nur noch einer nicht-folded dann keine Karten umdrehen -// int activePlayersCounter = 0; -// for (i=0; igetPlayerArray()[i]->getMyAction() != 1 && actualHand->getPlayerArray()[i]->getMyActiveStatus() == 1) activePlayersCounter++; -// } -// -// if(activePlayersCounter!=1) { -// -// //Config? mit oder ohne Eye-Candy? -// if(myConfig->readConfigInt("ShowFlipCardsAnimation")) { -// // mit Eye-Candy -// -// //TempArrays -// int tempCardsIntArray[2]; -// -// int i, j; -// -// for(i=0; igetPlayerArray()[i]->getMyCards(tempCardsIntArray); -// if(actualHand->getPlayerArray()[i]->getMyActiveStatus() && actualHand->getPlayerArray()[i]->getMyAction() != 1) { -// if(i) { -// for(j=0; j<2; j++) { -// holeCardsArray[i][j]->startFlipCards(guiGameSpeed, QPixmap(":/cards/resources/graphics/cards/"+QString::number(tempCardsIntArray[j], 10)+".png"), flipside); -// } -// } -// //Karten umdrehen Loggen -// myLog->logFlipHoleCardsMsg(actualHand->getPlayerArray()[i]->getMyName(), tempCardsIntArray[0], tempCardsIntArray[1]); -// -// actualHand->getPlayerArray()[i]->setMyCardsFlip(1); -// -// } -// } -// } -// else { -// //Ohne Eye-Candy -// -// //Karten der aktiven Spieler umdrehen -// QPixmap onePix(":/graphics/cards/1px.png"); -// -// //TempArrays -// QPixmap tempCardsPixmapArray[2]; -// int temp2CardsIntArray[2]; -// -// int i, j; -// for(i=1; igetPlayerArray()[i]->getMyCards(temp2CardsIntArray); -// if(actualHand->getPlayerArray()[i]->getMyActiveStatus() && actualHand->getPlayerArray()[i]->getMyAction() != 1) { -// if(i) { -// for(j=0; j<2; j++) { -// -// tempCardsPixmapArray[j].load(":/cards/resources/graphics/cards/"+QString::number(temp2CardsIntArray[j], 10)+".png"); -// holeCardsArray[i][j]->setPixmap(tempCardsPixmapArray[j], FALSE); -// } -// } -// //Karten umdrehen Loggen -// myLog->logFlipHoleCardsMsg(actualHand->getPlayerArray()[i]->getMyName(), temp2CardsIntArray[0], temp2CardsIntArray[1] ); -// -// actualHand->getPlayerArray()[i]->setMyCardsFlip(1); -// } -// } -// } -// } -// } -// -// //Wenn einmal umgedreht dann fertig!! -// flipHolecardsAllInAlreadyDone = TRUE; -// } -// -// void mainWindowImpl::showMyCards() { -// -// //TempArrays -// int tempCardsIntArray[2]; -// -// actualHand->getPlayerArray()[0]->getMyCards(tempCardsIntArray); -// if( actualHand->getPlayerArray()[0]->getMyCardsFlip() == 0 && actualHand->getActualRound() == 4 && actualHand->getPlayerArray()[0]->getMyActiveStatus() && actualHand->getPlayerArray()[0]->getMyAction() != 1) { -// //Karten umdrehen Loggen -// myLog->logFlipHoleCardsMsg(actualHand->getPlayerArray()[0]->getMyName(), tempCardsIntArray[0], tempCardsIntArray[1], actualHand->getPlayerArray()[0]->getMyCardsValueInt() ); -// -// actualHand->getPlayerArray()[0]->setMyCardsFlip(1); -// } -// } -// -// -// void mainWindowImpl::startNewHand() { -// -// if( !breakAfterActualHand){ actualGame->startHand(); -// } -// else { -// pushButton_break->setDisabled(FALSE); -// pushButton_break->setText("Start"); -// breakAfterActualHand=FALSE; -// } -// -// -// } -// -// void mainWindowImpl::handSwitchRounds() { actualHand->switchRounds(); } -// -// void mainWindowImpl::nextRoundCleanGui() { -// -// int i,j; -// -// // GUI bereinigen - Bilder löschen, Animationen unterbrechen -// QPixmap onePix(":/graphics/cards/1px.png"); -// for (i=0; i<5; i++ ) { -// boardCardsArray[i]->setPixmap(onePix, FALSE); -// boardCardsArray[i]->setFadeOutAction(FALSE); -// -// } -// for (i=1; i<=4; i++ ) { -// for ( j=0; j<=1; j++ ) { holeCardsArray[i][j]->setFadeOutAction(FALSE);} -// } -// -// -// -// QColor c(0,0,0); -// for(i=0; ipalette(); -// labelPalette.setColor(QPalette::WindowText, c); -// cashTopLabelArray[i]->setPalette(labelPalette); -// } -// -// QPalette labelPalette = label_Pot->palette(); -// labelPalette.setColor(QPalette::WindowText, c); -// label_Pot->setPalette(labelPalette); -// -// disableMyButtons(); -// -// QPalette tempPalette = frame_Pot->palette(); -// tempPalette.setColor(QPalette::Window, active); -// frame_Pot->setPalette(tempPalette); -// -// textLabel_handLabel->setText(""); -// -// tempPalette = frame_handLabel->palette(); -// tempPalette.setColor(QPalette::Window, active); -// frame_handLabel->setPalette(tempPalette); -// -// refreshAll(); -// -// flipHolecardsAllInAlreadyDone = FALSE; -// -// //Wenn Pause zwischen den Hands in der Konfiguration steht den Stop Button drücken! -// if (myConfig->readConfigInt("PauseBetweenHands")) { pushButton_break->click(); } -// else { -// //FIX STRG+N Bug -// pushButton_break->setEnabled(TRUE); -// breakAfterActualHand=FALSE; -// } -// -// //Clear Statusbarmessage -// statusBar()->clearMessage(); -// } -// -// void mainWindowImpl::stopTimer() { -// -// dealFlopCards0Timer->stop(); -// dealFlopCards1Timer->stop(); -// dealFlopCards2Timer->stop(); -// dealFlopCards3Timer->stop(); -// dealFlopCards4Timer->stop(); -// dealFlopCards5Timer->stop(); -// dealFlopCards6Timer->stop(); -// dealTurnCards0Timer->stop(); -// dealTurnCards1Timer->stop(); -// dealTurnCards2Timer->stop(); -// dealRiverCards0Timer->stop(); -// dealRiverCards1Timer->stop(); -// dealRiverCards2Timer->stop(); -// -// nextPlayerAnimationTimer->stop(); -// preflopAnimation1Timer->stop(); -// preflopAnimation2Timer->stop(); -// flopAnimation1Timer->stop(); -// flopAnimation2Timer->stop(); -// turnAnimation1Timer->stop(); -// turnAnimation2Timer->stop(); -// riverAnimation1Timer->stop(); -// riverAnimation2Timer->stop(); -// -// postRiverAnimation1Timer->stop(); -// postRiverRunAnimation1Timer->stop(); -// postRiverRunAnimation2Timer->stop(); -// postRiverRunAnimation3Timer->stop(); -// postRiverRunAnimation5Timer->stop(); -// postRiverRunAnimation6Timer->stop(); -// potDistributeTimer->stop(); -// -// } -// -// void mainWindowImpl::userWidgetsBackgroudColor() { -// -// -// int i; -// for(i=0; i<=7; i++) { -// -// QPalette tempPalette = userWidgetsArray[i]->palette(); -// -// if (actualHand->getPlayerArray()[0]->getMyTurn() && userWidgetsArray[i]->isEnabled()) { -// //Farbe der Buttons wenn der Spieler dran ist. -// QColor tempColor(203,237,180); -// tempPalette.setColor(QPalette::Button, tempColor); -// } -// else { -// QColor tempColor = tempPalette.color(QPalette::Window); -// tempPalette.setColor(QPalette::Button, tempColor); -// -// } -// userWidgetsArray[i]->setPalette(tempPalette); -// } -// } -// -// void mainWindowImpl::setSpeeds() { -// -// gameSpeed = (11-guiGameSpeed)*10; -// dealCardsSpeed = (gameSpeed/2)*10; //milliseconds -// preDealCardsSpeed = dealCardsSpeed*2; //Zeit for Karten aufdecken auf dem Board (Flop, Turn, River) -// postDealCardsSpeed = dealCardsSpeed*2; //Zeit nach Karten aufdecken auf dem Board (Flop, Turn, River) -// AllInDealCardsSpeed = dealCardsSpeed*4; //Zeit nach Karten aufdecken auf dem Board (Flop, Turn, River) bei AllIn -// postRiverRunAnimationSpeed = gameSpeed*18; -// winnerBlinkSpeed = gameSpeed*3; //milliseconds -// newRoundSpeed = gameSpeed*35; -// nextPlayerSpeed1 = gameSpeed*10; // Zeit zwischen dem Setzen des Spielers und dem Verdunkeln -// nextPlayerSpeed2 = gameSpeed*4; // Zeit zwischen Verdunkeln des einen und aufhellen des anderen Spielers -// nextPlayerSpeed3 = gameSpeed*7; // Zeit bis zwischen Aufhellen und Aktion -// preflopNextPlayerSpeed = gameSpeed*10; // Zeit bis zwischen Aufhellen und Aktion im Preflop (etwas langsamer da nicht gerechnet wird. ) -// } -// -// void mainWindowImpl::breakButtonClicked() { -// -// if (pushButton_break->text() == "Stop") { -// pushButton_break->setDisabled(TRUE); -// breakAfterActualHand=TRUE; -// } -// else { -// pushButton_break->setText("Stop"); -// startNewHand(); -// } -// } -// -// void mainWindowImpl::paintStartSplash() { -// -// StartSplash *mySplash = new StartSplash(this); -// -// // mySplash->setMaximumSize(400,250); -// // mySplash->setMinimumSize(400,250); -// -// mySplash->setGeometry(this->pos().x()+237,this->pos().y()+210,400,250); -// // mySplash->setWindowFlags(Qt::SplashScreen); -// mySplash->show(); -// } -// -// void mainWindowImpl::keyPressEvent ( QKeyEvent * event ) { -// -// // cout << event->key() << endl; -// -// bool ctrlPressed = FALSE; -// -// if (event->key() == 16777220) { if(spinBox_set->hasFocus()) pushButton_set->click(); } //ENTER -// if (event->key() == 16777265) { switchLeftToolBox(); } //F2 -// if (event->key() == 16777266) { switchRightToolBox(); } //F3 -// if (event->key() == Qt::Key_F) { switchFullscreen(); } //f -// if (event->key() == Qt::Key_S) { showMyCards(); } //f -// if (event->key() == 16777249) { -// pushButton_break->click(); -// ctrlPressed = TRUE; -// // QTimer::SingleShot -// } //CTRL -// // if (event->key() == 65) { paintStartSplash(); -// -// -// // if (event->key() == 66) { label_logo->hide(); } -// -// } -// -// void mainWindowImpl::switchLeftToolBox() { -// -// if (groupBox_left_tools->isHidden()) { -// label_logoleft->hide(); -// groupBox_left_tools->show(); -// } -// else { -// groupBox_left_tools->hide(); -// label_logoleft->show(); -// } -// -// } -// -// void mainWindowImpl::switchRightToolBox() { -// -// if (groupBox_right_tools->isHidden()) { -// label_logoright->hide(); -// groupBox_right_tools->show(); -// } -// else { -// groupBox_right_tools->hide(); -// label_logoright->show(); -// } -// -// } -// -// void mainWindowImpl::switchFullscreen() { -// -// if (this->isFullScreen()) { -// this->showNormal(); -// } -// else { -// this->showFullScreen(); -// } -// -// } diff --git a/src/gui/qt/mainwindowv2/mainwindowimpl.h b/src/gui/qt/mainwindowv2/mainwindowimpl.h deleted file mode 100755 index d64aa9f1..00000000 --- a/src/gui/qt/mainwindowv2/mainwindowimpl.h +++ /dev/null @@ -1,295 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2006 by FThauer FHammer * - * f.thauer@web.de * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ -#ifndef MAINWINDOWIMPL_H -#define MAINWINDOWIMPL_H - -#include "ui_mainwindowv2.h" -#include -#include - -#include -#include - -#include "handinterface.h" - -class Game; -class Session; -class Log; -class ConfigFile; - -class BoardInterface; -// class HandInterface; -class PlayerInterface; -class MyCardsPixmapLabel; -class joinNetworkGameDialogImpl; -class connectToServerDialogImpl; -class createNetworkGameDialogImpl; -class startNetworkGameDialogImpl; - -class QColor; - - -class mainWindowImpl: public QMainWindow, public Ui::mainWindow { -Q_OBJECT - -public: - mainWindowImpl(QMainWindow *parent = 0 ); - - ~mainWindowImpl(); - - void setGame(Game*); - void setHand(HandInterface*); - void setSession(Session*); - void setLog(Log*); - - int getMaxQuantityPlayers() const { return maxQuantityPlayers; } - - void setActualHand(HandInterface* theValue) { actualHand = theValue;} - HandInterface* getActualHand() const { return actualHand;} - - - //refresh-Funktionen - void refreshSet(); - void refreshButton(); - void refreshPlayerName(); - void refreshAction(); - void refreshCash(); - void refreshGroupbox(); - void refreshAll(); - void refreshChangePlayer(); - void refreshPot(); - - // Karten-Funktionen - void dealHoleCards(); - - //Spieler-Funktionen - void meInAction(); - void disableMyButtons(); - - void highlightRoundLabel(std::string); - - void setSpeeds(); - -signals: - void SignalNetSuccess(int actionID); - void SignalNetError(int errorID, int osErrorID); - -public slots: - - void setGameSpeed(const int theValue) { guiGameSpeed = theValue; setSpeeds(); } // Achtung Faktor 10!!! - - void callNewGameDialog() ; - void callAboutPokerthDialog(); - void callSettingsDialog(); - void callCreateNetworkGameDialog(); - void callJoinNetworkGameDialog(); - - void myFold(); - void myCheck(); - void myCall(); - void myBet(); - void mySet(); - void myRaise(); - void myAllIn(); - - void dealFlopCards0(); - void dealFlopCards1(); - void dealFlopCards2(); - void dealFlopCards3(); - void dealFlopCards4(); - void dealFlopCards5(); - void dealFlopCards6(); - - void dealTurnCards0(); - void dealTurnCards1(); - void dealTurnCards2(); - - void dealRiverCards0(); - void dealRiverCards1(); - void dealRiverCards2(); - - void nextPlayerAnimation(); - - void preflopAnimation1(); - void preflopAnimation1Action(); - void preflopAnimation2(); - void preflopAnimation2Action(); - - void flopAnimation1(); - void flopAnimation1Action(); - void flopAnimation2(); - void flopAnimation2Action(); - - void turnAnimation1(); - void turnAnimation1Action(); - void turnAnimation2(); - void turnAnimation2Action(); - - void riverAnimation1(); - void riverAnimation1Action(); - void riverAnimation2(); - void riverAnimation2Action(); - - void postRiverAnimation1(); - void postRiverAnimation1Action(); - - void postRiverRunAnimation1(); - void postRiverRunAnimation2(); - void postRiverRunAnimation3(); - void postRiverRunAnimation4(); - void postRiverRunAnimation5(); - void postRiverRunAnimation6(); - - void flipHolecardsAllIn(); - void showMyCards(); - - void handSwitchRounds(); - - void startNewHand(); - - void stopTimer(); - - void nextRoundCleanGui(); - - void userWidgetsBackgroudColor(); - void breakButtonClicked(); - - void keyPressEvent ( QKeyEvent * event ); - void switchLeftToolBox(); - void switchRightToolBox(); - void switchFullscreen(); - - void paintStartSplash(); - - -private: - - Game *actualGame; - HandInterface *actualHand; - Session *mySession; - Log *myLog; - ConfigFile *myConfig; - - //Logo - QLabel *label_logoleft; - QLabel *label_logoright; - - //MyPixmapCardsLabel - MyCardsPixmapLabel *pixmapLabel_cardBoard0; - MyCardsPixmapLabel *pixmapLabel_cardBoard1; - MyCardsPixmapLabel *pixmapLabel_cardBoard2; - MyCardsPixmapLabel *pixmapLabel_cardBoard3; - MyCardsPixmapLabel *pixmapLabel_cardBoard4; - MyCardsPixmapLabel *pixmapLabel_card0a; - MyCardsPixmapLabel *pixmapLabel_card0b; - MyCardsPixmapLabel *pixmapLabel_card1a; - MyCardsPixmapLabel *pixmapLabel_card1b; - MyCardsPixmapLabel *pixmapLabel_card2a; - MyCardsPixmapLabel *pixmapLabel_card2b; - MyCardsPixmapLabel *pixmapLabel_card3a; - MyCardsPixmapLabel *pixmapLabel_card3b; - MyCardsPixmapLabel *pixmapLabel_card4a; - MyCardsPixmapLabel *pixmapLabel_card4b; - //Timer - QTimer *potDistributeTimer; - QTimer *timer; - QTimer *dealFlopCards0Timer; - QTimer *dealFlopCards1Timer; - QTimer *dealFlopCards2Timer; - QTimer *dealFlopCards3Timer; - QTimer *dealFlopCards4Timer; - QTimer *dealFlopCards5Timer; - QTimer *dealFlopCards6Timer; - QTimer *dealTurnCards0Timer; - QTimer *dealTurnCards1Timer; - QTimer *dealTurnCards2Timer; - QTimer *dealRiverCards0Timer; - QTimer *dealRiverCards1Timer; - QTimer *dealRiverCards2Timer; - - QTimer *nextPlayerAnimationTimer; - QTimer *preflopAnimation1Timer; - QTimer *preflopAnimation2Timer; - QTimer *flopAnimation1Timer; - QTimer *flopAnimation2Timer; - QTimer *turnAnimation1Timer; - QTimer *turnAnimation2Timer; - QTimer *riverAnimation1Timer; - QTimer *riverAnimation2Timer; - - QTimer *postRiverAnimation1Timer; - QTimer *postRiverRunAnimation1Timer; - QTimer *postRiverRunAnimation2Timer; - QTimer *postRiverRunAnimation3Timer; - QTimer *postRiverRunAnimation5Timer; - QTimer *postRiverRunAnimation6Timer; - - QWidget *userWidgetsArray[8]; - QLabel *buttonLabelArray[5]; - QLabel *cashLabelArray[5]; - QLabel *cashTopLabelArray[5]; - QLabel *setLabelArray[5]; - QLabel *actionLabelArray[5]; - QGroupBox *groupBoxArray[5]; - MyCardsPixmapLabel *boardCardsArray[5]; - MyCardsPixmapLabel *holeCardsArray[5][2]; - - QPixmap *flipside; - - //Dialoge - joinNetworkGameDialogImpl *myJoinNetworkGameDialog; - connectToServerDialogImpl *myConnectToServerDialog; - startNetworkGameDialogImpl *myStartNetworkGameDialog; - createNetworkGameDialogImpl *myCreateNetworkGameDialog; - - int maxQuantityPlayers; - - int distributePotAnimCounter; - - //Speed - int guiGameSpeed; - int gameSpeed; - int dealCardsSpeed; - int preDealCardsSpeed; - int postDealCardsSpeed; - int AllInDealCardsSpeed; - int postRiverRunAnimationSpeed; - int winnerBlinkSpeed; - int newRoundSpeed; - int nextPlayerSpeed1; - int nextPlayerSpeed2; - int nextPlayerSpeed3; - int preflopNextPlayerSpeed; - int nextOpponentSpeed; - - - bool debugMode; - bool breakAfterActualHand; - - bool flipHolecardsAllInAlreadyDone; - - QColor active; - QColor inactive; - QColor highlight; - -friend class GuiWrapper; -}; - -#endif diff --git a/src/gui/qt/mainwindowv2/mycardspixmaplabel.cpp b/src/gui/qt/mainwindowv2/mycardspixmaplabel.cpp deleted file mode 100644 index 2c682f65..00000000 --- a/src/gui/qt/mainwindowv2/mycardspixmaplabel.cpp +++ /dev/null @@ -1,179 +0,0 @@ -// -// C++ Implementation: mycardspixmaplabel -// -// Description: -// -// -// Author: FThauer FHammer , (C) 2007 -// -// Copyright: See COPYING file that comes with this distribution -// -// -#include "mycardspixmaplabel.h" - -// using namespace std; - -MyCardsPixmapLabel::MyCardsPixmapLabel(QFrame* parent) - : QLabel(parent) -{ - fadeOutAction = FALSE; - flipCardsAction1 = FALSE; - flipCardsAction2 = FALSE; - - - -// rotationIntervall = 0.03; - - isFlipside = FALSE; - - front = new QPixmap; - flipside = new QPixmap; - - fadeOutTimer = new QTimer; - connect(fadeOutTimer, SIGNAL(timeout()), this, SLOT(nextFadeOutFrame())); - flipCardsTimer = new QTimer; - connect(flipCardsTimer, SIGNAL(timeout()), this, SLOT(nextFlipCardsFrame())); -} - - -MyCardsPixmapLabel::~MyCardsPixmapLabel() -{ -} - -void MyCardsPixmapLabel::startFadeOut(int speed) { - - - frameOpacity = 0.0; - - if(speed <= 4) { opacityRaiseIntervall = 0.01; } - if(speed > 4 && speed <= 7) { opacityRaiseIntervall = 0.02; } - if(speed > 7 && speed <= 10) { opacityRaiseIntervall = 0.04; } - - if(speed != 11) { - fadeOutAction = TRUE; - frameOpacity = 0.0; - fadeOutTimer->start(40); - } - -} - - -void MyCardsPixmapLabel::nextFadeOutFrame() { - - if (frameOpacity < 0.65) { - frameOpacity += opacityRaiseIntervall; - update(); - } - else { - fadeOutTimer->stop(); - fadeOutAction = FALSE; - } - -} - -void MyCardsPixmapLabel::startFlipCards(int speed, QPixmap frontPix, QPixmap *flipsidePix) { - - QLabel::setPixmap(frontPix); - - frameFlipCardsAction1Size = 1.0; - frameFlipCardsAction2Size = 0.0; - - *front = frontPix; - flipside = flipsidePix; - - if(speed <= 4) { flipCardsScaleIntervall = 0.1; } - if(speed > 4 && speed <= 6) { flipCardsScaleIntervall = 0.20; } - if(speed > 6 && speed <= 8) { flipCardsScaleIntervall = 0.25; } - if(speed > 8 && speed <= 10) { flipCardsScaleIntervall = 0.5; } -// - - if(speed != 11) { - flipCardsAction1 = TRUE; - flipCardsTimer->start(40); - } - -} - -void MyCardsPixmapLabel::nextFlipCardsFrame() { - - if (frameFlipCardsAction1Size > 0.1 ) { - //erst flipside verkleinern - frameFlipCardsAction1Size -= flipCardsScaleIntervall; - update(); - } - else { - if(flipCardsAction1) { - flipCardsAction1 = FALSE; - flipCardsAction2 = TRUE; - } - else { - //dann front vergrößern - if (frameFlipCardsAction2Size < 0.9 ) { - - frameFlipCardsAction2Size += flipCardsScaleIntervall; - update(); - } - else { - flipCardsAction2 = FALSE; - flipCardsTimer->stop(); - } - - } - } -} - -void MyCardsPixmapLabel::setPixmap(const QPixmap &pic, const bool flipsideIs) { - - QLabel::setPixmap(pic); - isFlipside = flipsideIs; - -} - -void MyCardsPixmapLabel::paintEvent(QPaintEvent * event) { - - if (!(flipCardsAction1 || flipCardsAction2)) { - QLabel::paintEvent(event); - } - - if (fadeOutAction) { - - QPainter painter(this); -// painter.setPen(QColor(74,131,83)); - painter.setBrush(QColor(74,131,83)); -// painter.setBrush(palette().color(QPalette::Background)); - // painter.setBrush(QColor(0,0,0)); - - painter.setOpacity(frameOpacity); - // painter.drawRect(this->geometry()); - if(objectName()=="pixmapLabel_card0b" || objectName()=="pixmapLabel_card0a") - painter.drawRect(-1,-1,81,113); - else - painter.drawRect(-1,-1,58,81); - - } - - if (flipCardsAction1) { - QPainter painter2(this); - QPixmap tmpFlipside = flipside->scaled(width(), height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation); - QPointF center(tmpFlipside.width()/2.0, tmpFlipside.height()/2.0); - - painter2.translate(center); - painter2.scale(frameFlipCardsAction1Size ,1); - painter2.translate(-center); - painter2.drawPixmap(0,0, tmpFlipside); - } - - if (flipCardsAction2) { - QPainter painter3(this); - QPixmap tmpFront = front->scaled(width(), height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation); - QPointF center(tmpFront.width()/2.0, tmpFront.height()/2.0); - - painter3.translate(center); - painter3.scale(frameFlipCardsAction2Size ,1); - painter3.translate(-center); - - painter3.drawPixmap(0,0, tmpFront); - } - - -} diff --git a/src/gui/qt/mainwindowv2/mycardspixmaplabel.h b/src/gui/qt/mainwindowv2/mycardspixmaplabel.h deleted file mode 100644 index e83a952f..00000000 --- a/src/gui/qt/mainwindowv2/mycardspixmaplabel.h +++ /dev/null @@ -1,70 +0,0 @@ -// -// C++ Interface: mycardspixmaplabel -// -// Description: -// -// -// Author: FThauer FHammer , (C) 2007 -// -// Copyright: See COPYING file that comes with this distribution -// -// -#ifndef MYCARDSPIXMAPLABEL_H -#define MYCARDSPIXMAPLABEL_H - -#include -#include - -#include - -class MyCardsPixmapLabel : public QLabel -{ -Q_OBJECT -public: - MyCardsPixmapLabel(QFrame*); - - ~MyCardsPixmapLabel(); - - void setIsFlipside(bool theValue){ isFlipside = theValue;} - bool getIsFlipside() const{ return isFlipside;} - - void setFadeOutAction(bool theValue) { fadeOutAction = theValue; } - bool getFadeOutAction() const { return fadeOutAction;} - - void startFadeOut(int); - void startFlipCards(int, QPixmap, QPixmap*); - - void paintEvent(QPaintEvent * event); - - QPixmap *front; - QPixmap *flipside; - - -public slots: - - void setPixmap ( const QPixmap &, const bool ); - void nextFadeOutFrame(); - void nextFlipCardsFrame(); - - - -private: - - qreal frameOpacity; - qreal opacityRaiseIntervall; - - qreal flipCardsScaleIntervall; - qreal frameFlipCardsAction1Size; - qreal frameFlipCardsAction2Size; - - QTimer *fadeOutTimer; - QTimer *flipCardsTimer; - - - bool isFlipside; - bool fadeOutAction; - bool flipCardsAction1; - bool flipCardsAction2; -}; - -#endif diff --git a/src/gui/qt/mainwindowv2/startsplash/startsplash.cpp b/src/gui/qt/mainwindowv2/startsplash/startsplash.cpp deleted file mode 100644 index 530151f4..00000000 --- a/src/gui/qt/mainwindowv2/startsplash/startsplash.cpp +++ /dev/null @@ -1,258 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2006 by FThauer FHammer * - * f.thauer@web.de * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ -#include "startsplash.h" - -StartSplash::StartSplash(mainWindowImpl *parent) - : QSplashScreen(parent), myW(parent) -{ - QFontDatabase::addApplicationFont (":fonts/resources/fonts/c059013l.pfb"); - QFontDatabase::addApplicationFont (":fonts/resources/fonts/andybold.ttf"); - - frameNo = 52; - opacityCounter = 13; - opacity = 1.0; - - QTimer *timer = new QTimer; - connect(timer, SIGNAL(timeout()), this, SLOT(nextAnimationFrame())); - timer->start(40); -} - - -StartSplash::~StartSplash() -{ -} - -void StartSplash::nextAnimationFrame() { - - ++frameNo; - update(); - } - -void StartSplash::paintEvent(QPaintEvent * event) { - - QPainter painter(this); - -#ifdef _WIN32 - QFont welcomeFont; - welcomeFont.setFamily("Times New Roman"); - welcomeFont.setPixelSize(42); -#else - QFont welcomeFont; - welcomeFont.setFamily("Century Schoolbook L"); - welcomeFont.setPixelSize(35); -#endif - QFont haveFont; - haveFont.setFamily("Andy MT"); - haveFont.setPixelSize(36); - - QPixmap logo(":/graphics/resources/graphics/logo-140-100.png"); - - if(frameNo >= 52 && frameNo < 65) { - - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - } - - if(frameNo >= 65 && frameNo < 68) { - - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"W"); - - } - - if(frameNo >= 68 && frameNo < 71) { - - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"We"); - - } - - if(frameNo >= 71 && frameNo < 74) { - - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"Wel"); - - } - - if(frameNo >= 74 && frameNo < 77) { - - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"Welc"); - - } - - if(frameNo >= 77 && frameNo < 80) { - - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"Welco"); - - } - - if(frameNo >= 80 && frameNo < 83) { - - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"Welcom"); - - } - - if(frameNo >= 83 && frameNo < 92) { - - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"Welcome"); - - } - - if(frameNo >= 92 && frameNo < 95) { - - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"Welcome t"); - - } - - if(frameNo >= 95 && frameNo < 120 ) { - - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"Welcome to"); - - } - - if(frameNo >= 120 && frameNo < 132) { -// - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"Welcome to"); - - --opacityCounter; -// std::cout << opacity << " " << opacityCounter << "\n"; - opacity = 1.0/opacityCounter; -// std::cout << opacity << "\n"; - painter.setOpacity(opacity); - painter.drawPixmap(130,85,140,100,logo); - - } - - if(frameNo >= 132 && frameNo < 155) { -// - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"Welcome to"); - - painter.drawPixmap(130,85,140,100,logo); - - } - - if(frameNo >= 155 && frameNo < 195) { -// - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"Welcome to"); - - painter.drawPixmap(130,85,140,100,logo); - - painter.setFont(haveFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(3,190,390,40,4,"Have a lot of fun!"); - - } - - if(frameNo >= 195 && frameNo < 245) { -// - painter.setBrush(QColor(40,80,46)); - painter.drawRect(0,0,399,249); - - painter.setRenderHint(QPainter::Antialiasing, TRUE); - painter.setFont(welcomeFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(48,30,300,40,4,"Welcome to"); - - painter.drawPixmap(130,85,140,100,logo); - - painter.setFont(haveFont); - painter.setPen(QColor(255,255,255)); - painter.drawText(3,190,390,40,4,"Have a lot of fun! ;-)"); - - } - - if(frameNo >= 245) { - this->hide(); -// myW->label_logo->show(); - - } - -} - diff --git a/src/gui/qt/mainwindowv2/startsplash/startsplash.h b/src/gui/qt/mainwindowv2/startsplash/startsplash.h deleted file mode 100644 index a4ea5305..00000000 --- a/src/gui/qt/mainwindowv2/startsplash/startsplash.h +++ /dev/null @@ -1,46 +0,0 @@ -// -// C++ Interface: startsplash -// -// Description: -// -// -// Author: FThauer FHammer , (C) 2007 -// -// Copyright: See COPYING file that comes with this distribution -// -// -#ifndef STARTSPLASH_H -#define STARTSPLASH_H - -#include - -#include "mainwindowimpl.h" - -#include -#include - -class StartSplash : public QSplashScreen -{ -Q_OBJECT -public: - StartSplash(mainWindowImpl *); - - ~StartSplash(); - - int frameNo; - int opacityCounter; - qreal opacity; - - void paintEvent(QPaintEvent * event); - -public slots: - - void nextAnimationFrame(); - -private: - - mainWindowImpl *myW; - -}; - -#endif diff --git a/src/gui/qt/mainwindowv2/ui_mainwindowv2.h b/src/gui/qt/mainwindowv2/ui_mainwindowv2.h deleted file mode 100644 index def7b33b..00000000 --- a/src/gui/qt/mainwindowv2/ui_mainwindowv2.h +++ /dev/null @@ -1,2097 +0,0 @@ -/******************************************************************************** -** Form generated from reading ui file 'mainwindow.ui' -** -** Created: Wed Mar 14 01:42:49 2007 -** by: Qt User Interface Compiler version 4.2.2 -** -** WARNING! All changes made in this file will be lost when recompiling ui file! -********************************************************************************/ - -#ifndef UI_MAINWINDOW_H -#define UI_MAINWINDOW_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -class Ui_mainWindow -{ -public: - QAction *actionNewGame; - QAction *actionQuit; - QAction *actionAboutPokerth; - QAction *actionSettings; - QAction *actionCreate_network_Game; - QAction *actionJoin_network_Game; - QAction *actionFullScreen; - QWidget *centralwidget; - QGridLayout *gridLayout; - QHBoxLayout *hboxLayout; - QVBoxLayout *vboxLayout; - QSpacerItem *spacerItem; - QSpacerItem *spacerItem1; - QGroupBox *groupBox_left_tools; - QGridLayout *gridLayout1; - QTabWidget *tabWidget_2; - QWidget *tab_log_2; - QGridLayout *gridLayout2; - QLabel *label_3; - QSpacerItem *spacerItem2; - QGroupBox *groupBox0; - QGridLayout *gridLayout3; - QHBoxLayout *hboxLayout1; - QVBoxLayout *vboxLayout1; - QPushButton *pushButton_raise; - QPushButton *pushButton_bet; - QPushButton *pushButton_call; - QPushButton *pushButton_check; - QPushButton *pushButton_fold; - QFrame *frame5; - QGridLayout *gridLayout4; - QLabel *label_p0b; - QLabel *label_p0a; - QVBoxLayout *vboxLayout2; - QGridLayout *gridLayout5; - QPushButton *pushButton_set; - QPushButton *pushButton_allin; - QSpinBox *spinBox_set; - QFrame *frame_6; - QGridLayout *gridLayout6; - QLabel *textLabel_Cash0; - QLabel *textLabel_TopCash0; - QFrame *line9; - QHBoxLayout *hboxLayout2; - QFrame *frame57; - QGridLayout *gridLayout7; - QLabel *textLabel_Button0; - QFrame *frame_10; - QGridLayout *gridLayout8; - QLabel *textLabel_Status0; - QFrame *frame_Set0; - QGridLayout *gridLayout9; - QLabel *textLabel_Set0; - QSpacerItem *spacerItem3; - QVBoxLayout *vboxLayout3; - QSpacerItem *spacerItem4; - QSpacerItem *spacerItem5; - QGroupBox *groupBox_right_tools; - QGridLayout *gridLayout10; - QTabWidget *tabWidget; - QWidget *tab_log; - QGridLayout *gridLayout11; - QTextBrowser *textBrowser_Log; - QPushButton *pushButton_break; - QSlider *horizontalSlider_speed; - QHBoxLayout *hboxLayout3; - QLabel *label; - QLabel *label_2; - QSpacerItem *spacerItem6; - QHBoxLayout *hboxLayout4; - QGroupBox *groupBox1; - QGridLayout *gridLayout12; - QFrame *frame8_2_2_2_5; - QGridLayout *gridLayout13; - QLabel *label_p1a; - QLabel *label_p1b; - QFrame *frame_3; - QGridLayout *gridLayout14; - QLabel *textLabel_Cash1; - QLabel *textLabel_TopCash1; - QHBoxLayout *hboxLayout5; - QFrame *frame_7; - QGridLayout *gridLayout15; - QLabel *textLabel_Button1; - QFrame *frame_8; - QGridLayout *gridLayout16; - QLabel *textLabel_Status1; - QFrame *frame_Set1; - QGridLayout *gridLayout17; - QLabel *textLabel_Set1; - QFrame *line2_2_5; - QSpacerItem *spacerItem7; - QGroupBox *groupBox2; - QGridLayout *gridLayout18; - QFrame *frame8_2_2_2_4; - QGridLayout *gridLayout19; - QLabel *label_p2a; - QLabel *label_p2b; - QSpacerItem *spacerItem8; - QFrame *line2_2_4; - QHBoxLayout *hboxLayout6; - QFrame *frame_2; - QGridLayout *gridLayout20; - QLabel *textLabel_Button2; - QFrame *frame; - QGridLayout *gridLayout21; - QLabel *textLabel_Status2; - QFrame *frame_Set2; - QGridLayout *gridLayout22; - QLabel *textLabel_Set2; - QFrame *frame_9; - QGridLayout *gridLayout23; - QLabel *textLabel_TopCash2; - QLabel *textLabel_Cash2; - QGroupBox *groupBox3; - QGridLayout *gridLayout24; - QFrame *frame8_2_2_2_6; - QGridLayout *gridLayout25; - QLabel *label_p3a; - QLabel *label_p3b; - QFrame *line2_2_6; - QHBoxLayout *hboxLayout7; - QFrame *frame_13; - QGridLayout *gridLayout26; - QLabel *textLabel_Button3; - QFrame *frame_14; - QGridLayout *gridLayout27; - QLabel *textLabel_Status3; - QFrame *frame_Set3; - QGridLayout *gridLayout28; - QLabel *textLabel_Set3; - QSpacerItem *spacerItem9; - QFrame *frame_12; - QGridLayout *gridLayout29; - QLabel *textLabel_TopCash3; - QLabel *textLabel_Cash3; - QGroupBox *groupBox4; - QGridLayout *gridLayout30; - QFrame *frame8_2_2_2_7; - QGridLayout *gridLayout31; - QLabel *label_p4a; - QLabel *label_p4b; - QHBoxLayout *hboxLayout8; - QFrame *frame_16; - QGridLayout *gridLayout32; - QLabel *textLabel_Button4; - QFrame *frame_17; - QGridLayout *gridLayout33; - QLabel *textLabel_Status4; - QFrame *frame_Set4; - QGridLayout *gridLayout34; - QLabel *textLabel_Set4; - QFrame *line2_2_7; - QSpacerItem *spacerItem10; - QFrame *frame_15; - QGridLayout *gridLayout35; - QLabel *textLabel_TopCash4; - QLabel *textLabel_Cash4; - QHBoxLayout *hboxLayout9; - QSpacerItem *spacerItem11; - QGroupBox *groupBox_board; - QGridLayout *gridLayout36; - QFrame *frame_5; - QGridLayout *gridLayout37; - QLabel *label_bc3; - QLabel *label_bc2; - QLabel *label_bc4; - QLabel *label_bc1; - QLabel *label_bc5; - QFrame *frame_4; - QGridLayout *gridLayout38; - QFrame *frame_Pot; - QGridLayout *gridLayout39; - QLabel *label_Pot; - QLabel *textLabel_Pot; - QHBoxLayout *hboxLayout10; - QLabel *label_Sets; - QLabel *textLabel_Sets; - QGridLayout *gridLayout40; - QFrame *frame_11; - QGridLayout *gridLayout41; - QLabel *textLabel_handNumber; - QLabel *textLabel_gameNumber; - QFrame *frame_handLabel; - QGridLayout *gridLayout42; - QLabel *textLabel_handLabel; - QSpacerItem *spacerItem12; - QSpacerItem *spacerItem13; - QMenuBar *menubar; - QMenu *menuView; - QMenu *menuSpiel; - QStatusBar *statusbar; - - void setupUi(QMainWindow *mainWindow) - { - mainWindow->setObjectName(QString::fromUtf8("mainWindow")); - QSizePolicy sizePolicy(static_cast(0), static_cast(0)); - sizePolicy.setHorizontalStretch(0); - sizePolicy.setVerticalStretch(0); - sizePolicy.setHeightForWidth(mainWindow->sizePolicy().hasHeightForWidth()); - mainWindow->setSizePolicy(sizePolicy); - mainWindow->setMinimumSize(QSize(874, 670)); - QPalette palette; - QBrush brush(QColor(0, 0, 0, 255)); - brush.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::WindowText, brush); - QBrush brush1(QColor(221, 223, 228, 255)); - brush1.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::Button, brush1); - QBrush brush2(QColor(255, 255, 255, 255)); - brush2.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::Light, brush2); - QBrush brush3(QColor(255, 255, 255, 255)); - brush3.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::Midlight, brush3); - QBrush brush4(QColor(85, 85, 85, 255)); - brush4.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::Dark, brush4); - QBrush brush5(QColor(199, 199, 199, 255)); - brush5.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::Mid, brush5); - QBrush brush6(QColor(0, 0, 0, 255)); - brush6.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::Text, brush6); - QBrush brush7(QColor(255, 255, 255, 255)); - brush7.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::BrightText, brush7); - QBrush brush8(QColor(0, 0, 0, 255)); - brush8.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::ButtonText, brush8); - QBrush brush9(QColor(74, 131, 83, 255)); - brush9.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::Base, brush9); - QBrush brush10(QColor(74, 131, 83, 255)); - brush10.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::Window, brush10); - QBrush brush11(QColor(0, 0, 0, 255)); - brush11.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::Shadow, brush11); - QBrush brush12(QColor(103, 141, 178, 255)); - brush12.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::Highlight, brush12); - QBrush brush13(QColor(255, 255, 255, 255)); - brush13.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::HighlightedText, brush13); - QBrush brush14(QColor(0, 0, 238, 255)); - brush14.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::Link, brush14); - QBrush brush15(QColor(82, 24, 139, 255)); - brush15.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::LinkVisited, brush15); - QBrush brush16(QColor(232, 232, 232, 255)); - brush16.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Active, QPalette::AlternateBase, brush16); - QBrush brush17(QColor(0, 0, 0, 255)); - brush17.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::WindowText, brush17); - QBrush brush18(QColor(221, 223, 228, 255)); - brush18.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::Button, brush18); - QBrush brush19(QColor(255, 255, 255, 255)); - brush19.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::Light, brush19); - QBrush brush20(QColor(255, 255, 255, 255)); - brush20.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::Midlight, brush20); - QBrush brush21(QColor(85, 85, 85, 255)); - brush21.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::Dark, brush21); - QBrush brush22(QColor(199, 199, 199, 255)); - brush22.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::Mid, brush22); - QBrush brush23(QColor(0, 0, 0, 255)); - brush23.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::Text, brush23); - QBrush brush24(QColor(255, 255, 255, 255)); - brush24.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::BrightText, brush24); - QBrush brush25(QColor(0, 0, 0, 255)); - brush25.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::ButtonText, brush25); - QBrush brush26(QColor(74, 131, 83, 255)); - brush26.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::Base, brush26); - QBrush brush27(QColor(74, 131, 83, 255)); - brush27.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::Window, brush27); - QBrush brush28(QColor(0, 0, 0, 255)); - brush28.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::Shadow, brush28); - QBrush brush29(QColor(103, 141, 178, 255)); - brush29.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::Highlight, brush29); - QBrush brush30(QColor(255, 255, 255, 255)); - brush30.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush30); - QBrush brush31(QColor(0, 0, 238, 255)); - brush31.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::Link, brush31); - QBrush brush32(QColor(82, 24, 139, 255)); - brush32.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush32); - QBrush brush33(QColor(232, 232, 232, 255)); - brush33.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush33); - QBrush brush34(QColor(128, 128, 128, 255)); - brush34.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::WindowText, brush34); - QBrush brush35(QColor(221, 223, 228, 255)); - brush35.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::Button, brush35); - QBrush brush36(QColor(255, 255, 255, 255)); - brush36.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::Light, brush36); - QBrush brush37(QColor(255, 255, 255, 255)); - brush37.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::Midlight, brush37); - QBrush brush38(QColor(85, 85, 85, 255)); - brush38.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::Dark, brush38); - QBrush brush39(QColor(199, 199, 199, 255)); - brush39.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::Mid, brush39); - QBrush brush40(QColor(199, 199, 199, 255)); - brush40.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::Text, brush40); - QBrush brush41(QColor(255, 255, 255, 255)); - brush41.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::BrightText, brush41); - QBrush brush42(QColor(128, 128, 128, 255)); - brush42.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::ButtonText, brush42); - QBrush brush43(QColor(74, 131, 83, 255)); - brush43.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::Base, brush43); - QBrush brush44(QColor(74, 131, 83, 255)); - brush44.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::Window, brush44); - QBrush brush45(QColor(0, 0, 0, 255)); - brush45.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::Shadow, brush45); - QBrush brush46(QColor(86, 117, 148, 255)); - brush46.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::Highlight, brush46); - QBrush brush47(QColor(255, 255, 255, 255)); - brush47.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush47); - QBrush brush48(QColor(0, 0, 238, 255)); - brush48.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::Link, brush48); - QBrush brush49(QColor(82, 24, 139, 255)); - brush49.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush49); - QBrush brush50(QColor(232, 232, 232, 255)); - brush50.setStyle(Qt::SolidPattern); - palette.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush50); - mainWindow->setPalette(palette); - mainWindow->setFocusPolicy(Qt::ClickFocus); - mainWindow->setAutoFillBackground(true); - actionNewGame = new QAction(mainWindow); - actionNewGame->setObjectName(QString::fromUtf8("actionNewGame")); - actionQuit = new QAction(mainWindow); - actionQuit->setObjectName(QString::fromUtf8("actionQuit")); - actionAboutPokerth = new QAction(mainWindow); - actionAboutPokerth->setObjectName(QString::fromUtf8("actionAboutPokerth")); - actionSettings = new QAction(mainWindow); - actionSettings->setObjectName(QString::fromUtf8("actionSettings")); - actionCreate_network_Game = new QAction(mainWindow); - actionCreate_network_Game->setObjectName(QString::fromUtf8("actionCreate_network_Game")); - actionJoin_network_Game = new QAction(mainWindow); - actionJoin_network_Game->setObjectName(QString::fromUtf8("actionJoin_network_Game")); - actionFullScreen = new QAction(mainWindow); - actionFullScreen->setObjectName(QString::fromUtf8("actionFullScreen")); - centralwidget = new QWidget(mainWindow); - centralwidget->setObjectName(QString::fromUtf8("centralwidget")); - -/* - gridLayout = new QGridLayout(centralwidget); - gridLayout->setSpacing(6); - gridLayout->setMargin(9); - gridLayout->setObjectName(QString::fromUtf8("gridLayout")); - hboxLayout = new QHBoxLayout(); - hboxLayout->setSpacing(0); - hboxLayout->setMargin(0); - hboxLayout->setObjectName(QString::fromUtf8("hboxLayout")); - vboxLayout = new QVBoxLayout(); - vboxLayout->setSpacing(0); - vboxLayout->setMargin(0); - vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); - spacerItem = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding); - - vboxLayout->addItem(spacerItem); - - spacerItem1 = new QSpacerItem(211, 0, QSizePolicy::Fixed, QSizePolicy::Minimum); - - vboxLayout->addItem(spacerItem1); - - groupBox_left_tools = new QGroupBox(centralwidget); - groupBox_left_tools->setObjectName(QString::fromUtf8("groupBox_left_tools")); - groupBox_left_tools->setEnabled(false); - groupBox_left_tools->setMinimumSize(QSize(211, 190)); - groupBox_left_tools->setMaximumSize(QSize(211, 190)); - QPalette palette1; - QBrush brush51(QColor(255, 255, 255, 255)); - brush51.setStyle(Qt::SolidPattern); - palette1.setBrush(QPalette::Active, QPalette::Base, brush51); - QBrush brush52(QColor(86, 170, 86, 255)); - brush52.setStyle(Qt::SolidPattern); - palette1.setBrush(QPalette::Active, QPalette::Window, brush52); - QBrush brush53(QColor(255, 255, 255, 255)); - brush53.setStyle(Qt::SolidPattern); - palette1.setBrush(QPalette::Inactive, QPalette::Base, brush53); - QBrush brush54(QColor(86, 170, 86, 255)); - brush54.setStyle(Qt::SolidPattern); - palette1.setBrush(QPalette::Inactive, QPalette::Window, brush54); - QBrush brush55(QColor(86, 170, 86, 255)); - brush55.setStyle(Qt::SolidPattern); - palette1.setBrush(QPalette::Disabled, QPalette::Base, brush55); - QBrush brush56(QColor(86, 170, 86, 255)); - brush56.setStyle(Qt::SolidPattern); - palette1.setBrush(QPalette::Disabled, QPalette::Window, brush56); - groupBox_left_tools->setPalette(palette1); - groupBox_left_tools->setAutoFillBackground(true); - gridLayout1 = new QGridLayout(groupBox_left_tools); - gridLayout1->setSpacing(3); - gridLayout1->setMargin(6); - gridLayout1->setObjectName(QString::fromUtf8("gridLayout1")); - tabWidget_2 = new QTabWidget(groupBox_left_tools); - tabWidget_2->setObjectName(QString::fromUtf8("tabWidget_2")); - QPalette palette2; - QBrush brush57(QColor(255, 255, 255, 255)); - brush57.setStyle(Qt::SolidPattern); - palette2.setBrush(QPalette::Active, QPalette::Base, brush57); - QBrush brush58(QColor(86, 170, 86, 255)); - brush58.setStyle(Qt::SolidPattern); - palette2.setBrush(QPalette::Active, QPalette::Window, brush58); - QBrush brush59(QColor(255, 255, 255, 255)); - brush59.setStyle(Qt::SolidPattern); - palette2.setBrush(QPalette::Inactive, QPalette::Base, brush59); - QBrush brush60(QColor(86, 170, 86, 255)); - brush60.setStyle(Qt::SolidPattern); - palette2.setBrush(QPalette::Inactive, QPalette::Window, brush60); - QBrush brush61(QColor(86, 170, 86, 255)); - brush61.setStyle(Qt::SolidPattern); - palette2.setBrush(QPalette::Disabled, QPalette::Base, brush61); - QBrush brush62(QColor(86, 170, 86, 255)); - brush62.setStyle(Qt::SolidPattern); - palette2.setBrush(QPalette::Disabled, QPalette::Window, brush62); - tabWidget_2->setPalette(palette2); - tab_log_2 = new QWidget(); - tab_log_2->setObjectName(QString::fromUtf8("tab_log_2")); - gridLayout2 = new QGridLayout(tab_log_2); - gridLayout2->setSpacing(0); - gridLayout2->setMargin(5); - gridLayout2->setObjectName(QString::fromUtf8("gridLayout2")); - label_3 = new QLabel(tab_log_2); - label_3->setObjectName(QString::fromUtf8("label_3")); - label_3->setPixmap(QPixmap(QString::fromUtf8(":/graphics/resources/graphics/handRanking_release.png"))); - - gridLayout2->addWidget(label_3, 0, 0, 1, 1); - - tabWidget_2->addTab(tab_log_2, QApplication::translate("mainWindow", "Hands", 0, QApplication::UnicodeUTF8)); - - gridLayout1->addWidget(tabWidget_2, 0, 0, 1, 1); - - - vboxLayout->addWidget(groupBox_left_tools); - - - hboxLayout->addLayout(vboxLayout); - - spacerItem2 = new QSpacerItem(23, 40, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum); - - hboxLayout->addItem(spacerItem2); - - groupBox0 = new QGroupBox(centralwidget); - groupBox0->setObjectName(QString::fromUtf8("groupBox0")); - groupBox0->setEnabled(true); - groupBox0->setMinimumSize(QSize(382, 212)); - groupBox0->setMaximumSize(QSize(382, 212)); - QPalette palette3; - QBrush brush63(QColor(0, 0, 0, 255)); - brush63.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::WindowText, brush63); - QBrush brush64(QColor(221, 223, 228, 255)); - brush64.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::Button, brush64); - QBrush brush65(QColor(255, 255, 255, 255)); - brush65.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::Light, brush65); - QBrush brush66(QColor(255, 255, 255, 255)); - brush66.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::Midlight, brush66); - QBrush brush67(QColor(85, 85, 85, 255)); - brush67.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::Dark, brush67); - QBrush brush68(QColor(199, 199, 199, 255)); - brush68.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::Mid, brush68); - QBrush brush69(QColor(0, 0, 0, 255)); - brush69.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::Text, brush69); - QBrush brush70(QColor(255, 255, 255, 255)); - brush70.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::BrightText, brush70); - QBrush brush71(QColor(0, 0, 0, 255)); - brush71.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::ButtonText, brush71); - QBrush brush72(QColor(255, 255, 255, 255)); - brush72.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::Base, brush72); - QBrush brush73(QColor(86, 170, 86, 255)); - brush73.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::Window, brush73); - QBrush brush74(QColor(0, 0, 0, 255)); - brush74.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::Shadow, brush74); - QBrush brush75(QColor(103, 141, 178, 255)); - brush75.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::Highlight, brush75); - QBrush brush76(QColor(255, 255, 255, 255)); - brush76.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::HighlightedText, brush76); - QBrush brush77(QColor(0, 0, 238, 255)); - brush77.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::Link, brush77); - QBrush brush78(QColor(82, 24, 139, 255)); - brush78.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::LinkVisited, brush78); - QBrush brush79(QColor(232, 232, 232, 255)); - brush79.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Active, QPalette::AlternateBase, brush79); - QBrush brush80(QColor(0, 0, 0, 255)); - brush80.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::WindowText, brush80); - QBrush brush81(QColor(221, 223, 228, 255)); - brush81.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::Button, brush81); - QBrush brush82(QColor(255, 255, 255, 255)); - brush82.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::Light, brush82); - QBrush brush83(QColor(255, 255, 255, 255)); - brush83.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::Midlight, brush83); - QBrush brush84(QColor(85, 85, 85, 255)); - brush84.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::Dark, brush84); - QBrush brush85(QColor(199, 199, 199, 255)); - brush85.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::Mid, brush85); - QBrush brush86(QColor(0, 0, 0, 255)); - brush86.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::Text, brush86); - QBrush brush87(QColor(255, 255, 255, 255)); - brush87.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::BrightText, brush87); - QBrush brush88(QColor(0, 0, 0, 255)); - brush88.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::ButtonText, brush88); - QBrush brush89(QColor(255, 255, 255, 255)); - brush89.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::Base, brush89); - QBrush brush90(QColor(86, 170, 86, 255)); - brush90.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::Window, brush90); - QBrush brush91(QColor(0, 0, 0, 255)); - brush91.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::Shadow, brush91); - QBrush brush92(QColor(103, 141, 178, 255)); - brush92.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::Highlight, brush92); - QBrush brush93(QColor(255, 255, 255, 255)); - brush93.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush93); - QBrush brush94(QColor(0, 0, 238, 255)); - brush94.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::Link, brush94); - QBrush brush95(QColor(82, 24, 139, 255)); - brush95.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush95); - QBrush brush96(QColor(232, 232, 232, 255)); - brush96.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush96); - QBrush brush97(QColor(128, 128, 128, 255)); - brush97.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::WindowText, brush97); - QBrush brush98(QColor(221, 223, 228, 255)); - brush98.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::Button, brush98); - QBrush brush99(QColor(255, 255, 255, 255)); - brush99.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::Light, brush99); - QBrush brush100(QColor(255, 255, 255, 255)); - brush100.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::Midlight, brush100); - QBrush brush101(QColor(85, 85, 85, 255)); - brush101.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::Dark, brush101); - QBrush brush102(QColor(199, 199, 199, 255)); - brush102.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::Mid, brush102); - QBrush brush103(QColor(199, 199, 199, 255)); - brush103.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::Text, brush103); - QBrush brush104(QColor(255, 255, 255, 255)); - brush104.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::BrightText, brush104); - QBrush brush105(QColor(128, 128, 128, 255)); - brush105.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::ButtonText, brush105); - QBrush brush106(QColor(86, 170, 86, 255)); - brush106.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::Base, brush106); - QBrush brush107(QColor(86, 170, 86, 255)); - brush107.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::Window, brush107); - QBrush brush108(QColor(0, 0, 0, 255)); - brush108.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::Shadow, brush108); - QBrush brush109(QColor(86, 117, 148, 255)); - brush109.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::Highlight, brush109); - QBrush brush110(QColor(255, 255, 255, 255)); - brush110.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush110); - QBrush brush111(QColor(0, 0, 238, 255)); - brush111.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::Link, brush111); - QBrush brush112(QColor(82, 24, 139, 255)); - brush112.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush112); - QBrush brush113(QColor(232, 232, 232, 255)); - brush113.setStyle(Qt::SolidPattern); - palette3.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush113); - groupBox0->setPalette(palette3); - groupBox0->setAutoFillBackground(true); - gridLayout3 = new QGridLayout(groupBox0); - gridLayout3->setSpacing(6); - gridLayout3->setMargin(9); - gridLayout3->setObjectName(QString::fromUtf8("gridLayout3")); - hboxLayout1 = new QHBoxLayout(); - hboxLayout1->setSpacing(6); - hboxLayout1->setMargin(0); - hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1")); - vboxLayout1 = new QVBoxLayout(); - vboxLayout1->setSpacing(2); - vboxLayout1->setMargin(0); - vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1")); - pushButton_raise = new QPushButton(groupBox0); - pushButton_raise->setObjectName(QString::fromUtf8("pushButton_raise")); - pushButton_raise->setMaximumSize(QSize(55, 25)); - - vboxLayout1->addWidget(pushButton_raise); - - pushButton_bet = new QPushButton(groupBox0); - pushButton_bet->setObjectName(QString::fromUtf8("pushButton_bet")); - pushButton_bet->setMaximumSize(QSize(55, 25)); - - vboxLayout1->addWidget(pushButton_bet); - - pushButton_call = new QPushButton(groupBox0); - pushButton_call->setObjectName(QString::fromUtf8("pushButton_call")); - pushButton_call->setMaximumSize(QSize(55, 25)); - - vboxLayout1->addWidget(pushButton_call); - - pushButton_check = new QPushButton(groupBox0); - pushButton_check->setObjectName(QString::fromUtf8("pushButton_check")); - pushButton_check->setMaximumSize(QSize(55, 25)); - - vboxLayout1->addWidget(pushButton_check); - - pushButton_fold = new QPushButton(groupBox0); - pushButton_fold->setObjectName(QString::fromUtf8("pushButton_fold")); - pushButton_fold->setMaximumSize(QSize(55, 25)); - - vboxLayout1->addWidget(pushButton_fold); - - - hboxLayout1->addLayout(vboxLayout1); - - frame5 = new QFrame(groupBox0); - frame5->setObjectName(QString::fromUtf8("frame5")); - frame5->setMinimumSize(QSize(192, 142)); - frame5->setMaximumSize(QSize(192, 142)); - frame5->setFrameShape(QFrame::StyledPanel); - frame5->setFrameShadow(QFrame::Raised); - gridLayout4 = new QGridLayout(frame5); - gridLayout4->setSpacing(6); - gridLayout4->setMargin(9); - gridLayout4->setObjectName(QString::fromUtf8("gridLayout4")); - label_p0b = new QLabel(frame5); - label_p0b->setObjectName(QString::fromUtf8("label_p0b")); - - gridLayout4->addWidget(label_p0b, 0, 1, 1, 1); - - label_p0a = new QLabel(frame5); - label_p0a->setObjectName(QString::fromUtf8("label_p0a")); - - gridLayout4->addWidget(label_p0a, 0, 0, 1, 1); - - - hboxLayout1->addWidget(frame5); - - vboxLayout2 = new QVBoxLayout(); - vboxLayout2->setSpacing(6); - vboxLayout2->setMargin(0); - vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2")); - gridLayout5 = new QGridLayout(); - gridLayout5->setSpacing(3); - gridLayout5->setMargin(0); - gridLayout5->setObjectName(QString::fromUtf8("gridLayout5")); - pushButton_set = new QPushButton(groupBox0); - pushButton_set->setObjectName(QString::fromUtf8("pushButton_set")); - pushButton_set->setMaximumSize(QSize(34, 25)); - - gridLayout5->addWidget(pushButton_set, 0, 0, 1, 1); - - pushButton_allin = new QPushButton(groupBox0); - pushButton_allin->setObjectName(QString::fromUtf8("pushButton_allin")); - - gridLayout5->addWidget(pushButton_allin, 1, 0, 1, 2); - - spinBox_set = new QSpinBox(groupBox0); - spinBox_set->setObjectName(QString::fromUtf8("spinBox_set")); - spinBox_set->setMinimumSize(QSize(40, 0)); - - gridLayout5->addWidget(spinBox_set, 0, 1, 1, 1); - - - vboxLayout2->addLayout(gridLayout5); - - frame_6 = new QFrame(groupBox0); - frame_6->setObjectName(QString::fromUtf8("frame_6")); - frame_6->setMinimumSize(QSize(16, 76)); - frame_6->setMaximumSize(QSize(903343, 76)); - frame_6->setFrameShape(QFrame::StyledPanel); - frame_6->setFrameShadow(QFrame::Raised); - gridLayout6 = new QGridLayout(frame_6); - gridLayout6->setSpacing(0); - gridLayout6->setMargin(8); - gridLayout6->setObjectName(QString::fromUtf8("gridLayout6")); - textLabel_Cash0 = new QLabel(frame_6); - textLabel_Cash0->setObjectName(QString::fromUtf8("textLabel_Cash0")); - textLabel_Cash0->setAlignment(Qt::AlignCenter); - - gridLayout6->addWidget(textLabel_Cash0, 1, 0, 1, 1); - - textLabel_TopCash0 = new QLabel(frame_6); - textLabel_TopCash0->setObjectName(QString::fromUtf8("textLabel_TopCash0")); - - gridLayout6->addWidget(textLabel_TopCash0, 0, 0, 1, 1); - - - vboxLayout2->addWidget(frame_6); - - - hboxLayout1->addLayout(vboxLayout2); - - - gridLayout3->addLayout(hboxLayout1, 2, 0, 1, 1); - - line9 = new QFrame(groupBox0); - line9->setObjectName(QString::fromUtf8("line9")); - line9->setFrameShape(QFrame::HLine); - line9->setFrameShadow(QFrame::Sunken); - line9->setFrameShape(QFrame::HLine); - line9->setFrameShadow(QFrame::Sunken); - - gridLayout3->addWidget(line9, 1, 0, 1, 1); - - hboxLayout2 = new QHBoxLayout(); - hboxLayout2->setSpacing(6); - hboxLayout2->setMargin(0); - hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2")); - frame57 = new QFrame(groupBox0); - frame57->setObjectName(QString::fromUtf8("frame57")); - frame57->setMaximumSize(QSize(56, 29)); - frame57->setFrameShape(QFrame::StyledPanel); - frame57->setFrameShadow(QFrame::Raised); - gridLayout7 = new QGridLayout(frame57); - gridLayout7->setSpacing(0); - gridLayout7->setMargin(0); - gridLayout7->setObjectName(QString::fromUtf8("gridLayout7")); - textLabel_Button0 = new QLabel(frame57); - textLabel_Button0->setObjectName(QString::fromUtf8("textLabel_Button0")); - textLabel_Button0->setAlignment(Qt::AlignCenter); - - gridLayout7->addWidget(textLabel_Button0, 0, 0, 1, 1); - - - hboxLayout2->addWidget(frame57); - - frame_10 = new QFrame(groupBox0); - frame_10->setObjectName(QString::fromUtf8("frame_10")); - frame_10->setMaximumSize(QSize(16777215, 29)); - frame_10->setFrameShape(QFrame::StyledPanel); - frame_10->setFrameShadow(QFrame::Raised); - gridLayout8 = new QGridLayout(frame_10); - gridLayout8->setSpacing(0); - gridLayout8->setMargin(0); - gridLayout8->setObjectName(QString::fromUtf8("gridLayout8")); - textLabel_Status0 = new QLabel(frame_10); - textLabel_Status0->setObjectName(QString::fromUtf8("textLabel_Status0")); - textLabel_Status0->setAlignment(Qt::AlignCenter); - - gridLayout8->addWidget(textLabel_Status0, 0, 0, 1, 2); - - - hboxLayout2->addWidget(frame_10); - - frame_Set0 = new QFrame(groupBox0); - frame_Set0->setObjectName(QString::fromUtf8("frame_Set0")); - frame_Set0->setMaximumSize(QSize(16777215, 29)); - frame_Set0->setFrameShape(QFrame::StyledPanel); - frame_Set0->setFrameShadow(QFrame::Raised); - gridLayout9 = new QGridLayout(frame_Set0); - gridLayout9->setSpacing(0); - gridLayout9->setMargin(0); - gridLayout9->setObjectName(QString::fromUtf8("gridLayout9")); - textLabel_Set0 = new QLabel(frame_Set0); - textLabel_Set0->setObjectName(QString::fromUtf8("textLabel_Set0")); - textLabel_Set0->setAlignment(Qt::AlignCenter); - - gridLayout9->addWidget(textLabel_Set0, 0, 0, 1, 1); - - - hboxLayout2->addWidget(frame_Set0); - - - gridLayout3->addLayout(hboxLayout2, 0, 0, 1, 1); - - - hboxLayout->addWidget(groupBox0); - - spacerItem3 = new QSpacerItem(23, 40, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum); - - hboxLayout->addItem(spacerItem3); - - vboxLayout3 = new QVBoxLayout(); - vboxLayout3->setSpacing(0); - vboxLayout3->setMargin(0); - vboxLayout3->setObjectName(QString::fromUtf8("vboxLayout3")); - spacerItem4 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding); - - vboxLayout3->addItem(spacerItem4); - - spacerItem5 = new QSpacerItem(211, 0, QSizePolicy::Fixed, QSizePolicy::Minimum); - - vboxLayout3->addItem(spacerItem5); - - groupBox_right_tools = new QGroupBox(centralwidget); - groupBox_right_tools->setObjectName(QString::fromUtf8("groupBox_right_tools")); - groupBox_right_tools->setEnabled(false); - groupBox_right_tools->setMinimumSize(QSize(211, 190)); - groupBox_right_tools->setMaximumSize(QSize(211, 190)); - QPalette palette4; - QBrush brush114(QColor(255, 255, 255, 255)); - brush114.setStyle(Qt::SolidPattern); - palette4.setBrush(QPalette::Active, QPalette::Base, brush114); - QBrush brush115(QColor(86, 170, 86, 255)); - brush115.setStyle(Qt::SolidPattern); - palette4.setBrush(QPalette::Active, QPalette::Window, brush115); - QBrush brush116(QColor(255, 255, 255, 255)); - brush116.setStyle(Qt::SolidPattern); - palette4.setBrush(QPalette::Inactive, QPalette::Base, brush116); - QBrush brush117(QColor(86, 170, 86, 255)); - brush117.setStyle(Qt::SolidPattern); - palette4.setBrush(QPalette::Inactive, QPalette::Window, brush117); - QBrush brush118(QColor(86, 170, 86, 255)); - brush118.setStyle(Qt::SolidPattern); - palette4.setBrush(QPalette::Disabled, QPalette::Base, brush118); - QBrush brush119(QColor(86, 170, 86, 255)); - brush119.setStyle(Qt::SolidPattern); - palette4.setBrush(QPalette::Disabled, QPalette::Window, brush119); - groupBox_right_tools->setPalette(palette4); - groupBox_right_tools->setAutoFillBackground(true); - gridLayout10 = new QGridLayout(groupBox_right_tools); - gridLayout10->setSpacing(3); - gridLayout10->setMargin(6); - gridLayout10->setObjectName(QString::fromUtf8("gridLayout10")); - tabWidget = new QTabWidget(groupBox_right_tools); - tabWidget->setObjectName(QString::fromUtf8("tabWidget")); - QPalette palette5; - QBrush brush120(QColor(255, 255, 255, 255)); - brush120.setStyle(Qt::SolidPattern); - palette5.setBrush(QPalette::Active, QPalette::Base, brush120); - QBrush brush121(QColor(86, 170, 86, 255)); - brush121.setStyle(Qt::SolidPattern); - palette5.setBrush(QPalette::Active, QPalette::Window, brush121); - QBrush brush122(QColor(255, 255, 255, 255)); - brush122.setStyle(Qt::SolidPattern); - palette5.setBrush(QPalette::Inactive, QPalette::Base, brush122); - QBrush brush123(QColor(86, 170, 86, 255)); - brush123.setStyle(Qt::SolidPattern); - palette5.setBrush(QPalette::Inactive, QPalette::Window, brush123); - QBrush brush124(QColor(86, 170, 86, 255)); - brush124.setStyle(Qt::SolidPattern); - palette5.setBrush(QPalette::Disabled, QPalette::Base, brush124); - QBrush brush125(QColor(86, 170, 86, 255)); - brush125.setStyle(Qt::SolidPattern); - palette5.setBrush(QPalette::Disabled, QPalette::Window, brush125); - tabWidget->setPalette(palette5); - tab_log = new QWidget(); - tab_log->setObjectName(QString::fromUtf8("tab_log")); - gridLayout11 = new QGridLayout(tab_log); - gridLayout11->setSpacing(0); - gridLayout11->setMargin(5); - gridLayout11->setObjectName(QString::fromUtf8("gridLayout11")); - textBrowser_Log = new QTextBrowser(tab_log); - textBrowser_Log->setObjectName(QString::fromUtf8("textBrowser_Log")); - textBrowser_Log->setMinimumSize(QSize(181, 110)); - textBrowser_Log->setMaximumSize(QSize(181, 110)); - QPalette palette6; - QBrush brush126(QColor(203, 237, 180, 255)); - brush126.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Active, QPalette::Button, brush126); - QBrush brush127(QColor(203, 237, 180, 255)); - brush127.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Active, QPalette::Text, brush127); - QBrush brush128(QColor(36, 72, 36, 255)); - brush128.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Active, QPalette::Base, brush128); - QBrush brush129(QColor(203, 237, 180, 255)); - brush129.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Active, QPalette::Highlight, brush129); - QBrush brush130(QColor(203, 237, 180, 255)); - brush130.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Inactive, QPalette::Button, brush130); - QBrush brush131(QColor(203, 237, 180, 255)); - brush131.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Inactive, QPalette::Text, brush131); - QBrush brush132(QColor(36, 72, 36, 255)); - brush132.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Inactive, QPalette::Base, brush132); - QBrush brush133(QColor(203, 237, 180, 255)); - brush133.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Inactive, QPalette::Highlight, brush133); - QBrush brush134(QColor(203, 237, 180, 255)); - brush134.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Disabled, QPalette::Button, brush134); - QBrush brush135(QColor(199, 199, 199, 255)); - brush135.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Disabled, QPalette::Text, brush135); - QBrush brush136(QColor(86, 170, 86, 255)); - brush136.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Disabled, QPalette::Base, brush136); - QBrush brush137(QColor(86, 117, 148, 255)); - brush137.setStyle(Qt::SolidPattern); - palette6.setBrush(QPalette::Disabled, QPalette::Highlight, brush137); - textBrowser_Log->setPalette(palette6); - textBrowser_Log->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); - - gridLayout11->addWidget(textBrowser_Log, 0, 0, 1, 1); - - tabWidget->addTab(tab_log, QApplication::translate("mainWindow", "Log", 0, QApplication::UnicodeUTF8)); - - gridLayout10->addWidget(tabWidget, 0, 0, 1, 3); - - pushButton_break = new QPushButton(groupBox_right_tools); - pushButton_break->setObjectName(QString::fromUtf8("pushButton_break")); - pushButton_break->setMaximumSize(QSize(40, 20)); - QPalette palette7; - QBrush brush138(QColor(203, 237, 180, 255)); - brush138.setStyle(Qt::SolidPattern); - palette7.setBrush(QPalette::Active, QPalette::Button, brush138); - QBrush brush139(QColor(203, 237, 180, 255)); - brush139.setStyle(Qt::SolidPattern); - palette7.setBrush(QPalette::Inactive, QPalette::Button, brush139); - QBrush brush140(QColor(203, 237, 180, 255)); - brush140.setStyle(Qt::SolidPattern); - palette7.setBrush(QPalette::Disabled, QPalette::Button, brush140); - pushButton_break->setPalette(palette7); - pushButton_break->setCheckable(false); - - gridLayout10->addWidget(pushButton_break, 1, 2, 1, 1); - - horizontalSlider_speed = new QSlider(groupBox_right_tools); - horizontalSlider_speed->setObjectName(QString::fromUtf8("horizontalSlider_speed")); - QPalette palette8; - QBrush brush141(QColor(203, 237, 180, 255)); - brush141.setStyle(Qt::SolidPattern); - palette8.setBrush(QPalette::Active, QPalette::Button, brush141); - QBrush brush142(QColor(203, 237, 180, 255)); - brush142.setStyle(Qt::SolidPattern); - palette8.setBrush(QPalette::Inactive, QPalette::Button, brush142); - QBrush brush143(QColor(203, 237, 180, 255)); - brush143.setStyle(Qt::SolidPattern); - palette8.setBrush(QPalette::Disabled, QPalette::Button, brush143); - horizontalSlider_speed->setPalette(palette8); - horizontalSlider_speed->setMinimum(1); - horizontalSlider_speed->setMaximum(11); - horizontalSlider_speed->setSliderPosition(5); - horizontalSlider_speed->setOrientation(Qt::Horizontal); - - gridLayout10->addWidget(horizontalSlider_speed, 1, 1, 1, 1); - - hboxLayout3 = new QHBoxLayout(); - hboxLayout3->setSpacing(6); - hboxLayout3->setMargin(0); - hboxLayout3->setObjectName(QString::fromUtf8("hboxLayout3")); - label = new QLabel(groupBox_right_tools); - label->setObjectName(QString::fromUtf8("label")); - - hboxLayout3->addWidget(label); - - label_2 = new QLabel(groupBox_right_tools); - label_2->setObjectName(QString::fromUtf8("label_2")); - label_2->setMinimumSize(QSize(16, 0)); - - hboxLayout3->addWidget(label_2); - - - gridLayout10->addLayout(hboxLayout3, 1, 0, 1, 1); - - - vboxLayout3->addWidget(groupBox_right_tools); - - - hboxLayout->addLayout(vboxLayout3); - - - gridLayout->addLayout(hboxLayout, 4, 0, 1, 1); - - spacerItem6 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding); - - gridLayout->addItem(spacerItem6, 1, 0, 1, 1); - - hboxLayout4 = new QHBoxLayout(); - hboxLayout4->setSpacing(6); - hboxLayout4->setMargin(0); - hboxLayout4->setObjectName(QString::fromUtf8("hboxLayout4")); - groupBox1 = new QGroupBox(centralwidget); - groupBox1->setObjectName(QString::fromUtf8("groupBox1")); - groupBox1->setEnabled(false); - groupBox1->setMinimumSize(QSize(209, 162)); - groupBox1->setMaximumSize(QSize(209, 5555555)); - groupBox1->setAutoFillBackground(true); - gridLayout12 = new QGridLayout(groupBox1); - gridLayout12->setSpacing(6); - gridLayout12->setMargin(9); - gridLayout12->setObjectName(QString::fromUtf8("gridLayout12")); - frame8_2_2_2_5 = new QFrame(groupBox1); - frame8_2_2_2_5->setObjectName(QString::fromUtf8("frame8_2_2_2_5")); - frame8_2_2_2_5->setMinimumSize(QSize(127, 92)); - frame8_2_2_2_5->setMaximumSize(QSize(127, 92)); - frame8_2_2_2_5->setFrameShape(QFrame::StyledPanel); - frame8_2_2_2_5->setFrameShadow(QFrame::Raised); - gridLayout13 = new QGridLayout(frame8_2_2_2_5); - gridLayout13->setSpacing(3); - gridLayout13->setMargin(0); - gridLayout13->setObjectName(QString::fromUtf8("gridLayout13")); - label_p1a = new QLabel(frame8_2_2_2_5); - label_p1a->setObjectName(QString::fromUtf8("label_p1a")); - - gridLayout13->addWidget(label_p1a, 0, 0, 1, 1); - - label_p1b = new QLabel(frame8_2_2_2_5); - label_p1b->setObjectName(QString::fromUtf8("label_p1b")); - - gridLayout13->addWidget(label_p1b, 0, 1, 1, 1); - - - gridLayout12->addWidget(frame8_2_2_2_5, 0, 1, 2, 1); - - frame_3 = new QFrame(groupBox1); - frame_3->setObjectName(QString::fromUtf8("frame_3")); - frame_3->setMinimumSize(QSize(54, 60)); - frame_3->setMaximumSize(QSize(16777215, 60)); - frame_3->setFrameShape(QFrame::StyledPanel); - frame_3->setFrameShadow(QFrame::Raised); - gridLayout14 = new QGridLayout(frame_3); - gridLayout14->setSpacing(0); - gridLayout14->setMargin(3); - gridLayout14->setObjectName(QString::fromUtf8("gridLayout14")); - textLabel_Cash1 = new QLabel(frame_3); - textLabel_Cash1->setObjectName(QString::fromUtf8("textLabel_Cash1")); - textLabel_Cash1->setMinimumSize(QSize(35, 0)); - textLabel_Cash1->setAlignment(Qt::AlignCenter); - - gridLayout14->addWidget(textLabel_Cash1, 1, 0, 1, 1); - - textLabel_TopCash1 = new QLabel(frame_3); - textLabel_TopCash1->setObjectName(QString::fromUtf8("textLabel_TopCash1")); - textLabel_TopCash1->setMinimumSize(QSize(35, 0)); - - gridLayout14->addWidget(textLabel_TopCash1, 0, 0, 1, 1); - - - gridLayout12->addWidget(frame_3, 0, 0, 1, 1); - - hboxLayout5 = new QHBoxLayout(); - hboxLayout5->setSpacing(6); - hboxLayout5->setMargin(0); - hboxLayout5->setObjectName(QString::fromUtf8("hboxLayout5")); - frame_7 = new QFrame(groupBox1); - frame_7->setObjectName(QString::fromUtf8("frame_7")); - frame_7->setMinimumSize(QSize(16, 28)); - frame_7->setMaximumSize(QSize(28, 16777215)); - frame_7->setAutoFillBackground(false); - frame_7->setFrameShape(QFrame::StyledPanel); - frame_7->setFrameShadow(QFrame::Raised); - gridLayout15 = new QGridLayout(frame_7); - gridLayout15->setSpacing(0); - gridLayout15->setMargin(2); - gridLayout15->setObjectName(QString::fromUtf8("gridLayout15")); - textLabel_Button1 = new QLabel(frame_7); - textLabel_Button1->setObjectName(QString::fromUtf8("textLabel_Button1")); - textLabel_Button1->setMinimumSize(QSize(0, 20)); - textLabel_Button1->setMaximumSize(QSize(20, 16777215)); - textLabel_Button1->setAutoFillBackground(true); - - gridLayout15->addWidget(textLabel_Button1, 0, 0, 1, 1); - - - hboxLayout5->addWidget(frame_7); - - frame_8 = new QFrame(groupBox1); - frame_8->setObjectName(QString::fromUtf8("frame_8")); - frame_8->setMinimumSize(QSize(16, 28)); - frame_8->setFrameShape(QFrame::StyledPanel); - frame_8->setFrameShadow(QFrame::Raised); - gridLayout16 = new QGridLayout(frame_8); - gridLayout16->setSpacing(0); - gridLayout16->setMargin(2); - gridLayout16->setObjectName(QString::fromUtf8("gridLayout16")); - textLabel_Status1 = new QLabel(frame_8); - textLabel_Status1->setObjectName(QString::fromUtf8("textLabel_Status1")); - textLabel_Status1->setMinimumSize(QSize(0, 20)); - textLabel_Status1->setAlignment(Qt::AlignCenter); - - gridLayout16->addWidget(textLabel_Status1, 0, 0, 1, 1); - - - hboxLayout5->addWidget(frame_8); - - frame_Set1 = new QFrame(groupBox1); - frame_Set1->setObjectName(QString::fromUtf8("frame_Set1")); - frame_Set1->setMinimumSize(QSize(16, 28)); - frame_Set1->setAutoFillBackground(true); - frame_Set1->setFrameShape(QFrame::StyledPanel); - frame_Set1->setFrameShadow(QFrame::Raised); - gridLayout17 = new QGridLayout(frame_Set1); - gridLayout17->setSpacing(0); - gridLayout17->setMargin(2); - gridLayout17->setObjectName(QString::fromUtf8("gridLayout17")); - textLabel_Set1 = new QLabel(frame_Set1); - textLabel_Set1->setObjectName(QString::fromUtf8("textLabel_Set1")); - textLabel_Set1->setMinimumSize(QSize(0, 20)); - textLabel_Set1->setAlignment(Qt::AlignCenter); - - gridLayout17->addWidget(textLabel_Set1, 0, 0, 1, 1); - - - hboxLayout5->addWidget(frame_Set1); - - - gridLayout12->addLayout(hboxLayout5, 3, 0, 1, 2); - - line2_2_5 = new QFrame(groupBox1); - line2_2_5->setObjectName(QString::fromUtf8("line2_2_5")); - line2_2_5->setFrameShape(QFrame::HLine); - line2_2_5->setFrameShadow(QFrame::Sunken); - line2_2_5->setFrameShape(QFrame::HLine); - line2_2_5->setFrameShadow(QFrame::Sunken); - - gridLayout12->addWidget(line2_2_5, 2, 0, 1, 2); - - spacerItem7 = new QSpacerItem(46, 28, QSizePolicy::Minimum, QSizePolicy::Fixed); - - gridLayout12->addItem(spacerItem7, 1, 0, 1, 1); - - - hboxLayout4->addWidget(groupBox1); - - groupBox2 = new QGroupBox(centralwidget); - groupBox2->setObjectName(QString::fromUtf8("groupBox2")); - groupBox2->setEnabled(false); - groupBox2->setMinimumSize(QSize(209, 162)); - groupBox2->setMaximumSize(QSize(209, 5555555)); - groupBox2->setAutoFillBackground(true); - gridLayout18 = new QGridLayout(groupBox2); - gridLayout18->setSpacing(6); - gridLayout18->setMargin(9); - gridLayout18->setObjectName(QString::fromUtf8("gridLayout18")); - frame8_2_2_2_4 = new QFrame(groupBox2); - frame8_2_2_2_4->setObjectName(QString::fromUtf8("frame8_2_2_2_4")); - frame8_2_2_2_4->setMinimumSize(QSize(127, 92)); - frame8_2_2_2_4->setMaximumSize(QSize(127, 92)); - frame8_2_2_2_4->setFrameShape(QFrame::StyledPanel); - frame8_2_2_2_4->setFrameShadow(QFrame::Raised); - gridLayout19 = new QGridLayout(frame8_2_2_2_4); - gridLayout19->setSpacing(3); - gridLayout19->setMargin(0); - gridLayout19->setObjectName(QString::fromUtf8("gridLayout19")); - label_p2a = new QLabel(frame8_2_2_2_4); - label_p2a->setObjectName(QString::fromUtf8("label_p2a")); - - gridLayout19->addWidget(label_p2a, 0, 0, 1, 1); - - label_p2b = new QLabel(frame8_2_2_2_4); - label_p2b->setObjectName(QString::fromUtf8("label_p2b")); - - gridLayout19->addWidget(label_p2b, 0, 1, 1, 1); - - - gridLayout18->addWidget(frame8_2_2_2_4, 0, 1, 2, 1); - - spacerItem8 = new QSpacerItem(46, 28, QSizePolicy::Minimum, QSizePolicy::Fixed); - - gridLayout18->addItem(spacerItem8, 1, 0, 1, 1); - - line2_2_4 = new QFrame(groupBox2); - line2_2_4->setObjectName(QString::fromUtf8("line2_2_4")); - line2_2_4->setFrameShape(QFrame::HLine); - line2_2_4->setFrameShadow(QFrame::Sunken); - line2_2_4->setFrameShape(QFrame::HLine); - line2_2_4->setFrameShadow(QFrame::Sunken); - - gridLayout18->addWidget(line2_2_4, 2, 0, 1, 2); - - hboxLayout6 = new QHBoxLayout(); - hboxLayout6->setSpacing(6); - hboxLayout6->setMargin(0); - hboxLayout6->setObjectName(QString::fromUtf8("hboxLayout6")); - frame_2 = new QFrame(groupBox2); - frame_2->setObjectName(QString::fromUtf8("frame_2")); - frame_2->setMinimumSize(QSize(16, 28)); - frame_2->setMaximumSize(QSize(28, 16777215)); - frame_2->setFrameShape(QFrame::StyledPanel); - frame_2->setFrameShadow(QFrame::Raised); - gridLayout20 = new QGridLayout(frame_2); - gridLayout20->setSpacing(0); - gridLayout20->setMargin(2); - gridLayout20->setObjectName(QString::fromUtf8("gridLayout20")); - textLabel_Button2 = new QLabel(frame_2); - textLabel_Button2->setObjectName(QString::fromUtf8("textLabel_Button2")); - textLabel_Button2->setMinimumSize(QSize(0, 20)); - textLabel_Button2->setMaximumSize(QSize(20, 16777215)); - - gridLayout20->addWidget(textLabel_Button2, 0, 0, 1, 1); - - - hboxLayout6->addWidget(frame_2); - - frame = new QFrame(groupBox2); - frame->setObjectName(QString::fromUtf8("frame")); - frame->setMinimumSize(QSize(16, 28)); - frame->setFrameShape(QFrame::StyledPanel); - frame->setFrameShadow(QFrame::Raised); - gridLayout21 = new QGridLayout(frame); - gridLayout21->setSpacing(0); - gridLayout21->setMargin(2); - gridLayout21->setObjectName(QString::fromUtf8("gridLayout21")); - textLabel_Status2 = new QLabel(frame); - textLabel_Status2->setObjectName(QString::fromUtf8("textLabel_Status2")); - textLabel_Status2->setMinimumSize(QSize(0, 20)); - textLabel_Status2->setAlignment(Qt::AlignCenter); - - gridLayout21->addWidget(textLabel_Status2, 0, 0, 1, 1); - - - hboxLayout6->addWidget(frame); - - frame_Set2 = new QFrame(groupBox2); - frame_Set2->setObjectName(QString::fromUtf8("frame_Set2")); - frame_Set2->setMinimumSize(QSize(16, 28)); - frame_Set2->setAutoFillBackground(true); - frame_Set2->setFrameShape(QFrame::StyledPanel); - frame_Set2->setFrameShadow(QFrame::Raised); - gridLayout22 = new QGridLayout(frame_Set2); - gridLayout22->setSpacing(0); - gridLayout22->setMargin(2); - gridLayout22->setObjectName(QString::fromUtf8("gridLayout22")); - textLabel_Set2 = new QLabel(frame_Set2); - textLabel_Set2->setObjectName(QString::fromUtf8("textLabel_Set2")); - textLabel_Set2->setMinimumSize(QSize(0, 20)); - textLabel_Set2->setAlignment(Qt::AlignCenter); - - gridLayout22->addWidget(textLabel_Set2, 0, 0, 1, 1); - - - hboxLayout6->addWidget(frame_Set2); - - - gridLayout18->addLayout(hboxLayout6, 3, 0, 1, 2); - - frame_9 = new QFrame(groupBox2); - frame_9->setObjectName(QString::fromUtf8("frame_9")); - frame_9->setMinimumSize(QSize(54, 60)); - frame_9->setMaximumSize(QSize(16777215, 60)); - frame_9->setFrameShape(QFrame::StyledPanel); - frame_9->setFrameShadow(QFrame::Raised); - gridLayout23 = new QGridLayout(frame_9); - gridLayout23->setSpacing(0); - gridLayout23->setMargin(3); - gridLayout23->setObjectName(QString::fromUtf8("gridLayout23")); - textLabel_TopCash2 = new QLabel(frame_9); - textLabel_TopCash2->setObjectName(QString::fromUtf8("textLabel_TopCash2")); - textLabel_TopCash2->setMinimumSize(QSize(35, 0)); - - gridLayout23->addWidget(textLabel_TopCash2, 0, 0, 1, 1); - - textLabel_Cash2 = new QLabel(frame_9); - textLabel_Cash2->setObjectName(QString::fromUtf8("textLabel_Cash2")); - textLabel_Cash2->setMinimumSize(QSize(35, 0)); - textLabel_Cash2->setAlignment(Qt::AlignCenter); - - gridLayout23->addWidget(textLabel_Cash2, 1, 0, 1, 1); - - - gridLayout18->addWidget(frame_9, 0, 0, 1, 1); - - - hboxLayout4->addWidget(groupBox2); - - groupBox3 = new QGroupBox(centralwidget); - groupBox3->setObjectName(QString::fromUtf8("groupBox3")); - groupBox3->setEnabled(false); - groupBox3->setMinimumSize(QSize(209, 162)); - groupBox3->setMaximumSize(QSize(209, 5555555)); - groupBox3->setAutoFillBackground(true); - gridLayout24 = new QGridLayout(groupBox3); - gridLayout24->setSpacing(6); - gridLayout24->setMargin(9); - gridLayout24->setObjectName(QString::fromUtf8("gridLayout24")); - frame8_2_2_2_6 = new QFrame(groupBox3); - frame8_2_2_2_6->setObjectName(QString::fromUtf8("frame8_2_2_2_6")); - frame8_2_2_2_6->setMinimumSize(QSize(127, 92)); - frame8_2_2_2_6->setMaximumSize(QSize(127, 92)); - frame8_2_2_2_6->setFrameShape(QFrame::StyledPanel); - frame8_2_2_2_6->setFrameShadow(QFrame::Raised); - gridLayout25 = new QGridLayout(frame8_2_2_2_6); - gridLayout25->setSpacing(3); - gridLayout25->setMargin(0); - gridLayout25->setObjectName(QString::fromUtf8("gridLayout25")); - label_p3a = new QLabel(frame8_2_2_2_6); - label_p3a->setObjectName(QString::fromUtf8("label_p3a")); - - gridLayout25->addWidget(label_p3a, 0, 0, 1, 1); - - label_p3b = new QLabel(frame8_2_2_2_6); - label_p3b->setObjectName(QString::fromUtf8("label_p3b")); - - gridLayout25->addWidget(label_p3b, 0, 1, 1, 1); - - - gridLayout24->addWidget(frame8_2_2_2_6, 0, 1, 2, 1); - - line2_2_6 = new QFrame(groupBox3); - line2_2_6->setObjectName(QString::fromUtf8("line2_2_6")); - line2_2_6->setFrameShape(QFrame::HLine); - line2_2_6->setFrameShadow(QFrame::Sunken); - line2_2_6->setFrameShape(QFrame::HLine); - line2_2_6->setFrameShadow(QFrame::Sunken); - - gridLayout24->addWidget(line2_2_6, 2, 0, 1, 2); - - hboxLayout7 = new QHBoxLayout(); - hboxLayout7->setSpacing(6); - hboxLayout7->setMargin(0); - hboxLayout7->setObjectName(QString::fromUtf8("hboxLayout7")); - frame_13 = new QFrame(groupBox3); - frame_13->setObjectName(QString::fromUtf8("frame_13")); - frame_13->setMinimumSize(QSize(16, 28)); - frame_13->setMaximumSize(QSize(28, 16777215)); - frame_13->setFrameShape(QFrame::StyledPanel); - frame_13->setFrameShadow(QFrame::Raised); - gridLayout26 = new QGridLayout(frame_13); - gridLayout26->setSpacing(0); - gridLayout26->setMargin(2); - gridLayout26->setObjectName(QString::fromUtf8("gridLayout26")); - textLabel_Button3 = new QLabel(frame_13); - textLabel_Button3->setObjectName(QString::fromUtf8("textLabel_Button3")); - textLabel_Button3->setMinimumSize(QSize(0, 20)); - textLabel_Button3->setMaximumSize(QSize(20, 16777215)); - - gridLayout26->addWidget(textLabel_Button3, 0, 0, 1, 1); - - - hboxLayout7->addWidget(frame_13); - - frame_14 = new QFrame(groupBox3); - frame_14->setObjectName(QString::fromUtf8("frame_14")); - frame_14->setMinimumSize(QSize(16, 28)); - frame_14->setFrameShape(QFrame::StyledPanel); - frame_14->setFrameShadow(QFrame::Raised); - gridLayout27 = new QGridLayout(frame_14); - gridLayout27->setSpacing(0); - gridLayout27->setMargin(2); - gridLayout27->setObjectName(QString::fromUtf8("gridLayout27")); - textLabel_Status3 = new QLabel(frame_14); - textLabel_Status3->setObjectName(QString::fromUtf8("textLabel_Status3")); - textLabel_Status3->setMinimumSize(QSize(0, 20)); - textLabel_Status3->setAlignment(Qt::AlignCenter); - - gridLayout27->addWidget(textLabel_Status3, 0, 0, 1, 1); - - - hboxLayout7->addWidget(frame_14); - - frame_Set3 = new QFrame(groupBox3); - frame_Set3->setObjectName(QString::fromUtf8("frame_Set3")); - frame_Set3->setMinimumSize(QSize(16, 28)); - frame_Set3->setAutoFillBackground(true); - frame_Set3->setFrameShape(QFrame::StyledPanel); - frame_Set3->setFrameShadow(QFrame::Raised); - gridLayout28 = new QGridLayout(frame_Set3); - gridLayout28->setSpacing(0); - gridLayout28->setMargin(2); - gridLayout28->setObjectName(QString::fromUtf8("gridLayout28")); - textLabel_Set3 = new QLabel(frame_Set3); - textLabel_Set3->setObjectName(QString::fromUtf8("textLabel_Set3")); - textLabel_Set3->setMinimumSize(QSize(0, 20)); - textLabel_Set3->setAlignment(Qt::AlignCenter); - - gridLayout28->addWidget(textLabel_Set3, 0, 0, 1, 1); - - - hboxLayout7->addWidget(frame_Set3); - - - gridLayout24->addLayout(hboxLayout7, 3, 0, 1, 2); - - spacerItem9 = new QSpacerItem(46, 28, QSizePolicy::Minimum, QSizePolicy::Fixed); - - gridLayout24->addItem(spacerItem9, 1, 0, 1, 1); - - frame_12 = new QFrame(groupBox3); - frame_12->setObjectName(QString::fromUtf8("frame_12")); - frame_12->setMinimumSize(QSize(54, 60)); - frame_12->setMaximumSize(QSize(16777215, 60)); - frame_12->setFrameShape(QFrame::StyledPanel); - frame_12->setFrameShadow(QFrame::Raised); - gridLayout29 = new QGridLayout(frame_12); - gridLayout29->setSpacing(0); - gridLayout29->setMargin(3); - gridLayout29->setObjectName(QString::fromUtf8("gridLayout29")); - textLabel_TopCash3 = new QLabel(frame_12); - textLabel_TopCash3->setObjectName(QString::fromUtf8("textLabel_TopCash3")); - textLabel_TopCash3->setMinimumSize(QSize(35, 0)); - - gridLayout29->addWidget(textLabel_TopCash3, 0, 0, 1, 1); - - textLabel_Cash3 = new QLabel(frame_12); - textLabel_Cash3->setObjectName(QString::fromUtf8("textLabel_Cash3")); - textLabel_Cash3->setMinimumSize(QSize(35, 0)); - textLabel_Cash3->setAlignment(Qt::AlignCenter); - - gridLayout29->addWidget(textLabel_Cash3, 1, 0, 1, 1); - - - gridLayout24->addWidget(frame_12, 0, 0, 1, 1); - - - hboxLayout4->addWidget(groupBox3); - - groupBox4 = new QGroupBox(centralwidget); - groupBox4->setObjectName(QString::fromUtf8("groupBox4")); - groupBox4->setEnabled(false); - groupBox4->setMinimumSize(QSize(209, 162)); - groupBox4->setMaximumSize(QSize(209, 7777777)); - groupBox4->setAutoFillBackground(true); - gridLayout30 = new QGridLayout(groupBox4); - gridLayout30->setSpacing(6); - gridLayout30->setMargin(9); - gridLayout30->setObjectName(QString::fromUtf8("gridLayout30")); - frame8_2_2_2_7 = new QFrame(groupBox4); - frame8_2_2_2_7->setObjectName(QString::fromUtf8("frame8_2_2_2_7")); - frame8_2_2_2_7->setMinimumSize(QSize(127, 92)); - frame8_2_2_2_7->setMaximumSize(QSize(127, 92)); - frame8_2_2_2_7->setFrameShape(QFrame::StyledPanel); - frame8_2_2_2_7->setFrameShadow(QFrame::Raised); - gridLayout31 = new QGridLayout(frame8_2_2_2_7); - gridLayout31->setSpacing(3); - gridLayout31->setMargin(0); - gridLayout31->setObjectName(QString::fromUtf8("gridLayout31")); - label_p4a = new QLabel(frame8_2_2_2_7); - label_p4a->setObjectName(QString::fromUtf8("label_p4a")); - - gridLayout31->addWidget(label_p4a, 0, 0, 1, 1); - - label_p4b = new QLabel(frame8_2_2_2_7); - label_p4b->setObjectName(QString::fromUtf8("label_p4b")); - - gridLayout31->addWidget(label_p4b, 0, 1, 1, 1); - - - gridLayout30->addWidget(frame8_2_2_2_7, 0, 1, 2, 1); - - hboxLayout8 = new QHBoxLayout(); - hboxLayout8->setSpacing(6); - hboxLayout8->setMargin(0); - hboxLayout8->setObjectName(QString::fromUtf8("hboxLayout8")); - frame_16 = new QFrame(groupBox4); - frame_16->setObjectName(QString::fromUtf8("frame_16")); - frame_16->setMinimumSize(QSize(16, 28)); - frame_16->setMaximumSize(QSize(28, 16777215)); - frame_16->setFrameShape(QFrame::StyledPanel); - frame_16->setFrameShadow(QFrame::Raised); - gridLayout32 = new QGridLayout(frame_16); - gridLayout32->setSpacing(0); - gridLayout32->setMargin(2); - gridLayout32->setObjectName(QString::fromUtf8("gridLayout32")); - textLabel_Button4 = new QLabel(frame_16); - textLabel_Button4->setObjectName(QString::fromUtf8("textLabel_Button4")); - textLabel_Button4->setMinimumSize(QSize(0, 20)); - textLabel_Button4->setMaximumSize(QSize(20, 16777215)); - - gridLayout32->addWidget(textLabel_Button4, 0, 0, 1, 1); - - - hboxLayout8->addWidget(frame_16); - - frame_17 = new QFrame(groupBox4); - frame_17->setObjectName(QString::fromUtf8("frame_17")); - frame_17->setMinimumSize(QSize(16, 28)); - frame_17->setFrameShape(QFrame::StyledPanel); - frame_17->setFrameShadow(QFrame::Raised); - gridLayout33 = new QGridLayout(frame_17); - gridLayout33->setSpacing(0); - gridLayout33->setMargin(2); - gridLayout33->setObjectName(QString::fromUtf8("gridLayout33")); - textLabel_Status4 = new QLabel(frame_17); - textLabel_Status4->setObjectName(QString::fromUtf8("textLabel_Status4")); - textLabel_Status4->setMinimumSize(QSize(0, 20)); - textLabel_Status4->setAlignment(Qt::AlignCenter); - - gridLayout33->addWidget(textLabel_Status4, 0, 0, 1, 1); - - - hboxLayout8->addWidget(frame_17); - - frame_Set4 = new QFrame(groupBox4); - frame_Set4->setObjectName(QString::fromUtf8("frame_Set4")); - frame_Set4->setMinimumSize(QSize(16, 28)); - frame_Set4->setAutoFillBackground(true); - frame_Set4->setFrameShape(QFrame::StyledPanel); - frame_Set4->setFrameShadow(QFrame::Raised); - gridLayout34 = new QGridLayout(frame_Set4); - gridLayout34->setSpacing(0); - gridLayout34->setMargin(2); - gridLayout34->setObjectName(QString::fromUtf8("gridLayout34")); - textLabel_Set4 = new QLabel(frame_Set4); - textLabel_Set4->setObjectName(QString::fromUtf8("textLabel_Set4")); - textLabel_Set4->setMinimumSize(QSize(0, 20)); - textLabel_Set4->setAlignment(Qt::AlignCenter); - - gridLayout34->addWidget(textLabel_Set4, 0, 0, 1, 1); - - - hboxLayout8->addWidget(frame_Set4); - - - gridLayout30->addLayout(hboxLayout8, 3, 0, 1, 2); - - line2_2_7 = new QFrame(groupBox4); - line2_2_7->setObjectName(QString::fromUtf8("line2_2_7")); - line2_2_7->setFrameShape(QFrame::HLine); - line2_2_7->setFrameShadow(QFrame::Sunken); - line2_2_7->setFrameShape(QFrame::HLine); - line2_2_7->setFrameShadow(QFrame::Sunken); - - gridLayout30->addWidget(line2_2_7, 2, 0, 1, 2); - - spacerItem10 = new QSpacerItem(46, 28, QSizePolicy::Minimum, QSizePolicy::Fixed); - - gridLayout30->addItem(spacerItem10, 1, 0, 1, 1); - - frame_15 = new QFrame(groupBox4); - frame_15->setObjectName(QString::fromUtf8("frame_15")); - frame_15->setMinimumSize(QSize(54, 60)); - frame_15->setMaximumSize(QSize(16777215, 60)); - frame_15->setFrameShape(QFrame::StyledPanel); - frame_15->setFrameShadow(QFrame::Raised); - gridLayout35 = new QGridLayout(frame_15); - gridLayout35->setSpacing(0); - gridLayout35->setMargin(3); - gridLayout35->setObjectName(QString::fromUtf8("gridLayout35")); - textLabel_TopCash4 = new QLabel(frame_15); - textLabel_TopCash4->setObjectName(QString::fromUtf8("textLabel_TopCash4")); - textLabel_TopCash4->setMinimumSize(QSize(35, 0)); - - gridLayout35->addWidget(textLabel_TopCash4, 0, 0, 1, 1); - - textLabel_Cash4 = new QLabel(frame_15); - textLabel_Cash4->setObjectName(QString::fromUtf8("textLabel_Cash4")); - textLabel_Cash4->setMinimumSize(QSize(35, 0)); - textLabel_Cash4->setAlignment(Qt::AlignCenter); - - gridLayout35->addWidget(textLabel_Cash4, 1, 0, 1, 1); - - - gridLayout30->addWidget(frame_15, 0, 0, 1, 1); - - - hboxLayout4->addWidget(groupBox4); - - - gridLayout->addLayout(hboxLayout4, 0, 0, 1, 1); - - hboxLayout9 = new QHBoxLayout(); - hboxLayout9->setSpacing(6); - hboxLayout9->setMargin(0); - hboxLayout9->setObjectName(QString::fromUtf8("hboxLayout9")); - spacerItem11 = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); - - hboxLayout9->addItem(spacerItem11); - - groupBox_board = new QGroupBox(centralwidget); - groupBox_board->setObjectName(QString::fromUtf8("groupBox_board")); - groupBox_board->setMinimumSize(QSize(566, 136)); - groupBox_board->setMaximumSize(QSize(566, 136)); - QPalette palette9; - QBrush brush144(QColor(0, 0, 0, 255)); - brush144.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::WindowText, brush144); - QBrush brush145(QColor(221, 223, 228, 255)); - brush145.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::Button, brush145); - QBrush brush146(QColor(255, 255, 255, 255)); - brush146.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::Light, brush146); - QBrush brush147(QColor(255, 255, 255, 255)); - brush147.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::Midlight, brush147); - QBrush brush148(QColor(85, 85, 85, 255)); - brush148.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::Dark, brush148); - QBrush brush149(QColor(199, 199, 199, 255)); - brush149.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::Mid, brush149); - QBrush brush150(QColor(0, 0, 0, 255)); - brush150.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::Text, brush150); - QBrush brush151(QColor(255, 255, 255, 255)); - brush151.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::BrightText, brush151); - QBrush brush152(QColor(0, 0, 0, 255)); - brush152.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::ButtonText, brush152); - QBrush brush153(QColor(255, 255, 255, 255)); - brush153.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::Base, brush153); - QBrush brush154(QColor(74, 131, 83, 255)); - brush154.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::Window, brush154); - QBrush brush155(QColor(0, 0, 0, 255)); - brush155.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::Shadow, brush155); - QBrush brush156(QColor(103, 141, 178, 255)); - brush156.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::Highlight, brush156); - QBrush brush157(QColor(255, 255, 255, 255)); - brush157.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::HighlightedText, brush157); - QBrush brush158(QColor(0, 0, 238, 255)); - brush158.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::Link, brush158); - QBrush brush159(QColor(82, 24, 139, 255)); - brush159.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::LinkVisited, brush159); - QBrush brush160(QColor(232, 232, 232, 255)); - brush160.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Active, QPalette::AlternateBase, brush160); - QBrush brush161(QColor(0, 0, 0, 255)); - brush161.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::WindowText, brush161); - QBrush brush162(QColor(221, 223, 228, 255)); - brush162.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::Button, brush162); - QBrush brush163(QColor(255, 255, 255, 255)); - brush163.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::Light, brush163); - QBrush brush164(QColor(255, 255, 255, 255)); - brush164.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::Midlight, brush164); - QBrush brush165(QColor(85, 85, 85, 255)); - brush165.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::Dark, brush165); - QBrush brush166(QColor(199, 199, 199, 255)); - brush166.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::Mid, brush166); - QBrush brush167(QColor(0, 0, 0, 255)); - brush167.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::Text, brush167); - QBrush brush168(QColor(255, 255, 255, 255)); - brush168.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::BrightText, brush168); - QBrush brush169(QColor(0, 0, 0, 255)); - brush169.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::ButtonText, brush169); - QBrush brush170(QColor(255, 255, 255, 255)); - brush170.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::Base, brush170); - QBrush brush171(QColor(74, 131, 83, 255)); - brush171.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::Window, brush171); - QBrush brush172(QColor(0, 0, 0, 255)); - brush172.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::Shadow, brush172); - QBrush brush173(QColor(103, 141, 178, 255)); - brush173.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::Highlight, brush173); - QBrush brush174(QColor(255, 255, 255, 255)); - brush174.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush174); - QBrush brush175(QColor(0, 0, 238, 255)); - brush175.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::Link, brush175); - QBrush brush176(QColor(82, 24, 139, 255)); - brush176.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush176); - QBrush brush177(QColor(232, 232, 232, 255)); - brush177.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush177); - QBrush brush178(QColor(128, 128, 128, 255)); - brush178.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::WindowText, brush178); - QBrush brush179(QColor(221, 223, 228, 255)); - brush179.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::Button, brush179); - QBrush brush180(QColor(255, 255, 255, 255)); - brush180.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::Light, brush180); - QBrush brush181(QColor(255, 255, 255, 255)); - brush181.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::Midlight, brush181); - QBrush brush182(QColor(85, 85, 85, 255)); - brush182.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::Dark, brush182); - QBrush brush183(QColor(199, 199, 199, 255)); - brush183.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::Mid, brush183); - QBrush brush184(QColor(199, 199, 199, 255)); - brush184.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::Text, brush184); - QBrush brush185(QColor(255, 255, 255, 255)); - brush185.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::BrightText, brush185); - QBrush brush186(QColor(128, 128, 128, 255)); - brush186.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::ButtonText, brush186); - QBrush brush187(QColor(74, 131, 83, 255)); - brush187.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::Base, brush187); - QBrush brush188(QColor(74, 131, 83, 255)); - brush188.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::Window, brush188); - QBrush brush189(QColor(0, 0, 0, 255)); - brush189.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::Shadow, brush189); - QBrush brush190(QColor(86, 117, 148, 255)); - brush190.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::Highlight, brush190); - QBrush brush191(QColor(255, 255, 255, 255)); - brush191.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush191); - QBrush brush192(QColor(0, 0, 238, 255)); - brush192.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::Link, brush192); - QBrush brush193(QColor(82, 24, 139, 255)); - brush193.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush193); - QBrush brush194(QColor(232, 232, 232, 255)); - brush194.setStyle(Qt::SolidPattern); - palette9.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush194); - groupBox_board->setPalette(palette9); - groupBox_board->setAutoFillBackground(true); - gridLayout36 = new QGridLayout(groupBox_board); - gridLayout36->setSpacing(6); - gridLayout36->setMargin(9); - gridLayout36->setObjectName(QString::fromUtf8("gridLayout36")); - frame_5 = new QFrame(groupBox_board); - frame_5->setObjectName(QString::fromUtf8("frame_5")); - QSizePolicy sizePolicy1(static_cast(0), static_cast(0)); - sizePolicy1.setHorizontalStretch(0); - sizePolicy1.setVerticalStretch(0); - sizePolicy1.setHeightForWidth(frame_5->sizePolicy().hasHeightForWidth()); - frame_5->setSizePolicy(sizePolicy1); - frame_5->setMinimumSize(QSize(331, 102)); - frame_5->setMaximumSize(QSize(331, 102)); - frame_5->setFrameShape(QFrame::StyledPanel); - frame_5->setFrameShadow(QFrame::Raised); - gridLayout37 = new QGridLayout(frame_5); - gridLayout37->setSpacing(6); - gridLayout37->setMargin(9); - gridLayout37->setObjectName(QString::fromUtf8("gridLayout37")); - label_bc3 = new QLabel(frame_5); - label_bc3->setObjectName(QString::fromUtf8("label_bc3")); - - gridLayout37->addWidget(label_bc3, 0, 2, 1, 1); - - label_bc2 = new QLabel(frame_5); - label_bc2->setObjectName(QString::fromUtf8("label_bc2")); - - gridLayout37->addWidget(label_bc2, 0, 1, 1, 1); - - label_bc4 = new QLabel(frame_5); - label_bc4->setObjectName(QString::fromUtf8("label_bc4")); - - gridLayout37->addWidget(label_bc4, 0, 3, 1, 1); - - label_bc1 = new QLabel(frame_5); - label_bc1->setObjectName(QString::fromUtf8("label_bc1")); - - gridLayout37->addWidget(label_bc1, 0, 0, 1, 1); - - label_bc5 = new QLabel(frame_5); - label_bc5->setObjectName(QString::fromUtf8("label_bc5")); - - gridLayout37->addWidget(label_bc5, 0, 4, 1, 1); - - - gridLayout36->addWidget(frame_5, 0, 1, 1, 1); - - frame_4 = new QFrame(groupBox_board); - frame_4->setObjectName(QString::fromUtf8("frame_4")); - QSizePolicy sizePolicy2(static_cast(0), static_cast(0)); - sizePolicy2.setHorizontalStretch(0); - sizePolicy2.setVerticalStretch(0); - sizePolicy2.setHeightForWidth(frame_4->sizePolicy().hasHeightForWidth()); - frame_4->setSizePolicy(sizePolicy2); - frame_4->setMinimumSize(QSize(104, 114)); - frame_4->setAutoFillBackground(true); - frame_4->setFrameShape(QFrame::StyledPanel); - frame_4->setFrameShadow(QFrame::Raised); - gridLayout38 = new QGridLayout(frame_4); - gridLayout38->setSpacing(4); - gridLayout38->setMargin(4); - gridLayout38->setObjectName(QString::fromUtf8("gridLayout38")); - frame_Pot = new QFrame(frame_4); - frame_Pot->setObjectName(QString::fromUtf8("frame_Pot")); - frame_Pot->setAutoFillBackground(true); - frame_Pot->setFrameShape(QFrame::StyledPanel); - frame_Pot->setFrameShadow(QFrame::Raised); - gridLayout39 = new QGridLayout(frame_Pot); - gridLayout39->setSpacing(0); - gridLayout39->setMargin(4); - gridLayout39->setObjectName(QString::fromUtf8("gridLayout39")); - label_Pot = new QLabel(frame_Pot); - label_Pot->setObjectName(QString::fromUtf8("label_Pot")); - label_Pot->setMinimumSize(QSize(0, 30)); - label_Pot->setMaximumSize(QSize(16777215, 30)); - label_Pot->setAutoFillBackground(true); - - gridLayout39->addWidget(label_Pot, 0, 0, 1, 1); - - textLabel_Pot = new QLabel(frame_Pot); - textLabel_Pot->setObjectName(QString::fromUtf8("textLabel_Pot")); - textLabel_Pot->setMinimumSize(QSize(0, 25)); - textLabel_Pot->setMaximumSize(QSize(16777215, 25)); - textLabel_Pot->setAutoFillBackground(true); - - gridLayout39->addWidget(textLabel_Pot, 1, 0, 1, 1); - - - gridLayout38->addWidget(frame_Pot, 0, 0, 1, 1); - - hboxLayout10 = new QHBoxLayout(); - hboxLayout10->setSpacing(4); - hboxLayout10->setMargin(0); - hboxLayout10->setObjectName(QString::fromUtf8("hboxLayout10")); - label_Sets = new QLabel(frame_4); - label_Sets->setObjectName(QString::fromUtf8("label_Sets")); - label_Sets->setMinimumSize(QSize(0, 26)); - label_Sets->setMaximumSize(QSize(16777215, 26)); - label_Sets->setAlignment(Qt::AlignCenter); - - hboxLayout10->addWidget(label_Sets); - - textLabel_Sets = new QLabel(frame_4); - textLabel_Sets->setObjectName(QString::fromUtf8("textLabel_Sets")); - textLabel_Sets->setMinimumSize(QSize(0, 26)); - textLabel_Sets->setMaximumSize(QSize(16777215, 26)); - textLabel_Sets->setAlignment(Qt::AlignCenter); - - hboxLayout10->addWidget(textLabel_Sets); - - - gridLayout38->addLayout(hboxLayout10, 1, 0, 1, 1); - - - gridLayout36->addWidget(frame_4, 0, 2, 1, 1); - - gridLayout40 = new QGridLayout(); - gridLayout40->setSpacing(6); - gridLayout40->setMargin(0); - gridLayout40->setObjectName(QString::fromUtf8("gridLayout40")); - frame_11 = new QFrame(groupBox_board); - frame_11->setObjectName(QString::fromUtf8("frame_11")); - frame_11->setMinimumSize(QSize(95, 16)); - frame_11->setFrameShape(QFrame::StyledPanel); - frame_11->setFrameShadow(QFrame::Raised); - gridLayout41 = new QGridLayout(frame_11); - gridLayout41->setSpacing(0); - gridLayout41->setMargin(3); - gridLayout41->setObjectName(QString::fromUtf8("gridLayout41")); - textLabel_handNumber = new QLabel(frame_11); - textLabel_handNumber->setObjectName(QString::fromUtf8("textLabel_handNumber")); - textLabel_handNumber->setMinimumSize(QSize(0, 22)); - textLabel_handNumber->setMaximumSize(QSize(16777215, 22)); - textLabel_handNumber->setAlignment(Qt::AlignCenter); - - gridLayout41->addWidget(textLabel_handNumber, 1, 0, 2, 1); - - textLabel_gameNumber = new QLabel(frame_11); - textLabel_gameNumber->setObjectName(QString::fromUtf8("textLabel_gameNumber")); - textLabel_gameNumber->setMinimumSize(QSize(0, 22)); - textLabel_gameNumber->setMaximumSize(QSize(16777215, 22)); - textLabel_gameNumber->setAlignment(Qt::AlignCenter); - - gridLayout41->addWidget(textLabel_gameNumber, 0, 0, 1, 1); - - - gridLayout40->addWidget(frame_11, 1, 0, 1, 1); - - frame_handLabel = new QFrame(groupBox_board); - frame_handLabel->setObjectName(QString::fromUtf8("frame_handLabel")); - frame_handLabel->setMinimumSize(QSize(95, 36)); - frame_handLabel->setAutoFillBackground(true); - frame_handLabel->setFrameShape(QFrame::StyledPanel); - frame_handLabel->setFrameShadow(QFrame::Raised); - gridLayout42 = new QGridLayout(frame_handLabel); - gridLayout42->setSpacing(0); - gridLayout42->setMargin(3); - gridLayout42->setObjectName(QString::fromUtf8("gridLayout42")); - textLabel_handLabel = new QLabel(frame_handLabel); - textLabel_handLabel->setObjectName(QString::fromUtf8("textLabel_handLabel")); - textLabel_handLabel->setAlignment(Qt::AlignCenter); - - gridLayout42->addWidget(textLabel_handLabel, 0, 0, 1, 1); - - - gridLayout40->addWidget(frame_handLabel, 0, 0, 1, 1); - - - gridLayout36->addLayout(gridLayout40, 0, 0, 1, 1); - - - hboxLayout9->addWidget(groupBox_board); - - spacerItem12 = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); - - hboxLayout9->addItem(spacerItem12); - - - gridLayout->addLayout(hboxLayout9, 2, 0, 1, 1); - - spacerItem13 = new QSpacerItem(861, 20, QSizePolicy::Minimum, QSizePolicy::Expanding); - - gridLayout->addItem(spacerItem13, 3, 0, 1, 1); - - mainWindow->setCentralWidget(centralwidget); - menubar = new QMenuBar(mainWindow); - menubar->setObjectName(QString::fromUtf8("menubar")); - menubar->setGeometry(QRect(0, 0, 874, 30)); - menuView = new QMenu(menubar); - menuView->setObjectName(QString::fromUtf8("menuView")); - menuSpiel = new QMenu(menubar); - menuSpiel->setObjectName(QString::fromUtf8("menuSpiel")); - mainWindow->setMenuBar(menubar); - statusbar = new QStatusBar(mainWindow); - statusbar->setObjectName(QString::fromUtf8("statusbar")); - mainWindow->setStatusBar(statusbar); - QWidget::setTabOrder(pushButton_raise, pushButton_bet); - QWidget::setTabOrder(pushButton_bet, pushButton_call); - QWidget::setTabOrder(pushButton_call, pushButton_check); - QWidget::setTabOrder(pushButton_check, pushButton_fold); - QWidget::setTabOrder(pushButton_fold, pushButton_set); - QWidget::setTabOrder(pushButton_set, spinBox_set); - QWidget::setTabOrder(spinBox_set, pushButton_allin); - - menubar->addAction(menuSpiel->menuAction()); - menubar->addAction(menuView->menuAction()); - menuView->addAction(actionFullScreen); - menuSpiel->addAction(actionNewGame); - menuSpiel->addAction(actionCreate_network_Game); - menuSpiel->addAction(actionJoin_network_Game); - menuSpiel->addAction(actionSettings); - menuSpiel->addAction(actionAboutPokerth); - menuSpiel->addAction(actionQuit); - - retranslateUi(mainWindow); - - QSize size(874, 670); - size = size.expandedTo(mainWindow->minimumSizeHint()); - mainWindow->resize(size); - - QObject::connect(horizontalSlider_speed, SIGNAL(valueChanged(int)), label_2, SLOT(setNum(int))); - - tabWidget_2->setCurrentIndex(0); - tabWidget->setCurrentIndex(0);*/ - - - QMetaObject::connectSlotsByName(mainWindow); - } // setupUi - - void retranslateUi(QMainWindow *mainWindow) - { - mainWindow->setWindowTitle(QApplication::translate("mainWindow", "PokerTH - The Open-Source Texas Holdem Engine", 0, QApplication::UnicodeUTF8)); - actionNewGame->setText(QApplication::translate("mainWindow", "Start local Game ...", 0, QApplication::UnicodeUTF8)); - actionNewGame->setShortcut(QApplication::translate("mainWindow", "Ctrl+N", 0, QApplication::UnicodeUTF8)); - actionQuit->setText(QApplication::translate("mainWindow", "Quit", 0, QApplication::UnicodeUTF8)); - actionAboutPokerth->setText(QApplication::translate("mainWindow", "About PokerTH ...", 0, QApplication::UnicodeUTF8)); - actionSettings->setText(QApplication::translate("mainWindow", "Settings ...", 0, QApplication::UnicodeUTF8)); - actionCreate_network_Game->setText(QApplication::translate("mainWindow", "Create Network Game ...", 0, QApplication::UnicodeUTF8)); - actionJoin_network_Game->setText(QApplication::translate("mainWindow", "Join Network Game ...", 0, QApplication::UnicodeUTF8)); - actionFullScreen->setText(QApplication::translate("mainWindow", "Fullscreen", 0, QApplication::UnicodeUTF8)); - actionFullScreen->setShortcut(QApplication::translate("mainWindow", "F", 0, QApplication::UnicodeUTF8)); - tabWidget_2->setTabText(tabWidget_2->indexOf(tab_log_2), QApplication::translate("mainWindow", "Hands", 0, QApplication::UnicodeUTF8)); - groupBox0->setTitle(QString()); - pushButton_raise->setText(QApplication::translate("mainWindow", "&Raise", 0, QApplication::UnicodeUTF8)); - pushButton_raise->setShortcut(QApplication::translate("mainWindow", "Alt+R", 0, QApplication::UnicodeUTF8)); - pushButton_bet->setText(QApplication::translate("mainWindow", "&Bet", 0, QApplication::UnicodeUTF8)); - pushButton_bet->setShortcut(QApplication::translate("mainWindow", "Alt+B", 0, QApplication::UnicodeUTF8)); - pushButton_call->setText(QApplication::translate("mainWindow", "&Call", 0, QApplication::UnicodeUTF8)); - pushButton_call->setShortcut(QApplication::translate("mainWindow", "Alt+C", 0, QApplication::UnicodeUTF8)); - pushButton_check->setText(QApplication::translate("mainWindow", "C&heck", 0, QApplication::UnicodeUTF8)); - pushButton_check->setShortcut(QApplication::translate("mainWindow", "Alt+H", 0, QApplication::UnicodeUTF8)); - pushButton_fold->setText(QApplication::translate("mainWindow", "&Fold", 0, QApplication::UnicodeUTF8)); - pushButton_fold->setShortcut(QApplication::translate("mainWindow", "Alt+F", 0, QApplication::UnicodeUTF8)); - pushButton_set->setText(QApplication::translate("mainWindow", "&Set", 0, QApplication::UnicodeUTF8)); - pushButton_set->setShortcut(QApplication::translate("mainWindow", "Alt+S", 0, QApplication::UnicodeUTF8)); - pushButton_allin->setText(QApplication::translate("mainWindow", "&All in", 0, QApplication::UnicodeUTF8)); - pushButton_allin->setShortcut(QApplication::translate("mainWindow", "Alt+A", 0, QApplication::UnicodeUTF8)); - textLabel_Status0->setText(QString()); - tabWidget->setTabText(tabWidget->indexOf(tab_log), QApplication::translate("mainWindow", "Log", 0, QApplication::UnicodeUTF8)); - pushButton_break->setText(QApplication::translate("mainWindow", "Stop", 0, QApplication::UnicodeUTF8)); - label->setText(QApplication::translate("mainWindow", "Speed:", 0, QApplication::UnicodeUTF8)); - label_2->setText(QString()); - groupBox1->setTitle(QString()); - textLabel_Button1->setText(QString()); - textLabel_Status1->setText(QString()); - textLabel_Set1->setText(QString()); - groupBox2->setTitle(QString()); - textLabel_Button2->setText(QString()); - textLabel_Status2->setText(QString()); - textLabel_Set2->setText(QString()); - groupBox3->setTitle(QString()); - textLabel_Button3->setText(QString()); - textLabel_Status3->setText(QString()); - textLabel_Set3->setText(QString()); - groupBox4->setTitle(QString()); - textLabel_Button4->setText(QString()); - textLabel_Status4->setText(QString()); - textLabel_Set4->setText(QString()); - groupBox_board->setTitle(QString()); - label_Pot->setText(QString()); - menuView->setTitle(QApplication::translate("mainWindow", "View", 0, QApplication::UnicodeUTF8)); - menuSpiel->setTitle(QApplication::translate("mainWindow", "Game", 0, QApplication::UnicodeUTF8)); - } // retranslateUi - -}; - -namespace Ui { - class mainWindow: public Ui_mainWindow {}; -} // namespace Ui - -#endif // UI_MAINWINDOW_H