log file handling as standalone dialog finished
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#include "chattools.h"
|
||||
#include "serverlistdialogimpl.h"
|
||||
#include "internetgamelogindialogimpl.h"
|
||||
#include "logfiledialog.h"
|
||||
#include "guilog.h"
|
||||
|
||||
using namespace std;
|
||||
@@ -119,10 +120,12 @@ startWindowImpl::startWindowImpl(ConfigFile *c, Log *l)
|
||||
myCreateNetworkGameDialog = new createNetworkGameDialogImpl(this, myConfig);
|
||||
myAboutPokerthDialog = new aboutPokerthImpl(this, myConfig);
|
||||
myGameLobbyDialog = new gameLobbyDialogImpl(this, myConfig);
|
||||
myLogFileDialog = new LogFileDialog(this, myConfig);
|
||||
|
||||
myStartNetworkGameDialog->setMyW(myGuiInterface->getMyW());
|
||||
myGameLobbyDialog->setMyW(myGuiInterface->getMyW());
|
||||
mySettingsDialog->setGuiLog(myGuiLog);
|
||||
myLogFileDialog->setGuiLog(myGuiLog);
|
||||
|
||||
myTimeoutDialog = new timeoutMsgBoxImpl(this);
|
||||
myServerListDialog = new serverListDialogImpl(this, this, myConfig);
|
||||
@@ -135,7 +138,8 @@ startWindowImpl::startWindowImpl(ConfigFile *c, Log *l)
|
||||
connect( actionCreate_Network_Game, SIGNAL( triggered() ), this, SLOT( callCreateNetworkGameDialog() ) );
|
||||
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( pushButton_Join_Network_Game, SIGNAL( clicked() ), this, SLOT( callJoinNetworkGameDialog() ) );
|
||||
connect( actionLogs, SIGNAL( triggered() ), this, SLOT( callLogFileDialog() ) );
|
||||
|
||||
connect(this, SIGNAL(signalShowClientDialog()), this, SLOT(showClientDialog()));
|
||||
|
||||
@@ -625,6 +629,11 @@ void startWindowImpl::callSettingsDialog(bool ingame)
|
||||
}
|
||||
}
|
||||
|
||||
void startWindowImpl::callLogFileDialog()
|
||||
{
|
||||
myLogFileDialog->exec();
|
||||
}
|
||||
|
||||
void startWindowImpl::showTimeoutDialog(int msgID, unsigned duration)
|
||||
{
|
||||
if(myTimeoutDialog->isHidden()) {
|
||||
|
||||
@@ -53,6 +53,7 @@ class serverListDialogImpl;
|
||||
class internetGameLoginDialogImpl;
|
||||
class guiLog;
|
||||
class Log;
|
||||
class LogFileDialog;
|
||||
|
||||
class startWindowImpl: public QMainWindow, public Ui::startWindow
|
||||
{
|
||||
@@ -139,6 +140,7 @@ public slots:
|
||||
void joinGameLobby();
|
||||
void showClientDialog();
|
||||
void showNetworkStartDialog();
|
||||
void callLogFileDialog();
|
||||
|
||||
void startNewLocalGame(newGameDialogImpl* =0);
|
||||
|
||||
@@ -178,8 +180,9 @@ private:
|
||||
startWindowImpl *myStartWindow;
|
||||
serverListDialogImpl *myServerListDialog;
|
||||
internetGameLoginDialogImpl *myInternetGameLoginDialog;
|
||||
LogFileDialog *myLogFileDialog;
|
||||
|
||||
MyMessageBox msgBoxOutdatedVersion;
|
||||
MyMessageBox msgBoxOutdatedVersion;
|
||||
bool msgBoxOutdatedVersionActive;
|
||||
|
||||
friend class GuiWrapper;
|
||||
|
||||
Reference in New Issue
Block a user