mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
2435d79c0e
commit
500fbe4994
8 changed files with 53 additions and 15 deletions
8
pref.h
8
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue