1 
2 
3 #include "globals.h"
4 #include <gtk/gtk.h>
5 
6 
7 GdkPixmap *pixmap = NULL;
8 
9 const char *gladefile =
10 	PACKAGE_DATA_DIR "/" PACKAGE "/" PACKAGE ".glade";
11 GladeXML *gladexml = NULL;
12 
13 GtkWidget *window1 = NULL;
14 GtkWidget *window2 = NULL;
15 GtkWidget *map_drawable = NULL;
16 
17 GtkWidget *dialog1 = NULL;
18 GtkWidget *dialog8 = NULL;
19 
20 GtkWidget *window3 = NULL;
21 GtkWidget *menu1 = NULL;
22 GtkWidget *route_menu = NULL;
23 
24 GList	*global_infopane_widgets = NULL;
25 GList	*global_infopane_current = NULL;
26 
27 char *global_track_dir = NULL;
28 
29 int global_x = 890;
30 int global_y = 515;
31 int global_zoom = 3;
32 int global_zoom_max = 20;
33 int global_detail_zoom = 0;
34 
35 int mouse_dx = 0;
36 int mouse_dy = 0;
37 
38 int global_drawingarea_width  = 0;
39 int global_drawingarea_height = 0;
40 
41 int global_speed_unit	= 0;
42 int global_alt_unit	= 0;
43 int global_latlon_unit	= 0;
44 
45 
46 tangogps_gps_data_t *gpsdata = NULL;
47 hrm_data_t *hrmdata = NULL;
48 
49 GQueue		*trackpoint_list= NULL;
50 GSList		*friends_list	= NULL;
51 GSList		*photo_list	= NULL;
52 GSList		*poi_list	= NULL;
53 GSList		*msg_list	= NULL;
54 
55 float		trip_distance	= 0;
56 double		trip_maxspeed	= 0;
57 double		trip_time	= 0;
58 double		trip_starttime	= 0;
59 
60 gboolean	trip_counter_on	= TRUE;
61 gboolean	trip_logger_on	= FALSE;
62 gboolean	trip_livelog_on	= FALSE;
63 gboolean	hrm_on		= FALSE;
64 
65 trackpoint_t	global_myposition;
66 
67 
68 gchar		*global_curr_reponame = NULL;
69 int		global_repo_cnt = 0;
70 int		global_repo_nr = 1;
71 GSList 		*global_repo_list = NULL;
72 GSList		*global_curr_repo = NULL;
73 GSettings	*global_settings = NULL;
74 
75 gboolean	global_infopane_visible = FALSE;
76 gboolean	global_landscape;
77 gboolean	global_auto_download = TRUE;
78 gboolean	global_no_redownload = FALSE;
79 gboolean	global_mapmode = TRUE;
80 gboolean	global_autocenter = TRUE;
81 gboolean	global_reconnect_hrm = TRUE;
82 int		global_tiles_in_dl_queue = 0;
83 
84 gboolean	global_show_friends = FALSE;
85 gboolean	global_show_pois = FALSE;
86 gboolean	global_show_photos = FALSE;
87 gboolean	global_new_msg = FALSE;
88 int		global_poi_cat = 0;
89 
90 gboolean	global_wp_on = FALSE;
91 waypoint_t	global_wp;
92 
93 char		*global_friend_nick = NULL;
94 char		*global_friend_pass = NULL;
95 
96 int		global_ffupdate_interval = 900000;
97 double		global_ffupdate_interval_minutes = 15;
98 gboolean 	global_fftimer_running = FALSE;
99 int		global_ff_mode = 3;
100 
101 gchar		*global_server	= NULL;
102 gchar		*global_port	= NULL;
103 
104 gchar		*global_hrm_bt_addr = NULL;
105 
106 gchar		*global_home_dir = NULL;
107 gchar		*foxtrotgps_dir = NULL;
108 
109 int		mouse_x = 0;
110 int		mouse_y = 0;
111 
112 int		drag_started = 0;
113