mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
printing: add gas fractions to print template and user manual
Add additional exported values gasO2, gasHe and gasN2 to be available to the print template. Also add these to the user manual as well as document some other missing variables like surge and chill. Finally, remove references to Grantlee. While the print template still uses the syntax that we inherited from Grantlee, we aren't actually using Grantlee anymore. Reported-by: Rahul Swaminathan <rahul.swaminathan@gmail.com> Signed-off-by: Jason Bramwell <jb2cool@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6454c6e6ea
commit
28a5442944
2 changed files with 43 additions and 18 deletions
|
@ -502,6 +502,12 @@ QVariant TemplateLayout::getValue(QString list, QString property, const State &s
|
|||
return get_pressure_string(cylinder->end, true);
|
||||
} else if (property == "gasMix") {
|
||||
return get_gas_string(cylinder->gasmix);
|
||||
} else if (property == "gasO2") {
|
||||
return (get_o2(cylinder->gasmix) + 5) / 10;
|
||||
} else if (property == "gasN2") {
|
||||
return (get_n2(cylinder->gasmix) + 5) / 10;
|
||||
} else if (property == "gasHe") {
|
||||
return (get_he(cylinder->gasmix) + 5) / 10;
|
||||
}
|
||||
} else if (list == "dives") {
|
||||
if (!state.currentDive)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue