This commit is contained in:
@@ -50,9 +50,9 @@ int GuiWrapper::getMaxQuantityPlayers() const { return myW->getMaxQuantityPlayer
|
|||||||
std::string GuiWrapper::getPlayerName(int id) const {
|
std::string GuiWrapper::getPlayerName(int id) const {
|
||||||
|
|
||||||
// if(id==0) {
|
// if(id==0) {
|
||||||
// return myConfig->readConfig("myname", "Human Player").toStdString() ;
|
// return myConfig->readConfigString("MyName", "Human Player") ;
|
||||||
// }
|
// }
|
||||||
// else { return myConfig->readConfig("opponent"+QString::number(id)+"name", "Player "+QString::number(id)).toStdString() ; }
|
// else { return myConfig->readConfigString("Opponent"+QString::number(id)+"Name", "Player "+QString::number(id)) ; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -59,15 +59,14 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent, const char *name)
|
|||||||
|
|
||||||
if ( !progDir1.exists() ) { progDir1.mkdir(progDir1.absPath()); }
|
if ( !progDir1.exists() ) { progDir1.mkdir(progDir1.absPath()); }
|
||||||
|
|
||||||
myConfigFile = new ConfigFile;
|
myConfig = new ConfigFile;
|
||||||
|
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
bool ok;
|
|
||||||
|
|
||||||
//Toolbox verstecken?
|
//Toolbox verstecken?
|
||||||
// if (!myConfigFile->readConfig("showtoolbox", "1").toInt(&ok,10)) { groupBox_tools->hide(); }
|
// if (!myConfig->readConfigInt("ShowToolBox", 1)) { groupBox_tools->hide(); }
|
||||||
|
|
||||||
|
|
||||||
pushButton_raise->setDisabled(TRUE);
|
pushButton_raise->setDisabled(TRUE);
|
||||||
@@ -196,8 +195,8 @@ void mainWindowImpl::callNewGameDialog() {
|
|||||||
|
|
||||||
|
|
||||||
//wenn Dialogfenster gezeigt werden soll
|
//wenn Dialogfenster gezeigt werden soll
|
||||||
bool ok;
|
|
||||||
// if(myConfigFile->readConfig("showgamesettingsdialogonnewgame", "1").toInt(&ok,10)) {
|
// if(myConfig->readConfigInt("ShowGameSettingsDialogOnNewGame", 1)){
|
||||||
|
|
||||||
newGameDialogImpl *v = new newGameDialogImpl();
|
newGameDialogImpl *v = new newGameDialogImpl();
|
||||||
v->exec();
|
v->exec();
|
||||||
@@ -255,7 +254,7 @@ void mainWindowImpl::callNewGameDialog() {
|
|||||||
label_Pot->setText("<p align='center'><span style='font-size:x-large; font-weight:bold'>Pot Total</span></p>");
|
label_Pot->setText("<p align='center'><span style='font-size:x-large; font-weight:bold'>Pot Total</span></p>");
|
||||||
label_Sets->setText("<p align='center'><span style='font-size:medium; font-weight:bold'>Sets:</span></p>");
|
label_Sets->setText("<p align='center'><span style='font-size:medium; font-weight:bold'>Sets:</span></p>");
|
||||||
|
|
||||||
guiGameSpeed = 4/*myConfigFile->readConfig("gamespeed","4").toInt(&ok,10)*/;
|
guiGameSpeed = 4/*myConfig->readConfigInt("GameSpeed",4)*/;
|
||||||
// debugMode = v->checkBox_debugMode->isChecked();
|
// debugMode = v->checkBox_debugMode->isChecked();
|
||||||
|
|
||||||
//Tools und Board aufhellen und enablen
|
//Tools und Board aufhellen und enablen
|
||||||
@@ -272,7 +271,7 @@ void mainWindowImpl::callNewGameDialog() {
|
|||||||
|
|
||||||
|
|
||||||
//Start Game!!!
|
//Start Game!!!
|
||||||
// mySession->startGame(myConfigFile->readConfig("numberofplayers","5").toInt(&ok,10), myConfigFile->readConfig("startcash","2000").toInt(&ok,10), myConfigFile->readConfig("smallblind","10").toInt(&ok,10));
|
// mySession->startGame(myConfig->readConfigInt("NumberOfPlayers",5), myConfig->readConfigInt("StartCash",2000), myConfig->readConfigInt("SmallBlind",10));
|
||||||
mySession->startGame(5, 2000, 10);
|
mySession->startGame(5, 2000, 10);
|
||||||
|
|
||||||
|
|
||||||
@@ -293,9 +292,8 @@ void mainWindowImpl::callSettingsDialog() {
|
|||||||
|
|
||||||
if (v->result()) {
|
if (v->result()) {
|
||||||
|
|
||||||
bool ok;
|
|
||||||
//Toolbox verstecken?
|
//Toolbox verstecken?
|
||||||
// if (!myConfigFile->readConfig("showtoolbox", "1").toInt(&ok,10)) { groupBox_tools->hide(); }
|
// if (!myConfig->readConfigInt("ShowToolBox", 1)) { groupBox_tools->hide(); }
|
||||||
// else { groupBox_tools->show(); }
|
// else { groupBox_tools->show(); }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ private:
|
|||||||
HandInterface *actualHand;
|
HandInterface *actualHand;
|
||||||
Session *mySession;
|
Session *mySession;
|
||||||
Log *myLog;
|
Log *myLog;
|
||||||
ConfigFile *myConfigFile;
|
ConfigFile *myConfig;
|
||||||
|
|
||||||
|
|
||||||
QTimer *potDistributeTimer;
|
QTimer *potDistributeTimer;
|
||||||
|
|||||||
Reference in New Issue
Block a user