v0.5.2: monitor layout change
This commit is contained in:
parent
3be878804b
commit
4eb67a76ec
6 changed files with 53 additions and 39 deletions
46
patient-monitor-simulation-v0.5.1-to-v0.5.2.patch
Normal file
46
patient-monitor-simulation-v0.5.1-to-v0.5.2.patch
Normal file
|
|
@ -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);
|
||||||
2
patient-monitor-simulation/Cargo.lock
generated
2
patient-monitor-simulation/Cargo.lock
generated
|
|
@ -438,7 +438,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "patient-monitor-simulation"
|
name = "patient-monitor-simulation"
|
||||||
version = "0.5.1"
|
version = "0.5.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gtk4",
|
"gtk4",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "patient-monitor-simulation"
|
name = "patient-monitor-simulation"
|
||||||
version = "0.5.1"
|
version = "0.5.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
description = "Synthetic patient-monitor simulation for teaching (not for clinical use)"
|
description = "Synthetic patient-monitor simulation for teaching (not for clinical use)"
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,8 @@
|
||||||
--- README.de.md
|
--- README.de.md 2026-11-12 13:05:10.000000000 +0000
|
||||||
+++ README.de.md
|
+++ README.de.md 2026-11-12 13:10:05.131166243 +0000
|
||||||
@@ -1,4 +1,4 @@
|
@@ -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.
|
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.
|
|
||||||
|
|
|
||||||
|
|
@ -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.
|
A two-window, Rust/GTK4 patient-monitor simulator for teaching on Fedora Linux.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 value_width = (width - 35.0).max(30.0);
|
||||||
let small = (height * 0.095).clamp(10.0, 14.0);
|
let small = (height * 0.095).clamp(10.0, 14.0);
|
||||||
let number_size = (height * 0.25).clamp(18.0, 41.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);
|
text(cr, "NIBP", x, top + height * 0.13, small * 1.15, RED, true);
|
||||||
if in_progress {
|
if in_progress {
|
||||||
text(cr, "MEASURING", x, top + height * 0.27, small, RED, false);
|
text(cr, "MEASURING", x, top + height * 0.27, small, RED, false);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue