navit  0.5.3-trunk
attr_def.h
Go to the documentation of this file.
1 /*
2  * Navit, a modular navigation system.
3  * Copyright (C) 2005-2014 Navit Team
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public License
7  * version 2 as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
29 /* prototypes */
30 
31 /* common */
32 #ifndef ATTR
33 #define ATTR(x) extern ##x;
34 #endif
35 #ifndef ATTR2
36 #define ATTR2(x,y) extern ##y;
37 #endif
38 ATTR2(0x00000000,none)
39 ATTR(any)
40 ATTR(any_xml)
41 
42 ATTR2(0x00010000,type_item_begin)
43 ATTR(town_streets_item)
46 ATTR(street_item)
48 ATTR(position_sat_item)
49 ATTR(current_item)
50 ATTR2(0x0001ffff,type_item_end)
51 
52 ATTR2(0x00020000,type_int_begin)
54 ATTR(id)
55 ATTR(flags)
59 ATTR(flush_size)
60 ATTR(flush_time)
61 ATTR(zipfile_ref)
62 ATTR(country_id)
63 ATTR(position_sats)
64 ATTR(position_sats_used)
65 ATTR(update)
66 ATTR(follow)
67 ATTR(length)
68 ATTR(time)
69 ATTR(destination_length)
70 ATTR(destination_time)
71 ATTR(speed)
72 ATTR(interval)
73 ATTR(position_qual)
74 ATTR(zoom)
75 ATTR(retry_interval)
77 ATTR(offroad)
78 ATTR(vocabulary_name)
79 ATTR(vocabulary_name_systematic)
80 ATTR(vocabulary_distances)
82 ATTR(antialias)
83 ATTR(order_delta)
84 ATTR(baudrate)
86 ATTR(icon_xs)
87 ATTR(icon_l)
88 ATTR(icon_s)
89 ATTR(spacing)
90 ATTR(recent_dest)
91 ATTR(destination_distance)
92 ATTR(check_version)
93 ATTR(details)
94 ATTR(width)
95 ATTR(offset)
96 ATTR(directed)
97 ATTR(radius)
98 ATTR(text_size)
99 ATTR(level)
100 ATTR(icon_w)
101 ATTR(icon_h)
102 ATTR(rotation)
103 ATTR(checksum_ignore)
104 ATTR(position_fix_type)
105 ATTR(timeout)
107 ATTR(keyboard)
108 ATTR(position_sats_signal)
109 ATTR(cps)
111 ATTR(osd_configuration)
112 ATTR(columns)
113 ATTR(align)
114 ATTR(sat_prn)
115 ATTR(sat_elevation)
116 ATTR(sat_azimuth)
117 ATTR(sat_snr)
118 ATTR(autozoom)
119 ATTR(version)
120 ATTR(autozoom_min)
121 ATTR(maxspeed)
122 ATTR(cdf_histsize)
123 ATTR(message_maxage)
124 ATTR(message_maxnum)
125 ATTR(pitch)
129 ATTR(route_weight)
131 ATTR(route_mode)
133 ATTR(flags_forward_mask)
134 ATTR(flags_reverse_mask)
136 ATTR(delay)
137 ATTR(lag)
138 ATTR(bpp)
140 ATTR(windowid)
141 ATTR(hog)
142 ATTR(flags_town)
143 ATTR(flags_street)
144 ATTR(flags_house_number)
145 ATTR(use_camera)
146 ATTR(flags_graphics)
147 ATTR(zoom_min)
148 ATTR(zoom_max)
149 ATTR(gamma)
150 ATTR(brightness)
151 ATTR(contrast)
152 ATTR(height)
156 ATTR(shmkey)
157 ATTR(vehicle_width)
158 ATTR(vehicle_length)
159 ATTR(vehicle_height)
160 ATTR(vehicle_weight)
161 ATTR(vehicle_axle_weight)
162 ATTR(vehicle_dangerous_goods)
163 ATTR(shmsize)
164 ATTR(shmoffset)
166 ATTR(static_speed)
167 ATTR(static_distance)
168 ATTR(through_traffic_penalty)
169 ATTR(through_traffic_flags)
170 ATTR(speed_exceed_limit_offset)
171 ATTR(speed_exceed_limit_percent)
172 ATTR(map_border)
173 ATTR(angle_pref)
174 ATTR(connected_pref)
175 ATTR(nostop_pref)
176 ATTR(offroad_limit_pref)
177 ATTR(route_pref)
178 ATTR(overspeed_pref)
179 ATTR(overspeed_percent_pref)
180 ATTR(autosave_period)
181 ATTR(tec_type)
182 ATTR(tec_dirtype)
183 ATTR(tec_direction)
184 ATTR(imperial)
185 ATTR(update_period)
186 ATTR(tunnel_extrapolation)
187 ATTR(street_count)
188 ATTR(min_dist)
189 ATTR(max_dist)
190 ATTR(cache_size)
197 ATTR(hide_impossible_next_keys)
198 ATTR(turn_around_count)
199 ATTR(turn_around_penalty)
200 ATTR(turn_around_penalty2)
201 ATTR(autozoom_max)
203 ATTR(virtual_dpi)
204 ATTR(real_dpi)
205 ATTR(underground_alpha)
206 ATTR(sunrise_degrees)
207 ATTR2(0x00027500,type_rel_abs_begin)
208 /* These attributes are int that can either hold relative or absolute values. See the
209  * documentation of ATTR_REL_RELSHIFT for details.
210  */
211 ATTR(h)
212 ATTR(w)
213 ATTR(x)
214 ATTR(y)
215 ATTR(font_size)
216 
217 ATTR2(0x00028000,type_boolean_begin)
218 /* boolean */
219 ATTR(overwrite)
220 ATTR(active)
221 ATTR(follow_cursor)
223 ATTR(tracking)
224 ATTR(menubar)
225 ATTR(statusbar)
226 ATTR(toolbar)
227 ATTR(animate)
228 ATTR(lazy)
229 ATTR(mkdir)
230 ATTR(predraw)
231 ATTR(postdraw)
232 ATTR(button)
233 ATTR(ondemand)
234 ATTR(menu_on_map_click)
235 ATTR(direction)
237 ATTR(gui_speech)
238 ATTR(town_id) /* fixme? */
239 ATTR(street_id) /* fixme? */
240 ATTR(district_id) /* fixme? */
241 ATTR(drag_bitmap)
242 ATTR(use_mousewheel)
244 ATTR(position_magnetic_direction)
245 ATTR(use_overlay)
247 ATTR(autozoom_active)
248 ATTR(position_valid)
249 ATTR(frame)
250 ATTR(tell_street_name)
251 ATTR(bluetooth)
252 ATTR(signal_on_map_click)
253 ATTR(route_active)
254 ATTR(search_active)
255 ATTR(unsuspend)
256 ATTR(announce_on)
257 ATTR(disable_reset)
258 ATTR(autostart)
259 ATTR(readwrite)
260 ATTR(cache)
261 ATTR(create)
262 ATTR(persistent)
263 ATTR(waypoints_flag) /* toggle for "set as destination" to switch between start a new route or add */
264 ATTR(no_warning_if_map_file_missing)
266 ATTR(has_menu_button)
267 ATTR(oneway)
268 ATTR(tunnel_nightlayout)
269 ATTR(layout_daynightauto)
270 ATTR(town_use_postal)
271 ATTR2(0x0002ffff,type_int_end)
272 ATTR2(0x00030000,type_string_begin)
273 ATTR(type)
274 ATTR(label)
275 ATTR(data)
276 ATTR(charset)
277 ATTR(country_all)
278 ATTR(country_iso3)
279 ATTR(country_iso2)
280 ATTR(country_car)
281 ATTR(country_name)
282 ATTR(town_name)
283 ATTR(town_postal)
284 ATTR(district_name)
286 ATTR(street_name_systematic)
288 ATTR(debug)
289 ATTR(address)
290 ATTR(phone)
291 ATTR(entry_fee)
292 ATTR(open_hours)
293 ATTR(skin)
297 ATTR(window_title)
298 ATTR(qt5_platform)
299 ATTR(qt5_widget)
300 /* poi */
302 ATTR(info_html)
303 ATTR(price_html)
304 /* navigation */
305 ATTR(navigation_short)
306 ATTR(navigation_long)
307 ATTR(navigation_long_exact)
308 ATTR(navigation_speech)
309 ATTR(name)
310 ATTR(cursorname)
311 ATTR(source)
313 ATTR(gc_type)
315 ATTR(position_nmea)
316 ATTR(gpsd_query)
317 ATTR(on_eof)
318 ATTR(command)
319 ATTR(src)
320 ATTR(path)
321 ATTR(font)
322 ATTR(url_local)
326 ATTR(icon_src)
327 ATTR(position_time_iso8601)
328 ATTR(house_number)
329 ATTR(osm_member)
330 ATTR(osm_tag)
331 ATTR(municipality_name)
332 ATTR(county_name)
333 ATTR(state_name)
334 ATTR(message)
336 ATTR(enable_expression)
337 ATTR(fax)
338 ATTR(email)
339 ATTR(url)
340 ATTR(profilename)
341 ATTR(projectionname)
342 ATTR(town_or_district_name)
343 ATTR(postal)
344 ATTR(postal_mask)
351 ATTR(town_name_match)
352 ATTR(district_name_match)
353 ATTR(street_name_match)
354 ATTR(language)
355 ATTR(subtype)
356 ATTR(filter)
357 ATTR(daylayout)
358 ATTR(nightlayout)
359 ATTR(xml_text)
360 ATTR(layout_name)
361 ATTR(default_layout)
363 ATTR(status_text)
364 ATTR(log_gpx_desc)
367 ATTR(socket)
368 /* These attributes for house number interpolation are only written by
369  * martin-s' (unpublished) GDF converter. */
370 ATTR(house_number_left)
371 ATTR(house_number_left_odd)
372 ATTR(house_number_left_even)
373 ATTR(house_number_right)
374 ATTR(house_number_right_odd)
375 ATTR(house_number_right_even)
376 ATTR(map_release)
377 ATTR(accesskey)
378 ATTR(http_method)
379 ATTR(http_header)
380 ATTR(progress)
381 ATTR(sample_dir)
382 ATTR(sample_suffix)
383 ATTR(dbus_destination)
384 ATTR(dbus_path)
385 ATTR(dbus_interface)
387 ATTR(osm_is_in)
388 ATTR(event_loop_system)
389 ATTR(map_name)
391 ATTR(state_file)
392 ATTR(on_map_click)
393 ATTR(route_depth)
394 ATTR(ref)
395 ATTR(tile_name)
396 ATTR(first_key)
397 ATTR(last_key)
398 ATTR(src_dir)
399 ATTR(refresh_cond)
400 /* House number interpolation information from OSM. For OSM data, the interpolation must
401  * exclude the end nodes, because these are imported as separate nodes. */
402 ATTR(house_number_interpolation_no_ends_incrmt_1)
403 ATTR(house_number_interpolation_no_ends_incrmt_2)
405 ATTR(street_name_systematic_nat)
406 ATTR(street_name_systematic_int)
408 ATTR(exit_to)
409 ATTR(street_destination_forward)
410 ATTR(street_destination_backward)
411 ATTR(outputdir)
412 ATTR2(0x0003ffff,type_string_end)
413 ATTR2(0x00040000,type_special_begin)
414 ATTR(order)
416 ATTR(item_types)
417 ATTR(dash)
418 ATTR(sequence_range)
419 ATTR(angle_range)
420 ATTR(speed_range)
421 ATTR(attr_types)
422 ATTR(ch_edge)
423 ATTR(zipfile_ref_block)
424 ATTR(item_id)
425 ATTR(pdl_gps_update)
427 ATTR2(0x0004ffff,type_special_end)
428 ATTR2(0x00050000,type_double_begin)
429 ATTR(position_height)
430 ATTR(position_speed)
431 ATTR(position_direction)
432 ATTR(position_hdop)
433 ATTR(position_radius)
434 ATTR(position_longitude)
435 ATTR(position_latitude)
436 ATTR(position_direction_matched)
437 ATTR2(0x0005ffff,type_double_end)
438 ATTR2(0x00060000,type_coord_geo_begin)
439 ATTR(position_coord_geo)
440 ATTR(center)
441 ATTR(click_coord_geo)
442 ATTR2(0x0006ffff,type_coord_geo_end)
443 ATTR2(0x00070000,type_color_begin)
444 ATTR(color)
446 ATTR(background_color)
447 ATTR(foreground_color)
448 ATTR(text_color)
449 ATTR(idle_color)
450 ATTR(background_color2)
451 ATTR(text_background)
452 ATTR(destination_dir_color)
453 ATTR(north_color)
454 ATTR2(0x0007ffff,type_color_end)
455 ATTR2(0x00080000,type_object_begin)
456 ATTR(navit)
457 ATTR(log)
458 ATTR(callback)
459 ATTR(route)
461 ATTR(vehicle)
462 ATTR(map)
463 ATTR(bookmark_map)
465 ATTR(former_destination_map)
466 ATTR(graphics)
467 ATTR(gui)
468 ATTR(trackingo) /* fixme */
469 ATTR(plugins)
470 ATTR(layer)
471 ATTR(itemgra)
472 ATTR(polygon)
473 ATTR(polyline)
474 ATTR(circle)
475 ATTR(text)
476 ATTR(icon)
477 ATTR(image)
478 ATTR(arrows)
479 ATTR(mapset)
480 ATTR(osd)
481 ATTR(plugin)
482 ATTR(speech)
483 ATTR(coord)
484 ATTR(private_data)
491 ATTR(cursor)
492 ATTR(config)
493 ATTR(maps)
494 ATTR(layout)
496 ATTR(script)
497 ATTR(traffic)
498 ATTR2(0x0008ffff,type_object_end)
499 ATTR2(0x00090000,type_coord_begin)
500 ATTR2(0x0009ffff,type_coord_end)
501 ATTR2(0x000a0000,type_pcoord_begin)
502 ATTR(destination)
503 ATTR(position)
504 ATTR(position_test)
505 ATTR2(0x000affff,type_pcoord_end)
506 ATTR2(0x000b0000,type_callback_begin)
507 ATTR(resize)
508 ATTR(motion)
509 ATTR(keypress)
510 ATTR(window_closed)
511 ATTR(log_gpx)
512 ATTR(log_textfile)
513 ATTR(graphics_ready)
514 ATTR(destroy)
515 ATTR(wm_copydata)
516 ATTR2(0x000bffff,type_callback_end)
517 ATTR2(0x000c0000,type_int64_begin)
518 ATTR(osm_nodeid)
519 ATTR(osm_wayid)
520 ATTR(osm_relationid)
521 ATTR(osm_nodeid_first_node)
522 ATTR(osm_nodeid_last_node)
523 ATTR2(0x000cffff,type_int64_end)
524 ATTR2(0x000d0000,type_group_begin)
525 ATTR2(0x000dffff,type_group_end)
526 ATTR2(0x000e0000,type_item_type_begin)
527 ATTR2(0x000effff,type_item_type_end)
#define ATTR_UNUSED
Definition: attr.h:40
#define ATTR2(x, y)
Definition: attr_def.h:36
#define ATTR(x)
Definition: attr_def.h:33
void command(struct attr *attr, char *expr)
Definition: command.c:1197
static const int zoom_max
Definition: csv.c:175
dbg_level
Definition: debug.h:42
static char * description(struct search_param *search, GtkTreeIter *iter)
Definition: destination.c:56
unsigned char subtype
Definition: garmin_img.c:4
struct tcoord center
Definition: garmin_img.c:2
char data
Definition: garmin_img.c:2
struct label_data_offset label
Definition: garmin_img.c:1
unsigned short width
Definition: garmin_img.c:3
unsigned char zoom
Definition: garmin_img.c:0
char type[3]
Definition: garmin_img.c:2
int length
Definition: garmin_img.c:1
unsigned short height
Definition: garmin_img.c:4
int offset
Definition: garmin_img.c:0
static gint keypress(GtkWidget *widget, GdkEventKey *event, gpointer user_data)
Definition: graphics_gtk_drawing_area.c:773
static int fullscreen(struct window *win, int on)
Definition: graphics_qt_qpainter.cpp:514
flags
Definition: gui_internal.h:26
item_type
Definition: item.h:29
GList * maps
Definition: map.c:29
nav_status
Definition: navigation.h:45
int orientation
Definition: pedestrian.c:71
FILE * debug
Definition: pedestrian.c:423
projection
Definition: projection.h:23
route_status
Definition: route.h:41
struct attr active
Definition: speech.c:77
char name[0]
Definition: street.c:3
Definition: announcement.c:25
Definition: bookmarks.c:53
Definition: cache.c:23
Definition: callback.c:37
Definition: callback.c:27
Definition: ch.c:35
Definition: graphics.c:1743
Definition: color.h:23
Definition: config_.c:34
Definition: coord.h:34
Definition: layout.h:102
Definition: binding_dbus.c:1967
Definition: graphics.c:120
Definition: binfile.c:2034
Definition: filter.c:46
graphics object A graphics object serves as the target for drawing operations. It encapsulates variou...
Definition: graphics.c:75
Definition: gui.c:30
Definition: item.h:89
Definition: item.c:29
Definition: layout.h:86
Definition: layout.h:92
Definition: layout.h:110
Definition: garmin_img.c:476
Definition: log.c:59
Definition: map.c:55
Definition: mapset.c:39
Definition: messages.h:25
Definition: navigation.c:161
Definition: navit.c:112
Definition: osd.c:34
Definition: plugin.c:121
Definition: plugin.c:132
Definition: layout.h:31
Definition: profile_option.c:25
Definition: roadprofile.h:24
A complete route.
Definition: route.c:201
Definition: script.c:28
Definition: speech.c:28
A linked list containing the destination of the road.
Definition: navigation.c:353
Definition: mg.h:144
Definition: track.c:84
A traffic plugin instance.
Definition: traffic.c:115
The parameters needed to transform a map for display.
Definition: transform.c:64
Definition: vehicle.c:59
Definition: vehicleprofile.h:33
void version(void)
Definition: main.c:31
maxspeed_handling
Definition: vehicleprofile.h:26