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> |
116 |
char *search_str; |
char *search_str; |
117 |
int search_days; |
int search_days; |
118 |
|
|
119 |
|
struct proxy_s *proxy; /* proxy settings */ |
120 |
|
|
121 |
int gpxlist_items; |
int gpxlist_items; |
122 |
int cachelist_items; |
int cachelist_items; |
123 |
guint cachelist_handler_id; /* update timer */ |
guint cachelist_handler_id; /* update timer */ |
132 |
GtkWidget *gpxview; |
GtkWidget *gpxview; |
133 |
GConfClient *gconf_client; |
GConfClient *gconf_client; |
134 |
|
|
|
pos_t manual_goto; |
|
135 |
gboolean compass_locked; |
gboolean compass_locked; |
136 |
int compass_damping; |
int compass_damping; |
137 |
|
|
138 |
|
gboolean disable_gcvote; |
139 |
|
|
140 |
struct gps_state *gps_state; |
struct gps_state *gps_state; |
141 |
|
|
142 |
/* keep track of all html views so zoom events can be delivered */ |
/* keep track of all html views so zoom events can be delivered */ |
150 |
#ifndef NO_COPY_N_PASTE |
#ifndef NO_COPY_N_PASTE |
151 |
/* do enable/disable the edit entries */ |
/* do enable/disable the edit entries */ |
152 |
GtkWidget *menu_cut, *menu_copy, *menu_paste; |
GtkWidget *menu_cut, *menu_copy, *menu_paste; |
|
GtkClipboard *clipboard; /* clipboard for copy/paste */ |
|
153 |
GtkTextBuffer *active_buffer; |
GtkTextBuffer *active_buffer; |
154 |
#endif |
#endif |
155 |
|
|
156 |
|
GtkClipboard *clipboard; /* clipboard for copy/paste */ |
157 |
|
|
158 |
#ifdef USE_STACKABLE_WINDOW |
#ifdef USE_STACKABLE_WINDOW |
159 |
GtkWidget *export_menu, *tools_menu; |
GtkWidget *export_menu, *tools_menu; |
160 |
#endif |
#endif |
178 |
|
|
179 |
#ifdef USE_MAEMO |
#ifdef USE_MAEMO |
180 |
gboolean fullscreen; |
gboolean fullscreen; |
181 |
|
#ifdef ENABLE_MAEMO_MAPPER |
182 |
pos_t mmpos; /* position received from Maemo Mapper */ |
pos_t mmpos; /* position received from Maemo Mapper */ |
183 |
gboolean mmpos_valid; |
gboolean mmpos_valid; |
184 |
|
#endif |
185 |
|
|
186 |
gboolean mmpoi_dontlaunch; |
gboolean mmpoi_dontlaunch; |
187 |
|
|
208 |
/* keep track of current "path" in the bread crumb trail */ |
/* keep track of current "path" in the bread crumb trail */ |
209 |
gpx_t *cur_gpx; |
gpx_t *cur_gpx; |
210 |
cache_t *cur_cache; |
cache_t *cur_cache; |
211 |
|
struct cache_context_s *cache_context; |
212 |
|
|
213 |
gpx_t *search_results; |
gpx_t *search_results; |
214 |
|
|
221 |
} map; |
} map; |
222 |
#endif |
#endif |
223 |
|
|
224 |
|
/* username is also used to detect own caches (by log entry) */ |
225 |
|
char *username; |
226 |
|
|
227 |
|
/* stuff to call geotoad */ |
228 |
|
struct { |
229 |
|
char *password, *filename; |
230 |
|
float distance, lat, lon; |
231 |
|
int flags; |
232 |
|
} gt; |
233 |
|
|
234 |
GtkWidget *vbox; |
GtkWidget *vbox; |
235 |
} appdata_t; |
} appdata_t; |
236 |
|
|
240 |
#include "gconf.h" |
#include "gconf.h" |
241 |
#include "html.h" |
#include "html.h" |
242 |
#include "icons.h" |
#include "icons.h" |
243 |
|
#include "gcvote.h" |
244 |
#include "cache.h" |
#include "cache.h" |
245 |
#include "geomath.h" |
#include "geomath.h" |
246 |
#include "geotext.h" |
#include "geotext.h" |
249 |
#include "mm_poi.h" |
#include "mm_poi.h" |
250 |
#include "precpos.h" |
#include "precpos.h" |
251 |
#include "garmin_export.h" |
#include "garmin_export.h" |
252 |
|
#include "geotoad.h" |
253 |
|
#include "about.h" |
254 |
|
|
255 |
#ifdef ENABLE_OSM_GPS_MAP |
#ifdef ENABLE_OSM_GPS_MAP |
256 |
#include "map-tool.h" |
#include "map-tool.h" |
290 |
#ifdef USE_STACKABLE_WINDOW |
#ifdef USE_STACKABLE_WINDOW |
291 |
HildonAppMenu *menu_create(appdata_t *appdata, int mode); |
HildonAppMenu *menu_create(appdata_t *appdata, int mode); |
292 |
#endif |
#endif |
293 |
|
void cachelist_goto_cache(appdata_t *appdata, cache_t *cache); |
294 |
|
void gpxlist_goto_cachelist(appdata_t *appdata, gpx_t *gpx); |
295 |
|
gboolean gpxlist_find(appdata_t *appdata, GtkTreeIter *iter, gpx_t *gpx); |
296 |
|
void gpxlist_set(GtkListStore *store, GtkTreeIter *iter, gpx_t *gpx); |
297 |
|
void gpxlist_add(appdata_t *appdata, gpx_t *new); |
298 |
|
void cachelist_redraw(appdata_t *appdata); |
299 |
|
|
300 |
#endif // GPXVIEW_H |
#endif // GPXVIEW_H |