7 extern GtkWidget *main_window;
9 /* we want a progress bar as part of the device_data_t - let's abstract this out */
29 #define BOOL_TO_PTR(_cond) ((_cond) ? (void *)1 : NULL)
30 #define PTR_TO_BOOL(_ptr) ((_ptr) != NULL)
33 #define CTRLCHAR "<Meta>"
34 #define SHIFTCHAR "<Shift>"
35 #define PREFERENCE_ACCEL "<Meta>comma"
37 #define CTRLCHAR "<Control>"
38 #define SHIFTCHAR "<Shift>"
39 #define PREFERENCE_ACCEL NULL
42 extern void subsurface_open_conf(void);
43 extern void subsurface_set_conf(char *name, pref_type_t type, const void *value);
44 extern const void *subsurface_get_conf(char *name, pref_type_t type);
45 extern void subsurface_flush_conf(void);
46 extern void subsurface_close_conf(void);
48 extern const char *subsurface_USB_name(void);
49 extern const char *subsurface_icon_name(void);
50 extern void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar,
51 GtkWidget *vbox, GtkUIManager *ui_manager);
53 extern const char *divelist_font;
55 extern visible_cols_t visible_cols;
57 extern const char *divelist_font;
58 extern void set_divelist_font(const char *);
60 extern void import_dialog(GtkWidget *, gpointer);
61 extern void add_dive_cb(GtkWidget *, gpointer);
62 extern void report_error(GError* error);
63 extern int process_ui_events(void);
64 extern void update_progressbar(progressbar_t *progress, double value);
65 extern void update_progressbar_text(progressbar_t *progress, const char *text);
67 extern GtkWidget *dive_profile_widget(void);
68 extern GtkWidget *dive_info_frame(void);
69 extern GtkWidget *extended_dive_info_widget(void);
70 extern GtkWidget *equipment_widget(int w_idx);
71 extern GtkWidget *single_stats_widget(void);
72 extern GtkWidget *total_stats_widget(void);
73 extern GtkWidget *cylinder_list_widget(int w_idx);
74 extern GtkWidget *weightsystem_list_widget(int w_idx);
76 extern GtkWidget *dive_list_create(void);
78 unsigned int amount_selected;
80 extern void process_selected_dives(void);
82 typedef void (*data_func_t)(GtkTreeViewColumn *col,
83 GtkCellRenderer *renderer,
88 typedef gint (*sort_func_t)(GtkTreeModel *model,
98 extern GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char *title,
99 data_func_t data_func, unsigned int flags);