-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.cpp
43 lines (37 loc) · 1.09 KB
/
mainwindow.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
//ui->logView->append("");
statusBar()->showMessage(tr("Ready"));
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::addLogMessage(QString html) {
ui->logView->append(html);
}
void MainWindow::setStatus(QString msg) {
ui->statusBar->showMessage(msg);
}
void MainWindow::on_actionQuit_triggered()
{
exit(0);
}
void MainWindow::on_actionAbout_triggered()
{
QMessageBox::about(this, "Espruino Local Host",
"Espruino Local Host is a WebSocket\n"
"Server that allows http://espruino.com/ide\n"
"to access local Serial and Bluetooth Low\n"
"Energy devices on your PC.\n"
"\n"
"It is built using Qt (qt.io) and all source files\n"
"are available at:\n"
"http://github.com/espruino/EspruinoHost");
}