Diff of /trunk/src/gpxview.h

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

revision 1 by harbaum, Sat Jun 20 11:08:47 2009 UTC revision 8 by harbaum, Thu Jun 25 19:08:48 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    // these are on maemo fremantle
28    #include <hildon/hildon-button.h>
29    #include <hildon/hildon-text-view.h>
30    #define USE_HILDON_TEXT_VIEW
31  #define USE_STACKABLE_WINDOW  #define USE_STACKABLE_WINDOW
32    #define NO_COPY_N_PASTE
33    #define MENU_GPXLIST   0
34    #define MENU_CACHELIST 1
35    #define MENU_CACHE     2
36  #endif  #endif
37  #endif  #endif
38    
# Line 41  Line 49 
49    
50  #ifdef USE_MAEMO  #ifdef USE_MAEMO
51  #include <hildon/hildon-program.h>  #include <hildon/hildon-program.h>
 #include <hildon/hildon-text-view.h>  
52  #include <hildon/hildon-file-chooser-dialog.h>  #include <hildon/hildon-file-chooser-dialog.h>
53  #include <hildon/hildon-file-system-model.h>  #include <hildon/hildon-file-system-model.h>
54  #include <hildon/hildon-bread-crumb-trail.h>  #include <hildon/hildon-bread-crumb-trail.h>
# Line 129  typedef struct { Line 136  typedef struct {
136    GtkWidget *menu_remove, *menu_close;    GtkWidget *menu_remove, *menu_close;
137  #endif  #endif
138    
139    #ifndef NO_COPY_N_PASTE
140    /* do enable/disable the edit entries */    /* do enable/disable the edit entries */
141    GtkWidget *menu_cut, *menu_copy, *menu_paste;    GtkWidget *menu_cut, *menu_copy, *menu_paste;
142    GtkClipboard *clipboard;     /* clipboard for copy/paste */    GtkClipboard *clipboard;     /* clipboard for copy/paste */
143    GtkTextBuffer *active_buffer;    GtkTextBuffer *active_buffer;
144    #endif
145    
146    /* save result here to be able to "goto" it */    /* save result here to be able to "goto" it */
147    pos_t geomath;    pos_t geomath;
# Line 168  typedef struct { Line 177  typedef struct {
177    GtkWidget *bct;    GtkWidget *bct;
178    gpx_t *search_results;    gpx_t *search_results;
179    
180    #ifdef USE_BREAD_CRUMB_TRAIL
181    /* reference to enable/disable these while walking the crumb trail */    /* reference to enable/disable these while walking the crumb trail */
182    GtkWidget *menu_import, *menu_export;    GtkWidget *menu_import, *menu_export;
183    GtkWidget *menu_search;    GtkWidget *menu_search;
184    #endif
185    
186    /* keep track of current "path" in the bread crumb trail */    /* keep track of current "path" in the bread crumb trail */
187    gpx_t *cur_gpx;    gpx_t *cur_gpx;
# Line 228  extern void main_after_settings_redraw(a Line 239  extern void main_after_settings_redraw(a
239  extern void errorf(const char *fmt, ...);  extern void errorf(const char *fmt, ...);
240  extern gboolean on_window_key_press(GtkWidget *widget,  extern gboolean on_window_key_press(GtkWidget *widget,
241                                      GdkEventKey *event, gpointer data);                                      GdkEventKey *event, gpointer data);
242    #ifdef USE_STACKABLE_WINDOW
243    HildonAppMenu *menu_create(appdata_t *appdata, int mode);
244    #endif
245    
246  #endif // GPXVIEW_H  #endif // GPXVIEW_H

Legend:
Removed from v.1  
changed lines
  Added in v.8