From ebabbfb457184ea4d9e939ad8501986c35699264 Mon Sep 17 00:00:00 2001 From: willemferguson Date: Tue, 19 Nov 2019 12:27:18 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- core/dive.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core') diff --git a/core/dive.h b/core/dive.h index 7e45f1c09..b642c3031 100644 --- a/core/dive.h +++ b/core/dive.h @@ -158,6 +158,7 @@ struct dive { pressure_t surface_pressure; duration_t duration; int salinity; // kg per 10000 l + int user_salinity; // water density reflecting a user-specified type struct tag_entry *tag_list; struct divecomputer dc; -- cgit v1.2.3-70-g09d2