-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsynestiatool.cpp
47 lines (40 loc) · 1003 Bytes
/
synestiatool.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
44
45
46
47
#include "synestiatool.h"
#include "ui_synestiatool.h"
#include <QSerialPort>
#include <QSerialPortInfo>
#include <QTextCodec>
#include <serialportreader.h>
#include <functional>
SynestiaTool::SynestiaTool(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::SynestiaTool)
{
ui->setupUi(this);
}
SynestiaTool::~SynestiaTool()
{
delete ui;
}
void SynestiaTool::on_actionAbout_triggered()
{
this->ui->welcomePanel->setVisible(false);
this->aboutDialog.show();
}
void SynestiaTool::on_actionSerial_Tool_triggered()
{
this->ui->welcomePanel->setVisible(false);
this->serialTool.setParent(this);
this->serialTool.show();
}
void SynestiaTool::on_actionDownload_Tool_triggered()
{
this->ui->welcomePanel->setVisible(false);
this->downloadTool.setParent(this);
this->downloadTool.show();
}
void SynestiaTool::on_actionOS_Monitor_triggered()
{
this->ui->welcomePanel->setVisible(false);
this->osMonitor.setParent(this);
this->osMonitor.show();
}