Diff of /trunk/src/config.h

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

revision 79 by harbaum, Tue Aug 25 13:00:37 2009 UTC revision 146 by harbaum, Tue Oct 27 13:28:41 2009 UTC
# Line 41  Line 41 
41    
42  #define DEFAULT_IMAGE_PATH_HOME  ".gpxview/"  #define DEFAULT_IMAGE_PATH_HOME  ".gpxview/"
43    
44  #define LOCALEDIR "/usr/share/locale"  #define LOCALEDIR PREFIX "/share/locale"
45  #define PACKAGE   "gpxview"  #define PACKAGE   "gpxview"
46    
47  // for osm-gps-map:  // for osm-gps-map:
48  #define USE_CAIRO  #define USE_CAIRO
49  #define ENABLE_OSD  #define ENABLE_OSD
50  #define ENABLE_BALLOON  #define OSD_BALLOON
51    #define OSD_SCALE
52    #define OSD_CROSSHAIR
53    #define OSD_NAV
54    
55  #ifdef USE_MAEMO  #ifdef USE_MAEMO
56  #define BIG_BALLONS  #define BIG_BALLOONS
57  #define BALLOON_AREA_WIDTH       380  #define BALLOON_AREA_WIDTH        (380)
58  #define BALLOON_AREA_HEIGHT      100  #define BALLOON_AREA_HEIGHT       (100)
59  #define BALLOON_CORNER_RADIUS     20  #define BALLOON_CORNER_RADIUS     (20)
60    #define OSD_FONT_SIZE             (28.0)
61    #define OSD_DIAMETER              (60)
62    #define OSD_SCALE_FONT_SIZE       (20.0)
63    #define OSD_COORDINATES_FONT_SIZE (20.0)
64    
65  #endif  #endif
66    
67    #define OSD_COORDINATES
68    #include <libintl.h>
69    #define OSD_COORDINATES_CHR_N  gettext("N")
70    #define OSD_COORDINATES_CHR_S  gettext("S")
71    #define OSD_COORDINATES_CHR_E  gettext("E")
72    #define OSD_COORDINATES_CHR_W  gettext("W")
73    
74  /* only maemo devices up to version 4 have a fullscreen button */  /* only maemo devices up to version 4 have a fullscreen button */
75  #ifdef USE_MAEMO  #ifdef USE_MAEMO
76  #include <hildon/hildon-defines.h>  #include <hildon/hildon-defines.h>
# Line 77  Line 92 
92  #define OSM_GPS_MAP_KEY_LEFT        GDK_Left  #define OSM_GPS_MAP_KEY_LEFT        GDK_Left
93  #define OSM_GPS_MAP_KEY_RIGHT       GDK_Right  #define OSM_GPS_MAP_KEY_RIGHT       GDK_Right
94    
 #ifdef USE_MAEMO  
 /* limit screen refresh while dragging to avoid delays */  
 #define OSM_GPS_MAP_REFRESH  25  
 #define OSD_DIAMETER         60  
 #endif  
   
95  /* specify OSD colors explicitely. Otherwise gtk default */  /* specify OSD colors explicitely. Otherwise gtk default */
96  /* colors are used. fremantle always uses gtk defaults */  /* colors are used. fremantle always uses gtk defaults */
97  #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)  #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)
# Line 97  Line 106 
106  #define OSD_DOUBLE_BUFFER    // render osd/map together offscreen  #define OSD_DOUBLE_BUFFER    // render osd/map together offscreen
107  #define OSD_GPS_BUTTON       // display a GPS button  #define OSD_GPS_BUTTON       // display a GPS button
108  #define OSD_NO_DPAD          // no direction arrows (map is panned)  #define OSD_NO_DPAD          // no direction arrows (map is panned)
109    #define OSD_SOURCE_SEL       // display source selection tab
110    
111  #endif // CONFIG_H  #endif // CONFIG_H

Legend:
Removed from v.79  
changed lines
  Added in v.146