mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3d8c1e50fc
commit
836bbad7a6
3 changed files with 144 additions and 39 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue