forked from enlightenment/enlightenment
'everything' module: show arrows on items to indicate whether they are browseable
SVN revision: 41675
This commit is contained in:
parent
e19541a137
commit
727fc2c99b
|
@ -26699,7 +26699,7 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
||||||
signal: "e,state,object_selector_hide";
|
signal: "e,state,object_selector_hide";
|
||||||
source: "e";
|
source: "e";
|
||||||
action: STATE_SET "default" 0.00;
|
action: STATE_SET "default" 0.00;
|
||||||
transition: SINUSOIDAL 0.20000;
|
transition: SINUSOIDAL 0.15;
|
||||||
target: "bg";
|
target: "bg";
|
||||||
target: "e.swallow.object_selector";
|
target: "e.swallow.object_selector";
|
||||||
}
|
}
|
||||||
|
@ -26707,7 +26707,7 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
||||||
signal: "e,state,object_selector_show";
|
signal: "e,state,object_selector_show";
|
||||||
source: "e";
|
source: "e";
|
||||||
action: STATE_SET "wide" 0.00;
|
action: STATE_SET "wide" 0.00;
|
||||||
transition: SINUSOIDAL 0.40000;
|
transition: SINUSOIDAL 0.2;
|
||||||
target: "bg";
|
target: "bg";
|
||||||
target: "e.swallow.object_selector";
|
target: "e.swallow.object_selector";
|
||||||
}
|
}
|
||||||
|
@ -27141,7 +27141,7 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
||||||
type: SWALLOW;
|
type: SWALLOW;
|
||||||
clip_to: "list_clip";
|
clip_to: "list_clip";
|
||||||
description { state: "default" 0.0;
|
description { state: "default" 0.0;
|
||||||
min: 32 150;
|
min: 32 170;
|
||||||
rel1 {
|
rel1 {
|
||||||
relative: 0.0 0.0;
|
relative: 0.0 0.0;
|
||||||
offset: 4 5;
|
offset: 4 5;
|
||||||
|
@ -27149,10 +27149,15 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
||||||
}
|
}
|
||||||
rel2 {
|
rel2 {
|
||||||
relative: 1.0 1.0;
|
relative: 1.0 1.0;
|
||||||
offset: -4 -4;
|
offset: -5 -4;
|
||||||
to: "list_clip";
|
to: "list_clip";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
description { state: "visible" 0.0;
|
||||||
|
inherit: "default" 0.0;
|
||||||
|
min: 32 150;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
part { name: "list_clip";
|
part { name: "list_clip";
|
||||||
type: RECT;
|
type: RECT;
|
||||||
|
@ -27198,7 +27203,7 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
||||||
signal: "e,state,list_show";
|
signal: "e,state,list_show";
|
||||||
source: "e";
|
source: "e";
|
||||||
action: STATE_SET "visible" 0.0;
|
action: STATE_SET "visible" 0.0;
|
||||||
transition: ACCELERATE 0.2;
|
transition: ACCELERATE 0.1;
|
||||||
target: "base";
|
target: "base";
|
||||||
/* after: "show_list_end"; */
|
/* after: "show_list_end"; */
|
||||||
}
|
}
|
||||||
|
@ -27218,7 +27223,8 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
||||||
target: "input_over2";
|
target: "input_over2";
|
||||||
target: "input_base";
|
target: "input_base";
|
||||||
target: "input_bg";
|
target: "input_bg";
|
||||||
}
|
target: "e.swallow.list";
|
||||||
|
}
|
||||||
program { name: "hide_entry";
|
program { name: "hide_entry";
|
||||||
signal: "e,state,entry_hide";
|
signal: "e,state,entry_hide";
|
||||||
source: "e";
|
source: "e";
|
||||||
|
@ -27228,6 +27234,7 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
||||||
target: "input_over2";
|
target: "input_over2";
|
||||||
target: "input_base";
|
target: "input_base";
|
||||||
target: "input_bg";
|
target: "input_bg";
|
||||||
|
target: "e.swallow.list";
|
||||||
}
|
}
|
||||||
/* program { name: "blink_off";
|
/* program { name: "blink_off";
|
||||||
* signal: "show";
|
* signal: "show";
|
||||||
|
@ -27251,6 +27258,9 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "e/widgets/everything/item";
|
group { name: "e/widgets/everything/item";
|
||||||
|
images {
|
||||||
|
image: "icon_right_arrow.png" COMP;
|
||||||
|
}
|
||||||
parts {
|
parts {
|
||||||
part { name: "bg";
|
part { name: "bg";
|
||||||
mouse_events: 0;
|
mouse_events: 0;
|
||||||
|
@ -27284,7 +27294,10 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
||||||
relative: 1.0 0.0;
|
relative: 1.0 0.0;
|
||||||
to_x: "e.swallow.icons";
|
to_x: "e.swallow.icons";
|
||||||
}
|
}
|
||||||
rel2.offset: -3 -2;
|
rel2 {
|
||||||
|
offset: -3 -2;
|
||||||
|
to_x: "arrow";
|
||||||
|
}
|
||||||
color: 60 60 60 255;
|
color: 60 60 60 255;
|
||||||
color3: 255 255 255 64;
|
color3: 255 255 255 64;
|
||||||
color_class: "menu_item";
|
color_class: "menu_item";
|
||||||
|
@ -27322,6 +27335,32 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
part {
|
||||||
|
name: "arrow";
|
||||||
|
description {
|
||||||
|
state: "default" 0.0;
|
||||||
|
max: 20 20;
|
||||||
|
align: 0.0 0.5;
|
||||||
|
aspect_preference: VERTICAL;
|
||||||
|
rel1 {
|
||||||
|
relative: 1.0 0.0;
|
||||||
|
offset: -21 1;
|
||||||
|
}
|
||||||
|
rel2 {
|
||||||
|
relative: 1.0 1.0;
|
||||||
|
offset: -3 -2;
|
||||||
|
}
|
||||||
|
image {
|
||||||
|
normal: "icon_right_arrow.png";
|
||||||
|
}
|
||||||
|
color: 255 255 255 0;
|
||||||
|
}
|
||||||
|
description {
|
||||||
|
state: "visible" 0.0;
|
||||||
|
inherit: "default" 0.0;
|
||||||
|
color: 255 255 255 255;
|
||||||
|
}
|
||||||
|
}
|
||||||
part { name: "fg";
|
part { name: "fg";
|
||||||
mouse_events: 0;
|
mouse_events: 0;
|
||||||
description { state: "default" 0.0;
|
description { state: "default" 0.0;
|
||||||
|
@ -27379,6 +27418,13 @@ MIMEBASE("application/x-font-bdf","icon_mime_font_generic.png", ".BDF", 128);
|
||||||
target: "bg";
|
target: "bg";
|
||||||
target: "fg";
|
target: "fg";
|
||||||
target: "e.text.title";
|
target: "e.text.title";
|
||||||
|
target: "arrow";
|
||||||
|
}
|
||||||
|
program { name: "arrow";
|
||||||
|
signal: "e,state,arrow_show";
|
||||||
|
source: "e";
|
||||||
|
action: STATE_SET "visible" 0.0;
|
||||||
|
target: "arrow";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1290,12 +1290,13 @@ _evry_list_show_items(Evry_State *s, Evry_Plugin *p)
|
||||||
edje_object_signal_emit(it->o_bg, "e,state,selected", "e");
|
edje_object_signal_emit(it->o_bg, "e,state,selected", "e");
|
||||||
if (it->o_icon)
|
if (it->o_icon)
|
||||||
edje_object_signal_emit(it->o_icon, "e,state,selected", "e");
|
edje_object_signal_emit(it->o_icon, "e,state,selected", "e");
|
||||||
|
if (it->browseable)
|
||||||
|
edje_object_signal_emit(it->o_bg, "e,state,arrow_show", "e");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
e_box_thaw(list->o_list);
|
e_box_thaw(list->o_list);
|
||||||
|
|
||||||
if (edje_object_part_exists(o, "e.swallow.icons"))
|
list->item_idler = ecore_idler_add(_evry_list_item_idler, p);
|
||||||
list->item_idler = ecore_idler_add(_evry_list_item_idler, p);
|
|
||||||
|
|
||||||
e_box_min_size_get(list->o_list, NULL, &mh);
|
e_box_min_size_get(list->o_list, NULL, &mh);
|
||||||
evas_object_geometry_get(list->o_list, NULL, NULL, NULL, &h);
|
evas_object_geometry_get(list->o_list, NULL, NULL, NULL, &h);
|
||||||
|
@ -1555,6 +1556,9 @@ _evry_list_item_sel(Evry_State *s, Evry_Item *it)
|
||||||
if (it->o_icon)
|
if (it->o_icon)
|
||||||
edje_object_signal_emit(it->o_icon, "e,state,selected", "e");
|
edje_object_signal_emit(it->o_icon, "e,state,selected", "e");
|
||||||
|
|
||||||
|
if (it->browseable)
|
||||||
|
edje_object_signal_emit(it->o_bg, "e,state,arrow_show", "e");
|
||||||
|
|
||||||
_evry_list_scroll_to(s, it);
|
_evry_list_scroll_to(s, it);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue