]> err.no Git - mapper/blob - src/poi-gui.h
c5d743b3c8f7e1fc099b6596ca4ac4f242824bec
[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 gboolean poi_select(guint unitx, guint unity, guint range, poi_info *poi);
38 gboolean poi_edit_dialog(POIAction action, poi_info *poi);
39 gboolean poi_search_dialog(GtkListStore *store, poi_info *poi, gdouble lat, gdouble lon);
40 gboolean poi_quick_dialog(gdouble lat, gdouble lon);
41
42 gboolean poi_info_dialog(guint poi_id);
43
44 gboolean poi_category_dialog(guint cat_id);
45 gboolean poi_category_list();
46
47 void poi_category_combo_populate(GtkWidget *cmb_category, guint cat_id, gboolean add_na);
48 GtkWidget *category_combo_new(void);
49
50 #endif