summaryrefslogtreecommitdiffstats
path: root/qt-models/cylindermodel.h
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2016-07-06 22:40:32 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-07-09 12:08:10 -0700
commit6ed5e0d621dfaf481821bf8167e28fe61d4ba583 (patch)
tree84550bd9855c963af82cd3a715b85a8ff193765a /qt-models/cylindermodel.h
parent9fbd11744f1bfffbc6973e0f9483ae1630dd8722 (diff)
downloadsubsurface-6ed5e0d621dfaf481821bf8167e28fe61d4ba583.tar.gz
Add MOD and MND fields to cylindermodel
Adds fields to the planner cylinder model for maximum operating depth (MOD) for a bottom mix gas, and maximum narcotic depth (MND). Fields are read/write, so changing MOD changes %O2 and vice-versa. Changing MND changes %He and vice-versa. When setting MOD directly, the %O2 is truncated (rounded down) to an integer, which re-calculates the MOD, which is sometimes a few metres greater than the input depth. This is desireable behaviour, as the rounding is conservative. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/cylindermodel.h')
-rw-r--r--qt-models/cylindermodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-models/cylindermodel.h b/qt-models/cylindermodel.h
index f2ae0125e..85cca1a9c 100644
--- a/qt-models/cylindermodel.h
+++ b/qt-models/cylindermodel.h
@@ -19,6 +19,8 @@ public:
O2,
HE,
DEPTH,
+ MOD,
+ MND,
USE,
COLUMNS
};