24 |
#if MAEMO_VERSION_MAJOR < 5 |
#if MAEMO_VERSION_MAJOR < 5 |
25 |
#define USE_BREAD_CRUMB_TRAIL |
#define USE_BREAD_CRUMB_TRAIL |
26 |
#else |
#else |
27 |
|
#define FREMANTLE |
28 |
|
|
29 |
// these are on maemo fremantle |
// these are on maemo fremantle |
30 |
#include <hildon/hildon-button.h> |
#include <hildon/hildon-button.h> |
31 |
#include <hildon/hildon-text-view.h> |
#include <hildon/hildon-text-view.h> |
120 |
|
|
121 |
int gpxlist_items; |
int gpxlist_items; |
122 |
int cachelist_items; |
int cachelist_items; |
|
guint cachelist_handler_id; /* update timer */ |
|
123 |
gboolean cachelist_hide_found; |
gboolean cachelist_hide_found; |
124 |
|
|
125 |
/* geotext related */ |
/* geotext related */ |
131 |
GtkWidget *gpxview; |
GtkWidget *gpxview; |
132 |
GConfClient *gconf_client; |
GConfClient *gconf_client; |
133 |
|
|
|
pos_t manual_goto; |
|
134 |
gboolean compass_locked; |
gboolean compass_locked; |
135 |
int compass_damping; |
int compass_damping; |
136 |
|
|
177 |
|
|
178 |
#ifdef USE_MAEMO |
#ifdef USE_MAEMO |
179 |
gboolean fullscreen; |
gboolean fullscreen; |
180 |
|
#ifdef ENABLE_MAEMO_MAPPER |
181 |
pos_t mmpos; /* position received from Maemo Mapper */ |
pos_t mmpos; /* position received from Maemo Mapper */ |
182 |
gboolean mmpos_valid; |
gboolean mmpos_valid; |
183 |
|
#endif |
184 |
|
|
185 |
gboolean mmpoi_dontlaunch; |
gboolean mmpoi_dontlaunch; |
186 |
|
|
207 |
/* keep track of current "path" in the bread crumb trail */ |
/* keep track of current "path" in the bread crumb trail */ |
208 |
gpx_t *cur_gpx; |
gpx_t *cur_gpx; |
209 |
cache_t *cur_cache; |
cache_t *cur_cache; |
210 |
|
struct cache_context_s *cache_context; |
211 |
|
|
212 |
gpx_t *search_results; |
gpx_t *search_results; |
213 |
|
|
220 |
} map; |
} map; |
221 |
#endif |
#endif |
222 |
|
|
223 |
|
/* username is also used to detect own caches (by log entry) */ |
224 |
|
char *username; |
225 |
|
|
226 |
|
/* stuff to call geotoad */ |
227 |
|
struct { |
228 |
|
char *password, *filename; |
229 |
|
float distance, lat, lon; |
230 |
|
int flags; |
231 |
|
} gt; |
232 |
|
|
233 |
|
#ifndef USE_STACKABLE_WINDOW |
234 |
GtkWidget *vbox; |
GtkWidget *vbox; |
235 |
|
#endif |
236 |
} appdata_t; |
} appdata_t; |
237 |
|
|
238 |
/* all includes that rely on appdata_t go here ... */ |
/* all includes that rely on appdata_t go here ... */ |
250 |
#include "mm_poi.h" |
#include "mm_poi.h" |
251 |
#include "precpos.h" |
#include "precpos.h" |
252 |
#include "garmin_export.h" |
#include "garmin_export.h" |
253 |
|
#include "geotoad.h" |
254 |
|
#include "about.h" |
255 |
|
|
256 |
#ifdef ENABLE_OSM_GPS_MAP |
#ifdef ENABLE_OSM_GPS_MAP |
257 |
#include "map-tool.h" |
#include "map-tool.h" |
293 |
#endif |
#endif |
294 |
void cachelist_goto_cache(appdata_t *appdata, cache_t *cache); |
void cachelist_goto_cache(appdata_t *appdata, cache_t *cache); |
295 |
void gpxlist_goto_cachelist(appdata_t *appdata, gpx_t *gpx); |
void gpxlist_goto_cachelist(appdata_t *appdata, gpx_t *gpx); |
296 |
|
gboolean gpxlist_find(appdata_t *appdata, GtkTreeIter *iter, gpx_t *gpx); |
297 |
|
void gpxlist_set(GtkListStore *store, GtkTreeIter *iter, gpx_t *gpx); |
298 |
|
void gpxlist_add(appdata_t *appdata, gpx_t *new); |
299 |
|
void cachelist_redraw(appdata_t *appdata); |
300 |
|
|
301 |
#endif // GPXVIEW_H |
#endif // GPXVIEW_H |