mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
Log UI
This commit is contained in:
parent
e81a6d497b
commit
8db10be892
9 changed files with 178 additions and 12 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include "dlg_register.h"
|
||||
#include "dlg_settings.h"
|
||||
#include "dlg_update.h"
|
||||
#include "dlg_viewlog.h"
|
||||
#include "tab_supervisor.h"
|
||||
#include "remoteclient.h"
|
||||
#include "localserver.h"
|
||||
|
|
@ -304,6 +305,12 @@ void MainWindow::actUpdate()
|
|||
dlg.exec();
|
||||
}
|
||||
|
||||
void MainWindow::actViewLog()
|
||||
{
|
||||
DlgViewLog dlg(this);
|
||||
dlg.exec();
|
||||
}
|
||||
|
||||
void MainWindow::serverTimeout()
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Server timeout"));
|
||||
|
|
@ -511,6 +518,7 @@ void MainWindow::retranslateUi()
|
|||
|
||||
aAbout->setText(tr("&About Cockatrice"));
|
||||
aUpdate->setText(tr("&Update Cockatrice"));
|
||||
aViewLog->setText(tr("View &debug log"));
|
||||
helpMenu->setTitle(tr("&Help"));
|
||||
aCheckCardUpdates->setText(tr("Check for card updates..."));
|
||||
tabSupervisor->retranslateUi();
|
||||
|
|
@ -543,6 +551,8 @@ void MainWindow::createActions()
|
|||
connect(aAbout, SIGNAL(triggered()), this, SLOT(actAbout()));
|
||||
aUpdate = new QAction(this);
|
||||
connect(aUpdate, SIGNAL(triggered()), this, SLOT(actUpdate()));
|
||||
aViewLog = new QAction(this);
|
||||
connect(aViewLog, SIGNAL(triggered()), this, SLOT(actViewLog()));
|
||||
|
||||
aCheckCardUpdates = new QAction(this);
|
||||
connect(aCheckCardUpdates, SIGNAL(triggered()), this, SLOT(actCheckCardUpdates()));
|
||||
|
|
@ -610,6 +620,7 @@ void MainWindow::createMenus()
|
|||
helpMenu = menuBar()->addMenu(QString());
|
||||
helpMenu->addAction(aAbout);
|
||||
helpMenu->addAction(aUpdate);
|
||||
helpMenu->addAction(aViewLog);
|
||||
}
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue