Back to rev. 347

This commit is contained in:
lotodore
2007-04-20 23:14:08 +00:00
parent 57927b7d73
commit a8cce94d3b
32 changed files with 315 additions and 333 deletions
@@ -21,13 +21,11 @@
#include "session.h"
#include "configfile.h"
createNetworkGameDialogImpl::createNetworkGameDialogImpl(QWidget *parent, std::string path)
: QDialog(parent), myConfig(0)
createNetworkGameDialogImpl::createNetworkGameDialogImpl(QWidget *parent)
: QDialog(parent)
{
myConfig = new ConfigFile(path);
setupUi(this);
setupUi(this);
fillFormular();
@@ -48,13 +46,14 @@ 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,18 +23,15 @@
#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, std::string = "");
createNetworkGameDialogImpl(QWidget *parent = 0);
public slots:
@@ -43,10 +40,6 @@ public slots:
void fillFormular();
void showDialog();
void keyPressEvent ( QKeyEvent * event );
private:
ConfigFile *myConfig;
};
#endif