forked from enlightenment/enventor
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
This commit is contained in:
parent
7a9c30c3f1
commit
cc877931ca
|
@ -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";
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue