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 |
#define OSD_SCALE |
52 |
#define OSD_CROSSHAIR |
#define OSD_CROSSHAIR |
53 |
|
#define OSD_NAV |
54 |
|
|
55 |
#ifdef USE_MAEMO |
#ifdef USE_MAEMO |
56 |
#define BIG_BALLOONS |
#define BIG_BALLOONS |
57 |
#define BALLOON_AREA_WIDTH 380 |
#define BALLOON_AREA_WIDTH (390) |
58 |
#define BALLOON_AREA_HEIGHT 100 |
#define BALLOON_AREA_HEIGHT (105) |
59 |
#define BALLOON_CORNER_RADIUS 20 |
#define BALLOON_CORNER_RADIUS (20) |
60 |
#define OSD_FONT_SIZE 28 |
#define OSD_FONT_SIZE (28.0) |
61 |
#define OSD_DIAMETER 60 |
#define OSD_DIAMETER (60) |
62 |
#define OSD_SCALE_FONT_SIZE 20 |
#define OSD_SCALE_FONT_SIZE (20.0) |
63 |
#define OSD_CROSSHAIR_RADIUS 20 |
#define OSD_COORDINATES_FONT_SIZE (20.0) |
64 |
|
|
|
/* limit screen refresh while dragging to avoid delays */ |
|
|
#define OSM_GPS_MAP_REFRESH 25 |
|
65 |
#endif |
#endif |
66 |
|
|
67 |
#define OSD_COORDINATES |
#define OSD_COORDINATES |
71 |
#define OSD_COORDINATES_CHR_E gettext("E") |
#define OSD_COORDINATES_CHR_E gettext("E") |
72 |
#define OSD_COORDINATES_CHR_W gettext("W") |
#define OSD_COORDINATES_CHR_W gettext("W") |
73 |
|
|
74 |
|
#define _(a) gettext(a) |
75 |
|
|
76 |
/* only maemo devices up to version 4 have a fullscreen button */ |
/* only maemo devices up to version 4 have a fullscreen button */ |
77 |
#ifdef USE_MAEMO |
#ifdef USE_MAEMO |
78 |
#include <hildon/hildon-defines.h> |
#include <hildon/hildon-defines.h> |
79 |
#if (MAEMO_VERSION_MAJOR < 5) |
#if (MAEMO_VERSION_MAJOR < 5) |
80 |
#define OSM_GPS_MAP_KEY_FULLSCREEN HILDON_HARDKEY_FULLSCREEN |
#define MAP_KEY_FULLSCREEN HILDON_HARDKEY_FULLSCREEN |
81 |
#else |
#else |
82 |
#define OSM_GPS_MAP_KEY_FULLSCREEN 'f' |
#define MAP_KEY_FULLSCREEN 'f' |
83 |
#endif |
#endif |
84 |
#define OSM_GPS_MAP_KEY_ZOOMIN HILDON_HARDKEY_INCREASE |
#define MAP_KEY_ZOOMIN HILDON_HARDKEY_INCREASE |
85 |
#define OSM_GPS_MAP_KEY_ZOOMOUT HILDON_HARDKEY_DECREASE |
#define MAP_KEY_ZOOMOUT HILDON_HARDKEY_DECREASE |
86 |
#else |
#else |
87 |
#define OSM_GPS_MAP_KEY_FULLSCREEN GDK_F11 |
#define MAP_KEY_FULLSCREEN GDK_F11 |
88 |
#define OSM_GPS_MAP_KEY_ZOOMIN '+' |
#define MAP_KEY_ZOOMIN '+' |
89 |
#define OSM_GPS_MAP_KEY_ZOOMOUT '-' |
#define MAP_KEY_ZOOMOUT '-' |
90 |
#endif |
#endif |
91 |
|
|
92 |
#define OSM_GPS_MAP_KEY_UP GDK_Up |
#define MAP_KEY_UP GDK_Up |
93 |
#define OSM_GPS_MAP_KEY_DOWN GDK_Down |
#define MAP_KEY_DOWN GDK_Down |
94 |
#define OSM_GPS_MAP_KEY_LEFT GDK_Left |
#define MAP_KEY_LEFT GDK_Left |
95 |
#define OSM_GPS_MAP_KEY_RIGHT GDK_Right |
#define MAP_KEY_RIGHT GDK_Right |
96 |
|
|
97 |
/* specify OSD colors explicitely. Otherwise gtk default */ |
/* specify OSD colors explicitely. Otherwise gtk default */ |
98 |
/* colors are used. fremantle always uses gtk defaults */ |
/* colors are used. fremantle always uses gtk defaults */ |
99 |
#if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5) |
#if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5) |
100 |
#define OSD_COLOR_BG 1, 1, 1 // white background |
#define OSD_COLOR_BG 1, 1, 1, 1 // white background |
101 |
#define OSD_COLOR 0.5, 0.5, 1 // light blue border and controls |
#define OSD_COLOR 0.5, 0.5, 1 // light blue border and controls |
102 |
#define OSD_COLOR_DISABLED 0.8, 0.8, 0.8 // light grey disabled controls |
#define OSD_COLOR_DISABLED 0.8, 0.8, 0.8 // light grey disabled controls |
103 |
#define OSD_SHADOW_ENABLE |
#define OSD_SHADOW_ENABLE |
109 |
#define OSD_GPS_BUTTON // display a GPS button |
#define OSD_GPS_BUTTON // display a GPS button |
110 |
#define OSD_NO_DPAD // no direction arrows (map is panned) |
#define OSD_NO_DPAD // no direction arrows (map is panned) |
111 |
#define OSD_SOURCE_SEL // display source selection tab |
#define OSD_SOURCE_SEL // display source selection tab |
112 |
|
#define OSD_DOUBLEPIXEL // allow pixel doubling from OSD |
113 |
|
|
114 |
#endif // CONFIG_H |
#endif // CONFIG_H |