[elm] Map now using the scrollable interface.

SVN revision: 74194
This commit is contained in:
Gustavo Lima Chaves 2012-07-19 20:26:09 +00:00
parent 5ff2c0d78b
commit 6b109ac32f
7 changed files with 88206 additions and 86062 deletions

View File

@ -121,6 +121,7 @@ WGT_TREE = \
label \ label \
layout \ layout \
list \ list \
map \
mapbuf \ mapbuf \
menu \ menu \
naviframe \ naviframe \

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 KiB

After

Width:  |  Height:  |  Size: 344 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,9 @@
* @defgroup Map Map * @defgroup Map Map
* @ingroup Elementary * @ingroup Elementary
* *
* @image html map_inheritance_tree.png
* @image latex map_inheritance_tree.eps
*
* @image html img/widget/map/preview-00.png * @image html img/widget/map/preview-00.png
* @image latex img/widget/map/preview-00.eps * @image latex img/widget/map/preview-00.eps
* *
@ -10,39 +13,42 @@
* but custom providers can be added. * but custom providers can be added.
* *
* It supports some basic but yet nice features: * It supports some basic but yet nice features:
* @li zoom and scroll * @li zooming and scrolling,
* @li markers with content to be displayed when user clicks over it * @li markers with content to be displayed when user clicks over them,
* @li group of markers * @li group of markers and
* @li routes * @li routes.
*
* This widget implements the @b @ref elm-scrollable-interface
* interface, so that all (non-deprecated) functions for the base @ref
* Scroller widget also work for map objects.
* *
* Smart callbacks one can listen to: * Smart callbacks one can listen to:
* * - @c "clicked" - This is called when a user has clicked the map without
* - "clicked" - This is called when a user has clicked the map without * dragging around.
* dragging around. * - @c "clicked,double" - This is called when a user has double-clicked
* - "clicked,double" - This is called when a user has double-clicked * the map.
* the map. * - @c "press" - This is called when a user has pressed down on the map.
* - "press" - This is called when a user has pressed down on the map. * - @c "longpressed" - This is called when a user has pressed down on the map
* - "longpressed" - This is called when a user has pressed down on the map * @c for a long time without dragging around.
* for a long time without dragging around. * - @c "scroll" - the content has been scrolled (moved).
* - "scroll" - the content has been scrolled (moved). * - @c "scroll,drag,start" - dragging the contents around has started.
* - "scroll,drag,start" - dragging the contents around has started. * - @c "scroll,drag,stop" - dragging the contents around has stopped.
* - "scroll,drag,stop" - dragging the contents around has stopped. * - @c "scroll,anim,start" - scrolling animation has started.
* - "scroll,anim,start" - scrolling animation has started. * - @c "scroll,anim,stop" - scrolling animation has stopped.
* - "scroll,anim,stop" - scrolling animation has stopped. * - @c "zoom,start" - Zoom animation started.
* - "zoom,start" - Zoom animation started. * - @c "zoom,stop" - Zoom animation stopped.
* - "zoom,stop" - Zoom animation stopped. * - @c "zoom,change" - Zoom changed when using an auto zoom mode.
* - "zoom,change" - Zoom changed when using an auto zoom mode. * - @c "tile,load" - A map tile image load begins.
* - "tile,load" - A map tile image load begins. * - @c "tile,loaded" - A map tile image load ends.
* - "tile,loaded" - A map tile image load ends. * - @c "tile,loaded,fail" - A map tile image load fails.
* - "tile,loaded,fail" - A map tile image load fails. * - @c "route,load" - Route request begins.
* - "route,load" - Route request begins. * - @c "route,loaded" - Route request ends.
* - "route,loaded" - Route request ends. * - @c "route,loaded,fail" - Route request fails.
* - "route,loaded,fail" - Route request fails. * - @c "name,load" - Name request begins.
* - "name,load" - Name request begins. * - @c "name,loaded" - Name request ends.
* - "name,loaded" - Name request ends. * - @c "name,loaded,fail" - Name request fails.
* - "name,loaded,fail" - Name request fails. * - @c "overlay,clicked" - A overlay is clicked.
* - "overlay,clicked" - A overlay is clicked. * - @c "loaded" - when a map is finally loaded. @since 1.7
* - "loaded" - when a map is finally loaded. @since 1.7
* *
* Available style for map widget: * Available style for map widget:
* - @c "default" * - @c "default"
@ -975,7 +981,7 @@ EAPI void elm_map_overlays_show(Eina_List *overlays);
* is clicked, callback will be called and return a virtual group overlays. * is clicked, callback will be called and return a virtual group overlays.
* *
* You can delete this callback function by setting @c NULL. * You can delete this callback function by setting @c NULL.
* *
* @ingroup Map * @ingroup Map
*/ */
EAPI void elm_map_overlay_get_cb_set(Elm_Map_Overlay *overlay, Elm_Map_Overlay_Get_Cb get_cb, void *data); EAPI void elm_map_overlay_get_cb_set(Elm_Map_Overlay *overlay, Elm_Map_Overlay_Get_Cb get_cb, void *data);
@ -993,7 +999,7 @@ EAPI void elm_map_overlay_get_cb_set(Elm_Map_Overlay *overlay,
* You can delete this callback function by setting @c NULL. * You can delete this callback function by setting @c NULL.
* *
* @since 1.7 * @since 1.7
* *
* @ingroup Map * @ingroup Map
*/ */
EAPI void elm_map_overlay_del_cb_set(Elm_Map_Overlay *overlay, Elm_Map_Overlay_Del_Cb del_cb, void *data); EAPI void elm_map_overlay_del_cb_set(Elm_Map_Overlay *overlay, Elm_Map_Overlay_Del_Cb del_cb, void *data);