Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HEV - High Energy Ventilator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
HEV - High Energy Ventilator
Commits
b842ef31
Commit
b842ef31
authored
May 19, 2021
by
Gabriel Rodrigues
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tab_personal localisation
parent
3c070d50
Pipeline
#1561
failed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
6 deletions
+33
-6
NativeUI.py
NativeUI/NativeUI.py
+6
-1
text_english.json
NativeUI/configs/text_english.json
+7
-1
text_portuguese.json
NativeUI/configs/text_portuguese.json
+10
-4
tab_personal.py
NativeUI/mode_widgets/tab_personal.py
+10
-0
No files found.
NativeUI/NativeUI.py
View file @
b842ef31
...
...
@@ -234,13 +234,15 @@ class NativeUI(HEVClient, QMainWindow):
self
.
widgets
.
localisation_button
.
SetLocalisation
.
connect
(
self
.
widgets
.
normal_measurements
.
localise_text
)
self
.
widgets
.
localisation_button
.
SetLocalisation
.
connect
(
self
.
widgets
.
detailed_measurements
.
localise_text
)
self
.
widgets
.
localisation_button
.
SetLocalisation
.
connect
(
self
.
widgets
.
normal_plots
.
localise_text
)
self
.
widgets
.
localisation_button
.
SetLocalisation
.
connect
(
self
.
widgets
.
ventilator_start_stop_buttons_widget
.
localise_text
)
self
.
widgets
.
localisation_button
.
SetLocalisation
.
connect
(
self
.
widgets
.
detailed_plots
.
localise_text
)
...
...
@@ -254,6 +256,9 @@ class NativeUI(HEVClient, QMainWindow):
self
.
widgets
.
localisation_button
.
SetLocalisation
.
connect
(
self
.
widgets
.
spin_buttons
.
localise_text
)
self
.
widgets
.
localisation_button
.
SetLocalisation
.
connect
(
self
.
widgets
.
mode_personal_tab
.
localise_text
)
return
0
...
...
NativeUI/configs/text_english.json
View file @
b842ef31
...
...
@@ -32,5 +32,11 @@
"spin_box_label_Respiratory_Rate"
:
"Respiratory Rate"
,
"spin_box_label_Inhale_Time"
:
"Inhale Time"
,
"spin_box_label_IE_Ratio"
:
"IE Ratio"
,
"spin_box_label_Percentage_O2"
:
"Percentage O2"
"spin_box_label_Percentage_O2"
:
"Percentage O2"
,
"personal_tab_name"
:
"Name"
,
"personal_tab_patientid"
:
"Patient ID"
,
"personal_tab_age"
:
"Age"
,
"personal_tab_sex"
:
"Sex"
,
"personal_tab_weight"
:
"Weight"
,
"personal_tab_height"
:
"Height"
}
NativeUI/configs/text_portuguese.json
View file @
b842ef31
...
...
@@ -17,10 +17,10 @@
"button_label_main_normal"
:
"Normal"
,
"button_label_main_detailed"
:
"Detalhado"
,
"ui_window_title"
:
"HEV NativeUI"
,
"measurement_label_plateau_pressure"
:
"P<sub>Plato<sub> [cmH<sub>2</sub>O]"
,
"measurement_label_respiratory_rate"
:
"FREQ<sub>RESP<sub>"
,
"measurement_label_plateau_pressure"
:
"P<sub>Plato<
/
sub> [cmH<sub>2</sub>O]"
,
"measurement_label_respiratory_rate"
:
"FREQ<sub>RESP<
/
sub>"
,
"measurement_label_fio2_percent"
:
"FIO<sub>2</sub> [%]"
,
"measurement_label_exhaled_tidal_volume"
:
"VOL<sub>EXAL<sub> [mL]"
,
"measurement_label_exhaled_tidal_volume"
:
"VOL<sub>EXAL<
/
sub> [mL]"
,
"measurement_label_exhaled_minute_volume"
:
"MVE [<sup>L</sup>/<sub>min</sub>]"
,
"measurement_label_peep"
:
"PEEP [cmH<sub>2</sub>O]"
,
"measurement_label_inhale_exhale_ratio"
:
"I:E"
,
...
...
@@ -32,5 +32,11 @@
"spin_box_label_Respiratory_Rate"
:
"Frequencia Respiratoria"
,
"spin_box_label_Inhale_Time"
:
"Tempo Inspiracao"
,
"spin_box_label_IE_Ratio"
:
"Razao I/E"
,
"spin_box_label_Percentage_O2"
:
"Porcetagem O<sub>2<sub>"
"spin_box_label_Percentage_O2"
:
"Porcetagem O<sub>2</sub>"
,
"personal_tab_name"
:
"Nome"
,
"personal_tab_patientid"
:
"ID do paciente"
,
"personal_tab_age"
:
"Idade"
,
"personal_tab_sex"
:
"Sexo"
,
"personal_tab_weight"
:
"Peso"
,
"personal_tab_height"
:
"Altura"
}
NativeUI/mode_widgets/tab_personal.py
View file @
b842ef31
...
...
@@ -36,6 +36,16 @@ class TabPersonal(TemplateSetValues):
self
.
addButtons
()
self
.
finaliseLayout
()
@
QtCore
.
Slot
(
dict
)
def
localise_text
(
self
,
text
:
dict
)
->
int
:
self
.
spinDict
[
"Name"
]
.
nameLabel
.
setText
(
text
[
"personal_tab_name"
])
self
.
spinDict
[
"Patient ID"
]
.
nameLabel
.
setText
(
text
[
"personal_tab_patientid"
])
self
.
spinDict
[
"Age"
]
.
nameLabel
.
setText
(
text
[
"personal_tab_age"
])
self
.
spinDict
[
"Sex"
]
.
nameLabel
.
setText
(
text
[
"personal_tab_sex"
])
self
.
spinDict
[
"Weight"
]
.
nameLabel
.
setText
(
text
[
"personal_tab_weight"
])
self
.
spinDict
[
"Height"
]
.
nameLabel
.
setText
(
text
[
"personal_tab_height"
])
return
0
if
__name__
==
"__main__"
:
# sys.path.append("../")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment