yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=978f6493816dd5b37157d9c47cd9758d7108bab1

commit 978f6493816dd5b37157d9c47cd9758d7108bab1
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Thu Apr 30 11:30:19 2015 +0300

    Add Hoversel Widget
---
 NEWS                              |  3 +++
 src/bin/egui_gui/egui_layout.json | 46 ++++++++++++++++++++++++++++++++++++++-
 src/bin/egui_gui/egui_logic.c     |  3 +++
 src/lib/database.h                |  1 +
 4 files changed, 52 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index fe76a34..2bb0d56 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,9 @@ https://phab.enlightenment.org/w/projects/gui_builder/
 
 Changes since 1.0.0
 -------------------
+Features:
+   * Add supoort for widgets: Hoversel
+
 Fixes:
   * Don't show empty hoversel in Property view when there is no resources.
     Add item to open Resource Manager.
diff --git a/src/bin/egui_gui/egui_layout.json 
b/src/bin/egui_gui/egui_layout.json
index 98882aa..71cff4d 100644
--- a/src/bin/egui_gui/egui_layout.json
+++ b/src/bin/egui_gui/egui_layout.json
@@ -1188,7 +1188,8 @@
         "fctr_fileselector_entry_it":[0, 19, 1, 1],
         "fctr_fileselector_button_it":[0, 20, 1, 1],
         "fctr_slider_it":[0, 21, 1, 1],
-        "fctr_progressbar_it":[0, 22, 1, 1]
+        "fctr_progressbar_it":[0, 22, 1, 1],
+        "fctr_hoversel_it":[0, 23, 1, 1]
       }
     },
     "fctr_table_sep_2":
@@ -2840,6 +2841,49 @@
         "Efl.Gfx.Base.visible":[true]
       }
     },
+    "fctr_hoversel_it":
+    {
+      "Desc":
+      {
+        "parent":"fctr_table",
+        "class":"Elm_Box",
+        "public":true
+      },
+      "Properties":
+      {
+        "Elm_Box.horizontal":[true],
+        "Elm_Box.padding":[7, 0],
+        "Efl.Gfx.Base.visible":[true]
+      },
+      "Contains":["fctr_hoversel_image", "fctr_hoversel_label"]
+    },
+    "fctr_hoversel_image":
+    {
+      "Desc":
+      {
+        "parent":"fctr_hoversel_it",
+        "class":"Elm_Image"
+      },
+      "Properties":
+      {
+        "Evas.Object.size_hint_min":[25, 25],
+        "Elm_Image.resizable":[true, true],
+        "Efl.Gfx.Base.visible":[true]
+      }
+    },
+    "fctr_hoversel_label":
+    {
+      "Desc":
+      {
+        "parent":"fctr_hoversel_it",
+        "class":"Elm_Label"
+      },
+      "Properties":
+      {
+        "Elm_Widget.part_text":[null, "Hoversel"],
+        "Efl.Gfx.Base.visible":[true]
+      }
+    },
     "fctr_panes_it":
     {
       "Desc":
diff --git a/src/bin/egui_gui/egui_logic.c b/src/bin/egui_gui/egui_logic.c
index 5001ee1..e3ed433 100644
--- a/src/bin/egui_gui/egui_logic.c
+++ b/src/bin/egui_gui/egui_logic.c
@@ -783,6 +783,7 @@ _factory_vertical_pack(Eina_Bool vertical_pack)
         elm_table_pack(g_main_wdgs->main_win->fctr_table, 
g_main_wdgs->main_win->fctr_fileselector_button_it, 0, 20, 1, 1);
         elm_table_pack(g_main_wdgs->main_win->fctr_table, 
g_main_wdgs->main_win->fctr_slider_it, 0, 21, 1, 1);
         elm_table_pack(g_main_wdgs->main_win->fctr_table, 
g_main_wdgs->main_win->fctr_progressbar_it, 0, 22, 1, 1);
+        elm_table_pack(g_main_wdgs->main_win->fctr_table, 
g_main_wdgs->main_win->fctr_hoversel_it, 0, 23, 1, 1);
 
         elm_table_pack(g_main_wdgs->main_win->fctr_table_containers, 
g_main_wdgs->main_win->fctr_box_it, 0, 0, 1, 1);
         elm_table_pack(g_main_wdgs->main_win->fctr_table_containers, 
g_main_wdgs->main_win->fctr_table_it, 0, 1, 1, 1);
@@ -843,6 +844,7 @@ _factory_vertical_pack(Eina_Bool vertical_pack)
         elm_table_pack(g_main_wdgs->main_win->fctr_table, 
g_main_wdgs->main_win->fctr_fileselector_button_it, 2, 6, 1, 1);
         elm_table_pack(g_main_wdgs->main_win->fctr_table, 
g_main_wdgs->main_win->fctr_slider_it, 0, 7, 1, 1);
         elm_table_pack(g_main_wdgs->main_win->fctr_table, 
g_main_wdgs->main_win->fctr_progressbar_it, 1, 7, 1, 1);
+        elm_table_pack(g_main_wdgs->main_win->fctr_table, 
g_main_wdgs->main_win->fctr_hoversel_it, 2, 7, 1, 1);
 
         elm_table_pack(g_main_wdgs->main_win->fctr_table_item_widgets, 
g_main_wdgs->main_win->fctr_menu_it, 0, 0, 1, 1);
         elm_table_pack(g_main_wdgs->main_win->fctr_table_item_widgets, 
g_main_wdgs->main_win->fctr_toolbar_it, 1, 0, 1, 1);
@@ -1043,6 +1045,7 @@ egui_start()
    _factory_item_finalize(g_main_wdgs->main_win->fctr_panes_it, 
"factory_image.png", DB_DEF_PANES_CLASS, EINA_TRUE);
    _factory_item_finalize(g_main_wdgs->main_win->fctr_conformant_it, 
"factory_image.png", DB_DEF_CONFORMANT_CLASS, EINA_TRUE);
    _factory_item_finalize(g_main_wdgs->main_win->fctr_grid_it, 
"factory_image.png", DB_DEF_GRID_CLASS, EINA_TRUE);
+   _factory_item_finalize(g_main_wdgs->main_win->fctr_hoversel_it, 
"factory_image.png", DB_DEF_HOVERSEL_CLASS, EINA_TRUE);
 
    /*FIXME: Need to unpack inline image, so pass it into delete callback*/
    evas_object_smart_callback_add(g_main_wdgs->main_win->main_win, 
"delete,request", _main_win_del_cb, NULL);
diff --git a/src/lib/database.h b/src/lib/database.h
index 4e24515..f211c6d 100644
--- a/src/lib/database.h
+++ b/src/lib/database.h
@@ -121,6 +121,7 @@ typedef struct _Container_Desc Container_Desc;
 #define DB_DEF_PANES_CLASS "Elm_Panes"
 #define DB_DEF_CONFORMANT_CLASS "Elm_Conformant"
 #define DB_DEF_GRID_CLASS "Elm_Grid"
+#define DB_DEF_HOVERSEL_CLASS "Elm_Hoversel"
 
 #define VISIBLE_SET "visible"
 #define SIZE_SET "size"

-- 


Reply via email to