Parent Directory | Revision Log
OSD scale done
1 | harbaum | 77 | /* |
2 | * Copyright (C) 2008-2009 Till Harbaum <till@harbaum.org>. | ||
3 | * | ||
4 | * This file is part of GPXView. | ||
5 | * | ||
6 | * GPXView is free software: you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation, either version 3 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * GPXView is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with GPXView. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | ||
19 | |||
20 | harbaum | 1 | #ifndef CONFIG_H |
21 | #define CONFIG_H | ||
22 | |||
23 | #define TAG_STATE GTK_STATE_PRELIGHT | ||
24 | |||
25 | #ifndef USE_MAEMO | ||
26 | #define DEFAULT_IMAGE_PATH "/tmp/gpxview/" | ||
27 | #define DEFAULT_MMPOI_PATH "gpxview_poi.db" | ||
28 | #define DEFAULT_GARMIN_PATH "garmin_overridden.gpx" | ||
29 | #define DEFAULT_FIELDNOTES_PATH "geocache_visits_%s.txt" | ||
30 | #else | ||
31 | #if MAEMO_VERSION_MAJOR < 5 | ||
32 | /* internal memory card */ | ||
33 | #define DEFAULT_IMAGE_PATH "/media/mmc2/gpxview/" | ||
34 | #else | ||
35 | harbaum | 62 | #define DEFAULT_IMAGE_PATH "/home/user/.gpxview/" |
36 | harbaum | 1 | #endif |
37 | #define DEFAULT_MMPOI_PATH "MyDocs/.documents/Maps/gpxview_poi.db" | ||
38 | #define DEFAULT_GARMIN_PATH "MyDocs/.documents/garmin_overridden.gpx" | ||
39 | #define DEFAULT_FIELDNOTES_PATH "MyDocs/.documents/geocache_visits_%s.txt" | ||
40 | #endif | ||
41 | |||
42 | harbaum | 62 | #define DEFAULT_IMAGE_PATH_HOME ".gpxview/" |
43 | |||
44 | harbaum | 1 | #define LOCALEDIR "/usr/share/locale" |
45 | #define PACKAGE "gpxview" | ||
46 | |||
47 | harbaum | 32 | // for osm-gps-map: |
48 | #define USE_CAIRO | ||
49 | harbaum | 61 | #define ENABLE_OSD |
50 | harbaum | 65 | #define ENABLE_BALLOON |
51 | harbaum | 32 | |
52 | harbaum | 65 | #ifdef USE_MAEMO |
53 | harbaum | 80 | #define BIG_BALLOONS |
54 | harbaum | 66 | #define BALLOON_AREA_WIDTH 380 |
55 | #define BALLOON_AREA_HEIGHT 100 | ||
56 | #define BALLOON_CORNER_RADIUS 20 | ||
57 | harbaum | 65 | #endif |
58 | |||
59 | harbaum | 77 | /* only maemo devices up to version 4 have a fullscreen button */ |
60 | #ifdef USE_MAEMO | ||
61 | #include <hildon/hildon-defines.h> | ||
62 | #if (MAEMO_VERSION_MAJOR < 5) | ||
63 | #define OSM_GPS_MAP_KEY_FULLSCREEN HILDON_HARDKEY_FULLSCREEN | ||
64 | #else | ||
65 | harbaum | 89 | #define OSD_FONT_SIZE 28 |
66 | harbaum | 77 | #define OSM_GPS_MAP_KEY_FULLSCREEN 'f' |
67 | #endif | ||
68 | #define OSM_GPS_MAP_KEY_ZOOMIN HILDON_HARDKEY_INCREASE | ||
69 | #define OSM_GPS_MAP_KEY_ZOOMOUT HILDON_HARDKEY_DECREASE | ||
70 | #else | ||
71 | #define OSM_GPS_MAP_KEY_FULLSCREEN GDK_F11 | ||
72 | #define OSM_GPS_MAP_KEY_ZOOMIN '+' | ||
73 | #define OSM_GPS_MAP_KEY_ZOOMOUT '-' | ||
74 | #endif | ||
75 | harbaum | 76 | |
76 | harbaum | 77 | #define OSM_GPS_MAP_KEY_UP GDK_Up |
77 | #define OSM_GPS_MAP_KEY_DOWN GDK_Down | ||
78 | #define OSM_GPS_MAP_KEY_LEFT GDK_Left | ||
79 | #define OSM_GPS_MAP_KEY_RIGHT GDK_Right | ||
80 | |||
81 | harbaum | 103 | #define OSD_SCALE |
82 | |||
83 | harbaum | 75 | #ifdef USE_MAEMO |
84 | /* limit screen refresh while dragging to avoid delays */ | ||
85 | #define OSM_GPS_MAP_REFRESH 25 | ||
86 | harbaum | 77 | #define OSD_DIAMETER 60 |
87 | harbaum | 103 | #define OSD_SCALE_FONT_SIZE 20 |
88 | harbaum | 75 | #endif |
89 | |||
90 | harbaum | 74 | /* specify OSD colors explicitely. Otherwise gtk default */ |
91 | harbaum | 77 | /* colors are used. fremantle always uses gtk defaults */ |
92 | harbaum | 75 | #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5) |
93 | harbaum | 74 | #define OSD_COLOR_BG 1, 1, 1 // white background |
94 | #define OSD_COLOR 0.5, 0.5, 1 // light blue border and controls | ||
95 | #define OSD_COLOR_DISABLED 0.8, 0.8, 0.8 // light grey disabled controls | ||
96 | #define OSD_SHADOW_ENABLE | ||
97 | harbaum | 75 | #else |
98 | harbaum | 77 | #define OSD_Y -10 |
99 | harbaum | 75 | #endif |
100 | harbaum | 74 | |
101 | harbaum | 75 | #define OSD_DOUBLE_BUFFER // render osd/map together offscreen |
102 | harbaum | 76 | #define OSD_GPS_BUTTON // display a GPS button |
103 | #define OSD_NO_DPAD // no direction arrows (map is panned) | ||
104 | harbaum | 87 | #define OSD_SOURCE_SEL // display source selection tab |
105 | harbaum | 75 | |
106 | harbaum | 1 | #endif // CONFIG_H |