1 group { name: "elm/scroller/base/ctxpopup";
3 item: "focus_highlight" "on";
6 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
11 v = get_int(sbalways_v);
13 emit("do-hide-vbar", "");
19 v = get_int(sbalways_h);
21 emit("do-hide-hbar", "");
25 set_int(sbvis_timer, 0);
30 image: "bt_sm_base2.png" COMP;
31 image: "bt_sm_shine.png" COMP;
32 image: "bt_sm_hilight.png" COMP;
33 image: "sl_bt2_2.png" COMP;
36 part { name: "clipper";
40 description { state: "default" 0.0;
43 part { name: "elm.swallow.content";
47 description { state: "default" 0.0;
51 part { name: "focus_highlight";
53 description { state: "default" 0.0;
56 image { normal: "sl_bt2_2.png";
63 description { state: "enabled" 0.0;
64 inherit: "default" 0.0;
68 part { name: "sb_vbar_clip_master";
71 description { state: "default" 0.0;
73 description { state: "hidden" 0.0;
78 part { name: "sb_vbar_clip";
79 clip_to:"sb_vbar_clip_master";
83 description { state: "default" 0.0;
85 rel2{ to:"clipper"; relative: 1.0 1.0; }
87 description { state: "hidden" 0.0;
92 part { name: "sb_vbar";
96 description { state: "default" 0.0;
100 rel1{ to:"clipper"; relative: 1.0 0.0; }
101 rel2{ to:"clipper"; relative: 1.0 1.0; }
104 part { name: "elm.dragable.vbar";
105 clip_to: "sb_vbar_clip";
113 description { state: "default" 0.0;
117 rel1 { relative: 0.5 0.5; to: "sb_vbar"; }
118 rel2 { relative: 0.5 0.5; to: "sb_vbar"; }
119 image { normal: "bt_sm_base2.png";
125 part { name: "sb_vbar_over1";
126 clip_to: "sb_vbar_clip";
128 description { state: "default" 0.0;
129 rel1.to: "elm.dragable.vbar";
130 rel2.relative: 1.0 0.5;
131 rel2.to: "elm.dragable.vbar";
132 image { normal: "bt_sm_hilight.png";
137 part { name: "sb_vbar_over2";
138 clip_to: "sb_vbar_clip";
140 description { state: "default" 0.0;
141 rel1.to: "elm.dragable.vbar";
142 rel2.to: "elm.dragable.vbar";
143 image { normal: "bt_sm_shine.png";
148 part { name: "sb_hbar_clip_master";
151 description { state: "default" 0.0;
153 description { state: "hidden" 0.0;
155 color: 255 255 255 0;
158 part { name: "sb_hbar_clip";
159 clip_to: "sb_hbar_clip_master";
163 description { state: "default" 0.0;
165 rel2{ to:"clipper"; relative: 1.0 1.0; }
167 description { state: "hidden" 0.0;
169 color: 255 255 255 0;
172 part { name: "sb_hbar";
176 description { state: "default" 0.0;
180 rel1 { to:"clipper"; relative: 0.0 1.0; }
181 rel2 { to:"clipper"; relative: 1.0 1.0; }
184 part { name: "elm.dragable.hbar";
185 clip_to: "sb_hbar_clip";
193 description { state: "default" 0.0;
197 rel1 { relative: 0.5 0.5; to: "sb_hbar"; }
198 rel2 { relative: 0.5 0.5; to: "sb_hbar"; }
199 image { normal: "bt_sm_base2.png";
205 part { name: "sb_hbar_over1";
206 clip_to: "sb_hbar_clip";
208 description { state: "default" 0.0;
209 rel1.to: "elm.dragable.hbar";
210 rel2.relative: 1.0 0.5;
211 rel2.to: "elm.dragable.hbar";
212 image { normal: "bt_sm_hilight.png";
217 part { name: "sb_hbar_over2";
218 clip_to: "sb_hbar_clip";
220 description { state: "default" 0.0;
221 rel1.to: "elm.dragable.hbar";
222 rel2.to: "elm.dragable.hbar";
223 image { normal: "bt_sm_shine.png";
230 program { name: "load";
234 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
235 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
238 set_int(sbalways_v, 0);
239 set_int(sbalways_h, 0);
240 set_int(sbvis_timer, 0);
243 program { name: "vbar_show";
244 signal: "elm,action,show,vbar";
246 action: STATE_SET "default" 0.0;
247 target: "sb_vbar_clip_master";
249 program { name: "vbar_hide";
250 signal: "elm,action,hide,vbar";
252 action: STATE_SET "hidden" 0.0;
253 target: "sb_vbar_clip_master";
255 program { name: "vbar_show_always";
256 signal: "elm,action,show_always,vbar";
260 v = get_int(sbvis_v);
261 v |= get_int(sbalways_v);
263 set_int(sbalways_v, 1);
264 emit("do-show-vbar", "");
269 program { name: "vbar_show_notalways";
270 signal: "elm,action,show_notalways,vbar";
274 v = get_int(sbalways_v);
276 set_int(sbalways_v, 0);
277 v = get_int(sbvis_v);
279 emit("do-hide-vbar", "");
285 program { name: "sb_vbar_show";
286 signal: "do-show-vbar";
288 action: STATE_SET "default" 0.0;
289 transition: LINEAR 1.0;
290 target: "sb_vbar_clip";
292 program { name: "sb_vbar_hide";
293 signal: "do-hide-vbar";
295 action: STATE_SET "hidden" 0.0;
296 transition: LINEAR 1.0;
297 target: "sb_vbar_clip";
299 program { name: "hbar_show";
300 signal: "elm,action,show,hbar";
302 action: STATE_SET "default" 0.0;
303 target: "sb_hbar_clip_master";
305 program { name: "hbar_hide";
306 signal: "elm,action,hide,hbar";
308 action: STATE_SET "hidden" 0.0;
309 target: "sb_hbar_clip_master";
311 program { name: "hbar_show_always";
312 signal: "elm,action,show_always,hbar";
316 v = get_int(sbvis_h);
317 v |= get_int(sbalways_h);
319 set_int(sbalways_h, 1);
320 emit("do-show-hbar", "");
325 program { name: "hbar_show_notalways";
326 signal: "elm,action,show_notalways,hbar";
330 v = get_int(sbalways_h);
332 set_int(sbalways_h, 0);
333 v = get_int(sbvis_h);
335 emit("do-hide-hbar", "");
341 program { name: "sb_hbar_show";
342 signal: "do-show-hbar";
344 action: STATE_SET "default" 0.0;
345 transition: LINEAR 1.0;
346 target: "sb_hbar_clip";
348 program { name: "sb_hbar_hide";
349 signal: "do-hide-hbar";
351 action: STATE_SET "hidden" 0.0;
352 transition: LINEAR 1.0;
353 target: "sb_hbar_clip";
355 program { name: "scroll";
356 signal: "elm,action,scroll";
360 v = get_int(sbvis_v);
361 v |= get_int(sbalways_v);
363 emit("do-show-vbar", "")
366 v = get_int(sbvis_h);
367 v |= get_int(sbalways_h);
369 emit("do-show-hbar", "");
372 v = get_int(sbvis_timer);
373 if (v > 0) cancel_timer(v);
374 v = timer(1.0, "timer0", 0);
375 set_int(sbvis_timer, v);
378 program { name: "highlight_show";
379 signal: "elm,action,focus_highlight,show";
381 action: STATE_SET "enabled" 0.0;
382 transition: ACCELERATE 0.3;
383 target: "focus_highlight";
385 program { name: "highlight_hide";
386 signal: "elm,action,focus_highlight,hide";
388 action: STATE_SET "default" 0.0;
389 transition: DECELERATE 0.3;
390 target: "focus_highlight";
394 ///////////////////////////////////////////////////////////////////////////////
395 group { name: "elm/ctxpopup/bg/default";
397 part { name: "ctxpopup_bg";
400 description { state: "default" 0.0;
403 description { state: "visible" 0.0;
404 inherit: "default" 0.0;
410 program { name: "clicked_event";
411 signal: "mouse,clicked,1";
412 source: "ctxpopup_bg";
413 action: SIGNAL_EMIT "elm,action,click" "";
415 program { name: "show";
416 signal: "elm,state,show";
418 action: STATE_SET "visible" 0.0;
419 target: "ctxpopup_bg";
420 transition: LINEAR 0.25;
422 program { name: "hide";
423 signal: "elm,state,hide";
425 action: STATE_SET "default" 0.0;
426 target: "ctxpopup_bg";
430 ///////////////////////////////////////////////////////////////////////////////
431 group { name: "elm/ctxpopup/base/default";
433 image: "bt_base2.png" COMP;
434 image: "bt_hilight.png" COMP;
435 image: "bt_shine.png" COMP;
438 part { name: "arrow_area_left";
441 clip_to: "ctxpopup_clip";
442 description { state: "default" 0.0;
456 part { name: "arrow_area_right";
459 clip_to: "ctxpopup_clip";
460 description { state: "default" 0.0;
474 part { name: "arrow_area_up";
477 clip_to: "ctxpopup_clip";
478 description { state: "default" 0.0;
492 part { name: "arrow_area_down";
495 clip_to: "ctxpopup_clip";
496 description { state: "default" 0.0;
510 part { name: "elm.swallow.arrow_up";
514 clip_to: "ctxpopup_clip";
518 confine: "arrow_area_up";
520 description { state: "default" 0.0;
526 part { name: "elm.swallow.arrow_down";
530 clip_to: "ctxpopup_clip";
534 confine: "arrow_area_down";
536 description { state: "default" 0.0;
542 part { name: "elm.swallow.arrow_left";
546 clip_to: "ctxpopup_clip";
550 confine: "arrow_area_left";
552 description { state: "default" 0.0;
558 part { name: "elm.swallow.arrow_right";
562 clip_to: "ctxpopup_clip";
566 confine: "arrow_area_right";
568 description { state: "default" 0.0;
576 clip_to: "ctxpopup_clip";
577 description { state: "default" 0.0;
580 image { normal: "bt_base2.png";
585 part { name: "over1";
587 clip_to: "ctxpopup_clip";
588 description { state: "default" 0.0;
591 rel2.relative: 1.0 0.5;
592 image { normal: "bt_hilight.png";
597 part { name: "over2";
599 clip_to: "ctxpopup_clip";
600 description { state: "default" 0.0;
603 image { normal: "bt_shine.png";
608 part { name: "elm.swallow.content";
610 clip_to: "ctxpopup_clip";
611 description { state: "default" 0.0;
612 rel1 { to:"base"; offset: 4 4; }
613 rel2 { to:"base"; offset: -5 -5; }
616 part { name: "ctxpopup_clip";
618 description { state: "default" 0.0;
619 color: 255 255 255 0;
620 rel1 { to:"base"; relative: 0 0; }
621 rel2 { to:"base"; relative: 0 1; }
623 description { state: "up" 0.0;
624 color: 255 255 255 0;
625 rel1 { to:"arrow_area_down"; relative: 0 1; }
626 rel2 { to:"arrow_area_down"; relative: 1 1; }
628 description { state: "left" 0.0;
629 color: 255 255 255 0;
630 rel1 { to:"arrow_area_right"; relative: 1 0; }
631 rel2 { to:"arrow_area_right"; relative: 1 1; }
633 description { state: "right" 0.0;
634 color: 255 255 255 0;
635 rel1 { to:"arrow_area_left"; relative: 0 0; }
636 rel2 { to:"arrow_area_left"; relative: 0 1; }
638 description { state: "down" 0.0;
639 color: 255 255 255 0;
640 rel1 { to:"arrow_area_up"; relative: 0 0; }
641 rel2 { to:"arrow_area_up"; relative: 1 0; }
643 description { state: "visible" 0.0;
644 color: 255 255 255 255;
645 rel1 { to_x:"arrow_area_left"; to_y:"arrow_area_up"; }
646 rel2 { to_x:"arrow_area_right"; to_y:"arrow_area_down"; }
651 program { name: "show";
652 signal: "elm,state,show";
654 action: STATE_SET "visible" 0.0;
655 transition: LINEAR 0.25;
656 target: "ctxpopup_clip";
658 program { name: "up";
659 signal: "elm,state,show,up";
661 action: STATE_SET "up" 0.0;
662 transition: LINEAR 0.25;
663 target: "ctxpopup_clip";
665 program { name: "left";
666 signal: "elm,state,show,left";
668 action: STATE_SET "left" 0.0;
669 transition: LINEAR 0.25;
670 target: "ctxpopup_clip";
672 program { name: "right";
673 signal: "elm,state,show,right";
675 action: STATE_SET "right" 0.0;
676 transition: LINEAR 0.25;
677 target: "ctxpopup_clip";
679 program { name: "down";
680 signal: "elm,state,show,down";
682 action: STATE_SET "down" 0.0;
683 transition: LINEAR 0.25;
684 target: "ctxpopup_clip";
688 ///////////////////////////////////////////////////////////////////////////////
689 group { name: "elm/ctxpopup/arrow/default";
691 image: "ctxpopup_arrow_left.png" COMP;
692 image: "ctxpopup_arrow_right.png" COMP;
693 image: "ctxpopup_arrow_up.png" COMP;
694 image: "ctxpopup_arrow_down.png" COMP;
697 part { name: "ctxpopup_arrow";
701 state: "default" 0.0;
712 rel1 { offset: 3 0; }
713 rel2 { offset: 2 -1; }
714 image { normal: "ctxpopup_arrow_left.png"; }
716 description { state: "right" 0.0;
720 rel1 { offset: -5 0; }
721 rel2 { offset: -6 -1; }
722 image { normal: "ctxpopup_arrow_right.png"; }
724 description { state: "top" 0.0;
728 rel1 { offset: 0 5; }
729 rel2 { offset: -1 4; }
730 image { normal: "ctxpopup_arrow_up.png"; }
732 description { state: "bottom" 0.0;
736 rel1 { offset: 0 -5; }
737 rel2 { offset: -1 -6; }
738 image { normal: "ctxpopup_arrow_down.png"; }
743 program { name: "enable_left_arrow";
744 signal: "elm,state,left";
746 action: STATE_SET "left" 0.0;
747 target: "ctxpopup_arrow";
749 program { name: "enable_right_arrow";
750 signal: "elm,state,right";
752 action: STATE_SET "right" 0.0;
753 target: "ctxpopup_arrow";
755 program { name: "enable_top_arrow";
756 signal: "elm,state,top";
758 action: STATE_SET "top" 0.0;
759 target: "ctxpopup_arrow";
761 program { name: "enable_bottom_arrow";
762 signal: "elm,state,bottom";
764 action: STATE_SET "bottom" 0.0;
765 target: "ctxpopup_arrow";
769 ///////////////////////////////////////////////////////////////////////////////
771 name: "elm/ctxpopup/icon_text_style_item/default";
772 alias: "elm/ctxpopup/text_style_item/default";
773 alias: "elm/ctxpopup/icon_style_item/default";
775 image: "hoversel_entry_bg.png" COMP;
778 part { name: "event";
780 description { state: "default" 0.0;
785 description { state: "default" 0.0;
788 image { normal:"hoversel_entry_bg.png";
792 color: 255 255 255 0;
794 description { state: "clicked" 0.0;
795 inherit: "default" 0.0;
796 color: 255 255 255 255;
799 part { name: "elm.swallow.icon";
803 description { state: "default" 0.0;
808 rel1 { offset: 10 10; }
809 rel2 { offset: 0 -10; }
812 part { name: "elm.text";
817 description { state: "default" 0.0;
821 rel1 { relative: 1.0 0.0; to: "elm.swallow.icon"; offset: 10 0; }
822 rel2 { relative: 1.0 1.0; offset: -11 -1; }
823 color: 255 255 255 255;
831 description { state: "clicked" 0.0;
832 inherit: "default" 0.0;
836 part { name: "over1";
839 ignore_flags: ON_HOLD;
840 description { state: "default" 0.0;
841 color: 255 255 255 0;
843 description { state: "clicked" 0.0;
844 inherit: "default" 0.0;
845 color: 255 255 255 255;
848 part { name: "over2";
851 description { state: "default" 0.0;
852 color: 255 255 255 0;
854 description { state: "clicked" 0.0;
855 inherit: "default" 0.0;
856 color: 255 255 255 255;
859 part { name: "disclip";
861 description { state: "default" 0.0;
862 color: 255 255 255 255;
864 description { state: "enabled" 0.0;
865 color: 127 127 127 127;
868 part { name: "blocker";
869 description { state: "default" 0.0;
872 description { state: "enabled" 0.0;
880 name: "item_unclick";
881 signal: "mouse,up,1";
883 action: SIGNAL_EMIT "elm,action,click" "";
885 program { name: "disable";
886 signal: "elm,state,disabled";
888 action: STATE_SET "enabled" 0.0;
892 program { name: "enable";
893 signal: "elm,state,enabled";
895 action: STATE_SET "default" 0.0;
899 program { name: "item_click2";
900 signal: "mouse,down,1";
903 set_state(PART:"elm.text", "clicked", 0.0);
904 set_state(PART:"bg", "clicked", 0.0);
907 program { name: "item_unclick2";
908 signal: "mouse,up,1";
911 set_state(PART:"elm.text", "default", 0.0);
912 set_state(PART:"bg", "default", 0.0);