2 * Copyright (C) 2006, 2007 John Costigan.
4 * POI and GPS-Info code originally written by Cezary Jackiewicz.
6 * Default map data provided by http://www.openstreetmap.org/
8 * This file is part of Maemo Mapper.
10 * Maemo Mapper is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
15 * Maemo Mapper is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with Maemo Mapper. If not, see <http://www.gnu.org/licenses/>.
24 #ifndef MAEMO_MAPPER_DISPLAY_H
25 #define MAEMO_MAPPER_DISPLAY_H
37 gboolean gps_display_details(void);
38 void gps_display_data(void);
39 void gps_hide_text(void);
40 void gps_show_info(void);
41 void gps_details(void);
43 void map_render_segment(GdkGC *gc_norm, GdkGC *gc_alt,
44 gint unitx1, gint unity1, gint unitx2, gint unity2);
45 void map_render_paths(void);
47 void update_gcs(void);
49 gboolean window_present(void);
51 void map_pan(gint delta_unitx, gint delta_unity);
52 void map_move_mark(void);
53 void map_refresh_mark(gboolean force_redraw);
54 void map_force_redraw(void);
57 void map_center_unit_full(Point new_center, gint zoom, gint rotate_angle);
58 void map_center_unit(Point new_center);
59 void map_rotate(gint rotate_angle);
60 void map_center_zoom(gint zoom);
61 Point map_calc_new_center(gint zoom);
63 gboolean map_download_refresh_idle(MapUpdateTask *mut);
64 void map_set_zoom(gint new_zoom);
66 gboolean thread_render_map(MapRenderTask *mrt);
68 gboolean map_cb_configure(GtkWidget *widget, GdkEventConfigure *event);
69 gboolean map_cb_expose(GtkWidget *widget, GdkEventExpose *event);
71 gboolean latlon_dialog(gdouble lat, gdouble lon);
73 gboolean display_open_file(GtkWindow *parent, gchar **bytes_out,
74 GnomeVFSHandle **handle_out, gint *size_out, gchar **dir, gchar **file,
75 GtkFileChooserAction chooser_action);
77 void display_init(void);
80 void plot_aprs_station(AprsDataRow *p_station, gboolean single );
81 #endif // INCLUDE_APRS
83 #endif /* ifndef MAEMO_MAPPER_DISPLAY_H */