navit  0.5.3-trunk
popup.c File Reference
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <glib.h>
#include "popup.h"
#include "debug.h"
#include "navit.h"
#include "coord.h"
#include "gui.h"
#include "menu.h"
#include "point.h"
#include "transform.h"
#include "projection.h"
#include "item.h"
#include "map.h"
#include "graphics.h"
#include "callback.h"
#include "route.h"
#include "navit_nls.h"
#include "bookmarks.h"

Macros

#define popup_printf(menu, type, ...)   popup_printf_cb(menu, type, NULL, __VA_ARGS__)
 

Functions

static void popup_traffic_distortion (struct item *item, char *attr)
 
static void popup_traffic_distortion_blocked (struct item *item)
 
static void popup_traffic_distortion_speed (struct item *item, int maxspeed)
 
static void popup_traffic_distortion_delay (struct item *item, int delay)
 
static void popup_set_destination (struct navit *nav, struct pcoord *pc)
 
void popup_set_visitbefore (struct navit *nav, struct pcoord *pc, int visitbefore)
 
static void popup_set_bookmark (struct navit *nav, struct pcoord *pc)
 
static void popup_set_position (struct navit *nav, struct pcoord *pc)
 
static void * popup_printf_cb (void *menu, enum menu_type type, struct callback *cb, const char *fmt,...)
 
static void popup_show_visitbefore (struct navit *nav, struct pcoord *pc, void *menu)
 
static void popup_show_attr_val (struct map *map, void *menu, struct attr *attr)
 
static void popup_show_attrs (struct map *map, void *menu, struct item *item)
 
static void popup_item_dump (struct item *item)
 
static void popup_show_item (struct navit *nav, void *popup, struct displayitem *di)
 
static void popup_display (struct navit *nav, void *popup, struct point *p)
 
void popup (struct navit *nav, int button, struct point *p)
 

Variables

void * vehicle
 
static struct pcoord c
 

Macro Definition Documentation

◆ popup_printf

#define popup_printf (   menu,
  type,
  ... 
)    popup_printf_cb(menu, type, NULL, __VA_ARGS__)

Function Documentation

◆ popup()

◆ popup_display()

static void popup_display ( struct navit nav,
void *  popup,
struct point p 
)
static

Referenced by popup().

◆ popup_item_dump()

static void popup_item_dump ( struct item item)
static

◆ popup_printf_cb()

static void* popup_printf_cb ( void *  menu,
enum menu_type  type,
struct callback cb,
const char *  fmt,
  ... 
)
static

◆ popup_set_bookmark()

◆ popup_set_destination()

static void popup_set_destination ( struct navit nav,
struct pcoord pc 
)
static

◆ popup_set_position()

static void popup_set_position ( struct navit nav,
struct pcoord pc 
)
static

References dbg, lvl_debug, and navit_set_position().

Referenced by popup(), and popup_show_item().

◆ popup_set_visitbefore()

void popup_set_visitbefore ( struct navit nav,
struct pcoord pc,
int  visitbefore 
)

◆ popup_show_attr_val()

static void popup_show_attr_val ( struct map map,
void *  menu,
struct attr attr 
)
static

◆ popup_show_attrs()

static void popup_show_attrs ( struct map map,
void *  menu,
struct item item 
)
static

References item_attr_get(), and popup_show_attr_val().

Referenced by popup_show_item().

◆ popup_show_item()

◆ popup_show_visitbefore()

static void popup_show_visitbefore ( struct navit nav,
struct pcoord pc,
void *  menu 
)
static

◆ popup_traffic_distortion()

static void popup_traffic_distortion ( struct item item,
char *  attr 
)
static

Navit, a modular navigation system. Copyright (C) 2005-2008, 2010 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

References c, dbg, item::id_hi, item::id_lo, item_coord_get(), lvl_error, item::map, map_rect_get_item_byid(), map_rect_new(), navit_get_user_data_directory(), pcoord::x, and pcoord::y.

Referenced by popup_traffic_distortion_blocked(), popup_traffic_distortion_delay(), and popup_traffic_distortion_speed().

◆ popup_traffic_distortion_blocked()

static void popup_traffic_distortion_blocked ( struct item item)
static

