v0.5.9 — Touch-optimized ECG settings

Restyled the ECG settings window with light-grey text/controls, a neutral
0.8-pixel outer border and thin 0.8-pixel Cairo separators matching the
monitor. Replaced the on-monitor HR limit text entries with large 5-bpm
**−/+** buttons and independent **ON/OFF** controls; the ECG lead remains a
touch-selectable dropdown. Pending changes still require Apply, and Cancel
leaves the shared parameters unchanged. No signal generation was altered.
This commit is contained in:
GABRIEL Sebastian 2026-11-12 16:36:07 +01:00
commit 3f191e4c46
8 changed files with 673 additions and 73 deletions

View file

@ -1,4 +1,4 @@
# Patient Monitor Simulation (PaMSim) — v0.5.8
# Patient Monitor Simulation (PaMSim) — v0.5.9
A Rust/GTK4 patient-monitor simulator with two main windows for teaching on Fedora Linux.
@ -23,10 +23,10 @@ The NIBP visibility toggle hides **only the fourth group's content**; the
bottom measurement row and other three groups remain present. Disabling one
of the four waveform channels still reflows the remaining rows above it.
## ECG touchscreen settings (v0.5.8)
## ECG touchscreen settings (v0.5.9)
Tap or click **anywhere in the ECG row**, on either the **trace (left 75%)** or
**heart-rate readout (right 25%)**, to open a modal green-on-black ECG settings
**heart-rate readout (right 25%)**, to open a modal **black-and-light-grey ECG settings**
window above the monitor. The same interaction works when the monitor is in
fullscreen mode. Touch/click input outside the ECG row opens no menu. Hiding
the ECG channel also disables its touch target.
@ -38,13 +38,20 @@ The menu offers:
an *illustrative lead-dependent gain/polarity transformation*. This is **not**
a diagnostic 12-lead ECG derivation; cardiac timing, HR and mechanical
capture do not change when the lead changes.
- **HR alarm limits:** optional **↓ Lower** and **↑ Upper**, in bpm. Leave
either box empty (OFF) to disable that alarm boundary. A limit must be in
the range 0–240 and the lower limit must not exceed the upper limit.
- **HR alarm limits:** optional **↓ Lower** and **↑ Upper**, in bpm.
Each limit has large **− / +** touch buttons that adjust the value in
**5 bpm steps** (range 0–240), plus an **OFF** button to disable it.
When disabled, an **ON** button restores its previous value (or 60 bpm
for an unset lower limit and 100 bpm for an unset upper limit).
The lower limit must not exceed the upper limit.
- **Apply** commits lead and limits together; **Cancel** or **Esc** discards
unsaved changes. Both Admin and monitor displays reflect committed changes.
Changing limits in the monitor marks the Admin alarm preset as **Custom**.
The menu uses light-grey text instead of the ECG waveform color and
subtle separators matching the main monitor divider thickness. No keyboard
is required for the ECG menu; the Admin window retains numeric text inputs.
The Admin ECG section also includes an ECG-lead selector, synchronized with
changes made from the monitor. No settings menu is yet provided for other
channels.
@ -561,3 +568,12 @@ waveform or numeric HR cell. Edits HR lower/upper alarms and displayed lead
(I, II, III, aVR, aVL, aVF, V1–V6), with input validation and Admin sync.
Lead changes are schematic display projections only; arrhythmia and pulse
simulation remain unchanged.
### v0.5.9 — Touch-optimized ECG settings
Restyled the ECG settings window with light-grey text/controls, a neutral
0.8-pixel outer border and thin 0.8-pixel Cairo separators matching the
monitor. Replaced the on-monitor HR limit text entries with large 5-bpm
**−/+** buttons and independent **ON/OFF** controls; the ECG lead remains a
touch-selectable dropdown. Pending changes still require Apply, and Cancel
leaves the shared parameters unchanged. No signal generation was altered.