-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathconfigwindow.h
More file actions
40 lines (32 loc) · 733 Bytes
/
Copy pathconfigwindow.h
File metadata and controls
40 lines (32 loc) · 733 Bytes
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
#ifndef CONFIGWINDOW_H
#define CONFIGWINDOW_H
#include <QDialog>
#include <QSerialPort>
namespace Ui {
class ConfigWindow;
}
struct ConfigWindowParam {
qint32 baudrate;
QSerialPort::DataBits databits;
QSerialPort::StopBits stopbits;
QSerialPort::Parity parity;
int sampleFreq;
int gdbPort;
QString gdbParam;
QString ocdParam;
};
class ConfigWindow : public QDialog
{
Q_OBJECT
public:
explicit ConfigWindow(QWidget *parent = nullptr);
~ConfigWindow();
void setParam(ConfigWindowParam ¶m);
void getParam(ConfigWindowParam ¶m);
private slots:
void on_bt_ok_clicked();
void on_bt_cancel_clicked();
private:
Ui::ConfigWindow *ui;
};
#endif // CONFIGWINDOW_H