forked from UCR-Solar-Car/DriverInterface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
116 lines (75 loc) · 1.98 KB
/
mainwindow.h
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "battery.h"
#include "distance.h"
#include "gears.h"
#include "horn.h"
#include "indicators.h"
#include "lights.h"
#include "motor.h"
#include "speed.h"
#include "tirepressure.h"
#include <QMainWindow>
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void on_increaseBattery_clicked();
void on_decreaseBattery_clicked();
void on_leftIndicatorON_clicked();
void on_leftIndicatorOFF_clicked();
void on_rightIndicatorON_clicked();
void on_rightIndicatorOFF_clicked();
void on_hazardIndicatorON_clicked();
void on_hazardIndicatorOFF_clicked();
void on_dayLightsON_clicked();
void on_dayLightsOFF_clicked();
void on_nightLightsON_clicked();
void on_nightLightsOFF_clicked();
void on_lightsOFF_clicked();
void on_batteryWarningON_clicked();
void on_batteryWarningOFF_clicked();
void on_motorWarningON_clicked();
void on_motorWarningOFF_clicked();
void on_increaseMPH_clicked();
void on_decreaseMPH_clicked();
void on_hornSignalON_clicked();
void on_hornSignalOFF_clicked();
void flash();
void on_parkingSignalON_clicked();
void on_drivingSignalON_clicked();
void on_neutralSignalON_clicked();
void on_reversingSignalON_clicked();
void on_cruiseControlON_clicked();
void on_cruiseControlOFF_clicked();
void on_frontLeftOFF_clicked();
void on_frontLeftON_clicked();
void on_frontRightOFF_clicked();
void on_frontRightON_clicked();
void on_backLeftOFF_clicked();
void on_backLeftON_clicked();
void on_backRightOFF_clicked();
void on_backRightON_clicked();
private:
Ui::MainWindow *ui;
Battery battery;
Indicators indicators;
Lights lights;
Motor motors;
Speed speed;
Distance distance;
Horn horn;
QTimer *timer;
bool blink;
Gears gear;
TirePressure tire;
int seconds;
};
#endif // MAINWINDOW_H