diff options
author | Robert C. Helling <helling@atdotde.de> | 2019-10-29 17:57:34 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-31 00:30:38 -0700 |
commit | 9c8fbe494db231b59c2e072b54af85bc217c00d8 (patch) | |
tree | 2b387fea841a6a154135c8b268f3e40298ddbea5 /core/settings/qPrefDivePlanner.h | |
parent | 43b16f0810f7aa8328fd946e0e014d0625e3b53b (diff) | |
download | subsurface-9c8fbe494db231b59c2e072b54af85bc217c00d8.tar.gz |
Planner: Add option to treat O2 as narcotic
When computing the best mix for a target depth, for helium, one
can either require that the partial pressure of N2 is the same
as at the target depth or the partial pressure of N2 plus O2.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/settings/qPrefDivePlanner.h')
-rw-r--r-- | core/settings/qPrefDivePlanner.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/settings/qPrefDivePlanner.h b/core/settings/qPrefDivePlanner.h index 09d8fabae..7a75fa4ce 100644 --- a/core/settings/qPrefDivePlanner.h +++ b/core/settings/qPrefDivePlanner.h @@ -23,6 +23,7 @@ class qPrefDivePlanner : public QObject { Q_PROPERTY(bool display_variations READ display_variations WRITE set_display_variations NOTIFY display_variationsChanged); Q_PROPERTY(bool doo2breaks READ doo2breaks WRITE set_doo2breaks NOTIFY doo2breaksChanged); Q_PROPERTY(bool dobailout READ dobailout WRITE set_dobailout NOTIFY dobailoutChanged); + Q_PROPERTY(bool o2narcotic READ o2narcotic WRITE set_o2narcotic NOTIFY o2narcoticChanged) Q_PROPERTY(bool drop_stone_mode READ drop_stone_mode WRITE set_drop_stone_mode NOTIFY drop_stone_modeChanged); Q_PROPERTY(bool last_stop READ last_stop WRITE set_last_stop NOTIFY last_stopChanged); Q_PROPERTY(int min_switch_duration READ min_switch_duration WRITE set_min_switch_duration NOTIFY min_switch_durationChanged); @@ -60,6 +61,7 @@ public: static bool display_variations() { return prefs.display_variations; } static bool doo2breaks() { return prefs.doo2breaks; } static bool dobailout() { return prefs.dobailout; } + static bool o2narcotic() { return prefs.o2narcotic; } static bool drop_stone_mode() { return prefs.drop_stone_mode; } static bool last_stop() { return prefs.last_stop; } static int min_switch_duration() { return prefs.min_switch_duration; } @@ -89,6 +91,7 @@ public slots: static void set_display_variations(bool value); static void set_doo2breaks(bool value); static void set_dobailout(bool value); + static void set_o2narcotic(bool value); static void set_drop_stone_mode(bool value); static void set_last_stop(bool value); static void set_min_switch_duration(int value); @@ -118,6 +121,7 @@ signals: void display_variationsChanged(bool value); void doo2breaksChanged(bool value); void dobailoutChanged(bool value); + void o2narcoticChanged(bool value); void drop_stone_modeChanged(bool value); void last_stopChanged(bool value); void min_switch_durationChanged(int value); @@ -148,6 +152,7 @@ private: static void disk_display_variations(bool doSync); static void disk_doo2breaks(bool doSync); static void disk_dobailout(bool doSync); + static void disk_o2narcotic(bool doSync); static void disk_drop_stone_mode(bool doSync); static void disk_last_stop(bool doSync); static void disk_min_switch_duration(bool doSync); |