From: Vitalii Vorobiov Date: Wed, 25 Mar 2015 15:56:47 +0000 (+0200) Subject: Edje: Edje_Edit - code generation for TABLE part (description.table section) X-Git-Tag: v1.14.0-alpha1~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ba3a2bd7c54703f656e2b311ad7c2f74800291e;p=platform%2Fupstream%2Fefl.git Edje: Edje_Edit - code generation for TABLE part (description.table section) --- diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c index ad27096..ca85402 100644 --- a/src/lib/edje/edje_edit.c +++ b/src/lib/edje/edje_edit.c @@ -10790,6 +10790,50 @@ _edje_generate_source_of_state(Evas_Object *obj, const char *part, const char *s } } + + if (rp->part->type == EDJE_PART_TYPE_TABLE) + { + Edje_Part_Description_Table *table; + + table = (Edje_Part_Description_Table*) pd; + + if ((table->table.homogeneous != EDJE_OBJECT_TABLE_HOMOGENEOUS_NONE) || + table->table.align.x != 0.5 || table->table.align.y != 0.5 || + table->table.padding.x != 0 || table->table.padding.y != 0 || + !table->table.min.h || !table->table.min.v) + { + BUF_APPEND(I5"table {\n"); + + switch (table->table.homogeneous) + { + case EDJE_OBJECT_TABLE_HOMOGENEOUS_TABLE: + { + BUF_APPENDF(I6"homogeneous: TABLE;\n"); + break; + } + case EDJE_OBJECT_TABLE_HOMOGENEOUS_ITEM: + { + BUF_APPENDF(I6"homogeneous: ITEM;\n"); + break; + } + } + + if (table->table.align.x != 0.5 || table->table.align.y != 0.5) + _edje_source_with_double_values_append(I6"align", 2, + TO_DOUBLE(table->table.align.x), + TO_DOUBLE(table->table.align.y), + buf, &ret); + + if (table->table.padding.x != 0 || table->table.padding.y != 0) + BUF_APPENDF(I6"padding: %d %d;\n", table->table.padding.x, table->table.padding.y); + + if (table->table.min.h || table->table.min.v) + BUF_APPENDF(I6"min: %d %d;\n", table->table.min.h, table->table.min.v); + + BUF_APPEND(I5"}\n"); + } + } + //Rel1 if (pd->rel1.relative_x || pd->rel1.relative_y || pd->rel1.offset_x || pd->rel1.offset_y || pd->rel1.id_x != -1 || pd->rel1.id_y != -1)