-
Notifications
You must be signed in to change notification settings - Fork 10
/
flightindicators.h
75 lines (60 loc) · 1.45 KB
/
flightindicators.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
#ifndef FLIGHTINDICATORS_H
#define FLIGHTINDICATORS_H
#include <QWidget>
#include <QDebug>
#include <QDateTime>
#include <QTimer>
#include <QFont>
#include <QLabel>
#include <QPushButton>
#include <gpsGUI/qledlabel.h>
struct fiUI_t {
// COL 1:
QLedLabel *diskLED = NULL;
QLabel *imageLabel = NULL;
QLedLabel *imageLED = NULL;
QLedLabel *gpsLinkLED = NULL;
QLedLabel *gpsTroubleLED = NULL;
QPushButton *clearErrorsBtn = NULL;
// COL 2:
QLabel *latLabel = NULL;
QLabel *longLabel = NULL;
QLabel *headingLabel = NULL;
QLabel *alignmentLabel = NULL;
QLabel *lastIssueLabel = NULL;
// COL 3:
QLabel *groundSpeedLabel = NULL;
QLabel *altitudeLabel = NULL;
QLabel *lastRecLabel = NULL;
};
namespace Ui {
class flightIndicators;
}
class flightIndicators : public QWidget
{
Q_OBJECT
public:
explicit flightIndicators(QWidget *parent = nullptr);
~flightIndicators();
Ui::flightIndicators *ui;
public slots:
void updateTimeDate();
void updateLastRec(QString hhmm);
void updateLastRec();
void doneRecording();
void updateLastIssue(QString message);
fiUI_t getElements();
signals:
void clearErrors();
void statusText(QString);
private slots:
void on_clearErrorsBtn_clicked();
private:
QTimer *clock;
void ssm(QString stat);
bool nowRecording = false;
QFont defLabelFont;
QFont alertLabelFont;
void debugThis();
};
#endif // FLIGHTINDICATORS_H