forked from OVVE/software-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.py
146 lines (139 loc) · 8.25 KB
/
mainwindow.py
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1048, 495)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.mode_button = QtWidgets.QPushButton(self.centralwidget)
self.mode_button.setGeometry(QtCore.QRect(200, 10, 64, 32))
self.mode_button.setCheckable(True)
self.mode_button.setObjectName("mode_button")
self.bpm_slider = QtWidgets.QSlider(self.centralwidget)
self.bpm_slider.setGeometry(QtCore.QRect(310, 100, 171, 22))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.bpm_slider.sizePolicy().hasHeightForWidth())
self.bpm_slider.setSizePolicy(sizePolicy)
self.bpm_slider.setOrientation(QtCore.Qt.Horizontal)
self.bpm_slider.setObjectName("bpm_slider")
self.bpm_label = QtWidgets.QLabel(self.centralwidget)
self.bpm_label.setGeometry(QtCore.QRect(50, 100, 121, 16))
self.bpm_label.setObjectName("bpm_label")
self.tv_label = QtWidgets.QLabel(self.centralwidget)
self.tv_label.setGeometry(QtCore.QRect(50, 150, 121, 16))
self.tv_label.setObjectName("tv_label")
self.tv_slider = QtWidgets.QSlider(self.centralwidget)
self.tv_slider.setGeometry(QtCore.QRect(310, 150, 171, 22))
self.tv_slider.setOrientation(QtCore.Qt.Horizontal)
self.tv_slider.setObjectName("tv_slider")
self.ie_label = QtWidgets.QLabel(self.centralwidget)
self.ie_label.setGeometry(QtCore.QRect(50, 200, 121, 16))
self.ie_label.setObjectName("ie_label")
self.ie_slider = QtWidgets.QSlider(self.centralwidget)
self.ie_slider.setGeometry(QtCore.QRect(310, 200, 171, 22))
self.ie_slider.setOrientation(QtCore.Qt.Horizontal)
self.ie_slider.setObjectName("ie_slider")
self.fio2_label = QtWidgets.QLabel(self.centralwidget)
self.fio2_label.setGeometry(QtCore.QRect(50, 250, 121, 16))
self.fio2_label.setObjectName("fio2_label")
self.fio2_slider = QtWidgets.QSlider(self.centralwidget)
self.fio2_slider.setGeometry(QtCore.QRect(310, 250, 171, 22))
self.fio2_slider.setOrientation(QtCore.Qt.Horizontal)
self.fio2_slider.setObjectName("fio2_slider")
self.bpm_lcd = QtWidgets.QLCDNumber(self.centralwidget)
self.bpm_lcd.setGeometry(QtCore.QRect(200, 100, 64, 23))
self.bpm_lcd.setObjectName("bpm_lcd")
self.tv_lcd = QtWidgets.QLCDNumber(self.centralwidget)
self.tv_lcd.setGeometry(QtCore.QRect(200, 150, 64, 23))
self.tv_lcd.setObjectName("tv_lcd")
self.ie_lcd = QtWidgets.QLCDNumber(self.centralwidget)
self.ie_lcd.setGeometry(QtCore.QRect(200, 200, 64, 23))
self.ie_lcd.setObjectName("ie_lcd")
self.fio2_lcd = QtWidgets.QLCDNumber(self.centralwidget)
self.fio2_lcd.setGeometry(QtCore.QRect(200, 250, 64, 23))
self.fio2_lcd.setObjectName("fio2_lcd")
self.resp_rate_slider = QtWidgets.QSlider(self.centralwidget)
self.resp_rate_slider.setGeometry(QtCore.QRect(310, 300, 171, 22))
self.resp_rate_slider.setOrientation(QtCore.Qt.Horizontal)
self.resp_rate_slider.setObjectName("resp_rate_slider")
self.resp_rate_lcd = QtWidgets.QLCDNumber(self.centralwidget)
self.resp_rate_lcd.setGeometry(QtCore.QRect(200, 300, 64, 23))
self.resp_rate_lcd.setObjectName("resp_rate_lcd")
self.resp_rate_label = QtWidgets.QLabel(self.centralwidget)
self.resp_rate_label.setGeometry(QtCore.QRect(50, 300, 121, 16))
self.resp_rate_label.setObjectName("resp_rate_label")
self.mode_label = QtWidgets.QLabel(self.centralwidget)
self.mode_label.setGeometry(QtCore.QRect(50, 20, 121, 16))
self.mode_label.setObjectName("mode_label")
self.peak_press_label = QtWidgets.QLabel(self.centralwidget)
self.peak_press_label.setGeometry(QtCore.QRect(50, 350, 121, 16))
self.peak_press_label.setObjectName("peak_press_label")
self.peak_press_lcd = QtWidgets.QLCDNumber(self.centralwidget)
self.peak_press_lcd.setGeometry(QtCore.QRect(200, 350, 64, 23))
self.peak_press_lcd.setObjectName("peak_press_lcd")
self.plateau_press_label = QtWidgets.QLabel(self.centralwidget)
self.plateau_press_label.setGeometry(QtCore.QRect(50, 400, 121, 16))
self.plateau_press_label.setObjectName("plateau_press_label")
self.plateau_press_lcd = QtWidgets.QLCDNumber(self.centralwidget)
self.plateau_press_lcd.setGeometry(QtCore.QRect(200, 400, 64, 23))
self.plateau_press_lcd.setObjectName("plateau_press_lcd")
self.peep_label = QtWidgets.QLabel(self.centralwidget)
self.peep_label.setGeometry(QtCore.QRect(50, 50, 121, 16))
self.peep_label.setObjectName("peep_label")
self.peep_lcd = QtWidgets.QLCDNumber(self.centralwidget)
self.peep_lcd.setGeometry(QtCore.QRect(200, 50, 64, 23))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(1)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.peep_lcd.sizePolicy().hasHeightForWidth())
self.peep_lcd.setSizePolicy(sizePolicy)
self.peep_lcd.setObjectName("peep_lcd")
self.peep_slider = QtWidgets.QSlider(self.centralwidget)
self.peep_slider.setGeometry(QtCore.QRect(310, 50, 171, 22))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.peep_slider.sizePolicy().hasHeightForWidth())
self.peep_slider.setSizePolicy(sizePolicy)
self.peep_slider.setOrientation(QtCore.Qt.Horizontal)
self.peep_slider.setObjectName("peep_slider")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1048, 22))
self.menubar.setObjectName("menubar")
self.menuAqualung = QtWidgets.QMenu(self.menubar)
self.menuAqualung.setObjectName("menuAqualung")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menubar.addAction(self.menuAqualung.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.mode_button.setText(_translate("MainWindow", "SIMV"))
self.bpm_label.setText(_translate("MainWindow", "BPM"))
self.tv_label.setText(_translate("MainWindow", "Tidal Volume"))
self.ie_label.setText(_translate("MainWindow", "I/E ratio"))
self.fio2_label.setText(_translate("MainWindow", "FIO2"))
self.resp_rate_label.setText(_translate("MainWindow", "Respiratory Rate"))
self.mode_label.setText(_translate("MainWindow", "Vent. Mode"))
self.peak_press_label.setText(_translate("MainWindow", "Peak Insp. Pressure"))
self.plateau_press_label.setText(_translate("MainWindow", "Plateau Pressure"))
self.peep_label.setText(_translate("MainWindow", "PEEP"))
self.menuAqualung.setTitle(_translate("MainWindow", "Oregon Volunteer Ventilator Project"))