References dbg, lvl_debug, and popup_traffic_distortion().

Referenced by popup_show_item().

◆ popup_traffic_distortion_delay()

static void popup_traffic_distortion_delay ( struct item item,
int  delay 
)
static

References popup_traffic_distortion().

Referenced by popup_show_item().

◆ popup_traffic_distortion_speed()

static void popup_traffic_distortion_speed ( struct item item,
int  maxspeed 
)
static

References popup_traffic_distortion().

Referenced by popup_show_item().

Variable Documentation

◆ c

struct pcoord c
static

Referenced by __setNewPoint(), add_node_to_hash(), android_return_search_result(), assafe_lltoa(), attr_new_from_text(), bbox(), bbox_contains_coord(), bbox_extend(), binfile_coord_get(), binfile_coord_set(), binmap_get_estimated_boundaries(), binmap_search_get_item(), binmap_search_housenumber_by_estimate(), binmap_search_new(), binmap_search_street_by_estimate(), binmap_search_street_by_place(), bookmarks_append_destinations(), bookmarks_emit_dbus_signal(), bookmarks_load_hash(), boundary_find_matches(), button_bookmark(), button_destination(), ch_generate_ddsg(), circle_to_points(), clear_loop_combiner_context(), close_polygon(), coord_destroy(), coord_hash(), coord_new(), coord_next(), coord_not_set(), coord_parse(), coord_print(), coord_rect_contains(), coord_rect_extend(), coord_to_str(), createParsedata(), csv_coord_get(), csv_coord_set(), display_add(), distance_from_ll(), org.navitproject.navit.NavitMapDownloader::download_osm_map(), org.navitproject.navit.NavitMapDownloader::downloadData(), org.navitproject.navit.NavitGraphics::draw_polygon(), org.navitproject.navit.NavitGraphics::draw_polygon_with_holes(), org.navitproject.navit.NavitGraphics::draw_polyline(), dump_coord(), dump_hex(), dump_hex_r(), element_set_background_color(), find_next(), g2n_conv_load(), g2n_get_descr(), garmin_img_coord_get(), gc_set_background(), gc_set_foreground(), geom_coord_revert(), geom_line_middle(), geom_poly_area(), geom_poly_centroid(), geom_poly_closest_point(), geom_poly_point_inside(), geom_poly_segments_point_inside(), get_uval(), NGQProxyBookmarks::getBookmarks(), NGQProxyNavit::getDestination(), org.navitproject.navit.NavitMapDownloader::getInputStream(), NGQProxyNavit::getPosition(), graphics_gc_set_background(), graphics_gc_set_foreground(), gui_add_bookmark(), gui_gtk_add_bookmark(), gui_gtk_bookmarks_update(), gui_gtk_destinations_update(), gui_internal_cmd2_pois(), gui_internal_cmd2_route_height_profile(), gui_internal_cmd_bookmarks(), gui_internal_cmd_delete_waypoint(), gui_internal_cmd_formerdests(), gui_internal_cmd_load_bookmarks_as_waypoints(), gui_internal_cmd_pois(), gui_internal_cmd_pois_item(), gui_internal_cmd_pois_selector(), gui_internal_cmd_position_do(), gui_internal_onclick(), gui_internal_populate_route_table(), gui_internal_select_waypoint(), gui_internal_set_click_coord(), gui_internal_set_position_coord(), hex2int(), org.navitproject.navit.NavitMapDownloader::initConnection(), item_bin_add_coord_reverse(), item_bin_bbox(), item_bin_copy_coord(), item_bin_dump(), item_bin_sort_file(), item_bin_write_match(), item_coord_get(), item_coord_get_pro(), item_coord_get_within_range(), item_coord_get_within_selection(), item_coord_set(), item_inside_poly_list(), itembin_loop_combiner(), itembin_warning(), Java_org_navitproject_navit_NavitCallbackHandler_callbackMessageChannel(), Java_org_navitproject_navit_NavitGraphics_getCoordForPoint(), latin1_tolower(), latin1_tolower_ascii(), layout_get_cursor(), limit_count(), load_countries(), load_tilesdir(), map_collect_data_osm_o5m(), map_filter_coord_get(), map_parse_submap(), map_rect_get_item_textfile(), map_resolve_coords_and_split_at_intersections(), map_route_occluded_bbox(), map_route_occluded_check_buildings(), map_route_occluded_coord_get(), map_route_occluded_get_item(), map_search_mg_convert_special(), map_selection_contains_item_rect(), map_selection_contains_point(), map_selection_contains_polygon(), map_selection_contains_polyline(), navigation_itm_new(), navigation_itm_ways_clear(), navigation_map_item_coord_get(), navigation_way_get_max_delta(), navigation_way_init(), navit_add_destination_description(), navit_add_former_destinations_from_file(), navit_get_attr(), navit_get_coord(), navit_projection_set(), navit_set_center(), navit_set_center_coord_screen(), navit_set_center_screen(), navit_set_cursors(), navit_set_destination(), navit_set_destinations(), navit_set_position(), navit_zoom_to_rect(), navit_zoom_to_route(), nodes_ref_item_bin(), o5m_print_end(), o5m_print_start(), ocean_tile(), osd_j1850_init(), osd_route_guard_init(), osm_process_town_by_boundary(), osm_process_towns(), parse_for_systematic_comparison(), parse_option(), pcoord_format_absolute(), pcoord_format_degree_short(), pcoord_parse(), pcoord_py(), pedestrian_draw_arrows(), pedestrian_graphics_postdraw(), point_coord_get(), poly_coord_get(), popup(), popup_set_bookmark(), popup_set_destination(), popup_show_item(), popup_traffic_distortion(), process_boundaries_finish(), process_multipolygons_loop_dump(), process_triangles(), process_turn_restrictions_dump_coord(), process_turn_restrictions_finish(), process_turn_restrictions_fromto(), process_turn_restrictions_member(), process_way2poi(), QNavitGeoReceiver::QNavitGeoReceiver(), read_former_destination_map_as_list(), relations_process(), relations_process_multi(), request_navit_route_export_geojson(), request_navit_route_export_gpx(), request_navit_traffic_export_gpx(), resolve_ways(), route_calc_selection(), route_find_nearest_street(), route_get_distances(), route_get_selection(), route_graph_add_street(), route_graph_add_traffic_distortion(), route_graph_add_turn_restriction(), route_graph_build(), route_graph_get_point(), route_graph_get_point_last(), route_graph_get_point_next(), route_graph_process_restriction_segment(), route_graph_remove_traffic_distortion(), route_graph_update(), route_path_add_item_from_graph(), route_path_destroy(), route_path_get_distances(), route_set_attr(), route_set_position_from_tracking(), search_fix_spaces(), search_house_number_coordinate(), search_list_street_new(), search_list_town_new(), set_attr_do(), set_drawing_color(), NGQProxyBookmarks::setPoint(), shapefile_coord(), shapefile_coord_get(), spawn_xkbd(), square_shape_str(), street_coord_get(), street_coord_get_helper(), street_get(), street_get_data(), street_name_coord_get(), street_name_numbers_get_coord(), svg_debug_gc_set_background(), svg_debug_gc_set_foreground(), tessCombineCB(), textfile_coord_get(), tile_bbox(), tile_sibling_edges(), tm_add_item(), tm_coord_get(), tm_dump_item_to_textfile(), tm_find_item(), tm_item_dump_to_file(), town_coord_get(), tracking_get_attr(), tracking_map_item_attr_get(), tracking_map_item_coord_get(), traffic_location_get_matching_points(), traffic_location_populate_route_graph(), traffic_message_add_segments(), traffic_traff_android_position_callback(), transform_distance_garmin(), transform_distance_polyline_sq(), transform_from_geo(), transform_get_projection(), transform_polyline_length(), transform_project(), transform_reverse(), transform_reverse_near_far(), transform_scale(), transform_set_center(), transform_setup_source_rect(), transform_to_geo(), transform_within_dist_item(), transform_within_dist_point(), transform_within_dist_polygon(), transform_within_dist_polyline(), vehicle_demo_timer(), vehicle_draw(), vehicle_log_binfile(), within_dist_polygon(), write_former_destinations(), write_item_way_subsection(), org.navitproject.navit.NavitMapDownloader::writeFileInfo(), xpointer_test(), and xpointer_xpointer_match().

◆ vehicle