Diff of /trunk/src/gpxview.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 126 by harbaum, Mon Sep 28 19:01:03 2009 UTC revision 214 by harbaum, Thu Nov 26 10:05:23 2009 UTC
# Line 24  Line 24 
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>
# Line 35  Line 37 
37  #define MENU_CACHELIST 1  #define MENU_CACHELIST 1
38  #define MENU_CACHE     2  #define MENU_CACHE     2
39  #endif  #endif
40  #else  #endif
41  #define MY_BCT   /* use custom breadcrumbtrail */  
42    #ifdef BCT
43  #include "bct.h"  #include "bct.h"
44  #endif  #endif
45    
# Line 113  typedef struct { Line 116  typedef struct {
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 */
# Line 127  typedef struct { Line 132  typedef struct {
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 */
# Line 144  typedef struct { Line 150  typedef struct {
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
# Line 178  typedef struct { Line 185  typedef struct {
185    
186    gboolean cachelist_disable_screensaver;    gboolean cachelist_disable_screensaver;
187    gboolean goto_disable_screensaver;    gboolean goto_disable_screensaver;
   gboolean cachelist_update;  
188    
189    HildonProgram *program;    HildonProgram *program;
190    HildonWindow *window;    HildonWindow *window;
# Line 187  typedef struct { Line 193  typedef struct {
193    GtkWidget *window;    GtkWidget *window;
194  #endif  #endif
195    
196  #if defined(USE_BREAD_CRUMB_TRAIL) || defined(MY_BCT)    gboolean cachelist_update;
197    
198    #if defined(USE_BREAD_CRUMB_TRAIL) || defined(BCT)
199    /* reference to enable/disable these while walking the crumb trail */    /* reference to enable/disable these while walking the crumb trail */
200    GtkWidget *menu_import, *menu_export;    GtkWidget *menu_import, *menu_export;
201    GtkWidget *menu_search;    GtkWidget *menu_search;
202    
203      GtkWidget *bct;
204    #endif
205    
206    /* keep track of current "path" in the bread crumb trail */    /* keep track of current "path" in the bread crumb trail */
207    gpx_t *cur_gpx;    gpx_t *cur_gpx;
208    cache_t *cur_cache;    cache_t *cur_cache;
209    
   GtkWidget *bct;  
 #endif  
   
210    gpx_t *search_results;    gpx_t *search_results;
211    
212  #ifdef ENABLE_OSM_GPS_MAP  #ifdef ENABLE_OSM_GPS_MAP
# Line 210  typedef struct { Line 218  typedef struct {
218    } map;    } map;
219  #endif  #endif
220    
221      /* username is also used to detect own caches (by log entry) */
222      char *username;
223    
224      /* stuff to call geotoad */
225      struct {
226        char *password, *filename;
227        float distance, lat, lon;
228        int flags;
229      } gt;
230    
231    GtkWidget *vbox;    GtkWidget *vbox;
232  } appdata_t;  } appdata_t;
233    
# Line 219  typedef struct { Line 237  typedef struct {
237  #include "gconf.h"  #include "gconf.h"
238  #include "html.h"  #include "html.h"
239  #include "icons.h"  #include "icons.h"
240    #include "gcvote.h"
241  #include "cache.h"  #include "cache.h"
242  #include "geomath.h"  #include "geomath.h"
243  #include "geotext.h"  #include "geotext.h"
# Line 227  typedef struct { Line 246  typedef struct {
246  #include "mm_poi.h"  #include "mm_poi.h"
247  #include "precpos.h"  #include "precpos.h"
248  #include "garmin_export.h"  #include "garmin_export.h"
249    #include "geotoad.h"
250    
251  #ifdef ENABLE_OSM_GPS_MAP  #ifdef ENABLE_OSM_GPS_MAP
252  #include "map-tool.h"  #include "map-tool.h"
# Line 266  extern gboolean on_window_key_press(GtkW Line 286  extern gboolean on_window_key_press(GtkW
286  #ifdef USE_STACKABLE_WINDOW  #ifdef USE_STACKABLE_WINDOW
287  HildonAppMenu *menu_create(appdata_t *appdata, int mode);  HildonAppMenu *menu_create(appdata_t *appdata, int mode);
288  #endif  #endif
289    void cachelist_goto_cache(appdata_t *appdata, cache_t *cache);
290    void gpxlist_goto_cachelist(appdata_t *appdata, gpx_t *gpx);
291    gboolean gpxlist_find(appdata_t *appdata, GtkTreeIter *iter, gpx_t *gpx);
292    void gpxlist_set(GtkListStore *store, GtkTreeIter *iter, gpx_t *gpx);
293    
294  #endif // GPXVIEW_H  #endif // GPXVIEW_H

Legend:
Removed from v.126  
changed lines
  Added in v.214