widget: added progressbar.

This commit is contained in:
Daniel Juyung Seo 2012-12-01 00:07:44 +09:00
parent 833bdd8d62
commit 57336f4292
1 changed files with 26 additions and 0 deletions

View File

@ -208,6 +208,30 @@ _widget_icon_create(const char *orig_style)
return o;
}
Evas_Object *
_widget_progressbar_create(const char *style2)
{
char buf[PATH_MAX] = {0, };
const char *style;
Evas_Object *o;
o = elm_progressbar_add(win);
EXPAND(o); FILL(o);
elm_progressbar_pulse(o, EINA_TRUE);
evas_object_show(o);
strncpy(buf, style2, sizeof(buf));
style = strtok(buf, "/");
if (!strcmp("vertical", style))
elm_progressbar_horizontal_set(o, EINA_FALSE);
style = strtok(NULL, "/");
elm_object_style_set(o, style);
elm_object_text_set(o, style);
return o;
}
Evas_Object *
_widget_separator_create(const char *style, const char *orig_style)
{
@ -285,6 +309,8 @@ widget_create(const char *widget, const char *orig_style)
o = _widget_hover_create(style);
else if (!strcmp(widget, "icon"))
o = _widget_icon_create(orig_style);
else if (!strcmp(widget, "progressbar"))
o = _widget_progressbar_create(orig_style);
else if (!strcmp(widget, "separator"))
o = _widget_separator_create(style, orig_style);
else if (!strcmp(widget, "spinner"))