forked from challinan/pmd-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
118 lines (89 loc) · 2.4 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
117
118
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTimer>
#include "helper.h"
#include "widget.h"
#include "data.h"
#ifdef PMD_MEHV
#include "MEHV_dataSupplier.h"
#endif
#ifdef PMD_NUCLEUS
#include "NUC_dataSupplier.h"
#endif
#ifdef PMD_HAMP
#include "HAMP_dataSupplier.h"
#endif
namespace Ui {
class MainWindow;
}
class GraphSettingsPopup;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
int getPulseValue();
QString getABPValue();
QString getPLETHValue();
private slots:
void updatePulse();
void updateABP();
void updatePLETH();
void updateTimer();
void updateTimeString();
void animateAlarm();
void on_pbtn_Scrolling_clicked(bool checked);
void on_pbtn_StartStop_clicked(bool checked);
void on_pbtn_PauseAll_clicked(bool checked);
void on_pbtn_ECG_Alarm_clicked(bool checked);
void on_pbtn_spo2_Alarm_clicked(bool checked);
void on_pbtn_ABP_Alarm_clicked(bool checked);
void dataReceived(pm_data_struct* current);
void onGraphMenuPopupOk();
void launchGraphMenuPopup(Widget *widget);
void onGraphMenuPopupCancel();
#ifndef PMD_NUCLEUS
void connectionStatus(bool status);
#endif
void on_pbtn_Silent_clicked();
#ifdef PMD_HAMP
void takeScreenSnapshort();
#endif
private:
Ui::MainWindow *ui;
Widget *m_graphWidget1;
#ifndef ONLY_SHOW_ECG_GRAPH
Widget *m_graphWidget2;
Widget *m_graphWidget3;
#endif
Widget *m_selectedGraphWidget;
QTimer *m_timerDataValues;
/* List of Normal Pluse data*/
QList<int> m_HB_Simulate_Data;
/* List for Higher and Lower ABP data*/
QList<int> m_ABP_Higher_Simulate_Data;
QList<int> m_ABP_Lower_Simulate_Data;
/* List of SPO2 data*/
QList<int> m_PLETH_Simulate_Data;
QTimer *m_timerAlarm;
GraphSettingsPopup *m_graphSettingsPop;
QString m_alarmBtnNormalStyleSheet;
QString m_alarmBtnRedStyleSheet;
#ifdef PMD_MEHV
Server *m_nserver;
#endif
bool m_cstatus;
bool m_isPauseAll;
bool m_isStart;
bool m_isAlarmSilent;
bool m_btnSilentPressed;
#ifdef PMD_NUCLEUS
DataSupplier *m_dataSupplier;
#endif
#ifdef PMD_HAMP
HAMPDataSupplier *m_hampdataSupplier;
#endif
};
#endif // MAINWINDOW_H