one ConfigFile for all

killed the tinyxml warnings
This commit is contained in:
doitux
2007-05-13 12:35:27 +00:00
parent 6fbef0af20
commit 8ad92920cc
13 changed files with 1842 additions and 69 deletions
@@ -20,22 +20,18 @@
#include "newgamedialogimpl.h"
#include "configfile.h"
newGameDialogImpl::newGameDialogImpl(QWidget *parent)
: QDialog(parent)
newGameDialogImpl::newGameDialogImpl(QWidget *parent, ConfigFile *c)
: QDialog(parent), myConfig(c)
{
setupUi(this);
//Formulare Füllen
ConfigFile myConfig;
//Game Settings
spinBox_quantityPlayers->setValue(myConfig.readConfigInt("NumberOfPlayers"));
spinBox_startCash->setValue(myConfig.readConfigInt("StartCash"));
spinBox_smallBlind->setValue(myConfig.readConfigInt("SmallBlind"));
spinBox_gameSpeed->setValue(myConfig.readConfigInt("GameSpeed"));
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig.readConfigInt("HandsBeforeRaiseSmallBlind"));
spinBox_quantityPlayers->setValue(myConfig->readConfigInt("NumberOfPlayers"));
spinBox_startCash->setValue(myConfig->readConfigInt("StartCash"));
spinBox_smallBlind->setValue(myConfig->readConfigInt("SmallBlind"));
spinBox_gameSpeed->setValue(myConfig->readConfigInt("GameSpeed"));
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig->readConfigInt("HandsBeforeRaiseSmallBlind"));
}