Elementary: icon, actionslider, fileselector, calendar, bg

and image widget previews.



SVN revision: 61566
This commit is contained in:
Jonas M. Gastal 2011-07-21 16:13:54 +00:00
parent a445df1ce8
commit d1f1344f87
9 changed files with 109 additions and 2 deletions

View File

@ -47,7 +47,13 @@ widget_preview_index \
widget_preview_clock \ widget_preview_clock \
widget_preview_label \ widget_preview_label \
widget_preview_frame \ widget_preview_frame \
widget_preview_ctxpopup widget_preview_ctxpopup \
widget_preview_icon \
widget_preview_image \
widget_preview_calendar \
widget_preview_bg \
widget_preview_fileselector \
widget_preview_actionslider
LDADD = $(top_builddir)/src/lib/libelementary.la @ELEMENTARY_EWEATHER_LIBS@ @ELEMENTARY_EDBUS_LIBS@ @ELEMENTARY_EFREET_LIBS@ @ELEMENTARY_LIBS@ @EIO_LIBS@ @my_libs@ LDADD = $(top_builddir)/src/lib/libelementary.la @ELEMENTARY_EWEATHER_LIBS@ @ELEMENTARY_EDBUS_LIBS@ @ELEMENTARY_EFREET_LIBS@ @ELEMENTARY_LIBS@ @EIO_LIBS@ @my_libs@
@ -71,7 +77,13 @@ WGT_PREVIEW = \
frame:preview-00.png:widget_preview_frame:100:50 \ frame:preview-00.png:widget_preview_frame:100:50 \
label:preview-00.png:widget_preview_label:70:30 \ label:preview-00.png:widget_preview_label:70:30 \
clock:preview-00.png:widget_preview_clock:200:100 \ clock:preview-00.png:widget_preview_clock:200:100 \
ctxpopup:preview-00.png:widget_preview_ctxpopup:200:130 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 \
calendar:preview-00.png:widget_preview_calendar:300:300 \
bg:preview-00.png:widget_preview_bg:50:50 \
fileselector:preview-00.png:widget_preview_fileselector:300:300 \
actionslider:preview-00.png:widget_preview_actionslider:120:30
widget-preview: widget-preview:
@for ss in $(WGT_PREVIEW); do \ @for ss in $(WGT_PREVIEW); do \

View File

@ -29,9 +29,15 @@
* And here a list of the widgets and some images to give you an idea of what * And here a list of the widgets and some images to give you an idea of what
* they are: * they are:
* @li @ref Actionslider * @li @ref Actionslider
*
* @image html img/widget/actionslider/preview-00.png
* @image latex img/widget/actionslider/preview-00.eps
* @li @ref Anchorview * @li @ref Anchorview
* @li @ref Anchorblock * @li @ref Anchorblock
* @li @ref Bg * @li @ref Bg
*
* @image html img/widget/bg/preview-00.png
* @image latex img/widget/bg/preview-00.eps
* @li @ref Box * @li @ref Box
* @li @ref Bubble * @li @ref Bubble
* *
@ -42,6 +48,9 @@
* @image html img/widget/button/preview-00.png * @image html img/widget/button/preview-00.png
* @image latex img/widget/button/preview-00.eps * @image latex img/widget/button/preview-00.eps
* @li @ref Calendar * @li @ref Calendar
*
* @image html img/widget/calendar/preview-00.png
* @image latex img/widget/calendar/preview-00.eps
* @li @ref Check * @li @ref Check
* *
* @image html img/widget/check/preview-00.png * @image html img/widget/check/preview-00.png
@ -67,6 +76,9 @@
* @image latex img/widget/fileselector_button/preview-00.eps * @image latex img/widget/fileselector_button/preview-00.eps
* @li @ref File_Selector_Entry * @li @ref File_Selector_Entry
* @li @ref Fileselector * @li @ref Fileselector
*
* @image html img/widget/fileselector/preview-00.png
* @image latex img/widget/fileselector/preview-00.eps
* @li @ref Flip * @li @ref Flip
* @li @ref Flipselector * @li @ref Flipselector
* @li @ref Frame * @li @ref Frame
@ -81,7 +93,13 @@
* @li @ref Hover * @li @ref Hover
* @li @ref Hoversel * @li @ref Hoversel
* @li @ref Icon * @li @ref Icon
*
* @image html img/widget/icon/preview-00.png
* @image latex img/widget/icon/preview-00.eps
* @li @ref Image * @li @ref Image
*
* @image html img/widget/image/preview-00.png
* @image latex img/widget/image/preview-00.eps
* @li @ref Index * @li @ref Index
* *
* @image html img/widget/index/preview-00.png * @image html img/widget/index/preview-00.png

View File

