forked from enlightenment/efl
elementary/layout - Add widget preview.
SVN revision: 61539
This commit is contained in:
parent
d4e4106f47
commit
c7fa5bb261
|
@ -42,6 +42,7 @@ widget_preview_fileselector_button1 \
|
|||
widget_preview_fileselector_button2 \
|
||||
widget_preview_fileselector_button3 \
|
||||
widget_preview_colorselector \
|
||||
widget_preview_layout \
|
||||
widget_preview_index
|
||||
|
||||
LDADD = $(top_builddir)/src/lib/libelementary.la @ELEMENTARY_EWEATHER_LIBS@ @ELEMENTARY_EDBUS_LIBS@ @ELEMENTARY_EFREET_LIBS@ @ELEMENTARY_LIBS@ @EIO_LIBS@ @my_libs@
|
||||
|
@ -61,6 +62,7 @@ WGT_PREVIEW = \
|
|||
bubble:preview-01.png:widget_preview_bubble2:160:50 \
|
||||
bubble:preview-02.png:widget_preview_bubble3:160:50 \
|
||||
colorselector:preview-00.png:widget_preview_colorselector:160:200 \
|
||||
layout:preview-00.png:widget_preview_layout:200:160 \
|
||||
index:preview-00.png:widget_preview_index:300:500
|
||||
|
||||
widget-preview:
|
||||
|
|
|
@ -79,6 +79,9 @@
|
|||
* @image latex img/widget/index/preview-00.eps
|
||||
* @li @ref Inwin
|
||||
* @li @ref Label
|
||||
|
||||
* @image html img/widget/layout/preview-00.png
|
||||
* @image latex img/widget/layout/preview-00.eps
|
||||
* @li @ref Layout
|
||||
* @li @ref List
|
||||
* @li @ref Map
|
||||
|
@ -107,4 +110,4 @@
|
|||
* @li @ref Video
|
||||
* @li @ref Widget
|
||||
* @li @ref Win
|
||||
*/
|
||||
*/
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
#include "widget_preview_tmpl_head.c"
|
||||
|
||||
Evas_Object *layout = elm_layout_add(win);
|
||||
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
elm_layout_theme_set(layout, "layout", "application", "toolbar-content-back-next");
|
||||
elm_win_resize_object_add(win, layout);
|
||||
evas_object_show(layout);
|
||||
|
||||
Evas_Object *icon = elm_icon_add(win);
|
||||
elm_icon_standard_set(icon, "home");
|
||||
evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
evas_object_size_hint_min_set(icon, 200, 140);
|
||||
evas_object_show(icon);
|
||||
|
||||
elm_layout_content_set(layout, "elm.swallow.content", icon);
|
||||
elm_object_text_part_set(layout, "elm.text.title", "Layout");
|
||||
|
||||
#include "widget_preview_tmpl_foot.c"
|
|
@ -4694,6 +4694,9 @@ extern "C" {
|
|||
/**
|
||||
* @defgroup Layout Layout
|
||||
*
|
||||
* @image html img/widget/layout/preview-00.png
|
||||
* @image latex img/widget/layout/preview-00.eps width=\textwidth
|
||||
*
|
||||
* This is a container widget that takes a standard Edje design file and
|
||||
* wraps it very thinly in a widget.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue