diff options
Diffstat (limited to 'display-gtk.h')
-rw-r--r-- | display-gtk.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/display-gtk.h b/display-gtk.h index f52b75639..b2903d7e9 100644 --- a/display-gtk.h +++ b/display-gtk.h @@ -31,11 +31,16 @@ typedef struct { double phe_threshold; } partial_pressure_graphs_t; -extern visible_cols_t visible_cols; -extern partial_pressure_graphs_t partial_pressure_graphs; -extern gboolean profile_red_ceiling; +struct preferences { + struct units output_units; + visible_cols_t visible_cols; + partial_pressure_graphs_t pp_graphs; + gboolean profile_red_ceiling; +}; -#define GRAPHS_ENABLED (partial_pressure_graphs.po2 || partial_pressure_graphs.pn2 || partial_pressure_graphs.phe) +extern struct preferences prefs; + +#define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe) typedef enum { PREF_BOOL, @@ -66,6 +71,7 @@ extern const char *subsurface_icon_name(void); extern void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar, GtkWidget *vbox, GtkUIManager *ui_manager); extern void quit(GtkWidget *w, gpointer data); +extern gboolean on_delete(GtkWidget* w, gpointer data); extern int is_default_dive_computer_device(const char *name); @@ -80,6 +86,8 @@ extern int process_ui_events(void); extern void update_progressbar(progressbar_t *progress, double value); extern void update_progressbar_text(progressbar_t *progress, const char *text); +extern GtkWidget *create_date_time_widget(struct tm *time, GtkWidget **cal, GtkWidget **h, GtkWidget **m); + extern GtkWidget *dive_profile_widget(void); extern GtkWidget *dive_info_frame(void); extern GtkWidget *extended_dive_info_widget(void); |