summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-12-29 15:52:39 +0200
committerYakov Goldberg <yakov.g@samsung.com>2014-12-29 15:53:43 +0200
commitf59057eb9d947c966c063895d54bb02944faf868 (patch)
tree09cd188df507cbf74608d7f6661ffc82fd77fc37 /src/bin
parent627732275ecc88c14edb69f917070c503a973e95 (diff)
Add tooltips for Desc/Callbacks/Content views
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/egui_gui/cbview.c12
-rw-r--r--src/bin/egui_gui/contentview.c2
-rw-r--r--src/bin/egui_gui/descview.c5
-rw-r--r--src/bin/egui_gui/itemview.c7
-rw-r--r--src/bin/egui_gui/propview.c3
5 files changed, 24 insertions, 5 deletions
diff --git a/src/bin/egui_gui/cbview.c b/src/bin/egui_gui/cbview.c
index 75d177c..da878fc 100644
--- a/src/bin/egui_gui/cbview.c
+++ b/src/bin/egui_gui/cbview.c
@@ -511,6 +511,7 @@ _item_content_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EIN
511 elm_hoversel_item_add(wdgs->cb_action_t_hsel, "Modify", NULL, ELM_ICON_NONE, NULL, NULL); 511 elm_hoversel_item_add(wdgs->cb_action_t_hsel, "Modify", NULL, ELM_ICON_NONE, NULL, NULL);
512 elm_hoversel_item_add(wdgs->cb_action_t_hsel, "Invoke", NULL, ELM_ICON_NONE, NULL, NULL); 512 elm_hoversel_item_add(wdgs->cb_action_t_hsel, "Invoke", NULL, ELM_ICON_NONE, NULL, NULL);
513 elm_hoversel_hover_parent_set(wdgs->cb_action_t_hsel, elm_widget_top_get(propview_table)); 513 elm_hoversel_hover_parent_set(wdgs->cb_action_t_hsel, elm_widget_top_get(propview_table));
514 elm_object_tooltip_text_set(wdgs->cb_action_t_hsel, "Action type");
514 eo_ref(wdgs->cb_item); 515 eo_ref(wdgs->cb_item);
515 } 516 }
516 else 517 else
@@ -542,16 +543,19 @@ _item_content_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EIN
542 eo_do(wdgs->cb_wdgs_hsel, elm_obj_hoversel_clear()); 543 eo_do(wdgs->cb_wdgs_hsel, elm_obj_hoversel_clear());
543 if (atype == CREATION_ACTION) 544 if (atype == CREATION_ACTION)
544 { 545 {
545 props_hoversel_objects_add(wdgs->cb_item, wdgs->cb_wdgs_hsel, elm_widget_top_get(cb_list), wdg_name, gui_context_main_widgets_get(wdg_context_get(it_data->wdg)), NULL); 546 Eo *objects_hs = props_hoversel_objects_add(wdgs->cb_item, wdgs->cb_wdgs_hsel, elm_widget_top_get(cb_list), wdg_name, gui_context_main_widgets_get(wdg_context_get(it_data->wdg)), NULL);
547 elm_object_tooltip_text_set(objects_hs, "Object to create");
546 Eid *parent_id = action_creation_parent_get(action); 548 Eid *parent_id = action_creation_parent_get(action);
547 const char *parent_name = (parent_id ? eid_name_get(parent_id) : NULL); 549 const char *parent_name = (parent_id ? eid_name_get(parent_id) : NULL);
548 Eo *parents_hs = props_hoversel_objects_add(wdgs->cb_item, NULL, elm_widget_top_get(cb_list), parent_name, gui_context_wdg_list_get(wdg_context_get(it_data->wdg)), NULL); 550 Eo *parents_hs = props_hoversel_objects_add(wdgs->cb_item, NULL, elm_widget_top_get(cb_list), parent_name, gui_context_wdg_list_get(wdg_context_get(it_data->wdg)), NULL);
549 eo_do(parents_hs, eo_event_callback_add(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, _action_parent_selected, it_data)); 551 eo_do(parents_hs, eo_event_callback_add(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, _action_parent_selected, it_data));
552 elm_object_tooltip_text_set(parents_hs, "Parent");
550 it_data->cb_dyn_objs = eina_list_append(it_data->cb_dyn_objs, parents_hs); 553 it_data->cb_dyn_objs = eina_list_append(it_data->cb_dyn_objs, parents_hs);
551 } 554 }
552 else 555 else
553 { 556 {
554 props_hoversel_objects_add(wdgs->cb_item, wdgs->cb_wdgs_hsel, elm_widget_top_get(cb_list), wdg_name, gui_context_wdg_list_get(wdg_context_get(it_data->wdg)), NULL); 557 Eo *user_cb_hs = props_hoversel_objects_add(wdgs->cb_item, wdgs->cb_wdgs_hsel, elm_widget_top_get(cb_list), wdg_name, gui_context_wdg_list_get(wdg_context_get(it_data->wdg)), NULL);
558 elm_object_tooltip_text_set(user_cb_hs, "Object to modify");
555 } 559 }
556 evas_object_smart_callback_add(wdgs->cb_wdgs_hsel, "selected", _action_wdg_selected, it_data); 560 evas_object_smart_callback_add(wdgs->cb_wdgs_hsel, "selected", _action_wdg_selected, it_data);
557 } 561 }
@@ -560,6 +564,7 @@ _item_content_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EIN
560 Eid *wdg_id = action_widget_id_get(action); 564 Eid *wdg_id = action_widget_id_get(action);
561 Gui_Widget *wdg = wdg_get(wdg_id); 565 Gui_Widget *wdg = wdg_get(wdg_id);
562 Eo *props_hover = props_hoversel_object_ops_add(wdgs->cb_item, elm_widget_top_get(cb_list), " --- ", wdg); 566 Eo *props_hover = props_hoversel_object_ops_add(wdgs->cb_item, elm_widget_top_get(cb_list), " --- ", wdg);
567 elm_object_tooltip_text_set(props_hover, "Property to modify");
563 it_data->cb_dyn_objs = eina_list_append(it_data->cb_dyn_objs, props_hover); 568 it_data->cb_dyn_objs = eina_list_append(it_data->cb_dyn_objs, props_hover);
564 eo_do(props_hover, eo_event_callback_add(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, _action_prop_selected, it_data)); 569 eo_do(props_hover, eo_event_callback_add(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, _action_prop_selected, it_data));
565 const Gui_Widget_Property *prop = action_property_get(action); 570 const Gui_Widget_Property *prop = action_property_get(action);
@@ -596,6 +601,8 @@ _item_content_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EIN
596 it_data->cb_dyn_objs = eina_list_append(it_data->cb_dyn_objs, new_obj); 601 it_data->cb_dyn_objs = eina_list_append(it_data->cb_dyn_objs, new_obj);
597 if (new_obj) 602 if (new_obj)
598 { 603 {
604 const char *tooltip_text = op_param_desc_name_get(db_op_desc_nth_param_desc_get(op, i));
605 elm_object_tooltip_text_set(new_obj, tooltip_text);
599 eo_do(new_obj, eo_key_data_set("cb_it_data", it_data, NULL)); 606 eo_do(new_obj, eo_key_data_set("cb_it_data", it_data, NULL));
600 if (eo_isa(new_obj, ELM_HOVERSEL_CLASS)) 607 if (eo_isa(new_obj, ELM_HOVERSEL_CLASS))
601 evas_object_smart_callback_add(new_obj, "selected", _action_prop_update, pi); 608 evas_object_smart_callback_add(new_obj, "selected", _action_prop_update, pi);
@@ -614,6 +621,7 @@ _item_content_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EIN
614 const char *cb_name = (cb_id ? eid_name_get(cb_id) : NULL); 621 const char *cb_name = (cb_id ? eid_name_get(cb_id) : NULL);
615 Eo *cbs_hs = props_hoversel_resources_add(wdgs->cb_item, NULL, elm_widget_top_get(cb_list), cb_name, wdg_context_get(it_data->wdg), RESOURCE_EO_CALLBACK); 622 Eo *cbs_hs = props_hoversel_resources_add(wdgs->cb_item, NULL, elm_widget_top_get(cb_list), cb_name, wdg_context_get(it_data->wdg), RESOURCE_EO_CALLBACK);
616 eo_do(cbs_hs, eo_event_callback_add(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, _action_user_cb_selected, it_data)); 623 eo_do(cbs_hs, eo_event_callback_add(EVAS_SELECTABLE_INTERFACE_EVENT_SELECTED, _action_user_cb_selected, it_data));
624 elm_object_tooltip_text_set(cbs_hs, "User callback");
617 it_data->cb_dyn_objs = eina_list_append(it_data->cb_dyn_objs, cbs_hs); 625 it_data->cb_dyn_objs = eina_list_append(it_data->cb_dyn_objs, cbs_hs);
618 } 626 }
619 } 627 }
diff --git a/src/bin/egui_gui/contentview.c b/src/bin/egui_gui/contentview.c
index 1e5acdb..ed11cc8 100644
--- a/src/bin/egui_gui/contentview.c
+++ b/src/bin/egui_gui/contentview.c
@@ -54,6 +54,8 @@ _content_item_content_get(It_Data *it_data)
54 pfd->par_idx = i; 54 pfd->par_idx = i;
55 55
56 eo_do(obj, eo_key_data_set(_STR_EDITOR, pfd, free)); 56 eo_do(obj, eo_key_data_set(_STR_EDITOR, pfd, free));
57 const char *tooltip_text = op_param_desc_name_get(db_op_desc_nth_param_desc_get(it_data->op_desc, i));
58 elm_object_tooltip_text_set(obj, tooltip_text);
57 59
58 if (eo_isa(obj, ELM_HOVERSEL_CLASS)) 60 if (eo_isa(obj, ELM_HOVERSEL_CLASS))
59 { 61 {
diff --git a/src/bin/egui_gui/descview.c b/src/bin/egui_gui/descview.c
index a191b3e..caeeb06 100644
--- a/src/bin/egui_gui/descview.c
+++ b/src/bin/egui_gui/descview.c
@@ -72,16 +72,19 @@ _description_item_content_get(It_Data *it_data)
72 { 72 {
73 Eo *ck = props_check_add(box, wdg_public_get(it_data->wdg)); 73 Eo *ck = props_check_add(box, wdg_public_get(it_data->wdg));
74 eo_do (ck, eo_event_callback_add(ELM_ENTRY_EVENT_CHANGED, _wdg_public_change_cb, it_data->wdg)); 74 eo_do (ck, eo_event_callback_add(ELM_ENTRY_EVENT_CHANGED, _wdg_public_change_cb, it_data->wdg));
75 elm_object_tooltip_text_set(ck, "Check to make widget accissible from code");
75 } 76 }
76 else if (!strcmp(it_data->desc, DB_DEF_NAME)) 77 else if (!strcmp(it_data->desc, DB_DEF_NAME))
77 { 78 {
78 Eo *entry = props_entry_add(box, wdg_name_get(it_data->wdg), GUI_TYPE_STRING); 79 Eo *entry = props_entry_add(box, wdg_name_get(it_data->wdg), GUI_TYPE_STRING);
79 eo_do (entry, eo_event_callback_add(ELM_ENTRY_EVENT_ACTIVATED, _wdg_name_change_cb, it_data->wdg)); 80 eo_do (entry, eo_event_callback_add(ELM_ENTRY_EVENT_ACTIVATED, _wdg_name_change_cb, it_data->wdg));
81 elm_object_tooltip_text_set(entry, "Widget name");
80 } 82 }
81 else if (!strcmp(it_data->desc, DB_DEF_CLASS)) 83 else if (!strcmp(it_data->desc, DB_DEF_CLASS))
82 { 84 {
83 Eo *entry = props_entry_add(box, wdg_class_name_get(it_data->wdg), GUI_TYPE_STRING); 85 Eo *entry = props_entry_add(box, wdg_class_name_get(it_data->wdg), GUI_TYPE_STRING);
84 elm_object_disabled_set(entry, EINA_TRUE); 86 elm_object_disabled_set(entry, EINA_TRUE);
87 elm_object_tooltip_text_set(entry, "Widget class");
85 } 88 }
86 return box; 89 return box;
87} 90}
@@ -120,4 +123,4 @@ descview_shutdown(void)
120{ 123{
121 eo_do(desc_list, elm_obj_genlist_clear()); 124 eo_do(desc_list, elm_obj_genlist_clear());
122 desc_list = NULL; 125 desc_list = NULL;
123} \ No newline at end of file 126}
diff --git a/src/bin/egui_gui/itemview.c b/src/bin/egui_gui/itemview.c
index c13b758..0949ccb 100644
--- a/src/bin/egui_gui/itemview.c
+++ b/src/bin/egui_gui/itemview.c
@@ -72,9 +72,9 @@ _item_list_content_get(void *data, Evas_Object *obj EINA_UNUSED, const char *par
72 cb_name = eid_name_get(eid); 72 cb_name = eid_name_get(eid);
73 } 73 }
74 const char *cb_type_name = db_op_desc_nth_par_type_name_get(it_data->op_desc, i); 74 const char *cb_type_name = db_op_desc_nth_par_type_name_get(it_data->op_desc, i);
75 /* Adding user defined Evas_Smart_Cb s from resources. */ 75 /* FIXME: This if is not needed? */
76 if (!strcmp(cb_type_name, "Evas_Smart_Cb")) 76 if (!strcmp(cb_type_name, "Evas_Smart_Cb"))
77 o = props_hoversel_resources_add(box, NULL, elm_widget_top_get(box), cb_name, wdg_context_get(wdg), RESOURCE_EO_CALLBACK); 77 o = props_hoversel_resources_add(box, NULL, elm_widget_top_get(box), cb_name, wdg_context_get(wdg), RESOURCE_EO_CALLBACK);
78 } 78 }
79 else 79 else
80 { 80 {
@@ -88,6 +88,8 @@ _item_list_content_get(void *data, Evas_Object *obj EINA_UNUSED, const char *par
88 pfd->par_idx = i; 88 pfd->par_idx = i;
89 89
90 eo_do(o, eo_key_data_set("editor", pfd, free)); 90 eo_do(o, eo_key_data_set("editor", pfd, free));
91 const char *tooltip_text = op_param_desc_name_get(db_op_desc_nth_param_desc_get(it_data->op_desc, i));
92 elm_object_tooltip_text_set(o, tooltip_text);
91 93
92 if (eo_isa(o, ELM_HOVERSEL_CLASS)) 94 if (eo_isa(o, ELM_HOVERSEL_CLASS))
93 { 95 {
@@ -112,6 +114,7 @@ _item_list_content_get(void *data, Evas_Object *obj EINA_UNUSED, const char *par
112 props_label_add(box, "public"); 114 props_label_add(box, "public");
113 Eo *ck = props_check_add(box, item_container_item_public_get(item)); 115 Eo *ck = props_check_add(box, item_container_item_public_get(item));
114 eo_do(ck, eo_event_callback_add(ELM_CHECK_EVENT_CHANGED, _view_cbs->item_public_update_cb_func, item)); 116 eo_do(ck, eo_event_callback_add(ELM_CHECK_EVENT_CHANGED, _view_cbs->item_public_update_cb_func, item));
117 elm_object_tooltip_text_set(ck, "Check to make item accissible from code");
115 118
116 return box; 119 return box;
117} 120}
diff --git a/src/bin/egui_gui/propview.c b/src/bin/egui_gui/propview.c
index f1827d3..66255dd 100644
--- a/src/bin/egui_gui/propview.c
+++ b/src/bin/egui_gui/propview.c
@@ -96,6 +96,9 @@ _property_item_content_get(It_Data *it_data)
96 96
97 eo_do(obj, eo_key_data_set(_STR_EDITOR, pfd, free)); 97 eo_do(obj, eo_key_data_set(_STR_EDITOR, pfd, free));
98 98
99 const char *tooltip_text = op_param_desc_name_get(db_op_desc_nth_param_desc_get(op, pfd->par_idx));
100 elm_object_tooltip_text_set(obj, tooltip_text);
101
99 if (eo_isa(obj, ELM_HOVERSEL_CLASS)) 102 if (eo_isa(obj, ELM_HOVERSEL_CLASS))
100 { 103 {
101 /* pass box as a data, in order to change its color then value changed from default. */ 104 /* pass box as a data, in order to change its color then value changed from default. */