desktop UI: create the UI components for editing the salinity.

The user may modify the salinity by selecting a water type from the combobox.
The new datum does not replace the existing salinity value but is stored in a
separate variable within the dive structure. If the dc-based salinity is
overwritten, there is an exclamation mark next to the modified salinity value
to indicate that the salinity has been overwritten. The dc-derived salinity can
always be recovered by selecting the "use dc" option in the combobox.

Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
willemferguson 2019-11-19 12:27:18 +02:00 committed by Dirk Hohndel
parent 732d5a9fbd
commit ebabbfb457
6 changed files with 128 additions and 24 deletions

View file

@ -445,15 +445,17 @@
</sizepolicy>
</property>
<layout class="QHBoxLayout" name="diveInfoWaterDensityLayout">
<item>
<widget class="QLabel" name="waterTypeText">
<property name="text">
<string>EN13319</string>
</property>
</widget>
<widget class="QLabel" name="waterTypeText">
</widget>
</item>
<item>
<widget class="QComboBox" name="waterTypeCombo"/>
</item>
<item>
<widget class="QLabel" name="salinityOverWrittenIcon">
</widget>
</item>
<item>
<widget class="QLabel" name="salinityText">
<property name="alignment">
@ -461,7 +463,6 @@
</property>
</widget>
</item>
</layout>
</widget>
</item>