Diff of /trunk/src/config.h

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

revision 76 by harbaum, Mon Aug 24 19:21:46 2009 UTC revision 77 by harbaum, Tue Aug 25 12:49:03 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    
# Line 31  Line 50 
50  #define ENABLE_BALLOON  #define ENABLE_BALLOON
51    
52  #ifdef USE_MAEMO  #ifdef USE_MAEMO
 #define BIG_BALLOONS  
 #endif  
   
 #ifdef BIG_BALLOONS  
53  #define BALLOON_AREA_WIDTH       380  #define BALLOON_AREA_WIDTH       380
54  #define BALLOON_AREA_HEIGHT      100  #define BALLOON_AREA_HEIGHT      100
55  #define BALLOON_CORNER_RADIUS     20  #define BALLOON_CORNER_RADIUS     20
 #define OSM_GPS_MAP_OSD_DIAMETER  60  
56  #endif  #endif
57    
58    /* only maemo devices up to version 4 have a fullscreen button */
59    #ifdef USE_MAEMO
60    #include <hildon/hildon-defines.h>
61    #if (MAEMO_VERSION_MAJOR < 5)
62    #define OSM_GPS_MAP_KEY_FULLSCREEN  HILDON_HARDKEY_FULLSCREEN
63    #else
64    #define OSM_GPS_MAP_KEY_FULLSCREEN  'f'
65    #endif
66    #define OSM_GPS_MAP_KEY_ZOOMIN      HILDON_HARDKEY_INCREASE
67    #define OSM_GPS_MAP_KEY_ZOOMOUT     HILDON_HARDKEY_DECREASE
68    #else
69    #define OSM_GPS_MAP_KEY_FULLSCREEN  GDK_F11
70    #define OSM_GPS_MAP_KEY_ZOOMIN      '+'
71    #define OSM_GPS_MAP_KEY_ZOOMOUT     '-'
72    #endif
73    
74    #define OSM_GPS_MAP_KEY_UP          GDK_Up
75    #define OSM_GPS_MAP_KEY_DOWN        GDK_Down
76    #define OSM_GPS_MAP_KEY_LEFT        GDK_Left
77    #define OSM_GPS_MAP_KEY_RIGHT       GDK_Right
78    
79  #ifdef USE_MAEMO  #ifdef USE_MAEMO
80  /* limit screen refresh while dragging to avoid delays */  /* limit screen refresh while dragging to avoid delays */
81  #define OSM_GPS_MAP_REFRESH  25  #define OSM_GPS_MAP_REFRESH  25
82    #define OSD_DIAMETER         60
83  #endif  #endif
84    
85  /* specify OSD colors explicitely. Otherwise gtk default */  /* specify OSD colors explicitely. Otherwise gtk default */
86  /* colors are used */  /* colors are used. fremantle always uses gtk defaults */
87  #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)  #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)
88  #define OSD_COLOR_BG         1, 1, 1         // white background  #define OSD_COLOR_BG         1, 1, 1         // white background
89  #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
90  #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
91  #define OSD_SHADOW_ENABLE  #define OSD_SHADOW_ENABLE
92  #else  #else
93  #define OSD_COLOR_BG         0, 0, 0         // black background  #define OSD_Y  -10
 #define OSD_COLOR            1, 1, 1         // white border and controls  
 #define OSD_COLOR_DISABLED   0.2, 0.2, 0.2   // dark grey disabled controls  
94  #endif  #endif
95    
96  #define OSD_DOUBLE_BUFFER    // render osd/map together offscreen  #define OSD_DOUBLE_BUFFER    // render osd/map together offscreen

Legend:
Removed from v.76  
changed lines
  Added in v.77