4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, IlKook Yun <ilkook.yun@samsung.com>, CinWoo Kim <cinoo.kim@samsung.com> JiYeon Park <jy0703.park@samsung.com>
8 * This library is free software; you can redistribute it and/or modify it under
9 * the terms of the GNU Lesser General Public License as published by the
10 * Free Software Foundation; either version 2.1 of the License, or (at your option)
13 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
14 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 * License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this library; if not, write to the Free Software Foundation, Inc., 51
20 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 group { name: "elm/slider/horizontal/default";
25 alias: "elm/slider/horizontal/disabled";
27 image: "00_winset_list_progress_bg.png" COMP;
28 image: "00_winset_list_progress_bar.png" COMP;
29 image: "00_slider_bar_press.png" COMP;
33 public set_invert_on() {
34 set_state(PART:"level", "inverted", 0.0);
35 set_state(PART:"level2", "inverted", 0.0);
36 set_int(invert_on, 1);
38 public set_invert_off() {
39 set_state(PART:"level", "default", 0.0);
40 set_state(PART:"level2", "default", 0.0);
41 set_int(invert_on, 0);
44 if(get_int(invert_on) == 0)
45 set_state(PART:"level", "pressed", 0.0);
46 else if(get_int(invert_on) == 1)
47 set_state(PART:"level2", "pressed", 0.0);
50 if(get_int(invert_on) == 0)
51 set_state(PART:"level", "default", 0.0);
52 else if(get_int(invert_on) == 1)
53 set_state(PART:"level2", "inverted", 0.0);
60 description { state: "default" 0.0;
61 min: SLIDER_BASE_MIN_WIDTH_INC SLIDER_BASE_HEIGHT_INC;
62 max: 99999 SLIDER_BASE_HEIGHT_INC;
69 image.normal: "00_winset_list_progress_bg.png";
70 image.border: 0 0 4 4;
71 image.border_scale: 1;
77 description { state: "default" 0.0;
82 to_x: "elm.dragable.slider";
86 image.normal: "00_winset_list_progress_bar.png";
87 image.border: 0 0 4 4;
88 image.border_scale: 1;
90 description { state: "inverted" 0.0;
91 inherit: "default" 0.0;
94 description { state: "pressed" 0.0;
95 inherit: "default" 0.0;
96 image.normal: "00_winset_list_progress_bar.png";
99 part { name: "level2";
102 description { state: "default" 0.0;
107 to_x: "elm.dragable.slider";
112 image.normal: "00_winset_list_progress_bg.png";
113 image.border: 0 0 4 4;
114 image.border_scale: 1;
116 description { state: "inverted" 0.0;
117 inherit: "default" 0.0;
120 description { state: "pressed" 0.0;
121 inherit: "default" 0.0;
123 image.normal: "00_winset_list_progress_bg.png";
130 description { state: "default" 0.0;
132 rel1.to: "elm.swallow.bar";
133 rel2.to: "elm.swallow.bar";
138 part { name: "elm.swallow.bar";
141 description { state: "default" 0.0;
142 min: SLIDER_SWALLOW_BAR_MIN_WIDTH_INC SLIDER_SWALLOW_BAR_HEIGHT_INC;
143 max: 99999 SLIDER_SWALLOW_BAR_HEIGHT_INC;
146 to_x: "bar_left_padding";
150 to_x: "bar_right_padding";
156 name: "bar_left_padding";
160 state: "default" 0.0;
176 name: "bar_right_padding";
180 state: "default" 0.0;
195 part { name: "elm.swallow.icon";
198 description { state: "default" 0.0;
202 to_y: "elm.swallow.bar";
206 to_y: "elm.swallow.bar";
209 description { state: "visible" 0.0;
210 inherit: "default" 0.0;
213 aspect_preference: VERTICAL;
216 part { name: "elm.text";
220 description { state: "default" 0.0;
224 rel1.to_x: "elm.swallow.icon";
225 rel1.relative: 1.0 0.0;
227 rel2.to_x: "elm.swallow.icon";
228 rel2.relative: 1.0 1.0;
230 color: SLIDER_UNITS_TEXT_COLOR_INC;
232 font: "SLP:style=Medium";
233 size: SLIDER_UNITS_TEXT_SIZE_INC;
238 description { state: "visible" 0.0;
239 inherit: "default" 0.0;
246 part { name: "elm.swallow.end";
249 description { state: "default" 0.0;
254 to_y: "elm.swallow.bar";
258 to_y: "elm.swallow.bar";
261 description { state: "visible" 0.0;
262 inherit: "default" 0.0;
265 aspect_preference: VERTICAL;
268 part { name: "units";
271 description { state: "default" 0.0;
278 // normal: "sl_units.png";
283 description { state: "visible" 0.0;
284 inherit: "default" 0.0;
288 part { name: "elm.units";
292 description { state: "default" 0.0;
296 rel1.relative: 0.0 0.0;
298 rel1.to_x: "elm.swallow.end";
299 rel2.relative: 0.0 1.0;
301 rel2.to_x: "elm.swallow.end";
302 color: SLIDER_UNITS_TEXT_COLOR_INC;
304 font: "SLP:style=Bold";
305 size: SLIDER_UNITS_TEXT_SIZE_INC;
310 description { state: "visible" 0.0;
311 inherit: "default" 0.0;
319 part { name: "elm.dragable.slider";
321 source: "elm/slider/horizontal/indicator/default";
329 description { state: "default" 0.0;
330 min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
343 part { name: "disabler";
348 description { state: "default" 0.0;
352 color: SLIDER_DISABLER_PART_COLOR_INC;
354 description { state: "disabled" 0.0;
355 inherit: "default" 0.0;
361 program { name: "text_show";
362 signal: "elm,state,text,visible";
364 action: STATE_SET "visible" 0.0;
367 program { name: "text_hide";
368 signal: "elm,state,text,hidden";
370 action: STATE_SET "default" 0.0;
373 program { name: "icon_show";
374 signal: "elm,state,icon,visible";
376 action: STATE_SET "visible" 0.0;
377 target: "elm.swallow.icon";
379 program { name: "icon_hide";
380 signal: "elm,state,icon,hidden";
382 action: STATE_SET "default" 0.0;
383 target: "elm.swallow.icon";
385 program { name: "end_show";
386 signal: "elm,state,end,visible";
388 action: STATE_SET "visible" 0.0;
389 target: "elm.swallow.end";
391 program { name: "end_hide";
392 signal: "elm,state,end,hidden";
394 action: STATE_SET "default" 0.0;
395 target: "elm.swallow.end";
397 program { name: "units_show";
398 signal: "elm,state,units,visible";
400 action: STATE_SET "visible" 0.0;
404 program { name: "units_hide";
405 signal: "elm,state,units,hidden";
407 action: STATE_SET "default" 0.0;
411 program { name: "invert_on";
412 signal: "elm,state,inverted,on";
418 program { name: "invert_off";
419 signal: "elm,state,inverted,off";
425 program { name: "val_show";
426 signal: "mouse,down,*";
427 source: "elm.dragable.slider";
432 program { name: "val_hide";
433 signal: "mouse,up,*";
434 source: "elm.dragable.slider";
439 program { name: "slider_disable";
440 signal: "elm,state,disabled";
442 action: STATE_SET "disabled" 0.0;
445 program { name: "slider_enable";
446 signal: "elm,state,enabled";
448 action: STATE_SET "default" 0.0;
454 group { name: "elm/slider/horizontal/indicator/default";
455 alias: "elm/slider/horizontal/indicator/disabled";
456 alias: "elm/slider/vertical/indicator/default";
457 alias: "elm/slider/vertical/indicator/disabled";
459 image: "00_slider_handle.png" COMP;
460 image: "00_slider_handle_dim.png" COMP;
463 part { name: "button_events";
466 description { state: "default" 0.0;
468 min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
470 aspect_preference: VERTICAL;
474 part { name: "button0";
477 description { state: "default" 0.0;
479 min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
480 max: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
482 normal: "00_slider_handle.png";
487 description { state: "disabled" 0.0;
488 inherit: "default" 0.0;
490 normal: "00_slider_handle_dim.png";
494 part { name: "elm.indicator";
498 description { state: "default" 0.0;
512 color: SLIDER_INDICATOR_TEXT_COLOR_INC;
514 font: "SLP:style=Medium";
515 size: SLIDER_INDICATOR_TEXT_SIZE_INC;
520 description { state: "hide" 0.0;
521 inherit: "default" 0.0;
527 program { name: "set_val_show";
528 signal: "elm,state,val,show";
530 action: STATE_SET "default" 0.0;
531 target: "elm.indicator";
533 program { name: "set_val_hide";
534 signal: "elm,state,val,hide";
536 action: STATE_SET "hide" 0.0;
537 target: "elm.indicator";
539 program { name: "slider_disable";
540 signal: "elm,state,disabled";
542 action: STATE_SET "disabled" 0.0;
545 program { name: "slider_enable";
546 signal: "elm,state,enabled";
548 action: STATE_SET "default" 0.0;
555 group { name: "elm/slider/horizontal/volume";
557 image: "00_volume_bg.png" COMP;
558 image: "00_volume_01.png" COMP;
559 image: "00_volume_02.png" COMP;
560 image: "00_volume_03.png" COMP;
561 image: "00_volume_04.png" COMP;
562 image: "00_volume_05.png" COMP;
563 image: "00_volume_06.png" COMP;
564 image: "00_volume_07.png" COMP;
565 image: "00_volume_08.png" COMP;
566 image: "00_volume_09.png" COMP;
567 image: "00_volume_10.png" COMP;
568 image: "00_volume_11.png" COMP;
569 image: "00_volume_12.png" COMP;
570 image: "00_volume_13.png" COMP;
571 image: "00_volume_14.png" COMP;
574 public volume_state_change(){
575 new Float:x, Float:y;
576 get_drag(PART:"elm.dragable.slider", x, y);
578 set_state(PART:"base", "default", 0.0);
580 set_state(PART:"base", "volume_01", 0.0);
581 else if(x < 0.1666666)
582 set_state(PART:"base", "volume_02", 0.0);
583 else if(x < 0.2333333)
584 set_state(PART:"base", "volume_03", 0.0);
586 set_state(PART:"base", "volume_04", 0.0);
587 else if(x < 0.3666666)
588 set_state(PART:"base", "volume_05", 0.0);
589 else if(x < 0.4333333)
590 set_state(PART:"base", "volume_06", 0.0);
592 set_state(PART:"base", "volume_07", 0.0);
593 else if(x < 0.5666666)
594 set_state(PART:"base", "volume_08", 0.0);
595 else if(x < 0.6333333)
596 set_state(PART:"base", "volume_09", 0.0);
598 set_state(PART:"base", "volume_10", 0.0);
599 else if(x < 0.7666666)
600 set_state(PART:"base", "volume_11", 0.0);
601 else if(x < 0.8333333)
602 set_state(PART:"base", "volume_12", 0.0);
604 set_state(PART:"base", "volume_13", 0.0);
606 set_state(PART:"base", "volume_14", 0.0);
613 description { state: "default" 0.0;
622 image.normal: "00_volume_bg.png";
624 #define SLIDER_BG_PART(part_number)\
626 state: "volume_"part_number 0.0; \
627 inherit: "default" 0.0; \
628 image.normal: "00_volume_"part_number".png"; \
649 description { state: "default" 0.0;
651 rel1.to: "elm.swallow.bar";
652 rel2.to: "elm.swallow.bar";
656 part { name: "elm.swallow.bar";
659 description { state: "default" 0.0;
664 to_x: "bar_left_padding";
668 to_x: "bar_right_padding";
674 name: "bar_left_padding";
678 state: "default" 0.0;
694 name: "bar_right_padding";
698 state: "default" 0.0;
713 part { name: "elm.swallow.icon";
716 description { state: "default" 0.0;
720 to_y: "elm.swallow.bar";
724 to_y: "elm.swallow.bar";
727 description { state: "visible" 0.0;
728 inherit: "default" 0.0;
731 aspect_preference: VERTICAL;
734 part { name: "elm.text";
738 description { state: "default" 0.0;
742 rel1.to_x: "elm.swallow.icon";
743 rel1.relative: 1.0 0.0;
745 rel2.to_x: "elm.swallow.icon";
746 rel2.relative: 1.0 1.0;
748 color: 164 160 149 255;
750 font: "SLP:style=Bold";
756 description { state: "visible" 0.0;
757 inherit: "default" 0.0;
764 part { name: "elm.swallow.end";
767 description { state: "default" 0.0;
772 to_y: "elm.swallow.bar";
776 to_y: "elm.swallow.bar";
779 description { state: "visible" 0.0;
780 inherit: "default" 0.0;
783 aspect_preference: VERTICAL;
786 part { name: "units";
789 description { state: "default" 0.0;
796 // normal: "sl_units.png";
801 description { state: "visible" 0.0;
802 inherit: "default" 0.0;
806 part { name: "elm.units";
810 description { state: "default" 0.0;
814 rel1.relative: 0.0 0.0;
816 rel1.to_x: "elm.swallow.end";
817 rel2.relative: 0.0 1.0;
819 rel2.to_x: "elm.swallow.end";
820 color: 164 160 149 255;
822 font: "SLP:style=Bold";
828 description { state: "visible" 0.0;
829 inherit: "default" 0.0;
837 part { name: "elm.dragable.slider";
846 description { state: "default" 0.0;
862 program { name: "text_show";
863 signal: "elm,state,text,visible";
865 action: STATE_SET "visible" 0.0;
868 program { name: "text_hide";
869 signal: "elm,state,text,hidden";
871 action: STATE_SET "default" 0.0;
874 program { name: "icon_show";
875 signal: "elm,state,icon,visible";
877 action: STATE_SET "visible" 0.0;
878 target: "elm.swallow.icon";
880 program { name: "icon_hide";
881 signal: "elm,state,icon,hidden";
883 action: STATE_SET "default" 0.0;
884 target: "elm.swallow.icon";
886 program { name: "end_show";
887 signal: "elm,state,end,visible";
889 action: STATE_SET "visible" 0.0;
890 target: "elm.swallow.end";
892 program { name: "end_hide";
893 signal: "elm,state,end,hidden";
895 action: STATE_SET "default" 0.0;
896 target: "elm.swallow.end";
898 program { name: "units_show";
899 signal: "elm,state,units,visible";
901 action: STATE_SET "visible" 0.0;
905 program { name: "units_hide";
906 signal: "elm,state,units,hidden";
908 action: STATE_SET "default" 0.0;
912 program { name: "volume_state_change";
913 signal: "elm,state,drag";
916 volume_state_change()
922 group { name: "elm/slider/vertical/volume";
924 image: "00_volume_00_ver.png" COMP;
925 image: "00_volume_01_ver.png" COMP;
926 image: "00_volume_02_ver.png" COMP;
927 image: "00_volume_03_ver.png" COMP;
928 image: "00_volume_04_ver.png" COMP;
929 image: "00_volume_05_ver.png" COMP;
930 image: "00_volume_06_ver.png" COMP;
931 image: "00_volume_07_ver.png" COMP;
932 image: "00_volume_08_ver.png" COMP;
933 image: "00_volume_09_ver.png" COMP;
934 image: "00_volume_10_ver.png" COMP;
935 image: "00_volume_11_ver.png" COMP;
936 image: "00_volume_12_ver.png" COMP;
937 image: "00_volume_13_ver.png" COMP;
938 image: "00_volume_14_ver.png" COMP;
941 public volume_state_change(){
942 new Float:x, Float:y;
943 get_drag(PART:"elm.dragable.slider", x, y);
945 set_state(PART:"base", "volume_14", 0.0);
946 else if(y <= 0.1666666)
947 set_state(PART:"base", "volume_13", 0.0);
948 else if(y <= 0.2333333)
949 set_state(PART:"base", "volume_12", 0.0);
951 set_state(PART:"base", "volume_11", 0.0);
952 else if(y <= 0.3666666)
953 set_state(PART:"base", "volume_10", 0.0);
954 else if(y <= 0.4333333)
955 set_state(PART:"base", "volume_09", 0.0);
957 set_state(PART:"base", "volume_08", 0.0);
958 else if(y <= 0.5666666)
959 set_state(PART:"base", "volume_07", 0.0);
960 else if(y <= 0.6333333)
961 set_state(PART:"base", "volume_06", 0.0);
963 set_state(PART:"base", "volume_05", 0.0);
964 else if(y <= 0.7666666)
965 set_state(PART:"base", "volume_04", 0.0);
966 else if(y <= 0.8333333)
967 set_state(PART:"base", "volume_03", 0.0);
969 set_state(PART:"base", "volume_02", 0.0);
970 else if(y <= 0.9666666)
971 set_state(PART:"base", "volume_01", 0.0);
973 set_state(PART:"base", "default", 0.0);
979 description { state: "default" 0.0;
989 image.normal: "00_volume_00_ver.png";
991 #define SLIDER_VER_BG_PART(part_number)\
993 state: "volume_"part_number 0.0; \
994 inherit: "default" 0.0; \
995 image.normal: "00_volume_"part_number"_ver.png"; \
997 SLIDER_VER_BG_PART(01)
998 SLIDER_VER_BG_PART(02)
999 SLIDER_VER_BG_PART(03)
1000 SLIDER_VER_BG_PART(04)
1001 SLIDER_VER_BG_PART(05)
1002 SLIDER_VER_BG_PART(06)
1003 SLIDER_VER_BG_PART(07)
1004 SLIDER_VER_BG_PART(08)
1005 SLIDER_VER_BG_PART(09)
1006 SLIDER_VER_BG_PART(10)
1007 SLIDER_VER_BG_PART(11)
1008 SLIDER_VER_BG_PART(12)
1009 SLIDER_VER_BG_PART(13)
1010 SLIDER_VER_BG_PART(14)
1016 description { state: "default" 0.0;
1018 rel1.to: "elm.swallow.bar";
1019 rel2.to: "elm.swallow.bar";
1023 part { name: "elm.swallow.bar";
1026 description { state: "default" 0.0;
1031 to_y: "bar_top_padding";
1035 to_y: "bar_bottom_padding";
1041 name: "bar_top_padding";
1045 state: "default" 0.0;
1061 name: "bar_bottom_padding";
1064 state: "default" 0.0;
1079 part { name: "elm.swallow.icon";
1082 description { state: "default" 0.0;
1086 to_x: "elm.swallow.bar";
1090 to_x: "elm.swallow.bar";
1093 description { state: "visible" 0.0;
1094 inherit: "default" 0.0;
1097 aspect_preference: HORIZONTAL;
1100 part { name: "elm.text";
1104 description { state: "default" 0.0;
1108 rel1.to_y: "elm.swallow.icon";
1109 rel1.relative: 0.0 1.0;
1110 rel2.to_y: "elm.swallow.icon";
1111 rel2.relative: 1.0 1.0;
1112 color: 164 160 149 255;
1114 font: "SLP:style=Bold";
1120 description { state: "visible" 0.0;
1121 inherit: "default" 0.0;
1126 part { name: "elm.swallow.end";
1129 description { state: "default" 0.0;
1134 to_x: "elm.swallow.bar";
1138 to_x: "elm.swallow.bar";
1141 description { state: "visible" 0.0;
1142 inherit: "default" 0.0;
1145 aspect_preference: HORIZONTAL;
1148 part { name: "units";
1151 description { state: "default" 0.0;
1157 description { state: "visible" 0.0;
1158 inherit: "default" 0.0;
1162 part { name: "elm.units";
1166 description { state: "default" 0.0;
1170 rel1.relative: 0.0 0.0;
1171 rel1.to_y: "elm.swallow.end";
1172 rel2.relative: 1.0 0.0;
1173 rel2.to_y: "elm.swallow.end";
1174 color: 164 160 149 255;
1176 font: "SLP:style=Bold";
1182 description { state: "visible" 0.0;
1183 inherit: "default" 0.0;
1191 part { name: "elm.dragable.slider";
1200 description { state: "default" 0.0;
1216 program { name: "text_show";
1217 signal: "elm,state,text,visible";
1219 action: STATE_SET "visible" 0.0;
1222 program { name: "text_hide";
1223 signal: "elm,state,text,hidden";
1225 action: STATE_SET "default" 0.0;
1228 program { name: "icon_show";
1229 signal: "elm,state,icon,visible";
1231 action: STATE_SET "visible" 0.0;
1232 target: "elm.swallow.icon";
1234 program { name: "icon_hide";
1235 signal: "elm,state,icon,hidden";
1237 action: STATE_SET "default" 0.0;
1238 target: "elm.swallow.icon";
1240 program { name: "end_show";
1241 signal: "elm,state,end,visible";
1243 action: STATE_SET "visible" 0.0;
1244 target: "elm.swallow.end";
1246 program { name: "end_hide";
1247 signal: "elm,state,end,hidden";
1249 action: STATE_SET "default" 0.0;
1250 target: "elm.swallow.end";
1252 program { name: "units_show";
1253 signal: "elm,state,units,visible";
1255 action: STATE_SET "visible" 0.0;
1256 target: "elm.units";
1259 program { name: "units_hide";
1260 signal: "elm,state,units,hidden";
1262 action: STATE_SET "default" 0.0;
1263 target: "elm.units";
1266 program { name: "volume_state_change";
1267 signal: "elm,state,drag";
1270 volume_state_change()
1276 group { name: "elm/slider/horizontal/ebook";
1278 image: "00_winset_list_progress_bg.png" COMP;
1279 image: "00_winset_list_progress_bar.png" COMP;
1280 image: "00_winset_list_progress_bar_pressed.png" COMP;
1281 image: "00_ebook_slider_handle.png" COMP;
1282 image: "00_ebook_slider_handle_press.png" COMP;
1285 public value_hide = 0;
1286 public invert_on = 0;
1287 public set_value_show() {
1288 set_int(value_hide, 0);
1289 set_state(PART:"elm.indicator", "default", 0.0);
1291 public set_value_hide() {
1292 set_int(value_hide, 1);
1293 set_state(PART:"elm.indicator", "hide", 0.0);
1295 public set_invert_on() {
1296 set_state(PART:"level", "inverted", 0.0);
1297 set_state(PART:"level2", "inverted", 0.0);
1298 set_int(invert_on, 1);
1300 public set_invert_off() {
1301 set_state(PART:"level", "default", 0.0);
1302 set_state(PART:"level2", "default", 0.0);
1303 set_int(invert_on, 0);
1305 public thumb_down() {
1306 if(get_int(value_hide) == 1) {
1307 set_state(PART:"elm.indicator", "hide", 0.0);
1308 set_state(PART:"button0", "visible", 0.0);
1310 set_state(PART:"elm.indicator", "visible", 0.0);
1311 set_state(PART:"button0", "visible", 0.0);
1313 if(get_int(invert_on) == 0)
1314 set_state(PART:"level", "pressed", 0.0);
1315 else if(get_int(invert_on) == 1)
1316 set_state(PART:"level2", "pressed", 0.0);
1319 if(get_int(value_hide) == 1)
1320 set_state(PART:"elm.indicator", "hide", 0.0);
1322 set_state(PART:"elm.indicator", "default", 0.0);
1323 if(get_int(invert_on) == 0)
1324 set_state(PART:"level", "default", 0.0);
1325 else if(get_int(invert_on) == 1)
1326 set_state(PART:"level2", "inverted", 0.0);
1327 set_state(PART:"button0", "default", 0.0);
1331 part { name: "base";
1334 description { state: "default" 0.0;
1335 max: 99999 SLIDER_EBOOK_HEIGHT_INC;
1336 min: 0 SLIDER_EBOOK_HEIGHT_INC;
1343 image.normal: "00_winset_list_progress_bg.png";
1344 image.border: 0 0 4 4;
1345 image.border_scale: 1;
1348 part { name: "level";
1351 description { state: "default" 0.0;
1356 to_x: "elm.dragable.slider";
1360 image.normal: "00_winset_list_progress_bar.png";
1361 image.border: 0 0 4 4;
1362 image.border_scale: 1;
1364 description { state: "inverted" 0.0;
1365 inherit: "default" 0.0;
1368 description { state: "pressed" 0.0;
1369 inherit: "default" 0.0;
1370 image.normal: "00_winset_list_progress_bar_pressed.png";
1371 image.border: 0 0 4 4;
1372 image.border_scale: 1;
1375 part { name: "level2";
1378 description { state: "default" 0.0;
1383 to_x: "elm.dragable.slider";
1388 image.normal: "00_winset_list_progress_bar.png";
1389 image.border: 0 0 4 4;
1390 image.border_scale: 1;
1392 description { state: "inverted" 0.0;
1393 inherit: "default" 0.0;
1396 description { state: "pressed" 0.0;
1397 inherit: "default" 0.0;
1399 image.normal: "00_winset_list_progress_bar_pressed.png";
1400 image.border: 0 0 4 4;
1401 image.border_scale: 1;
1408 description { state: "default" 0.0;
1410 rel1.to: "elm.swallow.bar";
1411 rel2.to: "elm.swallow.bar";
1416 part { name: "elm.swallow.bar";
1419 description { state: "default" 0.0;
1424 to_x: "bar_left_padding";
1429 to_x: "bar_right_padding";
1436 name: "bar_left_padding";
1440 state: "default" 0.0;
1456 name: "bar_right_padding";
1460 state: "default" 0.0;
1475 part { name: "elm.swallow.icon";
1478 description { state: "default" 0.0;
1482 to_y: "elm.swallow.bar";
1486 to_y: "elm.swallow.bar";
1489 description { state: "visible" 0.0;
1490 inherit: "default" 0.0;
1493 aspect_preference: VERTICAL;
1496 part { name: "elm.text";
1500 description { state: "default" 0.0;
1504 rel1.to_x: "elm.swallow.icon";
1505 rel1.relative: 1.0 0.0;
1507 rel2.to_x: "elm.swallow.icon";
1508 rel2.relative: 1.0 1.0;
1510 color: SLIDER_EBOOK_UNITS_TEXT_COLOR_INC;
1512 font: "SLP:style=Bold";
1513 size: SLIDER_EBOOK_UNITS_TEXT_SIZE_INC;
1518 description { state: "visible" 0.0;
1519 inherit: "default" 0.0;
1526 part { name: "elm.swallow.end";
1529 description { state: "default" 0.0;
1534 to_y: "elm.swallow.bar";
1538 to_y: "elm.swallow.bar";
1541 description { state: "visible" 0.0;
1542 inherit: "default" 0.0;
1545 aspect_preference: VERTICAL;
1548 part { name: "units";
1551 description { state: "default" 0.0;
1558 // normal: "sl_units.png";
1563 description { state: "visible" 0.0;
1564 inherit: "default" 0.0;
1568 part { name: "elm.units";
1572 description { state: "default" 0.0;
1576 rel1.relative: 0.0 0.0;
1578 rel1.to_x: "elm.swallow.end";
1579 rel2.relative: 0.0 1.0;
1581 rel2.to_x: "elm.swallow.end";
1582 color: SLIDER_EBOOK_UNITS_TEXT_COLOR_INC;
1584 font: "SLP:style=Bold";
1585 size: SLIDER_EBOOK_UNITS_TEXT_SIZE_INC;
1590 description { state: "visible" 0.0;
1591 inherit: "default" 0.0;
1599 part { name: "elm.dragable.slider";
1608 description { state: "default" 0.0;
1609 min: SLIDER_EBOOK_INDICATOR_WIDTH_INC SLIDER_EBOOK_INDICATOR_HEIGHT_INC;
1622 part { name: "button0";
1625 description { state: "default" 0.0;
1627 min: SLIDER_EBOOK_INDICATOR_WIDTH_INC SLIDER_EBOOK_INDICATOR_HEIGHT_INC;
1628 max: SLIDER_EBOOK_INDICATOR_WIDTH_INC SLIDER_EBOOK_INDICATOR_HEIGHT_INC;
1629 rel1.to: "elm.dragable.slider";
1630 rel2.to: "elm.dragable.slider";
1632 normal: "00_ebook_slider_handle.png";
1633 border: 12 12 12 12;
1637 description { state: "visible" 0.0;
1638 inherit: "default" 0.0;
1640 normal: "00_ebook_slider_handle_press.png";
1644 part { name: "popup";
1647 description { state: "default" 0.0;
1659 // normal: "00_slider_popup_bg.png";
1660 border: 13 21 10 22;
1665 description { state: "visible" 0.0;
1666 inherit: "default" 0.0;
1670 part { name: "elm.indicator";
1673 // effect: SOFT_SHADOW;
1675 description { state: "default" 0.0;
1689 color: SLIDER_EBOOK_INDICATOR_TEXT_COLOR_INC;
1692 font: "SLP:style=Bold";
1693 size: SLIDER_EBOOK_INDICATOR_DEFAULT_TEXT_SIZE_INC;
1698 description { state: "visible" 0.0;
1699 inherit: "default" 0.0;
1701 color: SLIDER_EBOOK_INDICATOR_TEXT_COLOR_INC;
1702 text.size: SLIDER_EBOOK_INDICATOR_DRAG_TEXT_SIZE_INC;
1709 description { state: "hide" 0.0;
1710 inherit: "default" 0.0;
1716 program { name: "text_show";
1717 signal: "elm,state,text,visible";
1719 action: STATE_SET "visible" 0.0;
1722 program { name: "text_hide";
1723 signal: "elm,state,text,hidden";
1725 action: STATE_SET "default" 0.0;
1728 program { name: "icon_show";
1729 signal: "elm,state,icon,visible";
1731 action: STATE_SET "visible" 0.0;
1732 target: "elm.swallow.icon";
1734 program { name: "icon_hide";
1735 signal: "elm,state,icon,hidden";
1737 action: STATE_SET "default" 0.0;
1738 target: "elm.swallow.icon";
1740 program { name: "end_show";
1741 signal: "elm,state,end,visible";
1743 action: STATE_SET "visible" 0.0;
1744 target: "elm.swallow.end";
1746 program { name: "end_hide";
1747 signal: "elm,state,end,hidden";
1749 action: STATE_SET "default" 0.0;
1750 target: "elm.swallow.end";
1752 program { name: "units_show";
1753 signal: "elm,state,units,visible";
1755 action: STATE_SET "visible" 0.0;
1756 target: "elm.units";
1759 program { name: "units_hide";
1760 signal: "elm,state,units,hidden";
1762 action: STATE_SET "default" 0.0;
1763 target: "elm.units";
1766 program { name: "invert_on";
1767 signal: "elm,state,inverted,on";
1773 program { name: "invert_off";
1774 signal: "elm,state,inverted,off";
1780 program { name: "set_val_show";
1781 signal: "elm,state,val,show";
1787 program { name: "set_val_hide";
1788 signal: "elm,state,val,hide";
1794 program { name: "val_show";
1795 signal: "mouse,down,*";
1796 source: "elm.dragable.slider";
1801 program { name: "val_hide";
1802 signal: "mouse,up,*";
1803 source: "elm.dragable.slider";
1811 group { name: "elm/slider/vertical/volume7";
1813 image: "00_volume7_00_ver.png" COMP;
1814 image: "00_volume7_01_ver.png" COMP;
1815 image: "00_volume7_02_ver.png" COMP;
1816 image: "00_volume7_03_ver.png" COMP;
1817 image: "00_volume7_04_ver.png" COMP;
1818 image: "00_volume7_05_ver.png" COMP;
1819 image: "00_volume7_06_ver.png" COMP;
1820 image: "00_volume7_07_ver.png" COMP;
1823 public volume_state_change(){
1824 new Float:x, Float:y;
1825 get_drag(PART:"elm.dragable.slider", x, y);
1827 set_state(PART:"base", "volume_07", 0.0);
1828 else if(y <= 0.3125)
1829 set_state(PART:"base", "volume_06", 0.0);
1830 else if(y <= 0.4375)
1831 set_state(PART:"base", "volume_05", 0.0);
1832 else if(y <= 0.5625)
1833 set_state(PART:"base", "volume_04", 0.0);
1834 else if(y <= 0.6875)
1835 set_state(PART:"base", "volume_03", 0.0);
1836 else if(y <= 0.8125)
1837 set_state(PART:"base", "volume_02", 0.0);
1838 else if(y <= 0.9375)
1839 set_state(PART:"base", "volume_01", 0.0);
1841 set_state(PART:"base", "default", 0.0);
1845 part { name: "base";
1847 description { state: "default" 0.0;
1857 image.normal: "00_volume7_00_ver.png";
1859 #define SLIDER7_VER_BG_PART(part_number)\
1861 state: "volume_"part_number 0.0; \
1862 inherit: "default" 0.0; \
1863 image.normal: "00_volume7_"part_number"_ver.png"; \
1865 SLIDER7_VER_BG_PART(01)
1866 SLIDER7_VER_BG_PART(02)
1867 SLIDER7_VER_BG_PART(03)
1868 SLIDER7_VER_BG_PART(04)
1869 SLIDER7_VER_BG_PART(05)
1870 SLIDER7_VER_BG_PART(06)
1871 SLIDER7_VER_BG_PART(07)
1877 description { state: "default" 0.0;
1879 rel1.to: "elm.swallow.bar";
1880 rel2.to: "elm.swallow.bar";
1884 part { name: "elm.swallow.bar";
1887 description { state: "default" 0.0;
1894 name: "bar_top_padding";
1898 state: "default" 0.0;
1914 name: "bar_bottom_padding";
1917 state: "default" 0.0;
1932 part { name: "elm.swallow.icon";
1935 description { state: "default" 0.0;
1939 to_x: "elm.swallow.bar";
1943 to_x: "elm.swallow.bar";
1946 description { state: "visible" 0.0;
1947 inherit: "default" 0.0;
1950 aspect_preference: HORIZONTAL;
1953 part { name: "elm.text";
1957 description { state: "default" 0.0;
1961 rel1.to_y: "elm.swallow.icon";
1962 rel1.relative: 0.0 1.0;
1963 rel2.to_y: "elm.swallow.icon";
1964 rel2.relative: 1.0 1.0;
1965 color: 164 160 149 255;
1967 font: "SLP:style=Bold";
1973 description { state: "visible" 0.0;
1974 inherit: "default" 0.0;
1979 part { name: "elm.swallow.end";
1982 description { state: "default" 0.0;
1987 to_x: "elm.swallow.bar";
1991 to_x: "elm.swallow.bar";
1994 description { state: "visible" 0.0;
1995 inherit: "default" 0.0;
1998 aspect_preference: HORIZONTAL;
2001 part { name: "units";
2004 description { state: "default" 0.0;
2010 description { state: "visible" 0.0;
2011 inherit: "default" 0.0;
2015 part { name: "elm.units";
2019 description { state: "default" 0.0;
2023 rel1.relative: 0.0 0.0;
2024 rel1.to_y: "elm.swallow.end";
2025 rel2.relative: 1.0 0.0;
2026 rel2.to_y: "elm.swallow.end";
2027 color: 164 160 149 255;
2029 font: "SLP:style=Bold";
2035 description { state: "visible" 0.0;
2036 inherit: "default" 0.0;
2044 part { name: "elm.dragable.slider";
2053 description { state: "default" 0.0;
2069 program { name: "text_show";
2070 signal: "elm,state,text,visible";
2072 action: STATE_SET "visible" 0.0;
2075 program { name: "text_hide";
2076 signal: "elm,state,text,hidden";
2078 action: STATE_SET "default" 0.0;
2081 program { name: "icon_show";
2082 signal: "elm,state,icon,visible";
2084 action: STATE_SET "visible" 0.0;
2085 target: "elm.swallow.icon";
2087 program { name: "icon_hide";
2088 signal: "elm,state,icon,hidden";
2090 action: STATE_SET "default" 0.0;
2091 target: "elm.swallow.icon";
2093 program { name: "end_show";
2094 signal: "elm,state,end,visible";
2096 action: STATE_SET "visible" 0.0;
2097 target: "elm.swallow.end";
2099 program { name: "end_hide";
2100 signal: "elm,state,end,hidden";
2102 action: STATE_SET "default" 0.0;
2103 target: "elm.swallow.end";
2105 program { name: "units_show";
2106 signal: "elm,state,units,visible";
2108 action: STATE_SET "visible" 0.0;
2109 target: "elm.units";
2112 program { name: "units_hide";
2113 signal: "elm,state,units,hidden";
2115 action: STATE_SET "default" 0.0;
2116 target: "elm.units";
2119 program { name: "volume_state_change";
2120 signal: "elm,state,drag";
2123 volume_state_change()
2129 group { name: "elm/slider/vertical/volume15";
2131 image: "00_volume15_00_ver.png" COMP;
2132 image: "00_volume15_01_ver.png" COMP;
2133 image: "00_volume15_02_ver.png" COMP;
2134 image: "00_volume15_03_ver.png" COMP;
2135 image: "00_volume15_04_ver.png" COMP;
2136 image: "00_volume15_05_ver.png" COMP;
2137 image: "00_volume15_06_ver.png" COMP;
2138 image: "00_volume15_07_ver.png" COMP;
2139 image: "00_volume15_08_ver.png" COMP;
2140 image: "00_volume15_09_ver.png" COMP;
2141 image: "00_volume15_10_ver.png" COMP;
2142 image: "00_volume15_11_ver.png" COMP;
2143 image: "00_volume15_12_ver.png" COMP;
2144 image: "00_volume15_13_ver.png" COMP;
2145 image: "00_volume15_14_ver.png" COMP;
2146 image: "00_volume15_15_ver.png" COMP;
2149 public volume_state_change(){
2150 new Float:x, Float:y;
2151 get_drag(PART:"elm.dragable.slider", x, y);
2153 set_state(PART:"base", "volume_15", 0.0);
2154 else if(y <= 0.15625)
2155 set_state(PART:"base", "volume_14", 0.0);
2156 else if(y <= 0.21875)
2157 set_state(PART:"base", "volume_13", 0.0);
2158 else if(y <= 0.28125)
2159 set_state(PART:"base", "volume_12", 0.0);
2160 else if(y <= 0.34375)
2161 set_state(PART:"base", "volume_11", 0.0);
2162 else if(y <= 0.40625)
2163 set_state(PART:"base", "volume_10", 0.0);
2164 else if(y <= 0.46875)
2165 set_state(PART:"base", "volume_09", 0.0);
2166 else if(y <= 0.53125)
2167 set_state(PART:"base", "volume_08", 0.0);
2168 else if(y <= 0.59375)
2169 set_state(PART:"base", "volume_07", 0.0);
2170 else if(y <= 0.65625)
2171 set_state(PART:"base", "volume_06", 0.0);
2172 else if(y <= 0.71875)
2173 set_state(PART:"base", "volume_05", 0.0);
2174 else if(y <= 0.78125)
2175 set_state(PART:"base", "volume_04", 0.0);
2176 else if(y <= 0.84375)
2177 set_state(PART:"base", "volume_03", 0.0);
2178 else if(y <= 0.90625)
2179 set_state(PART:"base", "volume_02", 0.0);
2180 else if(y <= 0.96875)
2181 set_state(PART:"base", "volume_01", 0.0);
2183 set_state(PART:"base", "default", 0.0);
2187 part { name: "base";
2189 description { state: "default" 0.0;
2199 image.normal: "00_volume15_00_ver.png";
2201 #define SLIDER15_VER_BG_PART(part_number)\
2203 state: "volume_"part_number 0.0; \
2204 inherit: "default" 0.0; \
2205 image.normal: "00_volume15_"part_number"_ver.png"; \
2207 SLIDER15_VER_BG_PART(01)
2208 SLIDER15_VER_BG_PART(02)
2209 SLIDER15_VER_BG_PART(03)
2210 SLIDER15_VER_BG_PART(04)
2211 SLIDER15_VER_BG_PART(05)
2212 SLIDER15_VER_BG_PART(06)
2213 SLIDER15_VER_BG_PART(07)
2214 SLIDER15_VER_BG_PART(08)
2215 SLIDER15_VER_BG_PART(09)
2216 SLIDER15_VER_BG_PART(10)
2217 SLIDER15_VER_BG_PART(11)
2218 SLIDER15_VER_BG_PART(12)
2219 SLIDER15_VER_BG_PART(13)
2220 SLIDER15_VER_BG_PART(14)
2221 SLIDER15_VER_BG_PART(15)
2227 description { state: "default" 0.0;
2229 rel1.to: "elm.swallow.bar";
2230 rel2.to: "elm.swallow.bar";
2234 part { name: "elm.swallow.bar";
2237 description { state: "default" 0.0;
2243 part { name: "bar_top_padding";
2247 state: "default" 0.0;
2262 part { name: "bar_bottom_padding";
2265 state: "default" 0.0;
2280 part { name: "elm.swallow.icon";
2283 description { state: "default" 0.0;
2287 to_x: "elm.swallow.bar";
2291 to_x: "elm.swallow.bar";
2294 description { state: "visible" 0.0;
2295 inherit: "default" 0.0;
2298 aspect_preference: HORIZONTAL;
2301 part { name: "elm.text";
2305 description { state: "default" 0.0;
2309 rel1.to_y: "elm.swallow.icon";
2310 rel1.relative: 0.0 1.0;
2311 rel2.to_y: "elm.swallow.icon";
2312 rel2.relative: 1.0 1.0;
2313 color: 164 160 149 255;
2315 font: "SLP:style=Bold";
2321 description { state: "visible" 0.0;
2322 inherit: "default" 0.0;
2327 part { name: "elm.swallow.end";
2330 description { state: "default" 0.0;
2335 to_x: "elm.swallow.bar";
2339 to_x: "elm.swallow.bar";
2342 description { state: "visible" 0.0;
2343 inherit: "default" 0.0;
2346 aspect_preference: HORIZONTAL;
2349 part { name: "units";
2352 description { state: "default" 0.0;
2358 description { state: "visible" 0.0;
2359 inherit: "default" 0.0;
2363 part { name: "elm.units";
2367 description { state: "default" 0.0;
2371 rel1.relative: 0.0 0.0;
2372 rel1.to_y: "elm.swallow.end";
2373 rel2.relative: 1.0 0.0;
2374 rel2.to_y: "elm.swallow.end";
2375 color: 164 160 149 255;
2377 font: "SLP:style=Bold";
2383 description { state: "visible" 0.0;
2384 inherit: "default" 0.0;
2392 part { name: "elm.dragable.slider";
2401 description { state: "default" 0.0;
2417 program { name: "text_show";
2418 signal: "elm,state,text,visible";
2420 action: STATE_SET "visible" 0.0;
2423 program { name: "text_hide";
2424 signal: "elm,state,text,hidden";
2426 action: STATE_SET "default" 0.0;
2429 program { name: "icon_show";
2430 signal: "elm,state,icon,visible";
2432 action: STATE_SET "visible" 0.0;
2433 target: "elm.swallow.icon";
2435 program { name: "icon_hide";
2436 signal: "elm,state,icon,hidden";
2438 action: STATE_SET "default" 0.0;
2439 target: "elm.swallow.icon";
2441 program { name: "end_show";
2442 signal: "elm,state,end,visible";
2444 action: STATE_SET "visible" 0.0;
2445 target: "elm.swallow.end";
2447 program { name: "end_hide";
2448 signal: "elm,state,end,hidden";
2450 action: STATE_SET "default" 0.0;
2451 target: "elm.swallow.end";
2453 program { name: "units_show";
2454 signal: "elm,state,units,visible";
2456 action: STATE_SET "visible" 0.0;
2457 target: "elm.units";
2460 program { name: "units_hide";
2461 signal: "elm,state,units,hidden";
2463 action: STATE_SET "default" 0.0;
2464 target: "elm.units";
2467 program { name: "volume_state_change";
2468 signal: "elm,state,drag";
2471 volume_state_change()