Contents of /trunk/src/map-tool.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 150 - (hide annotations)
Thu Oct 29 20:25:11 2009 UTC (14 years, 6 months ago) by harbaum
File MIME type: text/plain
File size: 1347 byte(s)
Finally found and fixed diablo map crash
1 harbaum 33 /*
2     * Copyright (C) 2009 Till Harbaum <till@harbaum.org>.
3     *
4     * This file is part of GPXView.
5     *
6     * GPXView is free software: you can redistribute it and/or modify
7     * it under the terms of the GNU General Public License as published by
8     * the Free Software Foundation, either version 3 of the License, or
9     * (at your option) any later version.
10     *
11     * GPXView is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with GPXView. If not, see <http://www.gnu.org/licenses/>.
18     */
19    
20     #ifndef MAP_TOOL_H
21     #define MAP_TOOL_H
22    
23 harbaum 129 typedef enum { MAP_NONE=0, MAP_ALL, MAP_GPX, MAP_CACHE } map_state_t;
24    
25 harbaum 56 typedef struct map_context_s {
26     appdata_t *appdata;
27     GtkWidget *window;
28     GtkWidget *widget;
29     gint handler_id;
30 harbaum 136 cache_t *balloon, *press_on;
31 harbaum 85 gboolean map_complete;
32 harbaum 129 map_state_t state;
33 harbaum 149 void *cb_id;
34 harbaum 129
35 harbaum 56 #if MAEMO_VERSION_MAJOR == 5
36     GtkWidget *old_view;
37     #endif
38 harbaum 150
39     /* save various values defining the overlay state */
40     /* in order to repaint the overlays only if necessary */
41    
42 harbaum 56 } map_context_t;
43    
44    
45 harbaum 33 extern void map(appdata_t *appdata);
46 harbaum 129 extern void map_update(appdata_t *appdata);
47 harbaum 33
48     #endif // MAP_TOOL_H