Diff of /trunk/src/config.h

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

revision 65 by harbaum, Wed Aug 19 14:21:14 2009 UTC revision 189 by harbaum, Tue Nov 17 09:07:17 2009 UTC
# Line 1  Line 1 
1    /*
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  #ifndef CONFIG_H  #ifndef CONFIG_H
21  #define CONFIG_H  #define CONFIG_H
22    
23  #define TAG_STATE  GTK_STATE_PRELIGHT  #define TAG_STATE  GTK_STATE_PRELIGHT
24    
 // #define DEFAULT_LAT 49.02833  
 // #define DEFAULT_LON  8.39042  
   
25  #ifndef USE_MAEMO  #ifndef USE_MAEMO
26  #define DEFAULT_IMAGE_PATH       "/tmp/gpxview/"  #define DEFAULT_IMAGE_PATH       "/tmp/gpxview/"
27  #define DEFAULT_MMPOI_PATH       "gpxview_poi.db"  #define DEFAULT_MMPOI_PATH       "gpxview_poi.db"
# Line 25  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_BALLOONS  #define BIG_BALLOONS
57    #define BALLOON_AREA_WIDTH        (390)
58    #define BALLOON_AREA_HEIGHT       (100)
59    #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
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 */
75    #ifdef USE_MAEMO
76    #include <hildon/hildon-defines.h>
77    #if (MAEMO_VERSION_MAJOR < 5)
78    #define OSM_GPS_MAP_KEY_FULLSCREEN  HILDON_HARDKEY_FULLSCREEN
79    #else
80    #define OSM_GPS_MAP_KEY_FULLSCREEN  'f'
81    #endif
82    #define OSM_GPS_MAP_KEY_ZOOMIN      HILDON_HARDKEY_INCREASE
83    #define OSM_GPS_MAP_KEY_ZOOMOUT     HILDON_HARDKEY_DECREASE
84    #else
85    #define OSM_GPS_MAP_KEY_FULLSCREEN  GDK_F11
86    #define OSM_GPS_MAP_KEY_ZOOMIN      '+'
87    #define OSM_GPS_MAP_KEY_ZOOMOUT     '-'
88  #endif  #endif
89    
90  #ifdef BIG_BALLOONS  #define OSM_GPS_MAP_KEY_UP          GDK_Up
91  #define BALLOON_AREA_WIDTH    300  #define OSM_GPS_MAP_KEY_DOWN        GDK_Down
92  #define BALLOON_AREA_HEIGHT    60  #define OSM_GPS_MAP_KEY_LEFT        GDK_Left
93  #define BALLOON_CORNER_RADIUS  40  #define OSM_GPS_MAP_KEY_RIGHT       GDK_Right
94    
95    /* specify OSD colors explicitely. Otherwise gtk default */
96    /* colors are used. fremantle always uses gtk defaults */
97    #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)
98    #define OSD_COLOR_BG         1, 1, 1         // white background
99    #define OSD_COLOR            0.5, 0.5, 1     // light blue border and controls
100    #define OSD_COLOR_DISABLED   0.8, 0.8, 0.8   // light grey disabled controls
101    #define OSD_SHADOW_ENABLE
102    #else
103    #define OSD_Y  -10
104  #endif  #endif
105    
106    #define OSD_DOUBLE_BUFFER    // render osd/map together offscreen
107    #define OSD_GPS_BUTTON       // display a GPS button
108    #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.65  
changed lines
  Added in v.189