Elementary: Map Documentation

SVN revision: 62074
This commit is contained in:
Bruno Dilly 2011-08-03 21:05:20 +00:00
parent 0352f299d0
commit e8a286efb3
7 changed files with 1358 additions and 754 deletions

View File

@ -37,6 +37,7 @@ WGT_PREVIEW = \
panes:preview-00.png:widget_preview_panes:200:100 \
toolbar:preview-00.png:widget_preview_toolbar:300:100 \
mapbuf:preview-00.png:widget_preview_mapbuf:200:200 \
map:preview-00.png:widget_preview_map:256:256 \
ctxpopup:preview-00.png:widget_preview_ctxpopup:200:130 \
icon:preview-00.png:widget_preview_icon:50:50 \
image:preview-00.png:widget_preview_image:50:50 \

View File

@ -136,6 +136,9 @@
* @image html img/widget/label/preview-00.png
* @image latex img/widget/label/preview-00.eps
* @li @ref Map
*
* @image html img/widget/map/preview-00.png
* @image latex img/widget/map/preview-00.eps
* @li @ref Mapbuf
*
* @image html img/widget/mapbuf/preview-00.png

View File

@ -7,7 +7,7 @@ shift
export ELM_THEME=default
export ELM_SCALE=1.0
export ELM_ENGINE=shot:delay=0.5:file=$DIR/$FILE
export ELM_ENGINE=shot:delay=3:file=$DIR/$FILE
export ILLUME_KBD=0,0,240,123
export ILLUME_IND=0,0,240,32
export ILLUME_STK=0,288,240,32

View File

@ -52,6 +52,7 @@ widget_preview_slider \
widget_preview_panes \
widget_preview_toolbar \
widget_preview_mapbuf \
widget_preview_map \
widget_preview_ctxpopup \
widget_preview_icon \
widget_preview_image \
@ -123,6 +124,7 @@ EXTRA_DIST = \
widget_preview_panes.c \
widget_preview_toolbar.c \
widget_preview_mapbuf.c \
widget_preview_map.c \
widget_preview_ctxpopup.c \
widget_preview_diskselector.c \
widget_preview_entry1.c \

View File

@ -0,0 +1,44 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
/* FIXME: it shouldn't be required. For unknown reason map won't call
* pan_calculate until shot delay time, but then it will take a screenshot
* when the map isn't loaded yet (actually it won't be downloaded, because
* after the SS it will kill the preview). */
static Eina_Bool
_nasty_hack(void *data)
{
Evas_Object *o = data;
Evas *e = evas_object_evas_get(o);
evas_smart_objects_calculate(e);
return ECORE_CALLBACK_CANCEL;
}
EAPI int
elm_main(int argc __UNUSED__, char **argv)
{
Evas_Object *win, *bg;
Evas_Coord w, h;
w = atoi(argv[1]);
h = atoi(argv[2]);
win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
Evas_Object *o = elm_map_add(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, o);
evas_object_show(o);
ecore_timer_add(0.5, _nasty_hack, win);
#include "widget_preview_tmpl_foot.c"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff