summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2015-01-06 15:48:39 +0200
committerYakov Goldberg <yakov.g@samsung.com>2015-01-06 15:48:39 +0200
commitd50f4ecac1fcb967b91febd98caf5cf5c560cbd7 (patch)
tree8da8d79656cb1ea287a555687d838e0136617330
parent6ede272cc94b0c59de7b9ae9f262a89ba75fe6c4 (diff)
Add tooltip to Resource Manager's fields
-rw-r--r--src/bin/egui_gui/rmview.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/bin/egui_gui/rmview.c b/src/bin/egui_gui/rmview.c
index 239c896..ffca6c2 100644
--- a/src/bin/egui_gui/rmview.c
+++ b/src/bin/egui_gui/rmview.c
@@ -436,6 +436,7 @@ _rmview_build(Rmview_Resource_Type type)
436 it_data->res = (Gui_Resource *)res; 436 it_data->res = (Gui_Resource *)res;
437 437
438 en = _rmview_entry_add(g_rm_win->rm_table,res_name); 438 en = _rmview_entry_add(g_rm_win->rm_table,res_name);
439 elm_object_tooltip_text_set(en, "Alias name");
439 it_data->en1 = en; 440 it_data->en1 = en;
440 eo_do(g_rm_win->rm_table, elm_obj_table_pack(en, table_col++, table_line, 1, 1)); 441 eo_do(g_rm_win->rm_table, elm_obj_table_pack(en, table_col++, table_line, 1, 1));
441 data = RMVIEW_FIELD_DATA_BUILD(0, it_data); 442 data = RMVIEW_FIELD_DATA_BUILD(0, it_data);
@@ -449,6 +450,7 @@ _rmview_build(Rmview_Resource_Type type)
449 case RESOURCE_EO_CALLBACK: 450 case RESOURCE_EO_CALLBACK:
450 { 451 {
451 en = _rmview_entry_add(g_rm_win->rm_table, value); 452 en = _rmview_entry_add(g_rm_win->rm_table, value);
453 elm_object_tooltip_text_set(en, "Callback name");
452 it_data->en2 = en; 454 it_data->en2 = en;
453 eo_do(g_rm_win->rm_table, elm_obj_table_pack(en, table_col++, table_line, 1, 1)); 455 eo_do(g_rm_win->rm_table, elm_obj_table_pack(en, table_col++, table_line, 1, 1));
454 data = RMVIEW_FIELD_DATA_BUILD(1, it_data); 456 data = RMVIEW_FIELD_DATA_BUILD(1, it_data);
@@ -460,6 +462,7 @@ _rmview_build(Rmview_Resource_Type type)
460 case RESOURCE_IMAGE: 462 case RESOURCE_IMAGE:
461 { 463 {
462 en = _rmview_fs_entry_add(g_rm_win->rm_table, "..."); 464 en = _rmview_fs_entry_add(g_rm_win->rm_table, "...");
465 elm_object_tooltip_text_set(en, "Image path");
463 eo_do(en, elm_interface_fileselector_path_set(value)); 466 eo_do(en, elm_interface_fileselector_path_set(value));
464 467
465 it_data->en2 = en; 468 it_data->en2 = en;
@@ -475,6 +478,7 @@ _rmview_build(Rmview_Resource_Type type)
475 Eo *box = _rmview_box_add(g_rm_win->rm_table, EINA_FALSE); 478 Eo *box = _rmview_box_add(g_rm_win->rm_table, EINA_FALSE);
476 479
477 en = _rmview_fs_entry_add(box, "..."); 480 en = _rmview_fs_entry_add(box, "...");
481 elm_object_tooltip_text_set(en, "Edj file path");
478 value = resource_edj_path_get(res); 482 value = resource_edj_path_get(res);
479 eo_do(en, elm_interface_fileselector_path_set(value)); 483 eo_do(en, elm_interface_fileselector_path_set(value));
480 eo_do(en, eo_event_callback_add(ELM_FILESELECTOR_ENTRY_EVENT_CHANGED, _res_changed, NULL)); 484 eo_do(en, eo_event_callback_add(ELM_FILESELECTOR_ENTRY_EVENT_CHANGED, _res_changed, NULL));
@@ -484,6 +488,7 @@ _rmview_build(Rmview_Resource_Type type)
484 it_data->en2 = en; 488 it_data->en2 = en;
485 489
486 en = _rmview_fs_entry_add(box, "..."); 490 en = _rmview_fs_entry_add(box, "...");
491 elm_object_tooltip_text_set(en, "Edc file path");
487 value = resource_edc_path_get(res); 492 value = resource_edc_path_get(res);
488 eo_do(en, elm_interface_fileselector_path_set(value)); 493 eo_do(en, elm_interface_fileselector_path_set(value));
489 eo_do(en, eo_event_callback_add(ELM_FILESELECTOR_ENTRY_EVENT_CHANGED, _res_changed, NULL)); 494 eo_do(en, eo_event_callback_add(ELM_FILESELECTOR_ENTRY_EVENT_CHANGED, _res_changed, NULL));
@@ -499,6 +504,7 @@ _rmview_build(Rmview_Resource_Type type)
499 case RESOURCE_STRING: 504 case RESOURCE_STRING:
500 { 505 {
501 en = _rmview_entry_add(g_rm_win->rm_table, value); 506 en = _rmview_entry_add(g_rm_win->rm_table, value);
507 elm_object_tooltip_text_set(en, "Value");
502 it_data->en2 = en; 508 it_data->en2 = en;
503 eo_do(g_rm_win->rm_table, elm_obj_table_pack(en, table_col++, table_line, 1, 1)); 509 eo_do(g_rm_win->rm_table, elm_obj_table_pack(en, table_col++, table_line, 1, 1));
504 data = RMVIEW_FIELD_DATA_BUILD(1, it_data); 510 data = RMVIEW_FIELD_DATA_BUILD(1, it_data);
@@ -738,6 +744,10 @@ rm_win_post_configure()
738 _rmview_toolbar_clicked, (void *) (intptr_t) RMVIEW_CALLBACK)); 744 _rmview_toolbar_clicked, (void *) (intptr_t) RMVIEW_CALLBACK));
739 eo_do(g_rm_win->rm_toolbar, elm_obj_toolbar_item_append("format-text-bold", "Strings", 745 eo_do(g_rm_win->rm_toolbar, elm_obj_toolbar_item_append("format-text-bold", "Strings",
740 _rmview_toolbar_clicked, (void *) (intptr_t) RMVIEW_STRING)); 746 _rmview_toolbar_clicked, (void *) (intptr_t) RMVIEW_STRING));
741 747 elm_object_tooltip_text_set(g_rm_win->rm_alias_entry, "Alias name");
748 elm_object_tooltip_text_set(g_rm_win->rm_value_entry, "Value");
749 elm_object_tooltip_text_set(g_rm_win->rm_edje_fs_edj, "Edj file name");
750 elm_object_tooltip_text_set(g_rm_win->rm_edje_fs_edc, "Edc file name");
751 elm_object_tooltip_text_set(g_rm_win->rm_image_fileselector, "Image path");
742} 752}
743 753