next steps startwindow-integration --> UNSTABLE
This commit is contained in:
@@ -480,11 +480,8 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
|
|||||||
myConnectToServerDialog = boost::shared_ptr<connectToServerDialogImpl>(new connectToServerDialogImpl(this));
|
myConnectToServerDialog = boost::shared_ptr<connectToServerDialogImpl>(new connectToServerDialogImpl(this));
|
||||||
myStartNetworkGameDialog = boost::shared_ptr<startNetworkGameDialogImpl>(new startNetworkGameDialogImpl(this, myConfig));
|
myStartNetworkGameDialog = boost::shared_ptr<startNetworkGameDialogImpl>(new startNetworkGameDialogImpl(this, myConfig));
|
||||||
myCreateNetworkGameDialog = boost::shared_ptr<createNetworkGameDialogImpl>(new createNetworkGameDialogImpl(this, myConfig));
|
myCreateNetworkGameDialog = boost::shared_ptr<createNetworkGameDialogImpl>(new createNetworkGameDialogImpl(this, myConfig));
|
||||||
myAboutPokerthDialog = boost::shared_ptr<aboutPokerthImpl>(new aboutPokerthImpl(this, myConfig));
|
|
||||||
// myGameLobbyDialog = boost::shared_ptr<gameLobbyDialogImpl>(new gameLobbyDialogImpl(this, myConfig));
|
|
||||||
|
|
||||||
myStartNetworkGameDialog->setMyW(this);
|
myStartNetworkGameDialog->setMyW(this);
|
||||||
// myGameLobbyDialog->setMyW(this);
|
|
||||||
|
|
||||||
myTimeoutDialog.reset(new timeoutMsgBoxImpl(this));
|
myTimeoutDialog.reset(new timeoutMsgBoxImpl(this));
|
||||||
|
|
||||||
@@ -533,12 +530,7 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
|
|||||||
|
|
||||||
connect(blinkingStartButtonAnimationTimer, SIGNAL(timeout()), this, SLOT( blinkingStartButtonAnimationAction()));
|
connect(blinkingStartButtonAnimationTimer, SIGNAL(timeout()), this, SLOT( blinkingStartButtonAnimationAction()));
|
||||||
|
|
||||||
connect( actionNewGame, SIGNAL( triggered() ), this, SLOT( callNewGameDialog() ) );
|
|
||||||
connect( actionAboutPokerth, SIGNAL( triggered() ), this, SLOT( callAboutPokerthDialog() ) );
|
|
||||||
connect( actionSettings, SIGNAL( triggered() ), this, SLOT( callSettingsDialog() ) );
|
connect( actionSettings, SIGNAL( triggered() ), this, SLOT( callSettingsDialog() ) );
|
||||||
connect( actionJoin_network_Game, SIGNAL( triggered() ), this, SLOT( callJoinNetworkGameDialog() ) );
|
|
||||||
connect( actionCreate_network_Game, SIGNAL( triggered() ), this, SLOT( callCreateNetworkGameDialog() ) );
|
|
||||||
connect( actionInternet_Game, SIGNAL( triggered() ), this, SLOT( callGameLobbyDialog() ) );
|
|
||||||
connect( actionQuit, SIGNAL( triggered() ), this, SLOT( quitPokerTH() ) );
|
connect( actionQuit, SIGNAL( triggered() ), this, SLOT( quitPokerTH() ) );
|
||||||
connect( actionFullScreen, SIGNAL( triggered() ), this, SLOT( switchFullscreen() ) );
|
connect( actionFullScreen, SIGNAL( triggered() ), this, SLOT( switchFullscreen() ) );
|
||||||
connect( actionShowHideChat, SIGNAL( triggered() ), this, SLOT( switchChatWindow() ) );
|
connect( actionShowHideChat, SIGNAL( triggered() ), this, SLOT( switchChatWindow() ) );
|
||||||
@@ -792,8 +784,6 @@ void gameTableImpl::startNewLocalGame(newGameDialogImpl *v) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void gameTableImpl::callAboutPokerthDialog() { myAboutPokerthDialog->exec(); }
|
|
||||||
|
|
||||||
void gameTableImpl::callCreateNetworkGameDialog() {
|
void gameTableImpl::callCreateNetworkGameDialog() {
|
||||||
|
|
||||||
myCreateNetworkGameDialog->exec();
|
myCreateNetworkGameDialog->exec();
|
||||||
@@ -998,6 +988,12 @@ void gameTableImpl::callSettingsDialog() {
|
|||||||
mySettingsDialog->exec();
|
mySettingsDialog->exec();
|
||||||
|
|
||||||
if (mySettingsDialog->result() == QDialog::Accepted && mySettingsDialog->getSettingsCorrect()) {
|
if (mySettingsDialog->result() == QDialog::Accepted && mySettingsDialog->getSettingsCorrect()) {
|
||||||
|
applySettings();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void gameTableImpl::applySettings() {
|
||||||
|
|
||||||
//Toolbox verstecken?
|
//Toolbox verstecken?
|
||||||
if (myConfig->readConfigInt("ShowLeftToolBox")) { groupBox_LeftToolBox->show(); }
|
if (myConfig->readConfigInt("ShowLeftToolBox")) { groupBox_LeftToolBox->show(); }
|
||||||
else { groupBox_LeftToolBox->hide(); }
|
else { groupBox_LeftToolBox->hide(); }
|
||||||
@@ -1090,7 +1086,6 @@ void gameTableImpl::callSettingsDialog() {
|
|||||||
// Re-init audio.
|
// Re-init audio.
|
||||||
mySDLPlayer->audioDone();
|
mySDLPlayer->audioDone();
|
||||||
mySDLPlayer->initAudio();
|
mySDLPlayer->initAudio();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gameTableImpl::initGui(int speed)
|
void gameTableImpl::initGui(int speed)
|
||||||
|
|||||||
@@ -200,8 +200,8 @@ public slots:
|
|||||||
void setGameSpeed(const int theValue) { guiGameSpeed = theValue; setSpeeds(); } // Achtung Faktor 10!!!
|
void setGameSpeed(const int theValue) { guiGameSpeed = theValue; setSpeeds(); } // Achtung Faktor 10!!!
|
||||||
|
|
||||||
void callNewGameDialog() ;
|
void callNewGameDialog() ;
|
||||||
void callAboutPokerthDialog();
|
|
||||||
void callSettingsDialog();
|
void callSettingsDialog();
|
||||||
|
void applySettings();
|
||||||
void callCreateNetworkGameDialog();
|
void callCreateNetworkGameDialog();
|
||||||
void callJoinNetworkGameDialog();
|
void callJoinNetworkGameDialog();
|
||||||
void callGameLobbyDialog();
|
void callGameLobbyDialog();
|
||||||
@@ -404,7 +404,6 @@ private:
|
|||||||
QPixmap *flipside;
|
QPixmap *flipside;
|
||||||
|
|
||||||
// Dialogs
|
// Dialogs
|
||||||
boost::shared_ptr<aboutPokerthImpl> myAboutPokerthDialog;
|
|
||||||
boost::shared_ptr<newGameDialogImpl> myNewGameDialog;
|
boost::shared_ptr<newGameDialogImpl> myNewGameDialog;
|
||||||
boost::shared_ptr<settingsDialogImpl> mySettingsDialog;
|
boost::shared_ptr<settingsDialogImpl> mySettingsDialog;
|
||||||
boost::shared_ptr<selectAvatarDialogImpl> mySelectAvatarDialog;
|
boost::shared_ptr<selectAvatarDialogImpl> mySelectAvatarDialog;
|
||||||
|
|||||||
@@ -123,6 +123,7 @@
|
|||||||
<addaction name="actionStart_Local_Game" />
|
<addaction name="actionStart_Local_Game" />
|
||||||
<addaction name="menuNetwork_Game" />
|
<addaction name="menuNetwork_Game" />
|
||||||
<addaction name="actionInternet_Game" />
|
<addaction name="actionInternet_Game" />
|
||||||
|
<addaction name="actionAbout_PokerTH" />
|
||||||
<addaction name="actionQuit" />
|
<addaction name="actionQuit" />
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuSettings" >
|
<widget class="QMenu" name="menuSettings" >
|
||||||
@@ -131,15 +132,8 @@
|
|||||||
</property>
|
</property>
|
||||||
<addaction name="actionConfigure_PokerTH" />
|
<addaction name="actionConfigure_PokerTH" />
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuAbout" >
|
|
||||||
<property name="title" >
|
|
||||||
<string>About</string>
|
|
||||||
</property>
|
|
||||||
<addaction name="actionAbout_PokerTH" />
|
|
||||||
</widget>
|
|
||||||
<addaction name="menuPokerTH" />
|
<addaction name="menuPokerTH" />
|
||||||
<addaction name="menuSettings" />
|
<addaction name="menuSettings" />
|
||||||
<addaction name="menuAbout" />
|
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusbar" />
|
<widget class="QStatusBar" name="statusbar" />
|
||||||
<action name="actionStart_Local_Game" >
|
<action name="actionStart_Local_Game" >
|
||||||
|
|||||||
@@ -90,6 +90,9 @@ startWindowImpl::startWindowImpl(ConfigFile *c)
|
|||||||
connect( actionJoin_Network_Game, SIGNAL( triggered() ), this, SLOT( callJoinNetworkGameDialog() ) );
|
connect( actionJoin_Network_Game, SIGNAL( triggered() ), this, SLOT( callJoinNetworkGameDialog() ) );
|
||||||
connect( pushButton_Join_Network_Game, SIGNAL( clicked() ), 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()));
|
connect(this, SIGNAL(signalShowClientDialog()), this, SLOT(showClientDialog()));
|
||||||
|
|
||||||
@@ -396,3 +399,14 @@ void startWindowImpl::showNetworkStartDialog()
|
|||||||
myServerGuiInterface->getSession().terminateNetworkServer();
|
myServerGuiInterface->getSession().terminateNetworkServer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void startWindowImpl::callAboutPokerthDialog() { myAboutPokerthDialog->exec(); }
|
||||||
|
|
||||||
|
void startWindowImpl::callSettingsDialog() {
|
||||||
|
|
||||||
|
mySettingsDialog->exec();
|
||||||
|
|
||||||
|
if (mySettingsDialog->result() == QDialog::Accepted && mySettingsDialog->getSettingsCorrect()) {
|
||||||
|
myGuiInterface->getMyW()->applySettings();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -89,6 +89,9 @@ signals:
|
|||||||
|
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
|
void callAboutPokerthDialog();
|
||||||
|
void callSettingsDialog();
|
||||||
void callNewGameDialog();
|
void callNewGameDialog();
|
||||||
void callGameLobbyDialog();
|
void callGameLobbyDialog();
|
||||||
void callCreateNetworkGameDialog();
|
void callCreateNetworkGameDialog();
|
||||||
@@ -98,6 +101,7 @@ public slots:
|
|||||||
void showClientDialog();
|
void showClientDialog();
|
||||||
void showNetworkStartDialog();
|
void showNetworkStartDialog();
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ConfigFile *myConfig;
|
ConfigFile *myConfig;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user