2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8 * software is owned by Samsung and you shall not disclose such Confidential
9 * Information and shall use it only in accordance with the terms of the license
10 * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11 * representations or warranties about the suitability of the software, either
12 * express or implied, including but not limited to the implied warranties of
13 * merchantability, fitness for a particular purpose, or non-infringement.
14 * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15 * of or releated to this software.
22 group { name: "elm/scroller/base/default";
24 alias: "elm/list/base/default";
25 alias: "elm/genlist/base/default";
26 alias: "elm/carousel/base/default";
27 alias: "elm/gengrid/base/default";
28 alias: "elm/scroller/base/map_bubble";
29 alias: "elm/genscroller/base/default";
32 item: "focus_highlight" "on";
36 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
41 v = get_int(sbalways_v);
43 emit("do-hide-vbar", "");
49 v = get_int(sbalways_h);
51 emit("do-hide-hbar", "");
55 set_int(sbvis_timer, 0);
60 image: "00_scroll_bar.png" COMP;
66 description { state: "default" 0.0;
72 part { name: "clipper";
76 description { state: "default" 0.0;
83 part { name: "elm.swallow.content";
87 description { state: "default" 0.0;
94 part { name: "sb_vbar_clip_master";
98 description { state: "default" 0.0;
100 description { state: "hidden" 0.0;
102 color: 255 255 255 0;
105 part { name: "sb_vbar_clip";
106 clip_to: "sb_vbar_clip_master";
110 description { state: "default" 0.0;
112 description { state: "hidden" 0.0;
114 color: 255 255 255 0;
117 part { name: "sb_vbar";
121 description { state: "default" 0.0;
124 min: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC;
129 to_y: "elm.swallow.content";
130 to_x: "elm.swallow.content";
136 to_x: "elm.swallow.content";
140 part { name: "elm.dragable.vbar";
141 clip_to: "sb_vbar_clip";
149 description { state: "default" 0.0;
151 min: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC;
164 normal: "00_scroll_bar.png";
171 part { name: "sb_hbar_clip_master";
175 description { state: "default" 0.0;
177 description { state: "hidden" 0.0;
179 color: 255 255 255 0;
182 part { name: "sb_hbar_clip";
183 clip_to: "sb_hbar_clip_master";
187 description { state: "default" 0.0;
189 description { state: "hidden" 0.0;
191 color: 255 255 255 0;
194 part { name: "sb_hbar";
198 description { state: "default" 0.0;
201 min: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC;
206 to_x: "elm.swallow.content";
207 to_y: "elm.swallow.content";
213 to_y: "elm.swallow.content";
217 part { name: "elm.dragable.hbar";
218 clip_to: "sb_hbar_clip";
226 description { state: "default" 0.0;
228 min: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC;
241 normal: "00_scroll_bar.png";
248 part { name: "disabler";
251 description { state: "default" 0.0;
257 description { state: "disabled" 0.0;
258 inherit: "default" 0.0;
260 color: 128 128 128 128;
265 program { name: "load";
269 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
270 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
273 set_int(sbalways_v, 0);
274 set_int(sbalways_h, 0);
275 set_int(sbvis_timer, 0);
279 program { name: "vbar_show";
280 signal: "elm,action,show,vbar";
282 action: STATE_SET "default" 0.0;
283 target: "sb_vbar_clip_master";
285 program { name: "vbar_hide";
286 signal: "elm,action,hide,vbar";
288 action: STATE_SET "hidden" 0.0;
289 target: "sb_vbar_clip_master";
291 program { name: "vbar_show_always";
292 signal: "elm,action,show_always,vbar";
296 v = get_int(sbvis_v);
297 v |= get_int(sbalways_v);
299 set_int(sbalways_v, 1);
300 emit("do-show-vbar", "");
305 program { name: "vbar_show_notalways";
306 signal: "elm,action,show_notalways,vbar";
310 v = get_int(sbalways_v);
312 set_int(sbalways_v, 0);
313 v = get_int(sbvis_v);
315 emit("do-hide-vbar", "");
321 program { name: "sb_vbar_show";
322 signal: "do-show-vbar";
324 action: STATE_SET "default" 0.0;
325 transition: LINEAR 0.5;
326 target: "sb_vbar_clip";
328 program { name: "sb_vbar_hide";
329 signal: "do-hide-vbar";
331 action: STATE_SET "hidden" 0.0;
332 transition: LINEAR 0.5;
333 target: "sb_vbar_clip";
336 program { name: "hbar_show";
337 signal: "elm,action,show,hbar";
339 action: STATE_SET "default" 0.0;
340 target: "sb_hbar_clip_master";
342 program { name: "hbar_hide";
343 signal: "elm,action,hide,hbar";
345 action: STATE_SET "hidden" 0.0;
346 target: "sb_hbar_clip_master";
348 program { name: "hbar_show_always";
349 signal: "elm,action,show_always,hbar";
353 v = get_int(sbvis_h);
354 v |= get_int(sbalways_h);
356 set_int(sbalways_h, 1);
357 emit("do-show-hbar", "");
362 program { name: "hbar_show_notalways";
363 signal: "elm,action,show_notalways,hbar";
367 v = get_int(sbalways_h);
369 set_int(sbalways_h, 0);
370 v = get_int(sbvis_h);
372 emit("do-hide-hbar", "");
378 program { name: "sb_hbar_show";
379 signal: "do-show-hbar";
381 action: STATE_SET "default" 0.0;
382 transition: LINEAR 0.5;
383 target: "sb_hbar_clip";
385 program { name: "sb_hbar_hide";
386 signal: "do-hide-hbar";
388 action: STATE_SET "hidden" 0.0;
389 transition: LINEAR 0.5;
390 target: "sb_hbar_clip";
393 program { name: "scroll";
394 signal: "elm,action,scroll";
398 v = get_int(sbvis_v);
399 v |= get_int(sbalways_v);
401 emit("do-show-vbar", "");
404 v = get_int(sbvis_h);
405 v |= get_int(sbalways_h);
407 emit("do-show-hbar", "");
410 v = get_int(sbvis_timer);
411 if (v > 0) cancel_timer(v);
412 v = timer(1.0, "timer0", 0);
413 set_int(sbvis_timer, v);
416 program { name: "disable";
417 signal: "elm,state,disabled";
419 action: STATE_SET "disabled" 0.0;
422 program { name: "enable";
423 signal: "elm,state,enabled";
425 action: STATE_SET "default" 0.0;
431 group { name: "elm/scroller/base/handler";
433 alias: "elm/list/base/handler";
434 alias: "elm/genlist/base/handler";
435 alias: "elm/carousel/base/handler";
438 item: "focus_highlight" "on";
441 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
444 v = get_int(sbvis_v);
446 v = get_int(sbalways_v);
448 emit("do-hide-vbar", "");
452 v = get_int(sbvis_h);
454 v = get_int(sbalways_h);
456 emit("do-hide-hbar", "");
460 set_int(sbvis_timer, 0);
465 image: "bt_sm_shine.png" COMP;
466 image: "bt_sm_hilight.png" COMP;
467 image: "sb_runnerh.png" COMP;
468 image: "00_scroll_bar_handler_top.png" COMP;
469 image: "00_scroll_bar_handler_middle.png" COMP;
470 image: "00_scroll_bar_handler_bottom.png" COMP;
471 image: "00_scroll_bar_handler_left.png" COMP;
472 image: "00_scroll_bar_handler_hor.png" COMP;
473 image: "00_scroll_bar_handler_right.png" COMP;
474 image: "sl_bt2_2.png" COMP;
475 image: "shelf_inset.png" COMP;
481 description { state: "default" 0.0;
484 color: 255 255 255 0;
487 part { name: "clipper";
491 description { state: "default" 0.0;
498 part { name: "elm.swallow.content";
502 description { state: "default" 0.0;
509 part { name: "conf_over";
512 description { state: "default" 0.0;
517 normal: "shelf_inset.png";
523 description { state: "enabled" 0.0;
524 inherit: "default" 0.0;
525 color: 200 155 0 255;
528 part { name: "focus_highlight";
531 description { state: "default" 0.0;
535 normal: "sl_bt2_2.png";
542 description { state: "enabled" 0.0;
543 inherit: "default" 0.0;
544 color: 200 155 0 255;
547 part { name: "sb_vbar_clip_master";
551 description { state: "default" 0.0;
553 description { state: "hidden" 0.0;
555 color: 255 255 255 0;
558 part { name: "sb_vbar_clip";
559 clip_to: "sb_vbar_clip_master";
563 description { state: "default" 0.0;
565 description { state: "hidden" 0.0;
567 color: 255 255 255 0;
570 part { name: "sb_vbar";
574 description { state: "default" 0.0;
577 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIN_SIZE_INC;
581 offset: SCROLLER_HANDLER_SCROLLBAR_PADDING_INC SCROLLER_HANDLER_SCROLLBAR_PADDING_INC;
582 to_y: "elm.swallow.content";
583 to_x: "elm.swallow.content";
587 offset: (-SCROLLER_HANDLER_SCROLLBAR_PADDING_INC-1) (-SCROLLER_HANDLER_SCROLLBAR_PADDING_INC-1);
589 to_x: "elm.swallow.content";
593 part { name: "elm.dragable.vbar";
594 clip_to: "sb_vbar_clip";
602 description { state: "default" 0.0;
604 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIN_SIZE_INC;
618 part { name: "scrollbar_handler_image_top";
619 clip_to: "sb_vbar_clip";
622 description { state: "default" 0.0;
624 rel1.relative: 0.0 0.0;
625 rel1.to: "elm.dragable.vbar";
626 rel2.relative: 1.0 0.0;
627 rel2.to: "scrollbar_handler_image_middle";
630 normal: "00_scroll_bar_handler_top.png";
636 part { name: "scrollbar_handler_image_middle";
637 clip_to: "sb_vbar_clip";
640 description { state: "default" 0.0;
642 rel1.relative: 0.5 0.5;
643 rel1.to: "elm.dragable.vbar";
644 rel2.relative: 0.5 0.5;
645 rel2.to: "elm.dragable.vbar";
647 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIDDLE_MIN_SIZE_INC;
649 normal: "00_scroll_bar_handler_middle.png";
655 part { name: "scrollbar_handler_image_bottom";
656 clip_to: "sb_vbar_clip";
659 description { state: "default" 0.0;
661 rel1.relative: 0.0 1.0;
662 rel1.to: "scrollbar_handler_image_middle";
663 rel2.relative: 1.0 1.0;
664 rel2.to: "elm.dragable.vbar";
667 normal: "00_scroll_bar_handler_bottom.png";
673 part { name: "sb_vbar_over1";
674 clip_to: "sb_vbar_clip";
677 description { state: "default" 0.0;
678 rel1.to: "elm.dragable.vbar";
679 rel2.relative: 1.0 0.5;
680 rel2.to: "elm.dragable.vbar";
683 normal: "bt_sm_hilight.png";
689 part { name: "sb_vbar_over2";
690 clip_to: "sb_vbar_clip";
693 description { state: "default" 0.0;
694 rel1.to: "elm.dragable.vbar";
695 rel2.to: "elm.dragable.vbar";
698 normal: "bt_sm_shine.png";
704 part { name: "sb_hbar_clip_master";
708 description { state: "default" 0.0;
710 description { state: "hidden" 0.0;
712 color: 255 255 255 0;
715 part { name: "sb_hbar_clip";
716 clip_to: "sb_hbar_clip_master";
720 description { state: "default" 0.0;
722 description { state: "hidden" 0.0;
724 color: 255 255 255 0;
727 part { name: "sb_hbar";
731 description { state: "default" 0.0;
734 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIN_SIZE_INC;
738 offset: SCROLLER_HANDLER_SCROLLBAR_PADDING_INC SCROLLER_HANDLER_SCROLLBAR_PADDING_INC;
739 to_x: "elm.swallow.content";
740 to_y: "elm.swallow.content";
745 offset: (-SCROLLER_HANDLER_SCROLLBAR_PADDING_INC-1) (-SCROLLER_HANDLER_SCROLLBAR_PADDING_INC-1);
747 to_y: "elm.swallow.content";
751 part { name: "elm.dragable.hbar";
752 clip_to: "sb_hbar_clip";
760 description { state: "default" 0.0;
762 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIN_SIZE_INC;
776 part { name: "h_scrollbar_handler_image_left";
777 clip_to: "sb_hbar_clip";
780 description { state: "default" 0.0;
782 rel1.relative: 0.0 0.0;
783 rel1.to: "elm.dragable.hbar";
784 rel2.relative: 0.0 1.0;
785 rel2.to: "scrollbar_handler_image_hor";
788 normal: "00_scroll_bar_handler_left.png";
794 part { name: "scrollbar_handler_image_hor";
795 clip_to: "sb_hbar_clip";
798 description { state: "default" 0.0;
800 rel1.relative: 0.5 0.5;
801 rel1.to: "elm.dragable.hbar";
802 rel2.relative: 0.5 0.5;
803 rel2.to: "elm.dragable.hbar";
805 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIDDLE_MIN_SIZE_INC;
807 normal: "00_scroll_bar_handler_hor.png";
813 part { name: "h_scrollbar_handler_image_right";
814 clip_to: "sb_hbar_clip";
817 description { state: "default" 0.0;
819 rel1.relative: 1.0 0.0;
820 rel1.to: "scrollbar_handler_image_hor";
821 rel2.relative: 1.0 1.0;
822 rel2.to: "elm.dragable.hbar";
825 normal: "00_scroll_bar_handler_right.png";
831 part { name: "sb_hbar_over1";
832 clip_to: "sb_hbar_clip";
835 description { state: "default" 0.0;
836 rel1.to: "elm.dragable.hbar";
837 rel2.relative: 1.0 0.5;
838 rel2.to: "elm.dragable.hbar";
841 normal: "bt_sm_hilight.png";
847 part { name: "sb_hbar_over2";
848 clip_to: "sb_hbar_clip";
851 description { state: "default" 0.0;
852 rel1.to: "elm.dragable.hbar";
853 rel2.to: "elm.dragable.hbar";
856 normal: "bt_sm_shine.png";
862 part { name: "disabler";
865 description { state: "default" 0.0;
871 description { state: "disabled" 0.0;
872 inherit: "default" 0.0;
874 color: 128 128 128 128;
879 program { name: "load";
883 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
884 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
887 set_int(sbalways_v, 0);
888 set_int(sbalways_h, 0);
889 set_int(sbvis_timer, 0);
892 program { name: "vbar_show";
893 signal: "elm,action,show,vbar";
895 action: STATE_SET "default" 0.0;
896 target: "sb_vbar_clip_master";
898 program { name: "vbar_hide";
899 signal: "elm,action,hide,vbar";
901 action: STATE_SET "hidden" 0.0;
902 target: "sb_vbar_clip_master";
904 program { name: "vbar_show_always";
905 signal: "elm,action,show_always,vbar";
909 v = get_int(sbvis_v);
910 v |= get_int(sbalways_v);
912 set_int(sbalways_v, 1);
913 emit("do-show-vbar", "");
918 program { name: "vbar_show_notalways";
919 signal: "elm,action,show_notalways,vbar";
923 v = get_int(sbalways_v);
925 set_int(sbalways_v, 0);
926 v = get_int(sbvis_v);
928 emit("do-hide-vbar", "");
934 program { name: "sb_vbar_show";
935 signal: "do-show-vbar";
937 action: STATE_SET "default" 0.0;
938 transition: LINEAR 0.5;
939 target: "sb_vbar_clip";
941 program { name: "sb_vbar_hide";
942 signal: "do-hide-vbar";
944 action: STATE_SET "hidden" 0.0;
945 transition: LINEAR 0.5;
946 target: "sb_vbar_clip";
948 program { name: "hbar_show";
949 signal: "elm,action,show,hbar";
951 action: STATE_SET "default" 0.0;
952 target: "sb_hbar_clip_master";
954 program { name: "hbar_hide";
955 signal: "elm,action,hide,hbar";
957 action: STATE_SET "hidden" 0.0;
958 target: "sb_hbar_clip_master";
960 program { name: "hbar_show_always";
961 signal: "elm,action,show_always,hbar";
965 v = get_int(sbvis_h);
966 v |= get_int(sbalways_h);
968 set_int(sbalways_h, 1);
969 emit("do-show-hbar", "");
974 program { name: "hbar_show_notalways";
975 signal: "elm,action,show_notalways,hbar";
979 v = get_int(sbalways_h);
981 set_int(sbalways_h, 0);
982 v = get_int(sbvis_h);
984 emit("do-hide-hbar", "");
990 program { name: "sb_hbar_show";
991 signal: "do-show-hbar";
993 action: STATE_SET "default" 0.0;
994 transition: LINEAR 0.5;
995 target: "sb_hbar_clip";
997 program { name: "sb_hbar_hide";
998 signal: "do-hide-hbar";
1000 action: STATE_SET "hidden" 0.0;
1001 transition: LINEAR 0.5;
1002 target: "sb_hbar_clip";
1005 program { name: "scroll";
1006 signal: "elm,action,scroll";
1010 v = get_int(sbvis_v);
1011 v |= get_int(sbalways_v);
1013 emit("do-show-vbar", "");
1014 set_int(sbvis_v, 1);
1016 v = get_int(sbvis_h);
1017 v |= get_int(sbalways_h);
1019 emit("do-show-hbar", "");
1020 set_int(sbvis_h, 1);
1022 v = get_int(sbvis_timer);
1023 if (v > 0) cancel_timer(v);
1024 v = timer(1.0, "timer0", 0);
1025 set_int(sbvis_timer, v);
1029 program { name: "highlight_show";
1030 signal: "elm,action,focus_highlight,show";
1032 action: STATE_SET "enabled" 0.0;
1033 transition: ACCELERATE 0.3;
1034 target: "focus_highlight";
1035 target: "conf_over";
1037 program { name: "highlight_hide";
1038 signal: "elm,action,focus_highlight,hide";
1040 action: STATE_SET "default" 0.0;
1041 transition: DECELERATE 0.3;
1042 target: "focus_highlight";
1043 target: "conf_over";
1045 program { name: "disable";
1046 signal: "elm,state,disabled";
1048 action: STATE_SET "disabled" 0.0;
1051 program { name: "enable";
1052 signal: "elm,state,enabled";
1054 action: STATE_SET "default" 0.0;