Diff of /trunk/src/icons.c

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

revision 176 by harbaum, Wed Nov 11 20:21:55 2009 UTC revision 188 by harbaum, Mon Nov 16 20:30:54 2009 UTC
# Line 33  struct icon_data { Line 33  struct icon_data {
33    { NULL, LOG_TYPE_MAX+1 },    /* ICON_LOG             */    { NULL, LOG_TYPE_MAX+1 },    /* ICON_LOG             */
34    { NULL, 9 },                 /* ICON_HEADING         */    { NULL, 9 },                 /* ICON_HEADING         */
35    { NULL, WPT_SYM_MAX+1 },     /* ICON_WPT             */    { NULL, WPT_SYM_MAX+1 },     /* ICON_WPT             */
36    { NULL, 1 },                 /* ICON_TB              */    { NULL, 2 },                 /* ICON_TB              */
37    { NULL, 9 },                 /* ICON_MISC            */    { NULL, 9 },                 /* ICON_MISC            */
38    { NULL, 3 },                 /* ICON_FILE            */    { NULL, 3 },                 /* ICON_FILE            */
39    { NULL, -1 }    { NULL, -1 }
# Line 42  struct icon_data { Line 42  struct icon_data {
42  /* ICON_CACHE_TYPE / ICON_CACHE_TYPE_SEMI / ICON_CACHE_TYPE_2X */  /* ICON_CACHE_TYPE / ICON_CACHE_TYPE_SEMI / ICON_CACHE_TYPE_2X */
43  const char *cache_type_icon_name[] = {  const char *cache_type_icon_name[] = {
44    "traditional", "multi",      "mystery", "virtual", "webcam", "event",    "traditional", "multi",      "mystery", "virtual", "webcam", "event",
45    "letterbox",   "earthcache", "wherigo", "megaevent", "cito"    "letterbox",   "earthcache", "wherigo", "megaevent", "cito",
46    
47      /* special overlays */
48      "override", "found", "note"
49  };  };
50    
51  /* ICON_CACHE_SIZE */  /* ICON_CACHE_SIZE */
# Line 79  const char *wpt_sym_icon_name[] = { Line 82  const char *wpt_sym_icon_name[] = {
82    
83  /* ICON_TB         */  /* ICON_TB         */
84  const char *tb_icon_name[] = {  const char *tb_icon_name[] = {
85    "tb"    "tb", "coin"
86  };  };
87    
88    /* locked/unlocked -1 */
89    /* mapper-in -2 */
90    /* delete/paypal -3 */
91    
92  /* ICON_MISC         */  /* ICON_MISC         */
93  const char *misc_icon_name[] = {  const char *misc_icon_name[] = {
94    "maemo-mapper-out", "override", "locked", "unlocked", "found",    "maemo-mapper-out", "override", "locked", "unlocked", "found",
# Line 155  static void icons_load(int type, char *f Line 162  static void icons_load(int type, char *f
162  void icons_init(void) {  void icons_init(void) {
163    
164    /* load cache type icons */    /* load cache type icons */
165    icons_load(ICON_CACHE_TYPE, "cache_type_%s.%s", cache_type_icon_name);    icons_load(ICON_CACHE_TYPE, "32x32/cache_type_%s.%s", cache_type_icon_name);
166    
167    /* load semitransparent cache type icons */    /* load semitransparent cache type icons */
168    icons_load(ICON_CACHE_TYPE_SEMI, "cache_type_%s_semi.%s", cache_type_icon_name);    icons_load(ICON_CACHE_TYPE_SEMI, "32x32/cache_type_%s_semi.%s", cache_type_icon_name);
169    
170    /* load 150% sized cache type icons */    /* load 150% sized cache type icons */
171    icons_load(ICON_CACHE_TYPE_1_5X, "cache_type_%s_1.5x.%s", cache_type_icon_name);    icons_load(ICON_CACHE_TYPE_1_5X, "48x48/cache_type_%s.%s", cache_type_icon_name);
172    
173    /* load double sized cache type icons */    /* load double sized cache type icons */
174    icons_load(ICON_CACHE_TYPE_2X, "cache_type_%s_2x.%s", cache_type_icon_name);    icons_load(ICON_CACHE_TYPE_2X, "64x64/cache_type_%s.%s", cache_type_icon_name);
175    
176    /* load cache container/size icons */    /* load cache container/size icons */
177    icons_load(ICON_CACHE_SIZE, "cache_size_%s.%s", cache_size_icon_name);  #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)
178      icons_load(ICON_CACHE_SIZE, "45x12/cache_size_%s.%s", cache_size_icon_name);
179    #else
180      icons_load(ICON_CACHE_SIZE, "90x24/cache_size_%s.%s", cache_size_icon_name);
181    #endif
182    
183      /* load cache difficulty/terrain/quality icons */
184    #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)
185      icons_load(ICON_STARS, "12x12/stars%s.%s", stars_icon_name);
186    #else
187      icons_load(ICON_STARS, "16x16/stars%s.%s", stars_icon_name);
188    #endif
189    
190    /* load cache difficulty/terrain icons */    /* load cache log icons */
191    icons_load(ICON_STARS, "stars%s.%s", stars_icon_name);    icons_load(ICON_LOG, "32x32/log_icon_%s.%s", log_icon_name);
   
   /* load cache difficulty/terrain icons */  
   icons_load(ICON_LOG, "log_icon_%s.%s", log_icon_name);  
192    
193    /* load icons to visualize heading */    /* load icons to visualize heading */
194    icons_load(ICON_HEADING, "heading_%s.%s", heading_icon_name);  #if !defined(USE_MAEMO) || (MAEMO_VERSION_MAJOR < 5)
195      icons_load(ICON_HEADING, "32x32/heading_%s.%s", heading_icon_name);
196    #else
197      icons_load(ICON_HEADING, "48x48/heading_%s.%s", heading_icon_name);
198    #endif
199    
200    /* load icons to visualize heading */    /* load waypoint icons */
201    icons_load(ICON_WPT, "wpt_%s.%s", wpt_sym_icon_name);    icons_load(ICON_WPT, "32x32/wpt_%s.%s", wpt_sym_icon_name);
202    
203    /* load travelbug icon */    /* load travelbug/coin icons */
204    icons_load(ICON_TB, "%s.%s", tb_icon_name);    icons_load(ICON_TB, "32x32/%s.%s", tb_icon_name);
205    
206    /* load misc icons */    /* load misc icons */
207    icons_load(ICON_MISC, "%s.%s", misc_icon_name);    icons_load(ICON_MISC, "%s.%s", misc_icon_name);

Legend:
Removed from v.176  
changed lines
  Added in v.188