diff options
author | willemferguson <willemferguson@zoology.up.ac.za> | 2019-11-19 12:27:18 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-06 07:00:34 +0900 |
commit | ebabbfb457184ea4d9e939ad8501986c35699264 (patch) | |
tree | 6401f0659631c5101df5996c8af0393ea78b5d9e /desktop-widgets/tab-widgets/TabDiveInformation.h | |
parent | 732d5a9fbd2b7d72610604a1b065ebbd9ea55960 (diff) | |
download | subsurface-ebabbfb457184ea4d9e939ad8501986c35699264.tar.gz |
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>
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDiveInformation.h')
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveInformation.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.h b/desktop-widgets/tab-widgets/TabDiveInformation.h index e851fe2d3..0ff142f76 100644 --- a/desktop-widgets/tab-widgets/TabDiveInformation.h +++ b/desktop-widgets/tab-widgets/TabDiveInformation.h @@ -28,12 +28,16 @@ private slots: void on_chill_valueChanged(int value); void on_airtemp_editingFinished(); void on_watertemp_editingFinished(); + void on_waterTypeCombo_activated(int index); private: Ui::TabDiveInformation *ui; void updateProfile(); void updateSalinity(); + int updateSalinityComboIndex(int salinity); + void checkDcSalinityOverWritten(); void updateWhen(); int pressTypeIndex; + void updateWaterTypeWidget(); void updateTextBox(int event); void updateMode(struct dive *d); void divesEdited(int); |