rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=164e475c1d2fca51ca4aeede72b574b53ac1f4ca

commit 164e475c1d2fca51ca4aeede72b574b53ac1f4ca
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Tue Mar 29 19:06:33 2016 +0300

    live_widget_common: more complex (on view) widgets into demo content 
generation
    
    New widgets now: ColorSelector, FileSelector, DaySelector, DateTime, Frame,
    Panel, SegmentControl, Clock, Panes
---
 .../ui/live_view/elementary/live_widget_common.c   | 46 ++++++++++++++++++++++
 src/bin/ui/property_demo_swallow.c                 |  9 +++++
 src/bin/ui/workspace/demo_group.h                  |  9 +++++
 3 files changed, 64 insertions(+)

diff --git a/src/bin/ui/live_view/elementary/live_widget_common.c 
b/src/bin/ui/live_view/elementary/live_widget_common.c
index 35f5f4f..e9c985d 100644
--- a/src/bin/ui/live_view/elementary/live_widget_common.c
+++ b/src/bin/ui/live_view/elementary/live_widget_common.c
@@ -118,6 +118,52 @@ object_generate(Demo_Part *part, Evas_Object *object)
                                         ELM_ICON_LOOKUP_THEME_FDO);
               elm_icon_standard_set(content, "home");
               break;
+           case WIDGET_COLORSELECTOR:
+              content = elm_colorselector_add(object);
+              elm_colorselector_mode_set(content, ELM_COLORSELECTOR_ALL);
+              break;
+           case WIDGET_FILESELECTOR:
+               content = elm_fileselector_add(object);
+               elm_fileselector_expandable_set(content, false);
+              break;
+           case WIDGET_DAYSELECTOR:
+              content = elm_dayselector_add(object);
+              break;
+           case WIDGET_DATETIME:
+              content = elm_datetime_add(object);
+              break;
+           case WIDGET_FRAME:
+              content = elm_frame_add(object);
+              elm_frame_autocollapse_set(content, true);
+              elm_object_text_set(content, _("User Text"));
+              break;
+           case WIDGET_PANEL:
+              content = elm_panel_add(object);
+              elm_panel_orient_set(content, ELM_PANEL_ORIENT_TOP);
+              elm_panel_toggle(content);
+              break;
+           case WIDGET_SEGMENT_CONTROL:
+              content = elm_segment_control_add(object);
+              elm_segment_control_item_insert_at(content, NULL, _("User 
Text"), 1);
+              elm_segment_control_item_insert_at(content, NULL, _("User 
Text"), 2);
+              elm_segment_control_item_insert_at(content, NULL, _("User 
Text"), 3);
+              break;
+           case WIDGET_CLOCK:
+              content = elm_clock_add(object);
+              elm_clock_show_seconds_set(content, true);
+              break;
+           case WIDGET_PANES:
+              content = elm_panes_add(object);
+              Evas_Object *bt = elm_button_add(content);
+              elm_object_text_set(bt, _("Left"));
+              evas_object_show(bt);
+              elm_object_part_content_set(content, "left", bt);
+
+              bt = elm_button_add(content);
+              elm_object_text_set(bt, _("Right"));
+              evas_object_show(bt);
+              elm_object_part_content_set(content, "right", bt);
+              break;
           }
      }
    return content;
diff --git a/src/bin/ui/property_demo_swallow.c 
b/src/bin/ui/property_demo_swallow.c
index a0c616c..44659db 100644
--- a/src/bin/ui/property_demo_swallow.c
+++ b/src/bin/ui/property_demo_swallow.c
@@ -74,6 +74,15 @@ static const char *widget_type[] = { N_("button"),
                                      N_("map"),
                                      N_("calendar"),
                                      N_("icon"),
+                                     N_("colorselector"),
+                                     N_("fileselector"),
+                                     N_("dayselector"),
+                                     N_("datetime"),
+                                     N_("frame"),
+                                     N_("panel"),
+                                     N_("segment_control"),
+                                     N_("clock"),
+                                     N_("panes"),
                                      NULL};
 static void
 _on_spinner_mouse_wheel(void *data __UNUSED__,
diff --git a/src/bin/ui/workspace/demo_group.h 
b/src/bin/ui/workspace/demo_group.h
index 2961738..bbcd77b 100644
--- a/src/bin/ui/workspace/demo_group.h
+++ b/src/bin/ui/workspace/demo_group.h
@@ -57,6 +57,15 @@ typedef enum _Swallow_Content_Widget_Type
    WIDGET_MAP, /**< map widget */
    WIDGET_CALENDAR, /**< calendar widget */
    WIDGET_ICON, /**<icon widget */
+   WIDGET_COLORSELECTOR, /**<colorselector widget */
+   WIDGET_FILESELECTOR, /**<fileselector widget */
+   WIDGET_DAYSELECTOR, /**<dayselector widget */
+   WIDGET_DATETIME, /**<datetime widget */
+   WIDGET_FRAME, /**<frame widget */
+   WIDGET_PANEL, /**<panel widget */
+   WIDGET_SEGMENT_CONTROL, /**<segment_control widget */
+   WIDGET_CLOCK, /**<clock widget */
+   WIDGET_PANES, /**<panes widget */
 } Swallow_Content_Widget_Type;
 
 /**

-- 


Reply via email to