forked from OpenPanzerProject/OP-Config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deviceselect.cpp
40 lines (32 loc) · 856 Bytes
/
deviceselect.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
#include "deviceselect.h"
#include "ui_deviceselect.h"
deviceselect::deviceselect(QWidget *parent) :
QDialog(parent),
ui(new Ui::deviceselect)
{
ui->setupUi(this);
MainWindow *w = new MainWindow();
connect(this, SIGNAL(buttonClickedSignal(OP_device_name)), w, SLOT(setDevice(OP_device_name)));
}
deviceselect::~deviceselect()
{
delete ui;
}
void deviceselect::on_cmdTCB_clicked()
{
const OP_device_name SelectedDevice = TCB;
emit buttonClickedSignal(SelectedDevice);
this->close();
}
void deviceselect::on_cmdMiniTCB_clicked()
{
const OP_device_name SelectedDevice = MiniTCB;
emit buttonClickedSignal(SelectedDevice);
this->close();
}
void deviceselect::on_cmdScoutESC_clicked()
{
const OP_device_name SelectedDevice = ScoutESC;
emit buttonClickedSignal(SelectedDevice);
this->close();
}