rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=6d27a6c3cb3f0700a12539fadf4eba678296a59f

commit 6d27a6c3cb3f0700a12539fadf4eba678296a59f
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Wed Dec 16 11:51:04 2015 +0200

    demo_group: base API to deal with this little guy
---
 src/bin/ui/demo_group.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 src/bin/ui/demo_group.h | 23 +++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/src/bin/ui/demo_group.c b/src/bin/ui/demo_group.c
index 5395e3e..6d0305f 100644
--- a/src/bin/ui/demo_group.c
+++ b/src/bin/ui/demo_group.c
@@ -16,3 +16,52 @@
  * You should have received a copy of the GNU Lesser General Public License
  * along with this program; If not, see www.gnu.org/licenses/lgpl.html.
  */
+#include "demo_group.h"
+#include "signals.h"
+#include "string_common.h"
+#include "main_window.h"
+#include "editor.h"
+#include "new_history.h"
+
+#define DEMO_GROUP_DATA "demo_group_data"
+
+typedef struct
+{
+   Group *group;
+
+   Evas_Object *layout;
+   Evas_Object *genlist;
+
+   Elm_Genlist_Item_Class *itc_group;
+   Elm_Genlist_Item_Class *itc_text;
+   Elm_Genlist_Item_Class *itc_swallow;
+   Elm_Genlist_Item_Class *itc_signals;
+
+   Elm_Object_Item *selected_part_item;
+} Part_Demo_List;
+
+Evas_Object *
+demo_group_add(Group *group)
+{
+   assert(group != NULL);
+   assert(ap.win != NULL);
+
+   Part_Demo_List *pl = mem_calloc(1, sizeof(Part_Demo_List));
+   pl->layout = elm_layout_add(ap.win);
+   elm_layout_theme_set(pl->layout, "layout", "navigator", "default");
+   evas_object_show(pl->layout);
+
+   evas_object_data_set(pl->layout, DEMO_GROUP_DATA, pl);
+
+   pl->group = group;
+
+   return pl->layout;
+}
+
+void
+demo_group_part_select(Evas_Object *obj, Part_ *part __UNUSED__)
+{
+   Part_Demo_List *pl = evas_object_data_get(obj, DEMO_GROUP_DATA);
+
+   assert(pl != NULL);
+}
diff --git a/src/bin/ui/demo_group.h b/src/bin/ui/demo_group.h
index baf160c..a3bf92b 100644
--- a/src/bin/ui/demo_group.h
+++ b/src/bin/ui/demo_group.h
@@ -20,10 +20,33 @@
 #ifndef DEMO_GROUP_H
 #define DEMO_GROUP_H
 
+#include "eflete.h"
+#include "group_manager.h"
+
 /**
  * @defgroup Partlist Partlist
  *
  * @ingroup EFLETE
  */
 
+/**
+ * emited when part is selected in part list while in demo mode.
+ * eventinfo - pointer to Part_ structure
+ *
+ * @ingroup Partlist
+ */
+#define SIGNAL_DEMO_GROUP_PART_SELECTED "SIGNAL_DEMO_GROUP_PART_SELECTED"
+
+/**
+ * @ingroup Partlist
+ */
+Evas_Object *
+demo_group_add(Group *group);
+
+/**
+ * @ingroup Partlist
+ */
+void
+demo_group_part_select(Evas_Object *obj, Part_ *part);
+
 #endif /* DEMO_GROUP_H */

-- 


Reply via email to