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 ATTR(distance)
208 ATTR2(0x00027500,type_rel_abs_begin)
209 /* These attributes are int that can either hold relative or absolute values. See the
210  * documentation of ATTR_REL_RELSHIFT for details.
211  */
212 ATTR(h)
213 ATTR(w)
214 ATTR(x)
215 ATTR(y)
216 ATTR(font_size)
217 
218 ATTR2(0x00028000,type_boolean_begin)
219 /* boolean */
220 ATTR(overwrite)
221 ATTR(active)
222 ATTR(follow_cursor)
224 ATTR(tracking)
225 ATTR(menubar)
226 ATTR(statusbar)
227 ATTR(toolbar)
228 ATTR(animate)
229 ATTR(lazy)
230 ATTR(mkdir)
231 ATTR(predraw)
232 ATTR(postdraw)
233 ATTR(button)
234 ATTR(ondemand)
235 ATTR(menu_on_map_click)
236 ATTR(direction)
238 ATTR(gui_speech)
239 ATTR(town_id) /* fixme? */
240 ATTR(street_id) /* fixme? */
241 ATTR(district_id) /* fixme? */
242 ATTR(drag_bitmap)
243 ATTR(use_mousewheel)
245 ATTR(position_magnetic_direction)
246 ATTR(use_overlay)
248 ATTR(autozoom_active)
249 ATTR(position_valid)
250 ATTR(frame)
251 ATTR(tell_street_name)
252 ATTR(bluetooth)
253 ATTR(signal_on_map_click)
254 ATTR(route_active)
255 ATTR(search_active)
256 ATTR(unsuspend)
257 ATTR(announce_on)
258 ATTR(disable_reset)
259 ATTR(autostart)
260 ATTR(readwrite)
261 ATTR(cache)
262 ATTR(create)
263 ATTR(persistent)
264 ATTR(waypoints_flag) /* toggle for "set as destination" to switch between start a new route or add */
265 ATTR(no_warning_if_map_file_missing)
267 ATTR(has_menu_button)
268 ATTR(oneway)
269 ATTR(tunnel_nightlayout)
270 ATTR(layout_daynightauto)
271 ATTR(town_use_postal)
272 ATTR2(0x0002ffff,type_int_end)
273 ATTR2(0x00030000,type_string_begin)
274 ATTR(type)
275 ATTR(label)
276 ATTR(data)
277 ATTR(charset)
278 ATTR(country_all)
279 ATTR(country_iso3)
280 ATTR(country_iso2)
281 ATTR(country_car)
282 ATTR(country_name)
283 ATTR(town_name)
284 ATTR(town_postal)
285 ATTR(district_name)
287 ATTR(street_name_systematic)
289 ATTR(debug)
290 ATTR(address)
291 ATTR(phone)
292 ATTR(entry_fee)
293 ATTR(open_hours)
294 ATTR(skin)
298 ATTR(window_title)
299 ATTR(qt5_platform)
300 ATTR(qt5_widget)
301 /* poi */
303 ATTR(info_html)
304 ATTR(price_html)
305 /* navigation */
306 ATTR(navigation_short)
307 ATTR(navigation_long)
308 ATTR(navigation_long_exact)
309 ATTR(navigation_speech)
310 ATTR(name)
311 ATTR(cursorname)
312 ATTR(source)
314 ATTR(gc_type)
316 ATTR(position_nmea)
317 ATTR(gpsd_query)
318 ATTR(on_eof)
319 ATTR(command)
320 ATTR(src)
321 ATTR(path)
322 ATTR(font)
323 ATTR(url_local)
327 ATTR(icon_src)
328 ATTR(position_time_iso8601)
329 ATTR(house_number)
330 ATTR(osm_member)
331 ATTR(osm_tag)
332 ATTR(municipality_name)
333 ATTR(county_name)
334 ATTR(state_name)
335 ATTR(message)
337 ATTR(enable_expression)
338 ATTR(fax)
339 ATTR(email)
340 ATTR(url)
341 ATTR(profilename)
342 ATTR(projectionname)
343 ATTR(town_or_district_name)
344 ATTR(postal)
345 ATTR(postal_mask)
352 ATTR(town_name_match)
353 ATTR(district_name_match)
354 ATTR(street_name_match)
355 ATTR(language)
356 ATTR(subtype)
357 ATTR(filter)
358 ATTR(daylayout)
359 ATTR(nightlayout)
360 ATTR(xml_text)
361 ATTR(layout_name)
362 ATTR(default_layout)
364 ATTR(status_text)
365 ATTR(log_gpx_desc)
368 ATTR(socket)
369 /* These attributes for house number interpolation are only written by
370  * martin-s' (unpublished) GDF converter. */
371 ATTR(house_number_left)
372 ATTR(house_number_left_odd)
373 ATTR(house_number_left_even)
374 ATTR(house_number_right)
375 ATTR(house_number_right_odd)
376 ATTR(house_number_right_even)
377 ATTR(map_release)
378 ATTR(accesskey)
379 ATTR(http_method)
380 ATTR(http_header)
381 ATTR(progress)
382 ATTR(sample_dir)
383 ATTR(sample_suffix)
384 ATTR(dbus_destination)
385 ATTR(dbus_path)
386 ATTR(dbus_interface)
388 ATTR(osm_is_in)
389 ATTR(event_loop_system)
390 ATTR(map_name)
392 ATTR(state_file)
393 ATTR(on_map_click)
394 ATTR(route_depth)
395 ATTR(ref)
396 ATTR(tile_name)
397 ATTR(first_key)
398 ATTR(last_key)
399 ATTR(src_dir)
400 ATTR(refresh_cond)
401 /* House number interpolation information from OSM. For OSM data, the interpolation must
402  * exclude the end nodes, because these are imported as separate nodes. */
403 ATTR(house_number_interpolation_no_ends_incrmt_1)
404 ATTR(house_number_interpolation_no_ends_incrmt_2)
406 ATTR(street_name_systematic_nat)
407 ATTR(street_name_systematic_int)
409 ATTR(exit_to)
410 ATTR(street_destination_forward)
411 ATTR(street_destination_backward)
412 ATTR(outputdir)
413 ATTR2(0x0003ffff,type_string_end)
414 ATTR2(0x00040000,type_special_begin)
415 ATTR(order)
417 ATTR(item_types)
418 ATTR(dash)
419 ATTR(sequence_range)
420 ATTR(angle_range)
421 ATTR(speed_range)
422 ATTR(attr_types)
423 ATTR(ch_edge)
424 ATTR(zipfile_ref_block)
425 ATTR(item_id)
426 ATTR(pdl_gps_update)
428 ATTR2(0x0004ffff,type_special_end)
429 ATTR2(0x00050000,type_double_begin)
430 ATTR(position_height)
431 ATTR(position_speed)
432 ATTR(position_direction)
433 ATTR(position_hdop)
434 ATTR(position_radius)
435 ATTR(position_longitude)
436 ATTR(position_latitude)
437 ATTR(position_direction_matched)
438 ATTR2(0x0005ffff,type_double_end)
439 ATTR2(0x00060000,type_coord_geo_begin)
440 ATTR(position_coord_geo)
441 ATTR(center)
442 ATTR(click_coord_geo)
443 ATTR2(0x0006ffff,type_coord_geo_end)
444 ATTR2(0x00070000,type_color_begin)
445 ATTR(color)
447 ATTR(background_color)
448 ATTR(foreground_color)
449 ATTR(text_color)
450 ATTR(idle_color)
451 ATTR(background_color2)
452 ATTR(text_background)
453 ATTR(destination_dir_color)
454 ATTR(north_color)
455 ATTR2(0x0007ffff,type_color_end)
456 ATTR2(0x00080000,type_object_begin)
457 ATTR(navit)
458 ATTR(log)
459 ATTR(callback)
460 ATTR(route)
462 ATTR(vehicle)
463 ATTR(map)
464 ATTR(bookmark_map)
466 ATTR(former_destination_map)
467 ATTR(graphics)
468 ATTR(gui)
469 ATTR(trackingo) /* fixme */
470 ATTR(plugins)
471 ATTR(layer)
472 ATTR(itemgra)
473 ATTR(polygon)
474 ATTR(polyline)
475 ATTR(circle)
476 ATTR(text)
477 ATTR(icon)
478 ATTR(image)
479 ATTR(arrows)
480 ATTR(mapset)
481 ATTR(osd)
482 ATTR(plugin)
483 ATTR(speech)
484 ATTR(coord)
485 ATTR(private_data)
492 ATTR(cursor)
493 ATTR(config)
494 ATTR(maps)
495 ATTR(layout)
497 ATTR(script)
498 ATTR(traffic)
499 ATTR(spikes)
500 ATTR2(0x0008ffff,type_object_end)
501 ATTR2(0x00090000,type_coord_begin)
502 ATTR2(0x0009ffff,type_coord_end)
503 ATTR2(0x000a0000,type_pcoord_begin)
504 ATTR(destination)
505 ATTR(position)
506 ATTR(position_test)
507 ATTR2(0x000affff,type_pcoord_end)
508 ATTR2(0x000b0000,type_callback_begin)
509 ATTR(resize)
510 ATTR(motion)
511 ATTR(keypress)
512 ATTR(window_closed)
513 ATTR(log_gpx)
514 ATTR(log_textfile)
515 ATTR(graphics_ready)
516 ATTR(destroy)
517 ATTR(wm_copydata)
518 ATTR2(0x000bffff,type_callback_end)
519 ATTR2(0x000c0000,type_int64_begin)
520 ATTR(osm_nodeid)
521 ATTR(osm_wayid)
522 ATTR(osm_relationid)
523 ATTR(osm_nodeid_first_node)
524 ATTR(osm_nodeid_last_node)
525 ATTR2(0x000cffff,type_int64_end)
526 ATTR2(0x000d0000,type_group_begin)
527 ATTR2(0x000dffff,type_group_end)
528 ATTR2(0x000e0000,type_item_type_begin)
529 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:759
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:1780
Definition: color.h:23
Definition: config_.c:34
Definition: coord.h:34
Definition: layout.h:106
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:90
Definition: layout.h:96
Definition: layout.h:114
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