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;
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;
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: 122 122 122 255;
232 font: "SLP:style=Medium";
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: 122 122 122 255;
304 font: "SLP:style=Bold";
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;
343 part { name: "disabler";
348 description { state: "default" 0.0;
353 rel1 { relative: 0.0 0.0; to: "elm.dragable.slider";}
354 rel2 { relative: 1.0 1.0; to: "elm.dragable.slider";}
356 description { state: "disabled" 0.0;
357 inherit: "default" 0.0;
363 program { name: "text_show";
364 signal: "elm,state,text,visible";
366 action: STATE_SET "visible" 0.0;
369 program { name: "text_hide";
370 signal: "elm,state,text,hidden";
372 action: STATE_SET "default" 0.0;
375 program { name: "icon_show";
376 signal: "elm,state,icon,visible";
378 action: STATE_SET "visible" 0.0;
379 target: "elm.swallow.icon";
381 program { name: "icon_hide";
382 signal: "elm,state,icon,hidden";
384 action: STATE_SET "default" 0.0;
385 target: "elm.swallow.icon";
387 program { name: "end_show";
388 signal: "elm,state,end,visible";
390 action: STATE_SET "visible" 0.0;
391 target: "elm.swallow.end";
393 program { name: "end_hide";
394 signal: "elm,state,end,hidden";
396 action: STATE_SET "default" 0.0;
397 target: "elm.swallow.end";
399 program { name: "units_show";
400 signal: "elm,state,units,visible";
402 action: STATE_SET "visible" 0.0;
406 program { name: "units_hide";
407 signal: "elm,state,units,hidden";
409 action: STATE_SET "default" 0.0;
413 program { name: "invert_on";
414 signal: "elm,state,inverted,on";
420 program { name: "invert_off";
421 signal: "elm,state,inverted,off";
427 program { name: "val_show";
428 signal: "mouse,down,*";
429 source: "elm.dragable.slider";
434 program { name: "val_hide";
435 signal: "mouse,up,*";
436 source: "elm.dragable.slider";
441 program { name: "slider_disable";
442 signal: "elm,state,disabled";
444 action: STATE_SET "disabled" 0.0;
447 program { name: "slider_enable";
448 signal: "elm,state,enabled";
450 action: STATE_SET "default" 0.0;
456 group { name: "elm/slider/horizontal/indicator/default";
457 alias: "elm/slider/horizontal/indicator/disabled";
458 alias: "elm/slider/vertical/indicator/default";
459 alias: "elm/slider/vertical/indicator/disabled";
461 image: "00_slider_handle.png" COMP;
462 image: "00_slider_handle_dim.png" COMP;
465 part { name: "button_events";
468 description { state: "default" 0.0;
472 aspect_preference: VERTICAL;
476 part { name: "button0";
479 description { state: "default" 0.0;
484 normal: "00_slider_handle.png";
489 description { state: "disabled" 0.0;
490 inherit: "default" 0.0;
492 normal: "00_slider_handle_dim.png";
496 part { name: "elm.indicator";
500 description { state: "default" 0.0;
514 color: SLIDER_INDICATOR_TEXT_COLOR_INC;
516 font: "SLP:style=Medium";
522 description { state: "hide" 0.0;
523 inherit: "default" 0.0;
529 program { name: "set_val_show";
530 signal: "elm,state,val,show";
532 action: STATE_SET "default" 0.0;
533 target: "elm.indicator";
535 program { name: "set_val_hide";
536 signal: "elm,state,val,hide";
538 action: STATE_SET "hide" 0.0;
539 target: "elm.indicator";
541 program { name: "slider_disable";
542 signal: "elm,state,disabled";
544 action: STATE_SET "disabled" 0.0;
547 program { name: "slider_enable";
548 signal: "elm,state,enabled";
550 action: STATE_SET "default" 0.0;
557 group { name: "elm/slider/horizontal/volume";
559 image: "00_volume_bg.png" COMP;
560 image: "00_volume_01.png" COMP;
561 image: "00_volume_02.png" COMP;
562 image: "00_volume_03.png" COMP;
563 image: "00_volume_04.png" COMP;
564 image: "00_volume_05.png" COMP;
565 image: "00_volume_06.png" COMP;
566 image: "00_volume_07.png" COMP;
567 image: "00_volume_08.png" COMP;
568 image: "00_volume_09.png" COMP;
569 image: "00_volume_10.png" COMP;
570 image: "00_volume_11.png" COMP;
571 image: "00_volume_12.png" COMP;
572 image: "00_volume_13.png" COMP;
573 image: "00_volume_14.png" COMP;
576 public volume_state_change(){
577 new Float:x, Float:y;
578 get_drag(PART:"elm.dragable.slider", x, y);
580 set_state(PART:"base", "default", 0.0);
582 set_state(PART:"base", "volume_01", 0.0);
583 else if(x < 0.1666666)
584 set_state(PART:"base", "volume_02", 0.0);
585 else if(x < 0.2333333)
586 set_state(PART:"base", "volume_03", 0.0);
588 set_state(PART:"base", "volume_04", 0.0);
589 else if(x < 0.3666666)
590 set_state(PART:"base", "volume_05", 0.0);
591 else if(x < 0.4333333)
592 set_state(PART:"base", "volume_06", 0.0);
594 set_state(PART:"base", "volume_07", 0.0);
595 else if(x < 0.5666666)
596 set_state(PART:"base", "volume_08", 0.0);
597 else if(x < 0.6333333)
598 set_state(PART:"base", "volume_09", 0.0);
600 set_state(PART:"base", "volume_10", 0.0);
601 else if(x < 0.7666666)
602 set_state(PART:"base", "volume_11", 0.0);
603 else if(x < 0.8333333)
604 set_state(PART:"base", "volume_12", 0.0);
606 set_state(PART:"base", "volume_13", 0.0);
608 set_state(PART:"base", "volume_14", 0.0);
615 description { state: "default" 0.0;
624 image.normal: "00_volume_bg.png";
626 #define SLIDER_BG_PART(part_number)\
628 state: "volume_"part_number 0.0; \
629 inherit: "default" 0.0; \
630 image.normal: "00_volume_"part_number".png"; \
651 description { state: "default" 0.0;
653 rel1.to: "elm.swallow.bar";
654 rel2.to: "elm.swallow.bar";
658 part { name: "elm.swallow.bar";
661 description { state: "default" 0.0;
666 to_x: "bar_left_padding";
670 to_x: "bar_right_padding";
676 name: "bar_left_padding";
680 state: "default" 0.0;
696 name: "bar_right_padding";
700 state: "default" 0.0;
715 part { name: "elm.swallow.icon";
718 description { state: "default" 0.0;
722 to_y: "elm.swallow.bar";
726 to_y: "elm.swallow.bar";
729 description { state: "visible" 0.0;
730 inherit: "default" 0.0;
733 aspect_preference: VERTICAL;
736 part { name: "elm.text";
740 description { state: "default" 0.0;
744 rel1.to_x: "elm.swallow.icon";
745 rel1.relative: 1.0 0.0;
747 rel2.to_x: "elm.swallow.icon";
748 rel2.relative: 1.0 1.0;
750 color: 164 160 149 255;
752 font: "SLP:style=Bold";
758 description { state: "visible" 0.0;
759 inherit: "default" 0.0;
766 part { name: "elm.swallow.end";
769 description { state: "default" 0.0;
774 to_y: "elm.swallow.bar";
778 to_y: "elm.swallow.bar";
781 description { state: "visible" 0.0;
782 inherit: "default" 0.0;
785 aspect_preference: VERTICAL;
788 part { name: "units";
791 description { state: "default" 0.0;
798 // normal: "sl_units.png";
803 description { state: "visible" 0.0;
804 inherit: "default" 0.0;
808 part { name: "elm.units";
812 description { state: "default" 0.0;
816 rel1.relative: 0.0 0.0;
818 rel1.to_x: "elm.swallow.end";
819 rel2.relative: 0.0 1.0;
821 rel2.to_x: "elm.swallow.end";
822 color: 164 160 149 255;
824 font: "SLP:style=Bold";
830 description { state: "visible" 0.0;
831 inherit: "default" 0.0;
839 part { name: "elm.dragable.slider";
848 description { state: "default" 0.0;
864 program { name: "text_show";
865 signal: "elm,state,text,visible";
867 action: STATE_SET "visible" 0.0;
870 program { name: "text_hide";
871 signal: "elm,state,text,hidden";
873 action: STATE_SET "default" 0.0;
876 program { name: "icon_show";
877 signal: "elm,state,icon,visible";
879 action: STATE_SET "visible" 0.0;
880 target: "elm.swallow.icon";
882 program { name: "icon_hide";
883 signal: "elm,state,icon,hidden";
885 action: STATE_SET "default" 0.0;
886 target: "elm.swallow.icon";
888 program { name: "end_show";
889 signal: "elm,state,end,visible";
891 action: STATE_SET "visible" 0.0;
892 target: "elm.swallow.end";
894 program { name: "end_hide";
895 signal: "elm,state,end,hidden";
897 action: STATE_SET "default" 0.0;
898 target: "elm.swallow.end";
900 program { name: "units_show";
901 signal: "elm,state,units,visible";
903 action: STATE_SET "visible" 0.0;
907 program { name: "units_hide";
908 signal: "elm,state,units,hidden";
910 action: STATE_SET "default" 0.0;
914 program { name: "volume_state_change";
915 signal: "elm,state,drag";
918 volume_state_change()
924 group { name: "elm/slider/vertical/volume";
926 image: "00_volume_00_ver.png" COMP;
927 image: "00_volume_01_ver.png" COMP;
928 image: "00_volume_02_ver.png" COMP;
929 image: "00_volume_03_ver.png" COMP;
930 image: "00_volume_04_ver.png" COMP;
931 image: "00_volume_05_ver.png" COMP;
932 image: "00_volume_06_ver.png" COMP;
933 image: "00_volume_07_ver.png" COMP;
934 image: "00_volume_08_ver.png" COMP;
935 image: "00_volume_09_ver.png" COMP;
936 image: "00_volume_10_ver.png" COMP;
937 image: "00_volume_11_ver.png" COMP;
938 image: "00_volume_12_ver.png" COMP;
939 image: "00_volume_13_ver.png" COMP;
940 image: "00_volume_14_ver.png" COMP;
943 public volume_state_change(){
944 new Float:x, Float:y;
945 get_drag(PART:"elm.dragable.slider", x, y);
947 set_state(PART:"base", "volume_14", 0.0);
948 else if(y <= 0.1666666)
949 set_state(PART:"base", "volume_13", 0.0);
950 else if(y <= 0.2333333)
951 set_state(PART:"base", "volume_12", 0.0);
953 set_state(PART:"base", "volume_11", 0.0);
954 else if(y <= 0.3666666)
955 set_state(PART:"base", "volume_10", 0.0);
956 else if(y <= 0.4333333)
957 set_state(PART:"base", "volume_09", 0.0);
959 set_state(PART:"base", "volume_08", 0.0);
960 else if(y <= 0.5666666)
961 set_state(PART:"base", "volume_07", 0.0);
962 else if(y <= 0.6333333)
963 set_state(PART:"base", "volume_06", 0.0);
965 set_state(PART:"base", "volume_05", 0.0);
966 else if(y <= 0.7666666)
967 set_state(PART:"base", "volume_04", 0.0);
968 else if(y <= 0.8333333)
969 set_state(PART:"base", "volume_03", 0.0);
971 set_state(PART:"base", "volume_02", 0.0);
972 else if(y <= 0.9666666)
973 set_state(PART:"base", "volume_01", 0.0);
975 set_state(PART:"base", "default", 0.0);
981 description { state: "default" 0.0;
991 image.normal: "00_volume_00_ver.png";
993 #define SLIDER_VER_BG_PART(part_number)\
995 state: "volume_"part_number 0.0; \
996 inherit: "default" 0.0; \
997 image.normal: "00_volume_"part_number"_ver.png"; \
999 SLIDER_VER_BG_PART(01)
1000 SLIDER_VER_BG_PART(02)
1001 SLIDER_VER_BG_PART(03)
1002 SLIDER_VER_BG_PART(04)
1003 SLIDER_VER_BG_PART(05)
1004 SLIDER_VER_BG_PART(06)
1005 SLIDER_VER_BG_PART(07)
1006 SLIDER_VER_BG_PART(08)
1007 SLIDER_VER_BG_PART(09)
1008 SLIDER_VER_BG_PART(10)
1009 SLIDER_VER_BG_PART(11)
1010 SLIDER_VER_BG_PART(12)
1011 SLIDER_VER_BG_PART(13)
1012 SLIDER_VER_BG_PART(14)
1018 description { state: "default" 0.0;
1020 rel1.to: "elm.swallow.bar";
1021 rel2.to: "elm.swallow.bar";
1025 part { name: "elm.swallow.bar";
1028 description { state: "default" 0.0;
1033 to_y: "bar_top_padding";
1037 to_y: "bar_bottom_padding";
1043 name: "bar_top_padding";
1047 state: "default" 0.0;
1063 name: "bar_bottom_padding";
1066 state: "default" 0.0;
1081 part { name: "elm.swallow.icon";
1084 description { state: "default" 0.0;
1088 to_x: "elm.swallow.bar";
1092 to_x: "elm.swallow.bar";
1095 description { state: "visible" 0.0;
1096 inherit: "default" 0.0;
1099 aspect_preference: HORIZONTAL;
1102 part { name: "elm.text";
1106 description { state: "default" 0.0;
1110 rel1.to_y: "elm.swallow.icon";
1111 rel1.relative: 0.0 1.0;
1112 rel2.to_y: "elm.swallow.icon";
1113 rel2.relative: 1.0 1.0;
1114 color: 164 160 149 255;
1116 font: "SLP:style=Bold";
1122 description { state: "visible" 0.0;
1123 inherit: "default" 0.0;
1128 part { name: "elm.swallow.end";
1131 description { state: "default" 0.0;
1136 to_x: "elm.swallow.bar";
1140 to_x: "elm.swallow.bar";
1143 description { state: "visible" 0.0;
1144 inherit: "default" 0.0;
1147 aspect_preference: HORIZONTAL;
1150 part { name: "units";
1153 description { state: "default" 0.0;
1159 description { state: "visible" 0.0;
1160 inherit: "default" 0.0;
1164 part { name: "elm.units";
1168 description { state: "default" 0.0;
1172 rel1.relative: 0.0 0.0;
1173 rel1.to_y: "elm.swallow.end";
1174 rel2.relative: 1.0 0.0;
1175 rel2.to_y: "elm.swallow.end";
1176 color: 164 160 149 255;
1178 font: "SLP:style=Bold";
1184 description { state: "visible" 0.0;
1185 inherit: "default" 0.0;
1193 part { name: "elm.dragable.slider";
1202 description { state: "default" 0.0;
1218 program { name: "text_show";
1219 signal: "elm,state,text,visible";
1221 action: STATE_SET "visible" 0.0;
1224 program { name: "text_hide";
1225 signal: "elm,state,text,hidden";
1227 action: STATE_SET "default" 0.0;
1230 program { name: "icon_show";
1231 signal: "elm,state,icon,visible";
1233 action: STATE_SET "visible" 0.0;
1234 target: "elm.swallow.icon";
1236 program { name: "icon_hide";
1237 signal: "elm,state,icon,hidden";
1239 action: STATE_SET "default" 0.0;
1240 target: "elm.swallow.icon";
1242 program { name: "end_show";
1243 signal: "elm,state,end,visible";
1245 action: STATE_SET "visible" 0.0;
1246 target: "elm.swallow.end";
1248 program { name: "end_hide";
1249 signal: "elm,state,end,hidden";
1251 action: STATE_SET "default" 0.0;
1252 target: "elm.swallow.end";
1254 program { name: "units_show";
1255 signal: "elm,state,units,visible";
1257 action: STATE_SET "visible" 0.0;
1258 target: "elm.units";
1261 program { name: "units_hide";
1262 signal: "elm,state,units,hidden";
1264 action: STATE_SET "default" 0.0;
1265 target: "elm.units";
1268 program { name: "volume_state_change";
1269 signal: "elm,state,drag";
1272 volume_state_change()
1278 group { name: "elm/slider/horizontal/ebook";
1280 image: "00_winset_list_progress_bg.png" COMP;
1281 image: "00_winset_list_progress_bar.png" COMP;
1282 image: "00_winset_list_progress_bar_pressed.png" COMP;
1283 image: "00_ebook_slider_handle.png" COMP;
1284 image: "00_ebook_slider_handle_press.png" COMP;
1287 public value_hide = 0;
1288 public invert_on = 0;
1289 public set_value_show() {
1290 set_int(value_hide, 0);
1291 set_state(PART:"elm.indicator", "default", 0.0);
1293 public set_value_hide() {
1294 set_int(value_hide, 1);
1295 set_state(PART:"elm.indicator", "hide", 0.0);
1297 public set_invert_on() {
1298 set_state(PART:"level", "inverted", 0.0);
1299 set_state(PART:"level2", "inverted", 0.0);
1300 set_int(invert_on, 1);
1302 public set_invert_off() {
1303 set_state(PART:"level", "default", 0.0);
1304 set_state(PART:"level2", "default", 0.0);
1305 set_int(invert_on, 0);
1307 public thumb_down() {
1308 if(get_int(value_hide) == 1) {
1309 set_state(PART:"elm.indicator", "hide", 0.0);
1310 set_state(PART:"button0", "visible", 0.0);
1312 set_state(PART:"elm.indicator", "visible", 0.0);
1313 set_state(PART:"button0", "visible", 0.0);
1315 if(get_int(invert_on) == 0)
1316 set_state(PART:"level", "pressed", 0.0);
1317 else if(get_int(invert_on) == 1)
1318 set_state(PART:"level2", "pressed", 0.0);
1321 if(get_int(value_hide) == 1)
1322 set_state(PART:"elm.indicator", "hide", 0.0);
1324 set_state(PART:"elm.indicator", "default", 0.0);
1325 if(get_int(invert_on) == 0)
1326 set_state(PART:"level", "default", 0.0);
1327 else if(get_int(invert_on) == 1)
1328 set_state(PART:"level2", "inverted", 0.0);
1329 set_state(PART:"button0", "default", 0.0);
1333 part { name: "base";
1336 description { state: "default" 0.0;
1345 image.normal: "00_winset_list_progress_bg.png";
1346 image.border: 0 0 4 4;
1347 image.border_scale: 1;
1350 part { name: "level";
1353 description { state: "default" 0.0;
1358 to_x: "elm.dragable.slider";
1362 image.normal: "00_winset_list_progress_bar.png";
1363 image.border: 0 0 4 4;
1364 image.border_scale: 1;
1366 description { state: "inverted" 0.0;
1367 inherit: "default" 0.0;
1370 description { state: "pressed" 0.0;
1371 inherit: "default" 0.0;
1372 image.normal: "00_winset_list_progress_bar_pressed.png";
1373 image.border: 0 0 4 4;
1374 image.border_scale: 1;
1377 part { name: "level2";
1380 description { state: "default" 0.0;
1385 to_x: "elm.dragable.slider";
1390 image.normal: "00_winset_list_progress_bar.png";
1391 image.border: 0 0 4 4;
1392 image.border_scale: 1;
1394 description { state: "inverted" 0.0;
1395 inherit: "default" 0.0;
1398 description { state: "pressed" 0.0;
1399 inherit: "default" 0.0;
1401 image.normal: "00_winset_list_progress_bar_pressed.png";
1402 image.border: 0 0 4 4;
1403 image.border_scale: 1;
1410 description { state: "default" 0.0;
1412 rel1.to: "elm.swallow.bar";
1413 rel2.to: "elm.swallow.bar";
1418 part { name: "elm.swallow.bar";
1421 description { state: "default" 0.0;
1426 to_x: "bar_left_padding";
1431 to_x: "bar_right_padding";
1438 name: "bar_left_padding";
1442 state: "default" 0.0;
1458 name: "bar_right_padding";
1462 state: "default" 0.0;
1477 part { name: "elm.swallow.icon";
1480 description { state: "default" 0.0;
1484 to_y: "elm.swallow.bar";
1488 to_y: "elm.swallow.bar";
1491 description { state: "visible" 0.0;
1492 inherit: "default" 0.0;
1495 aspect_preference: VERTICAL;
1498 part { name: "elm.text";
1502 description { state: "default" 0.0;
1506 rel1.to_x: "elm.swallow.icon";
1507 rel1.relative: 1.0 0.0;
1509 rel2.to_x: "elm.swallow.icon";
1510 rel2.relative: 1.0 1.0;
1512 color: 164 160 149 255;
1514 font: "SLP:style=Bold";
1520 description { state: "visible" 0.0;
1521 inherit: "default" 0.0;
1528 part { name: "elm.swallow.end";
1531 description { state: "default" 0.0;
1536 to_y: "elm.swallow.bar";
1540 to_y: "elm.swallow.bar";
1543 description { state: "visible" 0.0;
1544 inherit: "default" 0.0;
1547 aspect_preference: VERTICAL;
1550 part { name: "units";
1553 description { state: "default" 0.0;
1560 // normal: "sl_units.png";
1565 description { state: "visible" 0.0;
1566 inherit: "default" 0.0;
1570 part { name: "elm.units";
1574 description { state: "default" 0.0;
1578 rel1.relative: 0.0 0.0;
1580 rel1.to_x: "elm.swallow.end";
1581 rel2.relative: 0.0 1.0;
1583 rel2.to_x: "elm.swallow.end";
1584 color: 164 160 149 255;
1586 font: "SLP:style=Bold";
1592 description { state: "visible" 0.0;
1593 inherit: "default" 0.0;
1601 part { name: "elm.dragable.slider";
1610 description { state: "default" 0.0;
1624 part { name: "button0";
1627 description { state: "default" 0.0;
1631 rel1.to: "elm.dragable.slider";
1632 rel2.to: "elm.dragable.slider";
1634 normal: "00_ebook_slider_handle.png";
1635 border: 12 12 12 12;
1639 description { state: "visible" 0.0;
1640 inherit: "default" 0.0;
1642 normal: "00_ebook_slider_handle_press.png";
1646 part { name: "popup";
1649 description { state: "default" 0.0;
1661 // normal: "00_slider_popup_bg.png";
1662 border: 13 21 10 22;
1667 description { state: "visible" 0.0;
1668 inherit: "default" 0.0;
1672 part { name: "elm.indicator";
1675 // effect: SOFT_SHADOW;
1677 description { state: "default" 0.0;
1691 color: 241 150 27 255;
1694 font: "SLP:style=Bold";
1700 description { state: "visible" 0.0;
1701 inherit: "default" 0.0;
1703 color: 241 150 27 255;
1711 description { state: "hide" 0.0;
1712 inherit: "default" 0.0;
1718 program { name: "text_show";
1719 signal: "elm,state,text,visible";
1721 action: STATE_SET "visible" 0.0;
1724 program { name: "text_hide";
1725 signal: "elm,state,text,hidden";
1727 action: STATE_SET "default" 0.0;
1730 program { name: "icon_show";
1731 signal: "elm,state,icon,visible";
1733 action: STATE_SET "visible" 0.0;
1734 target: "elm.swallow.icon";
1736 program { name: "icon_hide";
1737 signal: "elm,state,icon,hidden";
1739 action: STATE_SET "default" 0.0;
1740 target: "elm.swallow.icon";
1742 program { name: "end_show";
1743 signal: "elm,state,end,visible";
1745 action: STATE_SET "visible" 0.0;
1746 target: "elm.swallow.end";
1748 program { name: "end_hide";
1749 signal: "elm,state,end,hidden";
1751 action: STATE_SET "default" 0.0;
1752 target: "elm.swallow.end";
1754 program { name: "units_show";
1755 signal: "elm,state,units,visible";
1757 action: STATE_SET "visible" 0.0;
1758 target: "elm.units";
1761 program { name: "units_hide";
1762 signal: "elm,state,units,hidden";
1764 action: STATE_SET "default" 0.0;
1765 target: "elm.units";
1768 program { name: "invert_on";
1769 signal: "elm,state,inverted,on";
1775 program { name: "invert_off";
1776 signal: "elm,state,inverted,off";
1782 program { name: "set_val_show";
1783 signal: "elm,state,val,show";
1789 program { name: "set_val_hide";
1790 signal: "elm,state,val,hide";
1796 program { name: "val_show";
1797 signal: "mouse,down,*";
1798 source: "elm.dragable.slider";
1803 program { name: "val_hide";
1804 signal: "mouse,up,*";
1805 source: "elm.dragable.slider";
1813 group { name: "elm/slider/vertical/volume7";
1815 image: "00_volume7_00_ver.png" COMP;
1816 image: "00_volume7_01_ver.png" COMP;
1817 image: "00_volume7_02_ver.png" COMP;
1818 image: "00_volume7_03_ver.png" COMP;
1819 image: "00_volume7_04_ver.png" COMP;
1820 image: "00_volume7_05_ver.png" COMP;
1821 image: "00_volume7_06_ver.png" COMP;
1822 image: "00_volume7_07_ver.png" COMP;
1825 public volume_state_change(){
1826 new Float:x, Float:y;
1827 get_drag(PART:"elm.dragable.slider", x, y);
1829 set_state(PART:"base", "volume_07", 0.0);
1830 else if(y <= 0.3125)
1831 set_state(PART:"base", "volume_06", 0.0);
1832 else if(y <= 0.4375)
1833 set_state(PART:"base", "volume_05", 0.0);
1834 else if(y <= 0.5625)
1835 set_state(PART:"base", "volume_04", 0.0);
1836 else if(y <= 0.6875)
1837 set_state(PART:"base", "volume_03", 0.0);
1838 else if(y <= 0.8125)
1839 set_state(PART:"base", "volume_02", 0.0);
1840 else if(y <= 0.9375)
1841 set_state(PART:"base", "volume_01", 0.0);
1843 set_state(PART:"base", "default", 0.0);
1847 part { name: "base";
1849 description { state: "default" 0.0;
1859 image.normal: "00_volume7_00_ver.png";
1861 #define SLIDER7_VER_BG_PART(part_number)\
1863 state: "volume_"part_number 0.0; \
1864 inherit: "default" 0.0; \
1865 image.normal: "00_volume7_"part_number"_ver.png"; \
1867 SLIDER7_VER_BG_PART(01)
1868 SLIDER7_VER_BG_PART(02)
1869 SLIDER7_VER_BG_PART(03)
1870 SLIDER7_VER_BG_PART(04)
1871 SLIDER7_VER_BG_PART(05)
1872 SLIDER7_VER_BG_PART(06)
1873 SLIDER7_VER_BG_PART(07)
1879 description { state: "default" 0.0;
1881 rel1.to: "elm.swallow.bar";
1882 rel2.to: "elm.swallow.bar";
1886 part { name: "elm.swallow.bar";
1889 description { state: "default" 0.0;
1896 name: "bar_top_padding";
1900 state: "default" 0.0;
1916 name: "bar_bottom_padding";
1919 state: "default" 0.0;
1934 part { name: "elm.swallow.icon";
1937 description { state: "default" 0.0;
1941 to_x: "elm.swallow.bar";
1945 to_x: "elm.swallow.bar";
1948 description { state: "visible" 0.0;
1949 inherit: "default" 0.0;
1952 aspect_preference: HORIZONTAL;
1955 part { name: "elm.text";
1959 description { state: "default" 0.0;
1963 rel1.to_y: "elm.swallow.icon";
1964 rel1.relative: 0.0 1.0;
1965 rel2.to_y: "elm.swallow.icon";
1966 rel2.relative: 1.0 1.0;
1967 color: 164 160 149 255;
1969 font: "SLP:style=Bold";
1975 description { state: "visible" 0.0;
1976 inherit: "default" 0.0;
1981 part { name: "elm.swallow.end";
1984 description { state: "default" 0.0;
1989 to_x: "elm.swallow.bar";
1993 to_x: "elm.swallow.bar";
1996 description { state: "visible" 0.0;
1997 inherit: "default" 0.0;
2000 aspect_preference: HORIZONTAL;
2003 part { name: "units";
2006 description { state: "default" 0.0;
2012 description { state: "visible" 0.0;
2013 inherit: "default" 0.0;
2017 part { name: "elm.units";
2021 description { state: "default" 0.0;
2025 rel1.relative: 0.0 0.0;
2026 rel1.to_y: "elm.swallow.end";
2027 rel2.relative: 1.0 0.0;
2028 rel2.to_y: "elm.swallow.end";
2029 color: 164 160 149 255;
2031 font: "SLP:style=Bold";
2037 description { state: "visible" 0.0;
2038 inherit: "default" 0.0;
2046 part { name: "elm.dragable.slider";
2055 description { state: "default" 0.0;
2071 program { name: "text_show";
2072 signal: "elm,state,text,visible";
2074 action: STATE_SET "visible" 0.0;
2077 program { name: "text_hide";
2078 signal: "elm,state,text,hidden";
2080 action: STATE_SET "default" 0.0;
2083 program { name: "icon_show";
2084 signal: "elm,state,icon,visible";
2086 action: STATE_SET "visible" 0.0;
2087 target: "elm.swallow.icon";
2089 program { name: "icon_hide";
2090 signal: "elm,state,icon,hidden";
2092 action: STATE_SET "default" 0.0;
2093 target: "elm.swallow.icon";
2095 program { name: "end_show";
2096 signal: "elm,state,end,visible";
2098 action: STATE_SET "visible" 0.0;
2099 target: "elm.swallow.end";
2101 program { name: "end_hide";
2102 signal: "elm,state,end,hidden";
2104 action: STATE_SET "default" 0.0;
2105 target: "elm.swallow.end";
2107 program { name: "units_show";
2108 signal: "elm,state,units,visible";
2110 action: STATE_SET "visible" 0.0;
2111 target: "elm.units";
2114 program { name: "units_hide";
2115 signal: "elm,state,units,hidden";
2117 action: STATE_SET "default" 0.0;
2118 target: "elm.units";
2121 program { name: "volume_state_change";
2122 signal: "elm,state,drag";
2125 volume_state_change()
2131 group { name: "elm/slider/vertical/volume15";
2133 image: "00_volume15_00_ver.png" COMP;
2134 image: "00_volume15_01_ver.png" COMP;
2135 image: "00_volume15_02_ver.png" COMP;
2136 image: "00_volume15_03_ver.png" COMP;
2137 image: "00_volume15_04_ver.png" COMP;
2138 image: "00_volume15_05_ver.png" COMP;
2139 image: "00_volume15_06_ver.png" COMP;
2140 image: "00_volume15_07_ver.png" COMP;
2141 image: "00_volume15_08_ver.png" COMP;
2142 image: "00_volume15_09_ver.png" COMP;
2143 image: "00_volume15_10_ver.png" COMP;
2144 image: "00_volume15_11_ver.png" COMP;
2145 image: "00_volume15_12_ver.png" COMP;
2146 image: "00_volume15_13_ver.png" COMP;
2147 image: "00_volume15_14_ver.png" COMP;
2148 image: "00_volume15_15_ver.png" COMP;
2151 public volume_state_change(){
2152 new Float:x, Float:y;
2153 get_drag(PART:"elm.dragable.slider", x, y);
2155 set_state(PART:"base", "volume_15", 0.0);
2156 else if(y <= 0.15625)
2157 set_state(PART:"base", "volume_14", 0.0);
2158 else if(y <= 0.21875)
2159 set_state(PART:"base", "volume_13", 0.0);
2160 else if(y <= 0.28125)
2161 set_state(PART:"base", "volume_12", 0.0);
2162 else if(y <= 0.34375)
2163 set_state(PART:"base", "volume_11", 0.0);
2164 else if(y <= 0.40625)
2165 set_state(PART:"base", "volume_10", 0.0);
2166 else if(y <= 0.46875)
2167 set_state(PART:"base", "volume_09", 0.0);
2168 else if(y <= 0.53125)
2169 set_state(PART:"base", "volume_08", 0.0);
2170 else if(y <= 0.59375)
2171 set_state(PART:"base", "volume_07", 0.0);
2172 else if(y <= 0.65625)
2173 set_state(PART:"base", "volume_06", 0.0);
2174 else if(y <= 0.71875)
2175 set_state(PART:"base", "volume_05", 0.0);
2176 else if(y <= 0.78125)
2177 set_state(PART:"base", "volume_04", 0.0);
2178 else if(y <= 0.84375)
2179 set_state(PART:"base", "volume_03", 0.0);
2180 else if(y <= 0.90625)
2181 set_state(PART:"base", "volume_02", 0.0);
2182 else if(y <= 0.96875)
2183 set_state(PART:"base", "volume_01", 0.0);
2185 set_state(PART:"base", "default", 0.0);
2189 part { name: "base";
2191 description { state: "default" 0.0;
2201 image.normal: "00_volume15_00_ver.png";
2203 #define SLIDER15_VER_BG_PART(part_number)\
2205 state: "volume_"part_number 0.0; \
2206 inherit: "default" 0.0; \
2207 image.normal: "00_volume15_"part_number"_ver.png"; \
2209 SLIDER15_VER_BG_PART(01)
2210 SLIDER15_VER_BG_PART(02)
2211 SLIDER15_VER_BG_PART(03)
2212 SLIDER15_VER_BG_PART(04)
2213 SLIDER15_VER_BG_PART(05)
2214 SLIDER15_VER_BG_PART(06)
2215 SLIDER15_VER_BG_PART(07)
2216 SLIDER15_VER_BG_PART(08)
2217 SLIDER15_VER_BG_PART(09)
2218 SLIDER15_VER_BG_PART(10)
2219 SLIDER15_VER_BG_PART(11)
2220 SLIDER15_VER_BG_PART(12)
2221 SLIDER15_VER_BG_PART(13)
2222 SLIDER15_VER_BG_PART(14)
2223 SLIDER15_VER_BG_PART(15)
2229 description { state: "default" 0.0;
2231 rel1.to: "elm.swallow.bar";
2232 rel2.to: "elm.swallow.bar";
2236 part { name: "elm.swallow.bar";
2239 description { state: "default" 0.0;
2245 part { name: "bar_top_padding";
2249 state: "default" 0.0;
2264 part { name: "bar_bottom_padding";
2267 state: "default" 0.0;
2282 part { name: "elm.swallow.icon";
2285 description { state: "default" 0.0;
2289 to_x: "elm.swallow.bar";
2293 to_x: "elm.swallow.bar";
2296 description { state: "visible" 0.0;
2297 inherit: "default" 0.0;
2300 aspect_preference: HORIZONTAL;
2303 part { name: "elm.text";
2307 description { state: "default" 0.0;
2311 rel1.to_y: "elm.swallow.icon";
2312 rel1.relative: 0.0 1.0;
2313 rel2.to_y: "elm.swallow.icon";
2314 rel2.relative: 1.0 1.0;
2315 color: 164 160 149 255;
2317 font: "SLP:style=Bold";
2323 description { state: "visible" 0.0;
2324 inherit: "default" 0.0;
2329 part { name: "elm.swallow.end";
2332 description { state: "default" 0.0;
2337 to_x: "elm.swallow.bar";
2341 to_x: "elm.swallow.bar";
2344 description { state: "visible" 0.0;
2345 inherit: "default" 0.0;
2348 aspect_preference: HORIZONTAL;
2351 part { name: "units";
2354 description { state: "default" 0.0;
2360 description { state: "visible" 0.0;
2361 inherit: "default" 0.0;
2365 part { name: "elm.units";
2369 description { state: "default" 0.0;
2373 rel1.relative: 0.0 0.0;
2374 rel1.to_y: "elm.swallow.end";
2375 rel2.relative: 1.0 0.0;
2376 rel2.to_y: "elm.swallow.end";
2377 color: 164 160 149 255;
2379 font: "SLP:style=Bold";
2385 description { state: "visible" 0.0;
2386 inherit: "default" 0.0;
2394 part { name: "elm.dragable.slider";
2403 description { state: "default" 0.0;
2419 program { name: "text_show";
2420 signal: "elm,state,text,visible";
2422 action: STATE_SET "visible" 0.0;
2425 program { name: "text_hide";
2426 signal: "elm,state,text,hidden";
2428 action: STATE_SET "default" 0.0;
2431 program { name: "icon_show";
2432 signal: "elm,state,icon,visible";
2434 action: STATE_SET "visible" 0.0;
2435 target: "elm.swallow.icon";
2437 program { name: "icon_hide";
2438 signal: "elm,state,icon,hidden";
2440 action: STATE_SET "default" 0.0;
2441 target: "elm.swallow.icon";
2443 program { name: "end_show";
2444 signal: "elm,state,end,visible";
2446 action: STATE_SET "visible" 0.0;
2447 target: "elm.swallow.end";
2449 program { name: "end_hide";
2450 signal: "elm,state,end,hidden";
2452 action: STATE_SET "default" 0.0;
2453 target: "elm.swallow.end";
2455 program { name: "units_show";
2456 signal: "elm,state,units,visible";
2458 action: STATE_SET "visible" 0.0;
2459 target: "elm.units";
2462 program { name: "units_hide";
2463 signal: "elm,state,units,hidden";
2465 action: STATE_SET "default" 0.0;
2466 target: "elm.units";
2469 program { name: "volume_state_change";
2470 signal: "elm,state,drag";
2473 volume_state_change()