summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKateryna Fesyna <k.fesyna@samsung.com>2014-11-14 06:53:09 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-11-14 06:53:58 +0100
commitf5d5071210a7b3d59391fabca767050041461b9b (patch)
treedca282cb11ef1f20c50c5abf798eca14dbf4d945
parent5c91d7aa106291cf18e1a675e2283ae6932c367a (diff)
edje: Edje_Edit - add generation of 'limits' parameter of group in EDC.
Summary: the generation of limits of group is added with this commit. @feature Reviewers: Hermet, cedric, raster Subscribers: cedric, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1659 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/edje/edje_edit.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 5b952b06f8..fc434eddc0 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -10724,6 +10724,31 @@ _edje_generate_source_of_sounds(Edje_Sound_Directory *sound_directory, Eina_Strb
10724 BUF_APPEND(I1"}\n"); 10724 BUF_APPEND(I1"}\n");
10725} 10725}
10726 10726
10727static void
10728_edje_limits_source_generate(const Edje *ed, Eina_Strbuf *buf, Eina_Bool *res)
10729{
10730 Eina_Bool ret = *res;
10731 unsigned int i;
10732
10733 if (!ed->collection->limits.vertical_count &&
10734 !ed->collection->limits.horizontal_count) return;
10735
10736 BUF_APPEND(I2"limits {\n");
10737
10738 for(i = 0; i < ed->collection->limits.vertical_count; i++)
10739 BUF_APPENDF(I3"vertical: \"%s\" %d;\n",
10740 ed->collection->limits.vertical[i]->name,
10741 ed->collection->limits.vertical[i]->value);
10742 for(i = 0; i < ed->collection->limits.horizontal_count; i++)
10743 BUF_APPENDF(I3"horizontal: \"%s\" %d;\n",
10744 ed->collection->limits.horizontal[i]->name,
10745 ed->collection->limits.horizontal[i]->value);
10746
10747 BUF_APPEND(I2"}\n");
10748
10749 *res = ret;
10750}
10751
10727static Eina_Bool 10752static Eina_Bool
10728_edje_generate_source_of_group(Edje *ed, Edje_Part_Collection_Directory_Entry *pce, Eina_Strbuf *buf) 10753_edje_generate_source_of_group(Edje *ed, Edje_Part_Collection_Directory_Entry *pce, Eina_Strbuf *buf)
10729{ 10754{
@@ -10783,6 +10808,9 @@ _edje_generate_source_of_group(Edje *ed, Edje_Part_Collection_Directory_Entry *p
10783 broadcast = edje_edit_group_broadcast_signal_get(obj); 10808 broadcast = edje_edit_group_broadcast_signal_get(obj);
10784 if (!broadcast) BUF_APPENDF(I2"broadcast_signal: %d;\n", broadcast); 10809 if (!broadcast) BUF_APPENDF(I2"broadcast_signal: %d;\n", broadcast);
10785 10810
10811 /* Limits */
10812 _edje_limits_source_generate(ed, buf, &ret);
10813
10786 /* Data */ 10814 /* Data */
10787 if (pc->data) 10815 if (pc->data)
10788 { 10816 {