Parent Directory | Revision Log
GPS accuracy indicator in map working
1 | /* |
2 | * Copyright (C) 2008 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 CACHE_H |
21 | #define CACHE_H |
22 | |
23 | /* number of heading values used max for averaging */ |
24 | #define MAX_AVERAGE 10 |
25 | |
26 | typedef struct { |
27 | GtkTextBuffer *buffer; |
28 | GtkWidget *latw, *lonw, *overridew, *foundw, *datew, *loggedw; |
29 | gboolean modified; |
30 | time_t ftime; |
31 | } notes_context_t; |
32 | |
33 | typedef struct { |
34 | GtkWidget *distance_label, *bearing_label, *eph_label, *cbox; |
35 | GtkWidget *lat_lbl, *lon_lbl, *edit_but; |
36 | |
37 | /* Backing pixmap for drawing area */ |
38 | GtkWidget *compass_area; |
39 | GdkPixmap *compass_pixmap; |
40 | |
41 | guint handler_id; |
42 | pos_t pos; |
43 | float heading, head_avg[MAX_AVERAGE]; |
44 | |
45 | /* things needed for sat view */ |
46 | GtkWidget *sat_area; |
47 | GdkPixmap *sat_pixmap; |
48 | |
49 | } goto_context_t; |
50 | |
51 | typedef struct { |
52 | appdata_t *appdata; |
53 | cache_t *cache; |
54 | notes_context_t notes; |
55 | goto_context_t gotoc; |
56 | |
57 | /* widgets in the overview that change when the pos is overwritten */ |
58 | GtkWidget *pos_lat_label, *pos_lon_label; |
59 | GtkWidget *bearing_hbox; |
60 | |
61 | #ifdef USE_MAEMO |
62 | guint handler_id; |
63 | #endif |
64 | } cache_context_t; |
65 | |
66 | void cache_dialog(appdata_t *appdata, cache_t *cache); |
67 | GtkWidget *cache_view(appdata_t *appdata, cache_t *cache); |
68 | |
69 | #endif // CACHE_H |