summaryrefslogtreecommitdiffstats
path: root/display-gtk.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-10 17:58:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-10 17:58:42 +0100
commit836bbad7a6c87c00fd99a14117f0d7b5fc8f9d7a (patch)
treed3477eeac2fc61eec0d7883298a0ba50bc006e47 /display-gtk.h
parent3d8c1e50fcc2c7e2ab43e8d09bf00e0610d69eaa (diff)
downloadsubsurface-836bbad7a6c87c00fd99a14117f0d7b5fc8f9d7a.tar.gz
Add threshold feature for partial pressure graphs
The tec diving preference pane now allows us to set a partial pressure threshold for each of the three gases. When the partial pressure surpasses that value, the graph becomes red. Fixes #12 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display-gtk.h')
-rw-r--r--display-gtk.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/display-gtk.h b/display-gtk.h
index 22ff9d626..d709696a6 100644
--- a/display-gtk.h
+++ b/display-gtk.h
@@ -25,12 +25,15 @@ typedef struct {
gboolean po2;
gboolean pn2;
gboolean phe;
-} enabled_graphs_t;
+ double po2_threshold;
+ double pn2_threshold;
+ double phe_threshold;
+} partial_pressure_graphs_t;
extern visible_cols_t visible_cols;
-extern enabled_graphs_t enabled_graphs;
+extern partial_pressure_graphs_t partial_pressure_graphs;
-#define GRAPHS_ENABLED (enabled_graphs.po2 || enabled_graphs.pn2 || enabled_graphs.phe)
+#define GRAPHS_ENABLED (partial_pressure_graphs.po2 || partial_pressure_graphs.pn2 || partial_pressure_graphs.phe)
typedef enum {
PREF_BOOL,