summaryrefslogtreecommitdiffstats
path: root/pref.h
diff options
context:
space:
mode:
authorGravatar Jan Darowski <jan.darowski@gmail.com>2015-07-03 23:07:58 +0200
committerGravatar Jan Darowski <jan.darowski@gmail.com>2015-07-03 23:07:58 +0200
commit500fbe499411bfa96192626c8a6213916190aaae (patch)
tree2d10ae563e3f39173a622aa63054512175a7050b /pref.h
parent2435d79c0e6e4e30ace3b23765005c90181ddae5 (diff)
downloadsubsurface-500fbe499411bfa96192626c8a6213916190aaae.tar.gz
VPM-B: add deco choice to the ui.
Removed recreational mode from ui and pref and replaced it with new deco_mode enum. Added radio button ui selection. Set default deco_mode to Buehlmann algorithm. Signed-off-by: Jan Darowski <jan.darowski@gmail.com>
Diffstat (limited to 'pref.h')
-rw-r--r--pref.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/pref.h b/pref.h
index 0470d0e3b..fcb051bd9 100644
--- a/pref.h
+++ b/pref.h
@@ -32,6 +32,12 @@ typedef struct {
enum taxonomy_category category[3];
} geocoding_prefs_t;
+enum deco_mode {
+ BUEHLMANN,
+ RECREATIONAL,
+ VPMB
+};
+
struct preferences {
const char *divelist_font;
const char *default_filename;
@@ -89,7 +95,6 @@ struct preferences {
bool display_runtime;
bool display_duration;
bool display_transitions;
- bool recreational_mode;
bool safetystop;
bool switch_at_req_stop;
int reserve_gas;
@@ -110,6 +115,7 @@ struct preferences {
short cloud_verification_status;
bool cloud_background_sync;
geocoding_prefs_t geocoding;
+ enum deco_mode deco_mode;
};
enum unit_system_values {
METRIC,