20 |
#ifndef MAP_TOOL_H |
#ifndef MAP_TOOL_H |
21 |
#define MAP_TOOL_H |
#define MAP_TOOL_H |
22 |
|
|
23 |
|
typedef enum { MAP_NONE=0, MAP_ALL, MAP_GPX, MAP_CACHE } map_state_t; |
24 |
|
|
25 |
|
typedef struct { |
26 |
|
char *id; |
27 |
|
} cache_display_t; |
28 |
|
|
29 |
typedef struct map_context_s { |
typedef struct map_context_s { |
30 |
appdata_t *appdata; |
appdata_t *appdata; |
31 |
GtkWidget *window; |
GtkWidget *window; |
32 |
GtkWidget *widget; |
GtkWidget *widget; |
33 |
gint handler_id; |
gint handler_id; |
34 |
cache_t *press_on; |
cache_t *balloon, *press_on; |
35 |
gboolean map_complete; |
gboolean map_complete; |
36 |
|
map_state_t state; |
37 |
|
void *cb_id; |
38 |
|
|
39 |
|
int cache_list_len; |
40 |
|
cache_display_t *caches_displayed; |
41 |
|
|
42 |
#if MAEMO_VERSION_MAJOR == 5 |
#if MAEMO_VERSION_MAJOR == 5 |
43 |
GtkWidget *old_view; |
GtkWidget *old_view; |
44 |
#endif |
#endif |
45 |
|
|
46 |
|
/* save various values defining the overlay state */ |
47 |
|
/* in order to repaint the overlays only if necessary */ |
48 |
|
|
49 |
} map_context_t; |
} map_context_t; |
50 |
|
|
51 |
|
|
52 |
extern void map(appdata_t *appdata); |
extern void map(appdata_t *appdata); |
53 |
|
extern void map_update(appdata_t *appdata); |
54 |
|
|
55 |
#endif // MAP_TOOL_H |
#endif // MAP_TOOL_H |