summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-06-25 14:00:03 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-25 21:07:10 +0800
commit65c5d6815cf7c78231abd76440bb5bab54d9d51c (patch)
tree8f6820921ec40aeeeb5b475d74b7cfb567a782c7 /qt-ui/diveplanner.h
parentc7231adde1cddc64dfa47450393e97afa6c39d0f (diff)
downloadsubsurface-65c5d6815cf7c78231abd76440bb5bab54d9d51c.tar.gz
Make pO2 settings functional in planner
Spin boxes for pO2 are now hooked up to preference values. Adding new cylinders (or changing their fo2) computes the MOD accordin to the current value of decopo2. Note that chaning the limits for deco pO2 does _not_ automatically update the switch depth of all cylinders as those might have been manually entered. Furthermore, MOD has now to option of rounding to multiples of a given depth. That is used for the automatic switch depth which are now always multiples of 3m (so that EAN50 is switched to at 21m rather than 22m). Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 9f6052b4a..5955a5a8f 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -164,6 +164,8 @@ slots:
void setAscRateStops(int rate);
void setAscRateLast6m(int rate);
void setDescRate(int rate);
+ void setBottomPo2(double po2);
+ void setDecoPo2(double po2);
private:
Ui::plannerSettingsWidget ui;