From 0ca52f868ebe5def65153970061a1d6132ede3be Mon Sep 17 00:00:00 2001 From: Oliver Schwaneberg Date: Sat, 10 Feb 2018 23:28:05 +0100 Subject: Choose water presets from a qcombobox in planner, custom value possible Add a combo box for water types with defaults for fresh water, sea water and the EN 13319. All values taken from units.h, where EN 13319 was added beforehand. Custom values can be entered through a spinbox. Also changed "Salinity" in TapDiveInformation.ui to "Water type". Translation required! Signed-off-by: Oliver Schwaneberg --- desktop-widgets/diveplanner.ui | 141 +++++++++++++++++++++++++---------------- 1 file changed, 87 insertions(+), 54 deletions(-) (limited to 'desktop-widgets/diveplanner.ui') diff --git a/desktop-widgets/diveplanner.ui b/desktop-widgets/diveplanner.ui index 5b58f564a..1b67a5fc9 100644 --- a/desktop-widgets/diveplanner.ui +++ b/desktop-widgets/diveplanner.ui @@ -62,41 +62,6 @@ 0 - - 2 - - - - - - 0 - 0 - - - - - 0 - 50 - - - - - - - - - 0 - 0 - - - - - 0 - 50 - - - - @@ -133,7 +98,7 @@ - + @@ -163,12 +128,12 @@ - Salinity + Water type - - + + 0 @@ -176,18 +141,21 @@ - mbar + m - 689 + -100 - 1100 + 3000 + + + 10 - - + + 0 @@ -195,41 +163,106 @@ - m + mbar - -100 + 689 - 3000 - - - 10 + 1100 - + + + + Fresh water + + + + + Sea water + + + + + EN13319 + + + + + Custom + + + + + + + + false + 0 0 + + + 90 + 16777215 + + + + + kg/ℓ - 1.000000000000000 + 0.990000000000000 - 1.050000000000000 + 1.300000000000000 0.010000000000000 - 1.030000000000000 + 1.000000000000000 + + + + + + + + 0 + 0 + + + + + 0 + 50 + + + + + + + + + 0 + 0 + + + + + 0 + 50 + -- cgit v1.2.3-70-g09d2