This commit is contained in:
doitux
2007-02-26 00:44:09 +00:00
parent a046ba0e95
commit 416c9536cf
7 changed files with 250 additions and 226 deletions
@@ -27,20 +27,12 @@ createNetworkGameDialogImpl::createNetworkGameDialogImpl(QWidget *parent)
setupUi(this);
//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"));
lineEdit_serverPassword->setText(QString::fromStdString(myConfig.readConfigString("ServerPassword")));
fillFormular();
connect( pushButton_cancel, SIGNAL( clicked() ), this, SLOT( cancel() ) );
connect( pushButton_createGame, SIGNAL( clicked() ), this, SLOT( createGame() ) );
}
void createNetworkGameDialogImpl::createGame() {
@@ -51,6 +43,25 @@ 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"));
}
void createNetworkGameDialogImpl::showDialog() {
fillFormular();
exec();
}
void createNetworkGameDialogImpl::keyPressEvent ( QKeyEvent * event ) {