]> err.no Git - mapper/blob - src/poi-gui.h
More map widget integration changes
[mapper] / src / poi-gui.h
1 /*
2  * This file is part of mapper
3  *
4  * Copyright (C) 2007 Kaj-Michael Lang
5  * Copyright (C) 2006-2007 John Costigan.
6  *
7  * POI and GPS-Info code originally written by Cezary Jackiewicz.
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  *
23  */
24
25 #ifndef _MAPPER_POI_GUI_H
26 #define _MAPPER_POI_GUI_H
27
28 #include <glib.h>
29 #include "poi.h"
30
31 /** POI dialog action **/
32 typedef enum {
33         ACTION_ADD_POI,
34         ACTION_EDIT_POI,
35 } POIAction;
36
37 /* Quick POI information structure */
38 typedef struct _poi_quick_data poi_quick_data;
39 struct _poi_quick_data {
40     GtkWidget *dialog;
41     GtkWidget *label;
42     gboolean fixed;
43     gboolean close;
44     gdouble lat;
45     gdouble lon;
46 };
47
48 gboolean poi_select(gdouble lat, gdouble lon, guint range, poi_info *poi);
49 gboolean poi_edit_dialog(POIAction action, poi_info *poi);
50 gboolean poi_search_dialog(GtkListStore *store, poi_info *poi, gdouble lat, gdouble lon);
51 GtkWidget *poi_quick_button_box(poi_quick_data *qpdata);
52 gboolean poi_quick_dialog(gdouble lat, gdouble lon);
53
54 gboolean poi_info_dialog(GtkWidget *window, guint poi_id);
55
56 gboolean poi_category_dialog(guint cat_id);
57 gboolean poi_category_list();
58
59 void poi_category_combo_populate(GtkWidget *cmb_category, guint cat_id, gboolean add_na);
60 GtkWidget *category_combo_new(void);
61
62 #endif