diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-09-25 15:33:31 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-09-26 17:58:07 +0900 |
commit | e9dfcb44ffe370f6507d563f45676609bd93a41a (patch) | |
tree | 2f16541b4afde5d4a623bcdbe54a75fa4345b240 /src/lib/elementary/elm_widget.h | |
parent | 839c4ed395f4aa20c3d8089bad828f2ebdc95a4b (diff) |
widget: Implement translation API in layout
This moves the API entry points from Widget to Layout parts. I don't
think the other widgets support translation, but that is easy to fix.
The actual code implementation remains in elm_widget.c.
Legacy-only widgets are covered by Part_Legacy, while all EO widgets
that have text inherit from Layout (except Win but I don't think the
window title was translatable in legacy).
This removes 2/3 remaining part APIs from Widget.
Ref T5363
Diffstat (limited to '')
-rw-r--r-- | src/lib/elementary/elm_widget.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_widget.h b/src/lib/elementary/elm_widget.h index a57630fd28..dd99b0273b 100644 --- a/src/lib/elementary/elm_widget.h +++ b/src/lib/elementary/elm_widget.h | |||
@@ -635,7 +635,6 @@ EAPI Eina_Bool elm_widget_api_check(int ver); | |||
635 | EAPI Eina_Bool elm_widget_access(Evas_Object *obj, Eina_Bool is_access); | 635 | EAPI Eina_Bool elm_widget_access(Evas_Object *obj, Eina_Bool is_access); |
636 | EAPI Efl_Ui_Theme_Apply elm_widget_theme(Evas_Object *obj); | 636 | EAPI Efl_Ui_Theme_Apply elm_widget_theme(Evas_Object *obj); |
637 | EAPI void elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force); | 637 | EAPI void elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force); |
638 | EAPI void efl_ui_translatable_translation_update(Evas_Object *obj); | ||
639 | EAPI void elm_widget_on_show_region_hook_set(Evas_Object *obj, void *data, Efl_Ui_Scrollable_On_Show_Region func, Eina_Free_Cb data_free); | 638 | EAPI void elm_widget_on_show_region_hook_set(Evas_Object *obj, void *data, Efl_Ui_Scrollable_On_Show_Region func, Eina_Free_Cb data_free); |
640 | EAPI Eina_Bool elm_widget_sub_object_parent_add(Evas_Object *sobj); | 639 | EAPI Eina_Bool elm_widget_sub_object_parent_add(Evas_Object *sobj); |
641 | EAPI Eina_Bool elm_widget_sub_object_add(Evas_Object *obj, Evas_Object *sobj); | 640 | EAPI Eina_Bool elm_widget_sub_object_add(Evas_Object *obj, Evas_Object *sobj); |
@@ -728,10 +727,8 @@ EAPI void elm_widget_focus_mouse_up_handle(Evas_Object *obj); | |||
728 | EAPI void elm_widget_activate(Evas_Object *obj, Elm_Activate act); | 727 | EAPI void elm_widget_activate(Evas_Object *obj, Elm_Activate act); |
729 | EAPI void elm_widget_part_text_set(Evas_Object *obj, const char *part, const char *label); | 728 | EAPI void elm_widget_part_text_set(Evas_Object *obj, const char *part, const char *label); |
730 | EAPI const char *elm_widget_part_text_get(const Evas_Object *obj, const char *part); | 729 | EAPI const char *elm_widget_part_text_get(const Evas_Object *obj, const char *part); |
731 | EAPI void elm_widget_domain_translatable_part_text_set(Evas_Object *obj, const char *part, const char *domain, const char *text); | ||
732 | EAPI const char *elm_widget_translatable_part_text_get(const Evas_Object *obj, const char *part); | 730 | EAPI const char *elm_widget_translatable_part_text_get(const Evas_Object *obj, const char *part); |
733 | EAPI void elm_widget_domain_part_text_translatable_set(Evas_Object *obj, const char *part, const char *domain, Eina_Bool translatable); | 731 | EAPI void elm_widget_domain_part_text_translatable_set(Evas_Object *obj, const char *part, const char *domain, Eina_Bool translatable); |
734 | EAPI const char * elm_widget_part_text_translate(Evas_Object *obj, const char *part, const char *text); | ||
735 | EAPI void elm_widget_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content); | 732 | EAPI void elm_widget_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content); |
736 | EAPI Evas_Object *elm_widget_content_part_get(const Evas_Object *obj, const char *part); | 733 | EAPI Evas_Object *elm_widget_content_part_get(const Evas_Object *obj, const char *part); |
737 | EAPI Evas_Object *elm_widget_content_part_unset(Evas_Object *obj, const char *part); | 734 | EAPI Evas_Object *elm_widget_content_part_unset(Evas_Object *obj, const char *part); |
@@ -743,6 +740,8 @@ EAPI Eina_Rect elm_widget_focus_highlight_geometry_get(const Evas_Object | |||
743 | void _elm_widget_item_highlight_in_theme(Evas_Object *obj, Elm_Object_Item *it); | 740 | void _elm_widget_item_highlight_in_theme(Evas_Object *obj, Elm_Object_Item *it); |
744 | EAPI void elm_widget_focus_region_show_mode_set(Evas_Object *obj, Elm_Focus_Region_Show_Mode mode); | 741 | EAPI void elm_widget_focus_region_show_mode_set(Evas_Object *obj, Elm_Focus_Region_Show_Mode mode); |
745 | EAPI Elm_Focus_Region_Show_Mode elm_widget_focus_region_show_mode_get(const Evas_Object *obj); | 742 | EAPI Elm_Focus_Region_Show_Mode elm_widget_focus_region_show_mode_get(const Evas_Object *obj); |
743 | const char *elm_widget_part_translatable_text_get(const Eo *obj, const char *part, const char **domain); | ||
744 | void elm_widget_part_translatable_text_set(Eo *obj, const char *part, const char *label, const char *domain); | ||
746 | 745 | ||
747 | /* debug function. don't use it unless you are tracking parenting issues */ | 746 | /* debug function. don't use it unless you are tracking parenting issues */ |
748 | EAPI void elm_widget_tree_dump(const Evas_Object *top); | 747 | EAPI void elm_widget_tree_dump(const Evas_Object *top); |