]> err.no Git - mapper/blobdiff - src/poi-gui.h
Parse directly but update informations in callbacks only if we got a sentence that...
[mapper] / src / poi-gui.h
index 3694ed767f81fe423ecabaff90580bff67994463..c5d743b3c8f7e1fc099b6596ca4ac4f242824bec 100644 (file)
@@ -1,12 +1,50 @@
+/*
+ * This file is part of mapper
+ *
+ * Copyright (C) 2007 Kaj-Michael Lang
+ * Copyright (C) 2006-2007 John Costigan.
+ *
+ * POI and GPS-Info code originally written by Cezary Jackiewicz.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ *
+ */
+
 #ifndef _MAPPER_POI_GUI_H
 #define _MAPPER_POI_GUI_H
 
 #include <glib.h>
 #include "poi.h"
 
-gboolean poi_select(guint unitx, guint unity, poi_info *poi);
-gboolean category_dialog(guint cat_id);
-gboolean category_list();
-gboolean poi_dialog(POIAction action, guint unitx, guint unity);
+/** POI dialog action **/
+typedef enum {
+       ACTION_ADD_POI,
+       ACTION_EDIT_POI,
+} POIAction;
+
+gboolean poi_select(guint unitx, guint unity, guint range, poi_info *poi);
+gboolean poi_edit_dialog(POIAction action, poi_info *poi);
+gboolean poi_search_dialog(GtkListStore *store, poi_info *poi, gdouble lat, gdouble lon);
+gboolean poi_quick_dialog(gdouble lat, gdouble lon);
+
+gboolean poi_info_dialog(guint poi_id);
+
+gboolean poi_category_dialog(guint cat_id);
+gboolean poi_category_list();
+
+void poi_category_combo_populate(GtkWidget *cmb_category, guint cat_id, gboolean add_na);
+GtkWidget *category_combo_new(void);
 
 #endif