From 4eb67a76ecbe7af98cbaa1f1a5138706fcb16684 Mon Sep 17 00:00:00 2001 From: GABRIEL Sebastian Date: Thu, 12 Nov 2026 14:21:33 +0100 Subject: [PATCH] v0.5.2: monitor layout change --- ...-monitor-simulation-v0.5.1-to-v0.5.2.patch | 46 +++++++++++++++++++ patient-monitor-simulation/Cargo.lock | 2 +- patient-monitor-simulation/Cargo.toml | 2 +- patient-monitor-simulation/README.de.md.rej | 33 ++----------- patient-monitor-simulation/README.md | 2 +- patient-monitor-simulation/src/render.rs | 7 --- 6 files changed, 53 insertions(+), 39 deletions(-) create mode 100644 patient-monitor-simulation-v0.5.1-to-v0.5.2.patch diff --git a/patient-monitor-simulation-v0.5.1-to-v0.5.2.patch b/patient-monitor-simulation-v0.5.1-to-v0.5.2.patch new file mode 100644 index 0000000..a412fa7 --- /dev/null +++ b/patient-monitor-simulation-v0.5.1-to-v0.5.2.patch @@ -0,0 +1,46 @@ +diff -ruN a/Cargo.toml b/Cargo.toml +--- a/Cargo.toml 2026-11-12 13:05:10.000000000 +0000 ++++ b/Cargo.toml 2026-11-12 13:10:05.130839688 +0000 +@@ -1,6 +1,6 @@ + [package] + name = "patient-monitor-simulation" +-version = "0.5.1" ++version = "0.5.2" + edition = "2021" + license = "MIT" + description = "Synthetic patient-monitor simulation for teaching (not for clinical use)" +diff -ruN a/README.de.md b/README.de.md +--- a/README.de.md 2026-11-12 13:05:10.000000000 +0000 ++++ b/README.de.md 2026-11-12 13:10:05.131166243 +0000 +@@ -1,4 +1,4 @@ +-# Patient Monitor Simulation (PaMSim) — v0.5.1 ++# Patient Monitor Simulation (PaMSim) — v0.5.2 + + Ein mit Rust und GTK4 entwickelter Patient*innenmonitor-Simulator mit zwei Fenstern für die Lehre unter Fedora Linux. + +diff -ruN a/README.md b/README.md +--- a/README.md 2026-11-12 13:05:10.000000000 +0000 ++++ b/README.md 2026-11-12 13:10:05.130976637 +0000 +@@ -1,4 +1,4 @@ +-# Patient Monitor Simulation (PaMSim) — v0.5.1 ++# Patient Monitor Simulation (PaMSim) — v0.5.2 + + A two-window, Rust/GTK4 patient-monitor simulator for teaching on Fedora Linux. + +diff -ruN a/src/render.rs b/src/render.rs +--- a/src/render.rs 2026-11-12 13:05:10.000000000 +0000 ++++ b/src/render.rs 2026-11-12 13:10:05.128193199 +0000 +@@ -102,13 +102,6 @@ + let value_width = (width - 35.0).max(30.0); + let small = (height * 0.095).clamp(10.0, 14.0); + let number_size = (height * 0.25).clamp(18.0, 41.0); +- // Subtle red outline distinguishes the independent cuff reading box. +- let _ = cr.save(); +- cr.set_source_rgb(0.28, 0.09, 0.10); +- cr.set_line_width(1.0); +- cr.rectangle(x - 7.0, top, width + 13.0, height - 1.0); +- let _ = cr.stroke(); +- let _ = cr.restore(); + text(cr, "NIBP", x, top + height * 0.13, small * 1.15, RED, true); + if in_progress { + text(cr, "MEASURING", x, top + height * 0.27, small, RED, false); diff --git a/patient-monitor-simulation/Cargo.lock b/patient-monitor-simulation/Cargo.lock index 5ab660c..5d7d9b8 100644 --- a/patient-monitor-simulation/Cargo.lock +++ b/patient-monitor-simulation/Cargo.lock @@ -438,7 +438,7 @@ dependencies = [ [[package]] name = "patient-monitor-simulation" -version = "0.5.1" +version = "0.5.2" dependencies = [ "gtk4", ] diff --git a/patient-monitor-simulation/Cargo.toml b/patient-monitor-simulation/Cargo.toml index 2302d65..15a8ad2 100644 --- a/patient-monitor-simulation/Cargo.toml +++ b/patient-monitor-simulation/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "patient-monitor-simulation" -version = "0.5.1" +version = "0.5.2" edition = "2021" license = "MIT" description = "Synthetic patient-monitor simulation for teaching (not for clinical use)" diff --git a/patient-monitor-simulation/README.de.md.rej b/patient-monitor-simulation/README.de.md.rej index 13df868..7c1fa66 100644 --- a/patient-monitor-simulation/README.de.md.rej +++ b/patient-monitor-simulation/README.de.md.rej @@ -1,33 +1,8 @@ ---- README.de.md -+++ README.de.md +--- README.de.md 2026-11-12 13:05:10.000000000 +0000 ++++ README.de.md 2026-11-12 13:10:05.131166243 +0000 @@ -1,4 +1,4 @@ --# Patient Monitor Simulation (PaMSim) — v0.5.0 -+# Patient Monitor Simulation (PaMSim) — v0.5.1 +-# Patient Monitor Simulation (PaMSim) — v0.5.1 ++# Patient Monitor Simulation (PaMSim) — v0.5.2 Ein mit Rust und GTK4 entwickelter Patient*innenmonitor-Simulator mit zwei Fenstern für die Lehre unter Fedora Linux. -@@ -36,7 +36,11 @@ Lange Namen werden an die verfügbare Breite angepasst oder abgeschnitten. - Wird die Sichtbarkeit eines Parameters deaktiviert, verschwinden sowohl seine Kurve als auch die zugehörigen Messwerte. - Die verbleibenden Kurvenbereiche vergrößern sich entsprechend. - Das Ausblenden eines Monitorbereichs unterbricht **nicht** die Signalerzeugung oder physiologische Kopplung: Wird beispielsweise das EKG ausgeblendet, können arterielle und plethysmographische Pulse weiterhin auftreten. --NIBP kann unabhängig ausgeblendet werden; dabei verschwindet auch das separate rote Wertefeld in der rechten Monitorspalte. -+Für NIBP wird in der linken Kurvenspalte eine **leere Zelle** freigehalten. -+Damit sind die Kurvenbereiche und die numerischen Wertefelder in der rechten Spalte -+in allen Zeilen exakt aufeinander ausgerichtet. -+NIBP kann unabhängig ausgeblendet werden; dabei verschwindet die gesamte NIBP-Zeile -+und die übrigen Zeilen nutzen den frei werdenden Platz. - - Das Monitorfenster lässt sich in der Größe verändern. - Mit **F11** wird der Vollbildmodus aktiviert bzw. umgeschaltet, mit **Esc** wird er verlassen. -@@ -367,3 +371,11 @@ Beide Manschetten-Interferenzoptionen sind standardmäßig deaktiviert. - - **Die NIBP-Simulation ist ausschließlich ein didaktisches Modell und keine - klinisch validierte oszillometrische Messung.** -+ -+## v0.5.1 — Ausrichtung der Monitorspalten -+ -+Die linke Kurvenspalte und die rechte numerische Spalte verwenden nun dieselbe -+Zeilenaufteilung. Neben dem NIBP-Wertefeld bleibt links eine leere Zelle, statt -+die anderen Wertefelder vertikal zusammenzudrängen. Beim Ausblenden einzelner -+Monitorbereiche werden beide Spalten gemeinsam neu aufgeteilt. -+Das Messverhalten und die Alarmfunktionen bleiben unverändert. diff --git a/patient-monitor-simulation/README.md b/patient-monitor-simulation/README.md index d1f48c0..fdccd8b 100644 --- a/patient-monitor-simulation/README.md +++ b/patient-monitor-simulation/README.md @@ -1,4 +1,4 @@ -# Patient Monitor Simulation (PaMSim) — v0.5.1 +# Patient Monitor Simulation (PaMSim) — v0.5.2 A two-window, Rust/GTK4 patient-monitor simulator for teaching on Fedora Linux. diff --git a/patient-monitor-simulation/src/render.rs b/patient-monitor-simulation/src/render.rs index b3dc04d..8cce43d 100644 --- a/patient-monitor-simulation/src/render.rs +++ b/patient-monitor-simulation/src/render.rs @@ -102,13 +102,6 @@ fn draw_nibp_box(cr: &Context, x: f64, top: f64, width: f64, height: f64, let value_width = (width - 35.0).max(30.0); let small = (height * 0.095).clamp(10.0, 14.0); let number_size = (height * 0.25).clamp(18.0, 41.0); - // Subtle red outline distinguishes the independent cuff reading box. - let _ = cr.save(); - cr.set_source_rgb(0.28, 0.09, 0.10); - cr.set_line_width(1.0); - cr.rectangle(x - 7.0, top, width + 13.0, height - 1.0); - let _ = cr.stroke(); - let _ = cr.restore(); text(cr, "NIBP", x, top + height * 0.13, small * 1.15, RED, true); if in_progress { text(cr, "MEASURING", x, top + height * 0.27, small, RED, false);