@ -0,0 +1,11 @@
#include "widget_preview_tmpl_head.c"
Evas_Object *o = elm_actionslider_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);
elm_actionslider_labels_set(o, "left", "center", "right");
elm_actionslider_indicator_pos_set(o, ELM_ACTIONSLIDER_CENTER);
#include "widget_preview_tmpl_foot.c"

View File

@ -0,0 +1,10 @@
#include "widget_preview_tmpl_head.c"
Evas_Object *o = elm_bg_add(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, o);
elm_bg_file_set(o, PACKAGE_DATA_DIR"/images/logo_small.png", NULL);
evas_object_show(o);
#include "widget_preview_tmpl_foot.c"

View File

@ -0,0 +1,8 @@
#include "widget_preview_tmpl_head.c"
Evas_Object *o = elm_calendar_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);
#include "widget_preview_tmpl_foot.c"

View File

@ -0,0 +1,8 @@
#include "widget_preview_tmpl_head.c"
Evas_Object *o = elm_fileselector_add(win);
evas_object_resize(o, 300, 300);
evas_object_show(o);
elm_fileselector_path_set(o, PACKAGE_DATA_DIR);
#include "widget_preview_tmpl_foot.c"

View File

@ -0,0 +1,11 @@
#include "widget_preview_tmpl_head.c"
Evas_Object *o = elm_icon_add(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, o);
elm_icon_standard_set(o, "home");
elm_icon_scale_set(o, EINA_FALSE, EINA_FALSE);
evas_object_show(o);
#include "widget_preview_tmpl_foot.c"

View File

@ -0,0 +1,11 @@
#include "widget_preview_tmpl_head.c"
Evas_Object *o = elm_image_add(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, o);
elm_image_file_set(o, PACKAGE_DATA_DIR"/images/logo_small.png", NULL);
elm_image_scale_set(o, EINA_FALSE, EINA_FALSE);
evas_object_show(o);
#include "widget_preview_tmpl_foot.c"

View File

@ -1654,6 +1654,9 @@ extern "C" {
/** /**
* @defgroup Bg Bg * @defgroup Bg Bg
* *
* @image html img/icon/bg/preview-00.png
* @image latex img/icon/bg/preview-00.png
*
* @brief Background object, used for setting a solid color, image or Edje * @brief Background object, used for setting a solid color, image or Edje
* group as background to a window or any container object. * group as background to a window or any container object.
* *
@ -1830,6 +1833,9 @@ extern "C" {
/** /**
* @defgroup Icon Icon * @defgroup Icon Icon
* *
* @image html img/icon/button/preview-00.png
* @image latex img/icon/button/preview-00.png
*
* An object that provides standard icon images (delete, edit, arrows, etc.) * An object that provides standard icon images (delete, edit, arrows, etc.)
* or a custom file (PNG, JPG, EDJE, etc.) used for an icon. * or a custom file (PNG, JPG, EDJE, etc.) used for an icon.
* *
@ -2191,6 +2197,9 @@ extern "C" {
/** /**
* @defgroup Image Image * @defgroup Image Image
* *
* @image html img/image/button/preview-00.png
* @image latex img/image/button/preview-00.png
*
* An object that allows one to load an image file to it. It can be used * An object that allows one to load an image file to it. It can be used
* anywhere like any other elementary widget. * anywhere like any other elementary widget.
* *
@ -7217,6 +7226,9 @@ extern "C" {
/** /**
* @addtogroup Actionslider Actionslider * @addtogroup Actionslider Actionslider
* *
* @image html img/icon/actionslider/preview-00.png
* @image latex img/icon/actionslider/preview-00.png
*
* A actionslider is a switcher for 2 or 3 labels with customizable magnet * A actionslider is a switcher for 2 or 3 labels with customizable magnet
* properties. The indicator is the element the user drags to choose a label. * properties. The indicator is the element the user drags to choose a label.
* When the position is set with magnet, when released the indicator will be * When the position is set with magnet, when released the indicator will be
@ -7782,6 +7794,9 @@ extern "C" {
/** /**
* @defgroup Fileselector File Selector * @defgroup Fileselector File Selector
* *
* @image html img/icon/fileselector/preview-00.png
* @image latex img/icon/fileselector/preview-00.png
*
* A file selector is a widget that allows a user to navigate * A file selector is a widget that allows a user to navigate
* through a file system, reporting file selections back via its * through a file system, reporting file selections back via its
* API. * API.
@ -9765,6 +9780,9 @@ extern "C" {
* @defgroup Calendar Calendar * @defgroup Calendar Calendar
* @ingroup Elementary * @ingroup Elementary
* *
* @image html img/widget/calendar/preview-00.png
* @image latex img/widget/calendar/preview-00.eps
*
* A calendar is a widget that displays a regular calendar, one * A calendar is a widget that displays a regular calendar, one
* month at a time, to the user, and can allows the user to select a date. * month at a time, to the user, and can allows the user to select a date.
* *