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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 240 - (show annotations)
Sat Dec 12 20:56:23 2009 UTC (14 years, 4 months ago) by harbaum
File MIME type: text/plain
File size: 1472 byte(s)
Multiple position handling bug fixes
1 /*
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 typedef enum { MAP_NONE=0, MAP_ALL, MAP_GPX, MAP_CACHE, MAP_SEARCH } map_state_t;
24
25 typedef struct {
26 char *id;
27 } cache_display_t;
28
29 typedef struct map_context_s {
30 appdata_t *appdata;
31 GtkWidget *window;
32 GtkWidget *widget;
33 gint handler_id;
34 cache_t *balloon, *press_on;
35 map_state_t state;
36 void *cb_id;
37
38 gboolean goto_is_enabled;
39
40 int cache_list_len;
41 cache_display_t *caches_displayed;
42
43 #if MAEMO_VERSION_MAJOR == 5
44 GtkWidget *old_view;
45 #endif
46
47 /* save various values defining the overlay state */
48 /* in order to repaint the overlays only if necessary */
49
50 } map_context_t;
51
52
53 extern void map(appdata_t *appdata);
54 extern void map_update(appdata_t *appdata);
55
56 #endif // MAP_TOOL_H