-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmainwindow.h
More file actions
58 lines (47 loc) · 1.06 KB
/
mainwindow.h
File metadata and controls
58 lines (47 loc) · 1.06 KB
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
48
49
50
51
52
53
54
55
56
57
58
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtSerialPort/QSerialPort>
#include <QTimer>
#include <QFile>
#include "ui_mainwindow.h"
#include "led.h"
namespace Ui
{
class MainWindow;
}
class MainWindow : public QMainWindow,
private Ui::MainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
public slots:
void startStopComm(void);
void aboutQt(void);
private slots:
void config(void);
void pollSerial(void);
void helpAbout(void);
void sendFile(void);
void saveScreen(void);
void startLogging(void);
void endLogging(void);
private:
bool eventFilter(QObject *obj, QEvent *event);
QSerialPort *port;
QSerialPort::BaudRate baudRates[8];
QStringList baudRateStrings;
QTimer timer;
void updateStatusBar(void);
QWidgetList sbList;
// Settings from config file
uint baudNdx;
bool hwFlow;
bool openAtStart;
QString deviceName;
QLed *txLed; // Green left LED
QLed *rxLed; // Red right LED
QFile *logFile;
};
#endif // MAINWINDOW_H