next steps startwindow-integration --> UNSTABLE

This commit is contained in:
doitux
2008-09-11 15:03:46 +00:00
parent f5ea154b09
commit 2af47e0c01
5 changed files with 125 additions and 119 deletions
@@ -89,6 +89,9 @@ startWindowImpl::startWindowImpl(ConfigFile *c)
connect( pushButton_Create_Network_Game, SIGNAL( clicked() ), this, SLOT( callCreateNetworkGameDialog() ) );
connect( actionJoin_Network_Game, SIGNAL( triggered() ), this, SLOT( callJoinNetworkGameDialog() ) );
connect( pushButton_Join_Network_Game, SIGNAL( clicked() ), this, SLOT( callJoinNetworkGameDialog() ) );
connect( actionAbout_PokerTH, SIGNAL( triggered() ), this, SLOT( callAboutPokerthDialog() ) );
connect( actionConfigure_PokerTH, SIGNAL( triggered() ), this, SLOT( callSettingsDialog() ) );
connect(this, SIGNAL(signalShowClientDialog()), this, SLOT(showClientDialog()));
@@ -396,3 +399,14 @@ void startWindowImpl::showNetworkStartDialog()
myServerGuiInterface->getSession().terminateNetworkServer();
}
}
void startWindowImpl::callAboutPokerthDialog() { myAboutPokerthDialog->exec(); }
void startWindowImpl::callSettingsDialog() {
mySettingsDialog->exec();
if (mySettingsDialog->result() == QDialog::Accepted && mySettingsDialog->getSettingsCorrect()) {
myGuiInterface->getMyW()->applySettings();
}
}