7 extern GtkWidget *main_window;
9 /* we want a progress bar as part of the device_data_t - let's abstract this out */
27 #define BOOL_TO_PTR(_cond) ((_cond) ? (void *)1 : NULL)
28 #define PTR_TO_BOOL(_ptr) ((_ptr) != NULL)
31 #define CTRLCHAR "<Meta>"
32 #define PREFERENCE_ACCEL "<Meta>comma"
34 #define CTRLCHAR "<Control>"
35 #define PREFERENCE_ACCEL NULL
38 extern void subsurface_open_conf(void);
39 extern void subsurface_set_conf(char *name, pref_type_t type, const void *value);
40 extern const void *subsurface_get_conf(char *name, pref_type_t type);
41 extern void subsurface_flush_conf(void);
42 extern void subsurface_close_conf(void);
44 extern const char *subsurface_USB_name(void);
45 extern const char *subsurface_icon_name(void);
46 extern void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar,
47 GtkWidget *vbox, GtkUIManager *ui_manager);
49 extern const char *divelist_font;
51 extern visible_cols_t visible_cols;
53 extern const char *divelist_font;
54 extern void set_divelist_font(const char *);
56 extern void import_dialog(GtkWidget *, gpointer);
57 extern void report_error(GError* error);
58 extern int process_ui_events(void);
59 extern void update_progressbar(progressbar_t *progress, double value);
60 extern void update_progressbar_text(progressbar_t *progress, const char *text);
62 extern GtkWidget *dive_profile_widget(void);
63 extern GtkWidget *dive_info_frame(void);
64 extern GtkWidget *extended_dive_info_widget(void);
65 extern GtkWidget *equipment_widget(void);
66 extern GtkWidget *single_stats_widget(void);
67 extern GtkWidget *total_stats_widget(void);
68 extern GtkWidget *cylinder_list_widget(void);
70 extern GtkWidget *dive_list_create(void);
72 unsigned int amount_selected;
74 extern void process_selected_dives(GList *, GtkTreeModel *);
76 typedef void (*data_func_t)(GtkTreeViewColumn *col,
77 GtkCellRenderer *renderer,
82 typedef gint (*sort_func_t)(GtkTreeModel *model,
92 extern GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char *title,
93 data_func_t data_func, unsigned int flags);