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";
421 program { name: "hide";
422 signal: "elm,state,hide";
424 action: STATE_SET "default" 0.0;
425 target: "ctxpopup_bg";
429 ///////////////////////////////////////////////////////////////////////////////
430 group { name: "elm/ctxpopup/base/default";
432 image: "bt_base2.png" COMP;
433 image: "bt_hilight.png" COMP;
434 image: "bt_shine.png" COMP;
437 part { name: "arrow_area_left";
440 description { state: "default" 0.0;
454 part { name: "arrow_area_right";
457 description { state: "default" 0.0;
471 part { name: "arrow_area_up";
474 description { state: "default" 0.0;
488 part { name: "arrow_area_down";
491 description { state: "default" 0.0;
505 part { name: "elm.swallow.arrow_up";
512 confine: "arrow_area_up";
514 description { state: "default" 0.0;
520 part { name: "elm.swallow.arrow_down";
527 confine: "arrow_area_down";
529 description { state: "default" 0.0;
535 part { name: "elm.swallow.arrow_left";
542 confine: "arrow_area_left";
544 description { state: "default" 0.0;
550 part { name: "elm.swallow.arrow_right";
557 confine: "arrow_area_right";
559 description { state: "default" 0.0;
567 description { state: "default" 0.0;
570 image { normal: "bt_base2.png";
575 part { name: "over1";
577 description { state: "default" 0.0;
580 rel2.relative: 1.0 0.5;
581 image { normal: "bt_hilight.png";
586 part { name: "over2";
588 description { state: "default" 0.0;
591 image { normal: "bt_shine.png";
596 part { name: "elm.swallow.content";
598 description { state: "default" 0.0;
599 rel1 { to:"base"; offset: 4 4; }
600 rel2 { to:"base"; offset: -5 -5; }
605 ///////////////////////////////////////////////////////////////////////////////
606 group { name: "elm/ctxpopup/arrow/default";
608 image: "ctxpopup_arrow_left.png" COMP;
609 image: "ctxpopup_arrow_right.png" COMP;
610 image: "ctxpopup_arrow_up.png" COMP;
611 image: "ctxpopup_arrow_down.png" COMP;
614 part { name: "ctxpopup_arrow";
618 state: "default" 0.0;
629 rel1 { offset: 3 0; }
630 rel2 { offset: 2 -1; }
631 image { normal: "ctxpopup_arrow_left.png"; }
633 description { state: "right" 0.0;
637 rel1 { offset: -5 0; }
638 rel2 { offset: -6 -1; }
639 image { normal: "ctxpopup_arrow_right.png"; }
641 description { state: "top" 0.0;
645 rel1 { offset: 0 5; }
646 rel2 { offset: -1 4; }
647 image { normal: "ctxpopup_arrow_up.png"; }
649 description { state: "bottom" 0.0;
653 rel1 { offset: 0 -5; }
654 rel2 { offset: -1 -6; }
655 image { normal: "ctxpopup_arrow_down.png"; }
660 program { name: "enable_left_arrow";
661 signal: "elm,state,left";
663 action: STATE_SET "left" 0.0;
664 target: "ctxpopup_arrow";
666 program { name: "enable_right_arrow";
667 signal: "elm,state,right";
669 action: STATE_SET "right" 0.0;
670 target: "ctxpopup_arrow";
672 program { name: "enable_top_arrow";
673 signal: "elm,state,top";
675 action: STATE_SET "top" 0.0;
676 target: "ctxpopup_arrow";
678 program { name: "enable_bottom_arrow";
679 signal: "elm,state,bottom";
681 action: STATE_SET "bottom" 0.0;
682 target: "ctxpopup_arrow";
686 ///////////////////////////////////////////////////////////////////////////////
688 name: "elm/ctxpopup/icon_text_style_item/default";
689 alias: "elm/ctxpopup/text_style_item/default";
690 alias: "elm/ctxpopup/icon_style_item/default";
692 image: "hoversel_entry_bg.png" COMP;
695 part { name: "event";
697 description { state: "default" 0.0;
702 description { state: "default" 0.0;
705 image { normal:"hoversel_entry_bg.png";
709 color: 255 255 255 0;
711 description { state: "clicked" 0.0;
712 inherit: "default" 0.0;
713 color: 255 255 255 255;
716 part { name: "elm.swallow.icon";
720 description { state: "default" 0.0;
725 rel1 { offset: 10 10; }
726 rel2 { offset: 0 -10; }
729 part { name: "elm.text";
734 description { state: "default" 0.0;
738 rel1 { relative: 1.0 0.0; to: "elm.swallow.icon"; offset: 10 0; }
739 rel2 { relative: 1.0 1.0; offset: -11 -1; }
740 color: 255 255 255 255;
748 description { state: "clicked" 0.0;
749 inherit: "default" 0.0;
753 part { name: "over1";
756 ignore_flags: ON_HOLD;
757 description { state: "default" 0.0;
758 color: 255 255 255 0;
760 description { state: "clicked" 0.0;
761 inherit: "default" 0.0;
762 color: 255 255 255 255;
765 part { name: "over2";
768 description { state: "default" 0.0;
769 color: 255 255 255 0;
771 description { state: "clicked" 0.0;
772 inherit: "default" 0.0;
773 color: 255 255 255 255;
776 part { name: "disclip";
778 description { state: "default" 0.0;
779 color: 255 255 255 255;
781 description { state: "enabled" 0.0;
782 color: 127 127 127 127;
785 part { name: "blocker";
786 description { state: "default" 0.0;
789 description { state: "enabled" 0.0;
797 name: "item_unclick";
798 signal: "mouse,up,1";
800 action: SIGNAL_EMIT "elm,action,click" "";
802 program { name: "disable";
803 signal: "elm,state,disabled";
805 action: STATE_SET "enabled" 0.0;
809 program { name: "enable";
810 signal: "elm,state,enabled";
812 action: STATE_SET "default" 0.0;
816 program { name: "item_click2";
817 signal: "mouse,down,1";
820 set_state(PART:"elm.text", "clicked", 0.0);
821 set_state(PART:"bg", "clicked", 0.0);
824 program { name: "item_unclick2";
825 signal: "mouse,up,1";
828 set_state(PART:"elm.text", "default", 0.0);
829 set_state(PART:"bg", "default", 0.0);