summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorVitalii Vorobiov <vi.vorobiov@samsung.com>2015-02-13 18:43:04 +0200
committerVitalii Vorobiov <vi.vorobiov@samsung.com>2015-02-13 18:43:04 +0200
commitb552cfb50ba73952e187732b628114a61622f939 (patch)
tree150a35abc2bb28b53ef6325a61735ae5991ca35e /src/lib/edje
parenteaad731abeefbcba37115b81ce397839ed82c998 (diff)
edje: edje_edit - fix group source generation of box params
Need to generate such params of box like align, padding, min and layouts (both primary and alternative). @fix
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_edit.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 2d09e0fe8a..f7fe9094b7 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -10436,6 +10436,42 @@ _edje_generate_source_of_state(Evas_Object *obj, const char *part, const char *s
10436 txt->text.color3.r, txt->text.color3.g, txt->text.color3.b, txt->text.color3.a); 10436 txt->text.color3.r, txt->text.color3.g, txt->text.color3.b, txt->text.color3.a);
10437 } 10437 }
10438 10438
10439 if (rp->part->type == EDJE_PART_TYPE_BOX)
10440 {
10441 Edje_Part_Description_Box *box;
10442
10443 box = (Edje_Part_Description_Box *) pd;
10444
10445 if ((box->box.layout && box->box.alt_layout) ||
10446 box->box.align.x != 0.5 || box->box.align.y != 0.5 ||
10447 box->box.padding.x != 0 || box->box.padding.y != 0 ||
10448 !box->box.min.h || !box->box.min.v)
10449 {
10450 BUF_APPEND(I5"box {\n");
10451
10452 if (box->box.layout && box->box.alt_layout)
10453 BUF_APPENDF(I6"layout: \"%s\" \"%s\";\n", box->box.layout, box->box.alt_layout);
10454 else if (!box->box.layout && box->box.alt_layout)
10455 BUF_APPENDF(I6"layout: \"horizontal\" \"%s\";\n", box->box.alt_layout);
10456 else if (box->box.layout && !box->box.alt_layout)
10457 BUF_APPENDF(I6"layout: \"%s\";\n", box->box.layout);
10458
10459 if (box->box.align.x != 0.5 || box->box.align.y != 0.5)
10460 _edje_source_with_double_values_append(I6"align", 2,
10461 TO_DOUBLE(box->box.align.x),
10462 TO_DOUBLE(box->box.align.y),
10463 buf, &ret);
10464
10465 if (box->box.padding.x != 0 || box->box.padding.y != 0)
10466 BUF_APPENDF(I6"padding: %d %d;\n", box->box.padding.y, box->box.padding.y);
10467
10468 if (box->box.min.h || box->box.min.v)
10469 BUF_APPENDF(I6"min: %d %d;\n", box->box.min.h, box->box.min.v);
10470
10471 BUF_APPEND(I5"}\n");
10472 }
10473 }
10474
10439 //Rel1 10475 //Rel1
10440 if (pd->rel1.relative_x || pd->rel1.relative_y || pd->rel1.offset_x || 10476 if (pd->rel1.relative_x || pd->rel1.relative_y || pd->rel1.offset_x ||
10441 pd->rel1.offset_y || pd->rel1.id_x != -1 || pd->rel1.id_y != -1) 10477 pd->rel1.offset_y || pd->rel1.id_x != -1 || pd->rel1.id_y != -1)