if (selected)
{
printf("Selected file: %s\n", selected);
-#ifdef HAVE_ELEMENTARY_EMAP
+#ifdef ELM_EMAP
EMap_Route *emap = emap_route_gpx_new(selected);
track = elm_map_track_add(data, emap);
#else
@ELM_EDBUS_DEF@ ELM_EDBUS
@ELM_EFREET_DEF@ ELM_EFREET
@ELM_ETHUMB_DEF@ ELM_ETHUMB
+@ELM_EMAP_DEF@ ELM_EMAP
@ELM_DEBUG_DEF@ ELM_DEBUG
@ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
@ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
-#ifdef HAVE_CONFIG_H
-# include "elementary_config.h"
-#endif
-
/* Standard headers for standard system calls etc. */
#include <stdio.h>
#include <stdlib.h>
# include <Ethumb_Client.h>
#endif
-#ifdef HAVE_ELEMENTARY_EMAP
+#ifdef ELM_EMAP
# include <EMap.h>
#endif
EAPI void elm_map_rotate_get(const Evas_Object *obj, double *degree, Evas_Coord *cx, Evas_Coord *cy) EINA_ARG_NONNULL(1, 2, 3, 4);
EAPI void elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled) EINA_ARG_NONNULL(1);
EAPI Eina_Bool elm_map_wheel_disabled_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
-#ifdef HAVE_ELEMENTARY_EMAP
+#ifdef ELM_EMAP
EAPI Elm_Map_Track *elm_map_track_add(Evas_Object *obj, EMap_Route *emap) EINA_ARG_NONNULL(1);
+ EAPI EMap_Route *elm_map_track_emap_get(Elm_Map_Track *track) EINA_ARG_NONNULL(1);
#endif
EAPI void elm_map_track_remove(Elm_Map_Track *track) EINA_ARG_NONNULL(1);
EAPI void elm_map_track_color_set(Elm_Map_Track *track, int r, int g , int b, int a) EINA_ARG_NONNULL(1);
{
Widget_Data *wd;
-#ifdef HAVE_ELEMENTARY_EMAP
+#ifdef ELM_EMAP
EMap_Route *emap;
#endif
static void
track_place(Evas_Object *obj, Grid *g __UNUSED__, Evas_Coord px, Evas_Coord py, Evas_Coord ox __UNUSED__, Evas_Coord oy __UNUSED__, Evas_Coord ow, Evas_Coord oh)
{
-#ifdef HAVE_ELEMENTARY_EMAP
+#ifdef ELM_EMAP
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
Eina_List *lr, *lp, *ln;
return wd->wheel_disabled;
}
-#ifdef HAVE_ELEMENTARY_EMAP
+#ifdef ELM_EMAP
/**
* Add a track on the map
*
return track;
}
+
+
+EMap_Route
+*elm_map_track_emap_get(Elm_Map_Track *track)
+{
+ return track->emap;
+}
#endif
/**