summaryrefslogtreecommitdiffstats
path: root/core/units.h
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-10-09 08:46:18 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-10-09 11:49:29 +0300
commit78cda85444a9b9ec384e19ec17686f2ce7c307ec (patch)
tree1e0e74006b7a9afdf7bd9046d1df459122c202ca /core/units.h
parent2cb5d45231b65a713cad0808badde250594b49de (diff)
downloadsubsurface-78cda85444a9b9ec384e19ec17686f2ce7c307ec.tar.gz
Display units in dive list table based on prefs option
Add a preferences option which enables or disables display of units in the main dive liste table. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/units.h')
-rw-r--r--core/units.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/units.h b/core/units.h
index 535103349..d44c50ab4 100644
--- a/core/units.h
+++ b/core/units.h
@@ -260,6 +260,7 @@ struct units {
MINUTES_ONLY,
ALWAYS_HOURS
} duration_units;
+ int show_units_table;
};
/*
@@ -272,13 +273,13 @@ struct units {
#define SI_UNITS \
{ \
.length = METERS, .volume = LITER, .pressure = BAR, .temperature = CELSIUS, .weight = KG, \
- .vertical_speed_time = MINUTES, .duration_units = MIXED \
+ .vertical_speed_time = MINUTES, .duration_units = MIXED, .show_units_table = false \
}
#define IMPERIAL_UNITS \
{ \
.length = FEET, .volume = CUFT, .pressure = PSI, .temperature = FAHRENHEIT, .weight = LBS, \
- .vertical_speed_time = MINUTES, .duration_units = MIXED \
+ .vertical_speed_time = MINUTES, .duration_units = MIXED, .show_units_table = false \
}
#ifdef __cplusplus