Diff of /trunk/src/gpxview.h

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

revision 2 by harbaum, Sat Jun 20 11:44:14 2009 UTC revision 89 by harbaum, Tue Sep 1 11:16:30 2009 UTC
# Line 25  Line 25 
25  #define USE_BREAD_CRUMB_TRAIL  #define USE_BREAD_CRUMB_TRAIL
26  #else  #else
27  // these are on maemo fremantle  // these are on maemo fremantle
28    #include <hildon/hildon-button.h>
29    #include <hildon/hildon-text-view.h>
30    #include <hildon/hildon-window-stack.h>
31    #define USE_HILDON_TEXT_VIEW
32  #define USE_STACKABLE_WINDOW  #define USE_STACKABLE_WINDOW
33  #define NO_COPY_N_PASTE  #define NO_COPY_N_PASTE
34    #define MENU_GPXLIST   0
35    #define MENU_CACHELIST 1
36    #define MENU_CACHE     2
37  #endif  #endif
38  #endif  #endif
39    
# Line 43  Line 50 
50    
51  #ifdef USE_MAEMO  #ifdef USE_MAEMO
52  #include <hildon/hildon-program.h>  #include <hildon/hildon-program.h>
 #include <hildon/hildon-text-view.h>  
53  #include <hildon/hildon-file-chooser-dialog.h>  #include <hildon/hildon-file-chooser-dialog.h>
54  #include <hildon/hildon-file-system-model.h>  #include <hildon/hildon-file-system-model.h>
55  #include <hildon/hildon-bread-crumb-trail.h>  #include <hildon/hildon-bread-crumb-trail.h>
# Line 55  Line 61 
61  #if MAEMO_VERSION_MAJOR >= 5  #if MAEMO_VERSION_MAJOR >= 5
62  #define USE_PANNABLE_AREA  #define USE_PANNABLE_AREA
63  #include <hildon/hildon-pannable-area.h>  #include <hildon/hildon-pannable-area.h>
64    /* panning a gtkhtml view currently doesn't work well */
65    #define PANNABLE_HTML
66  #endif  #endif
67  #endif  #endif
68    
# Line 97  typedef struct { Line 105  typedef struct {
105    pos_t gps;                  /* saved last gps position */    pos_t gps;                  /* saved last gps position */
106    
107    char *image_path;           /* path to cache images in */    char *image_path;           /* path to cache images in */
   gboolean load_images;       /* load images and cache them */  
108    
109    int search;                 /* "search in" items */    int search;                 /* "search in" items */
110    char *search_str;    char *search_str;
# Line 138  typedef struct { Line 145  typedef struct {
145    GtkTextBuffer *active_buffer;    GtkTextBuffer *active_buffer;
146  #endif  #endif
147    
148    #ifdef USE_STACKABLE_WINDOW
149      GtkWidget *export_menu, *tools_menu;
150    #endif
151    
152    /* save result here to be able to "goto" it */    /* save result here to be able to "goto" it */
153    pos_t geomath;    pos_t geomath;
154    
# Line 172  typedef struct { Line 183  typedef struct {
183    GtkWidget *bct;    GtkWidget *bct;
184    gpx_t *search_results;    gpx_t *search_results;
185    
186    #ifdef USE_BREAD_CRUMB_TRAIL
187    /* reference to enable/disable these while walking the crumb trail */    /* reference to enable/disable these while walking the crumb trail */
188    GtkWidget *menu_import, *menu_export;    GtkWidget *menu_import, *menu_export;
189    GtkWidget *menu_search;    GtkWidget *menu_search;
190    #endif
191    
192    /* keep track of current "path" in the bread crumb trail */    /* keep track of current "path" in the bread crumb trail */
193    gpx_t *cur_gpx;    gpx_t *cur_gpx;
# Line 183  typedef struct { Line 196  typedef struct {
196  #else  #else
197    GtkWidget *window;    GtkWidget *window;
198  #endif  #endif
199    
200    #ifdef ENABLE_OSM_GPS_MAP
201      struct {
202        struct map_context_s *context;
203        int source;
204        int zoom;
205        pos_t pos;
206      } map;
207    #endif
208    
209    GtkWidget *vbox;    GtkWidget *vbox;
210  } appdata_t;  } appdata_t;
211    
# Line 201  typedef struct { Line 224  typedef struct {
224  #include "precpos.h"  #include "precpos.h"
225  #include "garmin_export.h"  #include "garmin_export.h"
226    
227    #ifdef ENABLE_OSM_GPS_MAP
228    #include "map-tool.h"
229    #endif
230    
231  #ifdef USE_MAEMO  #ifdef USE_MAEMO
232  #include "dbus.h"  #include "dbus.h"
233  #endif  #endif
# Line 231  extern void main_after_settings_redraw(a Line 258  extern void main_after_settings_redraw(a
258  #include <stdarg.h>  #include <stdarg.h>
259  extern void errorf(const char *fmt, ...);  extern void errorf(const char *fmt, ...);
260  extern gboolean on_window_key_press(GtkWidget *widget,  extern gboolean on_window_key_press(GtkWidget *widget,
261                                      GdkEventKey *event, gpointer data);                                      GdkEventKey *event, appdata_t *appdata);
262    #ifdef USE_STACKABLE_WINDOW
263    HildonAppMenu *menu_create(appdata_t *appdata, int mode);
264    #endif
265    
266  #endif // GPXVIEW_H  #endif // GPXVIEW_H

Legend:
Removed from v.2  
changed lines
  Added in v.89