hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=cc877931ca9196deb01858b331d4439dd4ecda3d

commit cc877931ca9196deb01858b331d4439dd4ecda3d
Author: Taehyub Kim <taehyub....@samsung.com>
Date:   Fri Jun 10 10:45:44 2016 +0900

    statusbar: improve tooltip messages
    
    Summary: add more comments for statusbar tooltip
    
    Test Plan:
    1. launch enventor
    2. move mouse cursor on statusar tooltips
    3. see the message of tooltips
    
    Reviewers: Hermet, Jaehyun_Cho, NikaWhite
    
    Differential Revision: https://phab.enlightenment.org/D4032
---
 data/themes/default/layout_common.edc | 24 ++++++++++++++++++++++++
 src/bin/statusbar.c                   | 33 ++++++++++++++++++++++++++++++---
 2 files changed, 54 insertions(+), 3 deletions(-)

diff --git a/data/themes/default/layout_common.edc 
b/data/themes/default/layout_common.edc
index 4a9f19f..3bbeb5d 100644
--- a/data/themes/default/layout_common.edc
+++ b/data/themes/default/layout_common.edc
@@ -2044,6 +2044,14 @@ group { name: "statusbar_layout";
             image.normal: "cursor_arrow.png";
          }
       }
+      part { "elm.swallow.cursor_arrow.tooltip";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+           fixed: 1 1;
+           rel1.to: "cursor_arrow";
+           rel2.to: "cursor_arrow";
+         }
+      }
       part { name: "elm.text.cursor_pxx";
          type: TEXT;
          clip_to: "base_clip";
@@ -2235,6 +2243,14 @@ group { name: "statusbar_layout";
             image.normal: "navi_group.png";
          }
       }
+      part { "elm.swallow.group_icon.tooltip";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+           fixed: 1 1;
+           rel1.to: "group_icon";
+           rel2.to: "group_icon";
+         }
+      }
       part { name: "elm.text.group_name";
          type: TEXT;
          clip_to: "base_clip";
@@ -2301,6 +2317,14 @@ group { name: "statusbar_layout";
             }
          }
       }
+      part { "elm.swallow.line.tooltip";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+           fixed: 1 1;
+           rel1.to: "elm.text.line_[";
+           rel2.to: "elm.text.line_[";
+         }
+      }
       part { name: "elm.text.line_cur";
          type: TEXT;
          clip_to: "base_clip";
diff --git a/src/bin/statusbar.c b/src/bin/statusbar.c
index e464544..b0cee41 100644
--- a/src/bin/statusbar.c
+++ b/src/bin/statusbar.c
@@ -319,20 +319,47 @@ stats_init(Evas_Object *parent)
 
    //View Scale button
    create_statusbar_btn(layout, "expand", "scale_btn",
-                        "View Scale (Ctrl + Mouse Wheel)",
+                        _("View Scale (Ctrl + Mouse Wheel)<br>"
+                          "Set live view scale from 0.10 to 5.00"),
                         ELM_TOOLTIP_ORIENT_TOP_RIGHT,
                         view_scale_btn_cb, sd);
    //View Resize Button
    create_statusbar_btn(layout, "expand", "resize_btn",
-                        "Resize View Size",
+                        _("Resize View Size<br>"
+                          "Resize live View width and height."),
                         ELM_TOOLTIP_ORIENT_TOP,
                         view_resize_btn_cb, sd);
    //View Invert Button
    create_statusbar_btn(layout, "invert", "invert_btn",
-                        "Invert View Size",
+                        _("Invert View Size<br>"
+                          "Change aspect ratio between width and height."),
                         ELM_TOOLTIP_ORIENT_TOP,
                         view_invert_btn_cb, sd);
 
+   Evas_Object *arrow_tooltip = elm_button_add(layout);
+   elm_object_style_set(arrow_tooltip, ENVENTOR_NAME);
+   elm_object_part_content_set(layout, "elm.swallow.cursor_arrow.tooltip",
+                               arrow_tooltip);
+   elm_object_tooltip_text_set(arrow_tooltip, _("Current mouse position in 
live view."));
+   elm_object_tooltip_orient_set(arrow_tooltip, ELM_TOOLTIP_ORIENT_TOP);
+   elm_object_focus_allow_set(arrow_tooltip, EINA_FALSE);
+
+   Evas_Object *group_tooltip = elm_button_add(layout);
+   elm_object_style_set(group_tooltip, ENVENTOR_NAME);
+   elm_object_part_content_set(layout, "elm.swallow.group_icon.tooltip",
+                               group_tooltip);
+   elm_object_tooltip_text_set(group_tooltip, _("Current group in live 
view."));
+   elm_object_tooltip_orient_set(group_tooltip, ELM_TOOLTIP_ORIENT_TOP);
+   elm_object_focus_allow_set(group_tooltip, EINA_FALSE);
+
+   Evas_Object *line_tooltip = elm_button_add(layout);
+   elm_object_style_set(line_tooltip, ENVENTOR_NAME);
+   elm_object_part_content_set(layout, "elm.swallow.line.tooltip",
+                               line_tooltip);
+   elm_object_tooltip_text_set(line_tooltip, _("Line information 
(current:max)."));
+   elm_object_tooltip_orient_set(line_tooltip, ELM_TOOLTIP_ORIENT_TOP_LEFT);
+   elm_object_focus_allow_set(line_tooltip, EINA_FALSE);
+
    sd->layout = layout;
 
    stats_cursor_pos_update(0, 0, 0, 0);

-- 


Reply via email to