show login dialog with F6
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#include "timeoutmsgboximpl.h"
|
||||
#include "chattools.h"
|
||||
#include "serverlistdialogimpl.h"
|
||||
#include "internetgamelogindialogimpl.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -94,6 +95,7 @@ startWindowImpl::startWindowImpl(ConfigFile *c)
|
||||
|
||||
myTimeoutDialog = new timeoutMsgBoxImpl(this);
|
||||
myServerListDialog = new serverListDialogImpl(this, this, myConfig);
|
||||
myInternetGameLoginDialog = new internetGameLoginDialogImpl(this, myConfig);
|
||||
|
||||
connect( actionStart_Local_Game, SIGNAL( triggered() ), this, SLOT( callNewGameDialog() ) );
|
||||
connect( pushButtonStart_Local_Game, SIGNAL( clicked() ), this, SLOT( callNewGameDialog() ) );
|
||||
@@ -869,3 +871,14 @@ QStringList startWindowImpl::getPlayerNicksList() {
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
void startWindowImpl::showInternetGameLoginDialog() {
|
||||
|
||||
myInternetGameLoginDialog->exec();
|
||||
}
|
||||
|
||||
void startWindowImpl::keyPressEvent ( QKeyEvent * event ) {
|
||||
|
||||
if (event->key() == Qt::Key_F6) { showInternetGameLoginDialog(); }
|
||||
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ class changeHumanPlayerNameDialogImpl;
|
||||
class gameLobbyDialogImpl;
|
||||
class timeoutMsgBoxImpl;
|
||||
class serverListDialogImpl;
|
||||
class internetGameLoginDialogImpl;
|
||||
|
||||
class startWindowImpl: public QMainWindow, public Ui::startWindow {
|
||||
Q_OBJECT
|
||||
@@ -54,6 +55,8 @@ public:
|
||||
boost::shared_ptr< GuiInterface > getMyServerGuiInterface() const { return myServerGuiInterface; }
|
||||
connectToServerDialogImpl* getMyConnectToServerDialog() const { return myConnectToServerDialog; }
|
||||
|
||||
void keyPressEvent( QKeyEvent *);
|
||||
|
||||
signals:
|
||||
void signalShowClientDialog();
|
||||
|
||||
@@ -109,6 +112,7 @@ public slots:
|
||||
void joinGameLobby();
|
||||
void showClientDialog();
|
||||
void showNetworkStartDialog();
|
||||
void showInternetGameLoginDialog();
|
||||
|
||||
void startNewLocalGame(newGameDialogImpl* =0);
|
||||
|
||||
@@ -143,7 +147,7 @@ private:
|
||||
timeoutMsgBoxImpl *myTimeoutDialog;
|
||||
startWindowImpl *myStartWindow;
|
||||
serverListDialogImpl *myServerListDialog;
|
||||
|
||||
internetGameLoginDialogImpl *myInternetGameLoginDialog;
|
||||
|
||||
friend class GuiWrapper;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user