aboutsummaryrefslogtreecommitdiffstats
path: root/pref.h
diff options
context:
space:
mode:
authorGravatar Gehad Elrobey <gehadelrobey@gmail.com>2014-04-16 22:03:44 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-16 13:09:55 -0700
commit8380f096199d4da1e89789c9bd67974e550f2bf3 (patch)
tree3bfc0618202730a976a2b6df99f3cb4fd348be74 /pref.h
parent4bd4c0110815a9c5a9c9c05fbd6bd987573b2904 (diff)
downloadsubsurface-8380f096199d4da1e89789c9bd67974e550f2bf3.tar.gz
Renaming the prefs struct members to be consistent with the QSettings.
-Renaming prefs members for consistency. -Changing references of QSettings to the prefs structure instead. -Removing unused functions in pref.h were left over from an old version. -Changing the data-type of bool members to short for consistency with other members. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'pref.h')
-rw-r--r--pref.h29
1 files changed, 11 insertions, 18 deletions
diff --git a/pref.h b/pref.h
index 712a2d153..fd7aa82a7 100644
--- a/pref.h
+++ b/pref.h
@@ -23,14 +23,14 @@ struct preferences {
double font_size;
partial_pressure_graphs_t pp_graphs;
short mod;
- double mod_ppO2;
+ double modppO2;
short ead;
- short profile_dc_ceiling;
- short profile_red_ceiling;
- short profile_calc_ceiling;
- short calc_ceiling_3m_incr;
- short calc_all_tissues;
- short calc_ndl_tts;
+ short dcceiling;
+ short redceiling;
+ short calcceiling;
+ short calcceiling3m;
+ short calcalltissues;
+ short calcndltts;
short gflow;
short gfhigh;
short animation;
@@ -39,10 +39,10 @@ struct preferences {
short unit_system;
struct units units;
short show_sac;
- bool display_unused_tanks;
- bool show_average_depth;
- bool zoomed_plot;
- short heart_rate;
+ short display_unused_tanks;
+ short show_average_depth;
+ short zoomed_plot;
+ short hrgraph;
};
enum unit_system_values {
METRIC,
@@ -54,16 +54,9 @@ extern struct preferences prefs, default_prefs;
#define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe)
-extern void subsurface_open_conf(void);
extern void subsurface_set_conf(const char *name, const char *value);
extern void subsurface_set_conf_bool(const char *name, bool value);
extern void subsurface_set_conf_int(const char *name, int value);
-extern void subsurface_unset_conf(const char *name);
-extern const char *subsurface_get_conf(const char *name);
-extern int subsurface_get_conf_bool(const char *name);
-extern int subsurface_get_conf_int(const char *name);
-extern void subsurface_flush_conf(void);
-extern void subsurface_close_conf(void);
extern const char system_divelist_default_font[];
extern const int system_divelist_default_font_size;