path to UTF8

configfile split
This commit is contained in:
doitux
2007-04-18 00:11:24 +00:00
parent 27cd08ccb0
commit 2b94ce958f
33 changed files with 565 additions and 498 deletions
@@ -21,11 +21,13 @@
#include "session.h"
#include "configfile.h"
createNetworkGameDialogImpl::createNetworkGameDialogImpl(QWidget *parent)
: QDialog(parent)
createNetworkGameDialogImpl::createNetworkGameDialogImpl(QWidget *parent, std::string path)
: QDialog(parent), myConfig(0)
{
setupUi(this);
myConfig = new ConfigFile(path);
setupUi(this);
fillFormular();
@@ -46,14 +48,13 @@ void createNetworkGameDialogImpl::cancel() {
void createNetworkGameDialogImpl::fillFormular() {
//Formulare Füllen
ConfigFile myConfig;
//Network Game Settings
spinBox_quantityPlayers->setValue(myConfig.readConfigInt("NetNumberOfPlayers"));
spinBox_startCash->setValue(myConfig.readConfigInt("NetStartCash"));
spinBox_smallBlind->setValue(myConfig.readConfigInt("NetSmallBlind"));
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig.readConfigInt("NetHandsBeforeRaiseSmallBlind"));
spinBox_gameSpeed->setValue(myConfig.readConfigInt("NetGameSpeed"));
spinBox_quantityPlayers->setValue(myConfig->readConfigInt("NetNumberOfPlayers"));
spinBox_startCash->setValue(myConfig->readConfigInt("NetStartCash"));
spinBox_smallBlind->setValue(myConfig->readConfigInt("NetSmallBlind"));
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig->readConfigInt("NetHandsBeforeRaiseSmallBlind"));
spinBox_gameSpeed->setValue(myConfig->readConfigInt("NetGameSpeed"));
}
void createNetworkGameDialogImpl::showDialog() {
@@ -23,15 +23,18 @@
#include "ui_createnetworkgamedialog.h"
#include <iostream>
#include <string>
#include <QtGui>
#include <QtCore>
class Session;
class ConfigFile;
class createNetworkGameDialogImpl: public QDialog, public Ui::createNetworkGameDialog {
Q_OBJECT
public:
createNetworkGameDialogImpl(QWidget *parent = 0);
createNetworkGameDialogImpl(QWidget *parent = 0, std::string = "");
public slots:
@@ -40,6 +43,10 @@ public slots:
void fillFormular();
void showDialog();
void keyPressEvent ( QKeyEvent * event );
private:
ConfigFile *myConfig;
};
#endif