summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorMaksym Volodin <m.volodin@samsung.com>2014-12-10 03:44:50 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-12-10 03:52:52 +0100
commit4abdd758f081d6567c067cc4614afd432b3f0b31 (patch)
tree9797776633e6cbafc29321c451c04fbda4a432d0 /src/lib/edje
parent4cf2d75715d6d9c3bc7f02a246997b0ca7a330cd (diff)
edje: Edje_Edit - generate missed properties of 'text' block
Summary: missed souce, text-source, repch, size_range, style are added. TODO is added for filter property. Reviewers: Hermet, raster, cedric Subscribers: cedric, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1754 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_edit.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 872cbde486..637b6190a1 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -10440,7 +10440,7 @@ _edje_generate_source_of_state(Evas_Object *obj, const char *part, const char *s
10440 } 10440 }
10441 10441
10442 //Text 10442 //Text
10443 if (rp->part->type == EDJE_PART_TYPE_TEXT) 10443 if ((rp->part->type == EDJE_PART_TYPE_TEXT) || (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK))
10444 { 10444 {
10445 Edje_Part_Description_Text *txt; 10445 Edje_Part_Description_Text *txt;
10446 10446
@@ -10461,10 +10461,14 @@ _edje_generate_source_of_state(Evas_Object *obj, const char *part, const char *s
10461 else 10461 else
10462 BUF_APPENDF(I6"font: \"%s\";\n", edje_string_get(&txt->text.font)); 10462 BUF_APPENDF(I6"font: \"%s\";\n", edje_string_get(&txt->text.font));
10463 } 10463 }
10464 if (edje_string_id_get(&txt->text.repch))
10465 BUF_APPENDF(I6"repch: \"%s\";\n", edje_string_id_get(&txt->text.repch));
10464 if (txt->text.size) 10466 if (txt->text.size)
10465 BUF_APPENDF(I6"size: %d;\n", txt->text.size); 10467 BUF_APPENDF(I6"size: %d;\n", txt->text.size);
10466 if (txt->text.text_class) 10468 if (txt->text.text_class)
10467 BUF_APPENDF(I6"text_class: \"%s\";\n", txt->text.text_class); 10469 BUF_APPENDF(I6"text_class: \"%s\";\n", txt->text.text_class);
10470 if (txt->text.size_range_min || txt->text.size_range_max)
10471 BUF_APPENDF(I6"size_range: %d %d;\n", txt->text.size_range_min, txt->text.size_range_max);
10468 if (txt->text.fit_x || txt->text.fit_y) 10472 if (txt->text.fit_x || txt->text.fit_y)
10469 BUF_APPENDF(I6"fit: %d %d;\n", txt->text.fit_x, txt->text.fit_y); 10473 BUF_APPENDF(I6"fit: %d %d;\n", txt->text.fit_x, txt->text.fit_y);
10470 if (txt->text.min_x || txt->text.min_y) 10474 if (txt->text.min_x || txt->text.min_y)
@@ -10476,12 +10480,18 @@ _edje_generate_source_of_state(Evas_Object *obj, const char *part, const char *s
10476 TO_DOUBLE(txt->text.align.x), 10480 TO_DOUBLE(txt->text.align.x),
10477 TO_DOUBLE(txt->text.align.y), 10481 TO_DOUBLE(txt->text.align.y),
10478 buf, &ret); 10482 buf, &ret);
10479 //TODO Support source 10483
10480 //TODO Support text_source 10484 if (txt->text.id_source != -1)
10485 BUF_APPENDF(I6"source: \"%s\";\n", _edje_part_name_find(ed, txt->text.id_source));
10486 if (txt->text.id_text_source != -1)
10487 BUF_APPENDF(I6"text_source: \"%s\";\n", _edje_part_name_find(ed, txt->text.id_text_source));
10481 if (txt->text.ellipsis) 10488 if (txt->text.ellipsis)
10482 _edje_source_with_double_values_append(I6"ellipsis", 1, 10489 _edje_source_with_double_values_append(I6"ellipsis", 1,
10483 txt->text.ellipsis, 10490 txt->text.ellipsis,
10484 0.0, buf, &ret); 10491 0.0, buf, &ret);
10492 if (edje_string_id_get(&txt->text.style))
10493 BUF_APPENDF(I6"style: \"%s\";\n", edje_string_id_get(&txt->text.style));
10494 //TODO Filter
10485 BUF_APPEND(I5"}\n"); 10495 BUF_APPEND(I5"}\n");
10486 } 10496 }
10487 10497