summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_widget.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-25 15:33:31 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-26 17:58:07 +0900
commite9dfcb44ffe370f6507d563f45676609bd93a41a (patch)
tree2f16541b4afde5d4a623bcdbe54a75fa4345b240 /src/lib/elementary/elm_widget.h
parent839c4ed395f4aa20c3d8089bad828f2ebdc95a4b (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.h5
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);
635EAPI Eina_Bool elm_widget_access(Evas_Object *obj, Eina_Bool is_access); 635EAPI Eina_Bool elm_widget_access(Evas_Object *obj, Eina_Bool is_access);
636EAPI Efl_Ui_Theme_Apply elm_widget_theme(Evas_Object *obj); 636EAPI Efl_Ui_Theme_Apply elm_widget_theme(Evas_Object *obj);
637EAPI void elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force); 637EAPI void elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force);
638EAPI void efl_ui_translatable_translation_update(Evas_Object *obj);
639EAPI 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); 638EAPI 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);
640EAPI Eina_Bool elm_widget_sub_object_parent_add(Evas_Object *sobj); 639EAPI Eina_Bool elm_widget_sub_object_parent_add(Evas_Object *sobj);
641EAPI Eina_Bool elm_widget_sub_object_add(Evas_Object *obj, Evas_Object *sobj); 640EAPI 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);
728EAPI void elm_widget_activate(Evas_Object *obj, Elm_Activate act); 727EAPI void elm_widget_activate(Evas_Object *obj, Elm_Activate act);
729EAPI void elm_widget_part_text_set(Evas_Object *obj, const char *part, const char *label); 728EAPI void elm_widget_part_text_set(Evas_Object *obj, const char *part, const char *label);
730EAPI const char *elm_widget_part_text_get(const Evas_Object *obj, const char *part); 729EAPI const char *elm_widget_part_text_get(const Evas_Object *obj, const char *part);
731EAPI void elm_widget_domain_translatable_part_text_set(Evas_Object *obj, const char *part, const char *domain, const char *text);
732EAPI const char *elm_widget_translatable_part_text_get(const Evas_Object *obj, const char *part); 730EAPI const char *elm_widget_translatable_part_text_get(const Evas_Object *obj, const char *part);
733EAPI void elm_widget_domain_part_text_translatable_set(Evas_Object *obj, const char *part, const char *domain, Eina_Bool translatable); 731EAPI void elm_widget_domain_part_text_translatable_set(Evas_Object *obj, const char *part, const char *domain, Eina_Bool translatable);
734EAPI const char * elm_widget_part_text_translate(Evas_Object *obj, const char *part, const char *text);
735EAPI void elm_widget_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content); 732EAPI void elm_widget_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
736EAPI Evas_Object *elm_widget_content_part_get(const Evas_Object *obj, const char *part); 733EAPI Evas_Object *elm_widget_content_part_get(const Evas_Object *obj, const char *part);
737EAPI Evas_Object *elm_widget_content_part_unset(Evas_Object *obj, const char *part); 734EAPI 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
743void _elm_widget_item_highlight_in_theme(Evas_Object *obj, Elm_Object_Item *it); 740void _elm_widget_item_highlight_in_theme(Evas_Object *obj, Elm_Object_Item *it);
744EAPI void elm_widget_focus_region_show_mode_set(Evas_Object *obj, Elm_Focus_Region_Show_Mode mode); 741EAPI void elm_widget_focus_region_show_mode_set(Evas_Object *obj, Elm_Focus_Region_Show_Mode mode);
745EAPI Elm_Focus_Region_Show_Mode elm_widget_focus_region_show_mode_get(const Evas_Object *obj); 742EAPI Elm_Focus_Region_Show_Mode elm_widget_focus_region_show_mode_get(const Evas_Object *obj);
743const char *elm_widget_part_translatable_text_get(const Eo *obj, const char *part, const char **domain);
744void 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 */
748EAPI void elm_widget_tree_dump(const Evas_Object *top); 747EAPI void elm_widget_tree_dump(const Evas_Object *top);