[Scroller] added new MACRO for images, sizes, borders
[profile/ivi/efl-theme-tizen.git] / themes / widgets / slider.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved 
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
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.
16  *
17  */
18
19    group { name: "elm/slider/horizontal/tap_to_drag";
20       images {
21          image: "00_winset_list_progress_bg.png" COMP;
22          image: "00_winset_list_progress_bar.png" COMP;
23          image: "00_slider_bar_press.png" COMP;
24       }
25       script {
26          public invert_on = 0;
27          public set_invert_on() {
28             set_state(PART:"level", "inverted", 0.0);
29             set_state(PART:"level2", "inverted", 0.0);
30             set_int(invert_on, 1);
31          }
32          public set_invert_off() {
33             set_state(PART:"level", "default", 0.0);
34             set_state(PART:"level2", "default", 0.0);
35             set_int(invert_on, 0);
36          }
37          public thumb_down() {
38             if(get_int(invert_on) == 0)
39                set_state(PART:"level", "pressed", 0.0);
40             else if(get_int(invert_on) == 1)
41                set_state(PART:"level2", "pressed", 0.0);
42             }
43          public thumb_up() {
44             if(get_int(invert_on) == 0)
45                set_state(PART:"level", "default", 0.0);
46             else if(get_int(invert_on) == 1)
47                set_state(PART:"level2", "inverted", 0.0);
48             }
49          }
50          parts {
51             part { name: "base";
52                mouse_events: 0;
53                scale: 1;
54                description { state: "default" 0.0;
55                   min: SLIDER_BASE_MIN_WIDTH_INC SLIDER_BASE_HEIGHT_INC;
56                   max: 99999 SLIDER_BASE_HEIGHT_INC;
57                   rel1 { to: "bg";
58                      offset: 1 0;
59                   }
60                   rel2 { to: "bg";
61                      offset: -5 -1;
62                   }
63                   image.normal: "00_winset_list_progress_bg.png";
64                   image.border: 0 0 4 4;
65                   image.border_scale: 1;
66                }
67             }
68             part { name: "level";
69                mouse_events: 0;
70                scale: 1;
71                description { state: "default" 0.0;
72                   fixed: 1 1;
73                   rel1.to: "base";
74                   rel2 {
75                      to_y: "base";
76                      to_x: "elm.dragable.slider";
77                      offset: -5 -1;
78                      relative: 0.5 1.0;
79                   }
80                   image.normal: "00_winset_list_progress_bar.png";
81                   image.border: 0 0 4 4;
82                   image.border_scale: 1;
83                }
84                description { state: "inverted" 0.0;
85                   inherit: "default" 0.0;
86                   visible: 0;
87                }
88                description { state: "pressed" 0.0;
89                   inherit: "default" 0.0;
90                   image.normal: "00_winset_list_progress_bar.png";
91                }
92             }
93             part { name: "level2";
94                mouse_events: 0;
95                scale: 1;
96                description { state: "default" 0.0;
97                   fixed: 1 1;
98                   visible: 0;
99                   rel1 {
100                      to_y: "base";
101                      to_x: "elm.dragable.slider";
102                      relative: 0.5 0.0;
103                   }
104                   rel2.to: "base";
105                   rel2.offset: -2 -1;
106                      image.normal: "00_winset_list_progress_bg.png";
107                      image.border: 0 0 4 4;
108                       image.border_scale: 1;
109                   }
110                description { state: "inverted" 0.0;
111                   inherit: "default" 0.0;
112                   visible: 1;
113                }
114                description { state: "pressed" 0.0;
115                   inherit: "default" 0.0;
116                   visible: 1;
117                   image.normal: "00_winset_list_progress_bg.png";
118                }
119             }
120             part { name: "bg";
121                type: RECT;
122                mouse_events: 0;
123                scale: 1;
124                description { state: "default" 0.0;
125                   visible: 0;
126                   rel1.to: "elm.swallow.bar";
127                   rel2.to: "elm.swallow.bar";
128                   rel2.offset: 3 0;
129                   color: 0 0 0 0;
130                }
131             }
132             part { name: "elm.swallow.bar";
133                type: SWALLOW;
134                scale: 1;
135                description { state: "default" 0.0;
136                   min: SLIDER_SWALLOW_BAR_MIN_WIDTH_INC SLIDER_SWALLOW_BAR_HEIGHT_INC;
137                   max: 99999 SLIDER_SWALLOW_BAR_HEIGHT_INC;
138                   align: 1.0 0.5;
139                   rel1 {
140                      to_x: "bar_left_padding";
141                      relative: 1.0 0.0;
142                   }
143                   rel2 {
144                      to_x: "bar_right_padding";
145                      relative: 0.0 1.0;
146                   }
147                }
148             }
149             part {
150                name: "bar_left_padding";
151                type: SWALLOW;
152                scale: 1;
153                description {
154                   state: "default" 0.0;
155                   visible: 0;
156                   min: 10 0;
157                   fixed: 1 1;
158                   rel1 {
159                      relative: 1.0  0.5;
160                      to_x: "elm.text";
161                   }
162                   rel2 {
163                      relative: 1.0  0.5;
164                      to_x: "elm.text";
165                   }
166                   align: 0.0 0.5;
167                }
168             }
169             part {
170                name: "bar_right_padding";
171                type: SWALLOW;
172                scale: 1;
173                description {
174                   state: "default" 0.0;
175                   visible: 0;
176                   min: 10 0;
177                   fixed: 1 1;
178                   rel1 {
179                      relative: 0.0  0.5;
180                      to_x: "elm.units";
181                   }
182                   rel2 {
183                      relative: 0.0  0.5;
184                      to_x: "elm.units";
185                   }
186                   align: 1.0 0.5;
187                }
188             }
189             part { name: "elm.swallow.icon";
190                type: SWALLOW;
191                scale: 1;
192                description { state: "default" 0.0;
193                   visible: 0;
194                   align: 0.0 0.5;
195                   rel1 {
196                      to_y: "elm.swallow.bar";
197                   }
198                   rel2 {
199                      relative: 0.0 1.0;
200                      to_y: "elm.swallow.bar";
201                   }
202                }
203                description { state: "visible" 0.0;
204                   inherit: "default" 0.0;
205                   visible: 1;
206                   aspect: 1.0 1.0;
207                   aspect_preference: VERTICAL;
208                }
209             }
210             part { name: "elm.text";
211                type: TEXT;
212                mouse_events: 0;
213                scale: 1;
214                description { state: "default" 0.0;
215                   visible: 0;
216                   fixed: 1 1;
217                   align: 0.0 0.5;
218                   rel1.to_x: "elm.swallow.icon";
219                   rel1.relative: 1.0 0.0;
220                   rel1.offset: -1 4;
221                   rel2.to_x: "elm.swallow.icon";
222                   rel2.relative: 1.0 1.0;
223                   rel2.offset: -1 -5;
224                   color: SLIDER_UNITS_TEXT_COLOR_INC;
225                   text {
226                      font: "SLP:style=Medium";
227                      size: SLIDER_UNITS_TEXT_SIZE_INC;
228                      min: 0 0;
229                      align: 0.0 0.5;
230                      text_class: "slp_medium";
231                   }
232                }
233                description { state: "visible" 0.0;
234                   inherit: "default" 0.0;
235                   visible: 1;
236                   text.min: 1 1;
237                   rel1.offset: 0 4;
238                   rel2.offset: 0 -5;
239                }
240             }
241             part { name: "elm.swallow.end";
242                type: SWALLOW;
243                scale: 1;
244                description { state: "default" 0.0;
245                   visible: 0;
246                   align: 1.0 0.5;
247                   rel1 {
248                      relative: 1.0 0.0;
249                      to_y: "elm.swallow.bar";
250                   }
251                   rel2 {
252                      relative: 1.0 1.0;
253                      to_y: "elm.swallow.bar";
254                   }
255                }
256                description { state: "visible" 0.0;
257                   inherit: "default" 0.0;
258                   visible: 1;
259                   aspect: 1.0 1.0;
260                   aspect_preference: VERTICAL;
261                }
262             }
263             part { name: "units";
264                mouse_events: 0;
265                scale: 1;
266                description { state: "default" 0.0;
267                   visible: 0;
268                   rel1 {
269                      to_x: "elm.units";
270                      offset: 0 5;
271                   }
272                   image {
273    //                  normal: "sl_units.png";
274                      border: 0 5 3 8;
275                      border_scale: 1;
276                   }
277                }
278                description { state: "visible" 0.0;
279                   inherit: "default" 0.0;
280                   visible: 1;
281                }
282             }
283             part { name: "elm.units";
284                type: TEXT;
285                mouse_events: 0;
286                scale: 1;
287                description { state: "default" 0.0;
288                   visible: 0;
289                   fixed: 1 1;
290                   align: 1.0 0.5;
291                   rel1.relative: 0.0 0.0;
292                   rel1.offset: 0 8;
293                   rel1.to_x: "elm.swallow.end";
294                   rel2.relative: 0.0 1.0;
295                   rel2.offset: 0 -9;
296                   rel2.to_x: "elm.swallow.end";
297                   color: SLIDER_UNITS_TEXT_COLOR_INC;
298                   text {
299                      font: "SLP:style=Bold";
300                      size: SLIDER_UNITS_TEXT_SIZE_INC;
301                      min: 0 0;
302                      align: 0.0 0.5;
303                      text_class: "slp_bold";
304                   }
305                }
306                description { state: "visible" 0.0;
307                   inherit: "default" 0.0;
308                   fixed: 1 1;
309                   visible: 1;
310                   text.min: 1 1;
311                   rel1.offset: -5 0;
312                   rel2.offset: -5 -1;
313                }
314             }
315             part { name: "elm.dragable.slider";
316                type: GROUP;
317                source: "elm/slider/horizontal/indicator/tap_to_drag";
318                mouse_events: 1;
319                scale: 1;
320                dragable {
321                   x: 1 1 0;
322                   y: 0 0 0;
323                   confine: "bg";
324                }
325                description { state: "default" 0.0;
326                   min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
327                   fixed: 1 1;
328                   rel1 {
329                      relative: 0.5 0.0;
330                      to_x: "bg";
331                   }
332                   rel2 {
333                      relative: 0.5 1.0;
334                      to_x: "bg";
335                   }
336                   color: 0 0 0 0;
337                }
338             }
339             part { name: "disabler";
340                type: RECT;
341                mouse_events: 1;
342                repeat_events: 0;
343                scale: 1;
344                description { state: "default" 0.0;
345                   visible: 0;
346                   min: 1 1;
347                   align: 0.5 0.5;
348                   color: SLIDER_DISABLER_PART_COLOR_INC;
349                }
350                description { state: "disabled" 0.0;
351                   inherit: "default" 0.0;
352                   visible: 1;
353                }
354             }
355          }
356          programs {
357             program { name: "text_show";
358             signal: "elm,state,text,visible";
359             source: "elm";
360             action:  STATE_SET "visible" 0.0;
361             target: "elm.text";
362          }
363          program { name: "text_hide";
364             signal: "elm,state,text,hidden";
365             source: "elm";
366             action:  STATE_SET "default" 0.0;
367             target: "elm.text";
368          }
369          program { name: "icon_show";
370             signal: "elm,state,icon,visible";
371             source: "elm";
372             action:  STATE_SET "visible" 0.0;
373             target: "elm.swallow.icon";
374          }
375          program { name: "icon_hide";
376             signal: "elm,state,icon,hidden";
377             source: "elm";
378             action:  STATE_SET "default" 0.0;
379             target: "elm.swallow.icon";
380          }
381          program { name: "end_show";
382             signal: "elm,state,end,visible";
383             source: "elm";
384             action:  STATE_SET "visible" 0.0;
385             target: "elm.swallow.end";
386          }
387          program { name: "end_hide";
388             signal: "elm,state,end,hidden";
389             source: "elm";
390             action:  STATE_SET "default" 0.0;
391             target: "elm.swallow.end";
392          }
393          program { name: "units_show";
394             signal: "elm,state,units,visible";
395             source: "elm";
396             action:  STATE_SET "visible" 0.0;
397             target: "elm.units";
398             target: "units";
399          }
400          program { name: "units_hide";
401             signal: "elm,state,units,hidden";
402             source: "elm";
403             action:  STATE_SET "default" 0.0;
404             target: "elm.units";
405             target: "units";
406          }
407          program { name: "invert_on";
408             signal: "elm,state,inverted,on";
409             source: "elm";
410             script {
411                set_invert_on();
412             }
413          }
414          program { name: "invert_off";
415             signal: "elm,state,inverted,off";
416             source: "elm";
417             script {
418                set_invert_off();
419             }
420          }
421          program { name: "val_show";
422             signal: "mouse,down,*";
423             source: "elm.dragable.slider";
424             script {
425                thumb_down();
426             }
427          }
428          program { name: "val_hide";
429             signal: "mouse,up,*";
430             source: "elm.dragable.slider";
431             script {
432                thumb_up();
433             }
434          }
435          program { name: "slider_disable";
436             signal: "elm,state,disabled";
437             source: "elm";
438             action:  STATE_SET "disabled" 0.0;
439             target: "disabler";
440          }
441          program { name: "slider_enable";
442             signal: "elm,state,enabled";
443             source: "elm";
444             action:  STATE_SET "default" 0.0;
445             target: "disabler";
446          }
447       }
448    }
449
450    group { name: "elm/slider/horizontal/indicator/default";
451            alias: "elm/slider/horizontal/indicator/disabled";
452            alias: "elm/slider/vertical/indicator/default";
453            alias: "elm/slider/vertical/indicator/disabled";
454            alias: "elm/slider/horizontal/indicator/tap_to_drag";
455       images {
456          image: "00_slider_handle.png" COMP;
457          image: "00_slider_handle_dim.png" COMP;
458       }
459       parts {
460          part { name: "button_events";
461             type: RECT;
462             mouse_events: 1;
463             scale: 1;
464             description { state: "default" 0.0;
465                fixed: 1 1;
466                min: 2*SLIDER_INDICATOR_WIDTH_INC 1.5*SLIDER_INDICATOR_HEIGHT_INC;
467                aspect: 1.0 1.0;
468                aspect_preference: VERTICAL;
469                color: 0 0 0 0;
470             }
471             description { state: "disabled" 0.0;
472                inherit: "default" 0.0;
473                visible: 0;
474             }
475          }
476          part { name: "button0";
477             mouse_events: 0;
478             scale: 1;
479             description { state: "default" 0.0;
480                fixed: 1 1;
481                min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
482                max: SLIDER_INDICATOR_MAX_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
483                rel1 {
484                   to: "elm.indicator";
485                   offset: -2 -2;
486                }
487                rel2 {
488                   to: "elm.indicator";
489                   offset: 2 2;
490                }
491                image {
492                   normal: "00_slider_handle.png";
493                   border: 3 3 3 3;
494                   border_scale: 1;
495                }
496             }
497             description { state: "disabled" 0.0;
498                inherit: "default" 0.0;
499                image {
500                   normal: "00_slider_handle_dim.png";
501                }
502             }
503          }
504          part { name: "elm.indicator";
505             type: TEXT;
506             mouse_events: 0;
507             scale: 1;
508             description { state: "default" 0.0;
509                visible: 1;
510                color: SLIDER_INDICATOR_TEXT_COLOR_INC;
511                text {
512                   font: "SLP:style=Medium";
513                   size: SLIDER_INDICATOR_TEXT_SIZE_INC;
514                   min: 1 1;
515                   align: 0.5 0.5;
516                   text_class: "slp_medium";
517                }
518             }
519             description { state: "hide" 0.0;
520                inherit: "default" 0.0;
521                visible: 0;
522              }
523          }
524       }
525       programs {
526          program { name: "set_val_show";
527             signal: "elm,state,val,show";
528             source: "elm";
529             action:  STATE_SET "default" 0.0;
530             target: "elm.indicator";
531          }
532          program { name: "set_val_hide";
533             signal: "elm,state,val,hide";
534             source: "elm";
535             action:  STATE_SET "hide" 0.0;
536             target: "elm.indicator";
537          }
538          program { name: "slider_disable";
539             signal: "elm,state,disabled";
540             source: "elm";
541             action:  STATE_SET "disabled" 0.0;
542             target: "button0";
543             target: "button_events";
544          }
545          program { name: "slider_enable";
546             signal: "elm,state,enabled";
547             source: "elm";
548             action:  STATE_SET "default" 0.0;
549             target: "button0";
550             target: "button_events";
551          }
552       }
553    }
554
555
556    group { name: "elm/slider/horizontal/volume";
557       images {
558          image: "00_volume_bg.png" COMP;
559          image: "00_volume_01.png" COMP;
560          image: "00_volume_02.png" COMP;
561          image: "00_volume_03.png" COMP;
562          image: "00_volume_04.png" COMP;
563          image: "00_volume_05.png" COMP;
564          image: "00_volume_06.png" COMP;
565          image: "00_volume_07.png" COMP;
566          image: "00_volume_08.png" COMP;
567          image: "00_volume_09.png" COMP;
568          image: "00_volume_10.png" COMP;
569          image: "00_volume_11.png" COMP;
570          image: "00_volume_12.png" COMP;
571          image: "00_volume_13.png" COMP;
572          image: "00_volume_14.png" COMP;
573       }
574       script {
575          public volume_state_change(){
576          new Float:x, Float:y;
577          get_drag(PART:"elm.dragable.slider", x, y);
578          if(x < 0.0333333)
579             set_state(PART:"base", "default", 0.0);
580          else if(x < 0.1)
581             set_state(PART:"base", "volume_01", 0.0);
582          else if(x < 0.1666666)
583             set_state(PART:"base", "volume_02", 0.0);
584          else if(x < 0.2333333)
585             set_state(PART:"base", "volume_03", 0.0);
586          else if(x < 0.3)
587             set_state(PART:"base", "volume_04", 0.0);
588          else if(x < 0.3666666)
589             set_state(PART:"base", "volume_05", 0.0);
590          else if(x < 0.4333333)
591             set_state(PART:"base", "volume_06", 0.0);
592          else if(x < 0.5)
593             set_state(PART:"base", "volume_07", 0.0);
594          else if(x < 0.5666666)
595             set_state(PART:"base", "volume_08", 0.0);
596          else if(x < 0.6333333)
597             set_state(PART:"base", "volume_09", 0.0);
598          else if(x < 0.7)
599             set_state(PART:"base", "volume_10", 0.0);
600          else if(x < 0.7666666)
601             set_state(PART:"base", "volume_11", 0.0);
602          else if(x < 0.8333333)
603             set_state(PART:"base", "volume_12", 0.0);
604          else if(x < 0.9)
605             set_state(PART:"base", "volume_13", 0.0);
606          else
607             set_state(PART:"base", "volume_14", 0.0);
608          }
609       }
610       parts {
611          part { name: "base";
612             mouse_events: 0;
613             scale: 1;
614             description { state: "default" 0.0;
615                max: 99999 62;
616                min: 0 62;
617                rel1 { to: "bg";
618                   offset: 0 0;
619                }
620                rel2 { to: "bg";
621                   offset: -1 -1;
622                }
623                image.normal: "00_volume_bg.png";
624             }
625 #define SLIDER_BG_PART(part_number)\
626             description {\
627                state: "volume_"part_number 0.0; \
628                inherit: "default" 0.0; \
629                image.normal: "00_volume_"part_number".png"; \
630             }
631             SLIDER_BG_PART(01)
632             SLIDER_BG_PART(02)
633             SLIDER_BG_PART(03)
634             SLIDER_BG_PART(04)
635             SLIDER_BG_PART(05)
636             SLIDER_BG_PART(06)
637             SLIDER_BG_PART(07)
638             SLIDER_BG_PART(08)
639             SLIDER_BG_PART(09)
640             SLIDER_BG_PART(10)
641             SLIDER_BG_PART(11)
642             SLIDER_BG_PART(12)
643             SLIDER_BG_PART(13)
644             SLIDER_BG_PART(14)
645          }
646          part { name: "bg";
647             type: RECT;
648             mouse_events: 0;
649             scale: 1;
650             description { state: "default" 0.0;
651                visible: 0;
652                rel1.to: "elm.swallow.bar";
653                rel2.to: "elm.swallow.bar";
654                rel2.offset: 0 0;
655             }
656          }
657          part { name: "elm.swallow.bar";
658             type: SWALLOW;
659             scale: 1;
660             description { state: "default" 0.0;
661                min: 48 62;
662                max: 99999 62;
663                align: 1.0 0.5;
664                rel1 {
665                   to_x: "bar_left_padding";
666                   relative: 1.0 0.0;
667                }
668                rel2 {
669                   to_x: "bar_right_padding";
670                   relative: 0.0 1.0;
671                }
672             }
673          }
674          part {
675             name: "bar_left_padding";
676             type: SWALLOW;
677             scale: 1;
678             description {
679                state: "default" 0.0;
680                visible: 0;
681                min: 10 0;
682                fixed: 1 1;
683                rel1 {
684                   relative: 1.0  0.5;
685                   to_x: "elm.text";
686                }
687                rel2 {
688                   relative: 1.0  0.5;
689                   to_x: "elm.text";
690                }
691                align: 0.0 0.5;
692             }
693          }
694          part {
695             name: "bar_right_padding";
696             type: SWALLOW;
697             scale: 1;
698             description {
699                state: "default" 0.0;
700                visible: 0;
701                min: 10 0;
702                fixed: 1 1;
703                rel1 {
704                   relative: 0.0  0.5;
705                   to_x: "elm.units";
706                }
707                rel2 {
708                   relative: 0.0  0.5;
709                   to_x: "elm.units";
710                }
711                align: 1.0 0.5;
712             }
713          }
714          part { name: "elm.swallow.icon";
715             type: SWALLOW;
716             scale: 1;
717             description { state: "default" 0.0;
718                visible: 0;
719                align: 0.0 0.5;
720                rel1 {
721                   to_y: "elm.swallow.bar";
722                }
723                rel2 {
724                   relative: 0.0 1.0;
725                   to_y: "elm.swallow.bar";
726                }
727             }
728             description { state: "visible" 0.0;
729                inherit: "default" 0.0;
730                visible: 1;
731                aspect: 1.0 1.0;
732                aspect_preference: VERTICAL;
733             }
734          }
735          part { name: "elm.text";
736             type: TEXT;
737             mouse_events: 0;
738             scale: 1;
739             description { state: "default" 0.0;
740                visible: 0;
741                fixed: 1 1;
742                align: 0.0 0.5;
743                rel1.to_x: "elm.swallow.icon";
744                rel1.relative: 1.0 0.0;
745                rel1.offset: -1 4;
746                rel2.to_x: "elm.swallow.icon";
747                rel2.relative: 1.0 1.0;
748                rel2.offset: -1 -5;
749                color: 164 160 149 255;
750                text {
751                   font: "SLP:style=Bold";
752                   size: 18;
753                   min: 0 0;
754                   align: 0.0 0.5;
755                   text_class: "slp_bold";
756                }
757             }
758             description { state: "visible" 0.0;
759                inherit: "default" 0.0;
760                visible: 1;
761                text.min: 1 1;
762                rel1.offset: 0 4;
763                rel2.offset: 0 -5;
764             }
765          }
766          part { name: "elm.swallow.end";
767             type: SWALLOW;
768             scale: 1;
769             description { state: "default" 0.0;
770                visible: 0;
771                align: 1.0 0.5;
772                rel1 {
773                   relative: 1.0 0.0;
774                   to_y: "elm.swallow.bar";
775                }
776                rel2 {
777                   relative: 1.0 1.0;
778                   to_y: "elm.swallow.bar";
779                }
780             }
781             description { state: "visible" 0.0;
782                inherit: "default" 0.0;
783                visible: 1;
784                aspect: 1.0 1.0;
785                aspect_preference: VERTICAL;
786             }
787          }
788          part { name: "units";
789             mouse_events: 0;
790             scale: 1;
791             description { state: "default" 0.0;
792                visible: 0;
793                rel1 {
794                   to_x: "elm.units";
795                   offset: 0 5;
796                }
797                image {
798    //              normal: "sl_units.png";
799                   border: 0 5 3 8;
800                   border_scale: 1;
801                }
802             }
803             description { state: "visible" 0.0;
804                inherit: "default" 0.0;
805                visible: 1;
806             }
807          }
808          part { name: "elm.units";
809             type: TEXT;
810             mouse_events: 0;
811             scale: 1;
812             description { state: "default" 0.0;
813                visible: 0;
814                fixed: 1 1;
815                align: 1.0 0.5;
816                rel1.relative: 0.0 0.0;
817                rel1.offset: 0 8;
818                rel1.to_x: "elm.swallow.end";
819                rel2.relative: 0.0 1.0;
820                rel2.offset: 0 -9;
821                rel2.to_x: "elm.swallow.end";
822                color: 164 160 149 255;
823                text {
824                   font: "SLP:style=Bold";
825                   size: 18;
826                   min: 0 0;
827                   align: 0.0 0.5;
828                   text_class: "slp_bold";
829                }
830             }
831             description { state: "visible" 0.0;
832                inherit: "default" 0.0;
833                fixed: 1 1;
834                visible: 1;
835                text.min: 1 1;
836                rel1.offset: -5 0;
837                rel2.offset: -5 -1;
838             }
839          }
840          part { name: "elm.dragable.slider";
841             type: RECT;
842             mouse_events: 1;
843             scale: 1;
844             dragable {
845                x: 1 1 0;
846                y: 0 0 0;
847                confine: "bg";
848             }
849             description { state: "default" 0.0;
850                min: 4 62;
851                fixed: 1 1;
852                rel1 {
853                   relative: 0.5 0.0;
854                   to_x: "bg";
855                }
856                rel2 {
857                   relative: 0.5 1.0;
858                   to_x: "bg";
859                }
860                color: 0 0 0 0;
861             }
862          }
863       }
864       programs {
865          program { name: "text_show";
866             signal: "elm,state,text,visible";
867             source: "elm";
868             action:  STATE_SET "visible" 0.0;
869             target: "elm.text";
870          }
871          program { name: "text_hide";
872             signal: "elm,state,text,hidden";
873             source: "elm";
874             action:  STATE_SET "default" 0.0;
875             target: "elm.text";
876          }
877          program { name: "icon_show";
878             signal: "elm,state,icon,visible";
879             source: "elm";
880             action:  STATE_SET "visible" 0.0;
881             target: "elm.swallow.icon";
882          }
883          program { name: "icon_hide";
884             signal: "elm,state,icon,hidden";
885             source: "elm";
886             action:  STATE_SET "default" 0.0;
887             target: "elm.swallow.icon";
888          }
889          program { name: "end_show";
890             signal: "elm,state,end,visible";
891             source: "elm";
892             action:  STATE_SET "visible" 0.0;
893             target: "elm.swallow.end";
894          }
895          program { name: "end_hide";
896             signal: "elm,state,end,hidden";
897             source: "elm";
898             action:  STATE_SET "default" 0.0;
899             target: "elm.swallow.end";
900          }
901          program { name: "units_show";
902             signal: "elm,state,units,visible";
903             source: "elm";
904             action:  STATE_SET "visible" 0.0;
905             target: "elm.units";
906             target: "units";
907          }
908          program { name: "units_hide";
909             signal: "elm,state,units,hidden";
910             source: "elm";
911             action:  STATE_SET "default" 0.0;
912             target: "elm.units";
913             target: "units";
914          }
915          program { name: "volume_state_change";
916             signal: "elm,state,drag";
917             source: "elm";
918             script {
919                volume_state_change()
920             }
921          }
922       }
923    }
924
925    group { name: "elm/slider/vertical/volume";
926       images {
927          image: "00_volume_00_ver.png" COMP;
928          image: "00_volume_01_ver.png" COMP;
929          image: "00_volume_02_ver.png" COMP;
930          image: "00_volume_03_ver.png" COMP;
931          image: "00_volume_04_ver.png" COMP;
932          image: "00_volume_05_ver.png" COMP;
933          image: "00_volume_06_ver.png" COMP;
934          image: "00_volume_07_ver.png" COMP;
935          image: "00_volume_08_ver.png" COMP;
936          image: "00_volume_09_ver.png" COMP;
937          image: "00_volume_10_ver.png" COMP;
938          image: "00_volume_11_ver.png" COMP;
939          image: "00_volume_12_ver.png" COMP;
940          image: "00_volume_13_ver.png" COMP;
941          image: "00_volume_14_ver.png" COMP;
942       }
943       script {
944          public volume_state_change(){
945             new Float:x, Float:y;
946             get_drag(PART:"elm.dragable.slider", x, y);
947             if(y <= 0.1)
948                set_state(PART:"base", "volume_14", 0.0);
949             else if(y <= 0.1666666)
950                set_state(PART:"base", "volume_13", 0.0);
951             else if(y <= 0.2333333)
952                set_state(PART:"base", "volume_12", 0.0);
953             else if(y <= 0.3)
954                set_state(PART:"base", "volume_11", 0.0);
955             else if(y <= 0.3666666)
956                set_state(PART:"base", "volume_10", 0.0);
957             else if(y <= 0.4333333)
958                set_state(PART:"base", "volume_09", 0.0);
959             else if(y <= 0.5)
960                set_state(PART:"base", "volume_08", 0.0);
961             else if(y <= 0.5666666)
962                set_state(PART:"base", "volume_07", 0.0);
963             else if(y <= 0.6333333)
964                set_state(PART:"base", "volume_06", 0.0);
965             else if(y <= 0.7)
966                set_state(PART:"base", "volume_05", 0.0);
967             else if(y <= 0.7666666)
968                set_state(PART:"base", "volume_04", 0.0);
969             else if(y <= 0.8333333)
970                set_state(PART:"base", "volume_03", 0.0);
971             else if(y <= 0.9)
972                set_state(PART:"base", "volume_02", 0.0);
973             else if(y <= 0.9666666)
974                set_state(PART:"base", "volume_01", 0.0);
975             else
976                set_state(PART:"base", "default", 0.0);
977          }
978       }
979       parts {
980          part { name: "base";
981             scale: 1;
982             description { state: "default" 0.0;
983                max: 126 999999;
984                min: 126 0;
985                fixed: 1 1;
986                rel1 { to: "bg";
987                   offset: 0 0;
988                }
989                rel2 { to: "bg";
990                   offset: -1 -1;
991                }
992                image.normal: "00_volume_00_ver.png";
993             }
994 #define SLIDER_VER_BG_PART(part_number)\
995             description {\
996                state: "volume_"part_number 0.0; \
997                inherit: "default" 0.0; \
998                image.normal: "00_volume_"part_number"_ver.png"; \
999             }
1000             SLIDER_VER_BG_PART(01)
1001             SLIDER_VER_BG_PART(02)
1002             SLIDER_VER_BG_PART(03)
1003             SLIDER_VER_BG_PART(04)
1004             SLIDER_VER_BG_PART(05)
1005             SLIDER_VER_BG_PART(06)
1006             SLIDER_VER_BG_PART(07)
1007             SLIDER_VER_BG_PART(08)
1008             SLIDER_VER_BG_PART(09)
1009             SLIDER_VER_BG_PART(10)
1010             SLIDER_VER_BG_PART(11)
1011             SLIDER_VER_BG_PART(12)
1012             SLIDER_VER_BG_PART(13)
1013             SLIDER_VER_BG_PART(14)
1014             }
1015          part { name: "bg";
1016             type: RECT;
1017             mouse_events: 0;
1018             scale: 1;
1019             description { state: "default" 0.0;
1020                visible: 0;
1021                rel1.to: "elm.swallow.bar";
1022                rel2.to: "elm.swallow.bar";
1023                rel2.offset: 0 0;
1024             }
1025          }
1026          part { name: "elm.swallow.bar";
1027             type: SWALLOW;
1028             scale: 1;
1029             description { state: "default" 0.0;
1030                min: 126 48;
1031                max: 126 99999;
1032                align: 0.5 1.0;
1033                rel1 {
1034                   to_y: "bar_top_padding";
1035                   relative: 0.0 1.0;
1036                }
1037                rel2 {
1038                   to_y: "bar_bottom_padding";
1039                   relative: 1.0 0.0;
1040                }
1041             }
1042          }
1043          part {
1044             name: "bar_top_padding";
1045             type: SWALLOW;
1046             scale: 1;
1047             description {
1048                state: "default" 0.0;
1049                visible: 0;
1050             //   min: 0 10;
1051                fixed: 1 1;
1052                rel1 {
1053                   relative: 0.5 1.0;
1054                   to_y: "elm.text";
1055                }
1056                rel2 {
1057                   relative: 0.5 1.0;
1058                   to_y: "elm.text";
1059                }
1060                align: 0.5 0.0;
1061             }
1062          }
1063          part {
1064             name: "bar_bottom_padding";
1065             type: SWALLOW;
1066             description {
1067                state: "default" 0.0;
1068                visible: 0;
1069             //   min: 0 10;
1070                fixed: 1 1;
1071                rel1 {
1072                   relative: 0.5 0.0;
1073                   to_y: "elm.units";
1074                }
1075                rel2 {
1076                   relative: 0.5 0.0;
1077                   to_y: "elm.units";
1078                }
1079                align: 0.5 1.0;
1080             }
1081          }
1082          part { name: "elm.swallow.icon";
1083             type: SWALLOW;
1084             scale: 1;
1085             description { state: "default" 0.0;
1086                visible: 0;
1087                align: 0.5 0.0;
1088                rel1 {
1089                   to_x: "elm.swallow.bar";
1090                }
1091                rel2 {
1092                   relative: 1.0 0.0;
1093                   to_x: "elm.swallow.bar";
1094                }
1095             }
1096             description { state: "visible" 0.0;
1097                inherit: "default" 0.0;
1098                visible: 1;
1099                aspect: 1.0 1.0;
1100                aspect_preference: HORIZONTAL;
1101             }
1102          }
1103          part { name: "elm.text";
1104             type: TEXT;
1105             mouse_events: 0;
1106             scale: 1;
1107             description { state: "default" 0.0;
1108                visible: 0;
1109                fixed: 1 1;
1110                align: 0.5 0.0;
1111                rel1.to_y: "elm.swallow.icon";
1112                rel1.relative: 0.0 1.0;
1113                rel2.to_y: "elm.swallow.icon";
1114                rel2.relative: 1.0 1.0;
1115                color: 164 160 149 255;
1116                text {
1117                   font: "SLP:style=Bold";
1118                   size: 18;
1119                   min: 0 0;
1120                   align: 0.5 0;
1121                   text_class: "slp_bold";
1122                }
1123             }
1124             description { state: "visible" 0.0;
1125                inherit: "default" 0.0;
1126                visible: 1;
1127                text.min: 1 1;
1128             }
1129          }
1130          part { name: "elm.swallow.end";
1131             type: SWALLOW;
1132             scale: 1;
1133             description { state: "default" 0.0;
1134                visible: 0;
1135                align: 0.5 1.0;
1136                rel1 {
1137                   relative: 0.0 1.0;
1138                   to_x: "elm.swallow.bar";
1139                }
1140                rel2 {
1141                   relative: 1.0 1.0;
1142                   to_x: "elm.swallow.bar";
1143                }
1144             }
1145             description { state: "visible" 0.0;
1146                inherit: "default" 0.0;
1147                visible: 1;
1148                aspect: 1.0 1.0;
1149                 aspect_preference: HORIZONTAL;
1150             }
1151          }
1152          part { name: "units";
1153             mouse_events: 0;
1154             scale: 1;
1155             description { state: "default" 0.0;
1156                visible: 0;
1157                rel1 {
1158                   to_y: "elm.units";
1159                }
1160             }
1161              description { state: "visible" 0.0;
1162                 inherit: "default" 0.0;
1163                 visible: 1;
1164             }
1165          }
1166          part { name: "elm.units";
1167             type: TEXT;
1168             mouse_events: 0;
1169             scale: 1;
1170             description { state: "default" 0.0;
1171                visible: 0;
1172                fixed: 1 1;
1173                align: 0.5 1.0;
1174                rel1.relative: 0.0 0.0;
1175                rel1.to_y: "elm.swallow.end";
1176                rel2.relative: 1.0 0.0;
1177                rel2.to_y: "elm.swallow.end";
1178                color: 164 160 149 255;
1179                text {
1180                   font: "SLP:style=Bold";
1181                   size: 18;
1182                   min: 0 0;
1183                   align: 0.5 0.0;
1184                   text_class: "slp_bold";
1185                }
1186             }
1187             description { state: "visible" 0.0;
1188                inherit: "default" 0.0;
1189                fixed: 1 1;
1190                visible: 1;
1191                text.min: 1 1;
1192                rel1.offset: -5 0;
1193                rel2.offset: -5 -1;
1194             }
1195          }
1196          part { name: "elm.dragable.slider";
1197             type: RECT;
1198             mouse_events: 1;
1199             scale: 1;
1200             dragable {
1201                x: 0 0 0;
1202                y: 1 1 0;
1203                confine: "bg";
1204             }
1205             description { state: "default" 0.0;
1206                min: 126 5;
1207                fixed: 1 1;
1208                rel1 {
1209                   relative: 0.0 0.5;
1210                   to_x: "bg";
1211                }
1212                rel2 {
1213                   relative: 1.0 0.5;
1214                   to_x: "bg";
1215                }
1216                color: 0 0 0 0;
1217             }
1218          }
1219       }
1220       programs {
1221          program { name: "text_show";
1222             signal: "elm,state,text,visible";
1223             source: "elm";
1224             action:  STATE_SET "visible" 0.0;
1225             target: "elm.text";
1226          }
1227          program { name: "text_hide";
1228             signal: "elm,state,text,hidden";
1229             source: "elm";
1230             action:  STATE_SET "default" 0.0;
1231             target: "elm.text";
1232          }
1233          program { name: "icon_show";
1234             signal: "elm,state,icon,visible";
1235             source: "elm";
1236             action:  STATE_SET "visible" 0.0;
1237             target: "elm.swallow.icon";
1238          }
1239          program { name: "icon_hide";
1240             signal: "elm,state,icon,hidden";
1241             source: "elm";
1242             action:  STATE_SET "default" 0.0;
1243             target: "elm.swallow.icon";
1244          }
1245           program { name: "end_show";
1246             signal: "elm,state,end,visible";
1247             source: "elm";
1248             action:  STATE_SET "visible" 0.0;
1249             target: "elm.swallow.end";
1250          }
1251          program { name: "end_hide";
1252             signal: "elm,state,end,hidden";
1253             source: "elm";
1254             action:  STATE_SET "default" 0.0;
1255             target: "elm.swallow.end";
1256          }
1257          program { name: "units_show";
1258             signal: "elm,state,units,visible";
1259             source: "elm";
1260             action:  STATE_SET "visible" 0.0;
1261             target: "elm.units";
1262             target: "units";
1263          }
1264          program { name: "units_hide";
1265             signal: "elm,state,units,hidden";
1266             source: "elm";
1267             action:  STATE_SET "default" 0.0;
1268             target: "elm.units";
1269             target: "units";
1270          }
1271          program { name: "volume_state_change";
1272             signal: "elm,state,drag";
1273             source: "elm";
1274             script {
1275                volume_state_change()
1276             }
1277          }
1278       }
1279    }
1280
1281    group { name: "elm/slider/horizontal/ebook";
1282       images {
1283          image: "00_winset_list_progress_bg.png" COMP;
1284          image: "00_winset_list_progress_bar.png" COMP;
1285          image: "00_winset_list_progress_bar_pressed.png" COMP;
1286          image: "00_ebook_slider_handle.png" COMP;
1287          image: "00_ebook_slider_handle_press.png" COMP;
1288       }
1289       script    {
1290          public value_hide = 0;
1291          public invert_on = 0;
1292          public set_value_show() {
1293             set_int(value_hide, 0);
1294             set_state(PART:"elm.indicator", "default", 0.0);
1295          }
1296          public set_value_hide() {
1297             set_int(value_hide, 1);
1298             set_state(PART:"elm.indicator", "hide", 0.0);
1299          }
1300          public set_invert_on() {
1301             set_state(PART:"level", "inverted", 0.0);
1302             set_state(PART:"level2", "inverted", 0.0);
1303             set_int(invert_on, 1);
1304          }
1305          public set_invert_off() {
1306             set_state(PART:"level", "default", 0.0);
1307             set_state(PART:"level2", "default", 0.0);
1308             set_int(invert_on, 0);
1309          }
1310          public thumb_down() {
1311             if(get_int(value_hide) == 1) {
1312                set_state(PART:"elm.indicator", "hide", 0.0);
1313                set_state(PART:"button0", "visible", 0.0);
1314             } else {
1315                set_state(PART:"elm.indicator", "visible", 0.0);
1316                set_state(PART:"button0", "visible", 0.0);
1317             }
1318             if(get_int(invert_on) == 0)
1319                set_state(PART:"level", "pressed", 0.0);
1320             else if(get_int(invert_on) == 1)
1321                set_state(PART:"level2", "pressed", 0.0);
1322             }
1323          public thumb_up() {
1324             if(get_int(value_hide) == 1)
1325                set_state(PART:"elm.indicator", "hide", 0.0);
1326             else
1327                set_state(PART:"elm.indicator", "default", 0.0);
1328             if(get_int(invert_on) == 0)
1329                set_state(PART:"level", "default", 0.0);
1330             else if(get_int(invert_on) == 1)
1331                set_state(PART:"level2", "inverted", 0.0);
1332             set_state(PART:"button0", "default", 0.0);
1333          }
1334       }
1335       parts {
1336          part { name: "base";
1337             mouse_events: 0;
1338             scale: 1;
1339             description { state: "default" 0.0;
1340                max: 99999 SLIDER_EBOOK_HEIGHT_INC;
1341                min: 0 SLIDER_EBOOK_HEIGHT_INC;
1342                rel1 { to: "bg";
1343                   offset: 11 0;
1344                }
1345                rel2 { to: "bg";
1346                   offset: -15 -1;
1347                }
1348                image.normal: "00_winset_list_progress_bg.png";
1349                image.border: 0 0 4 4;
1350                image.border_scale: 1;
1351             }
1352          }
1353          part { name: "level";
1354             mouse_events: 0;
1355             scale: 1;
1356             description { state: "default" 0.0;
1357                fixed: 1 1;
1358                rel1.to: "base";
1359                rel2 {
1360                   to_y: "base";
1361                   to_x: "elm.dragable.slider";
1362                   offset: -5 -1;
1363                   relative: 0.5 1.0;
1364                }
1365                image.normal: "00_winset_list_progress_bar.png";
1366                image.border: 0 0 4 4;
1367                image.border_scale: 1;
1368             }
1369             description { state: "inverted" 0.0;
1370                inherit: "default" 0.0;
1371                visible: 0;
1372             }
1373              description { state: "pressed" 0.0;
1374                inherit: "default" 0.0;
1375                image.normal: "00_winset_list_progress_bar_pressed.png";
1376                image.border: 0 0 4 4;
1377                image.border_scale: 1;
1378             }
1379          }
1380          part { name: "level2";
1381             mouse_events: 0;
1382             scale: 1;
1383             description { state: "default" 0.0;
1384                fixed: 1 1;
1385                visible: 0;
1386                rel1 {
1387                   to_y: "base";
1388                   to_x: "elm.dragable.slider";
1389                   relative: 0.5 0.0;
1390                }
1391                rel2.to: "base";
1392                rel2.offset: -2 -1;
1393                image.normal: "00_winset_list_progress_bar.png";
1394                image.border: 0 0 4 4;
1395                image.border_scale: 1;
1396             }
1397             description { state: "inverted" 0.0;
1398                inherit: "default" 0.0;
1399                visible: 1;
1400             }
1401             description { state: "pressed" 0.0;
1402                inherit: "default" 0.0;
1403                visible: 1;
1404                image.normal: "00_winset_list_progress_bar_pressed.png";
1405                image.border: 0 0 4 4;
1406                image.border_scale: 1;
1407             }
1408          }
1409          part { name: "bg";
1410             type: RECT;
1411             mouse_events: 0;
1412             scale: 1;
1413             description { state: "default" 0.0;
1414                visible: 0;
1415                rel1.to: "elm.swallow.bar";
1416                rel2.to: "elm.swallow.bar";
1417                rel2.offset: 3 0;
1418                color: 0 0 0 0;
1419             }
1420          }
1421          part { name: "elm.swallow.bar";
1422             type: SWALLOW;
1423             scale: 1;
1424             description { state: "default" 0.0;
1425                min: 48 48;
1426                max: 99999 48;
1427                align: 1.0 0.5;
1428                rel1 {
1429                   to_x: "bar_left_padding";
1430                   relative: 1.0 0.0;
1431                //   offset: 2 0;
1432                }
1433                rel2 {
1434                   to_x: "bar_right_padding";
1435                   relative: 0.0 1.0;
1436                //   offset: -3 -1;
1437                }
1438             }
1439          }
1440          part {
1441             name: "bar_left_padding";
1442             type: SWALLOW;
1443             scale: 1;
1444             description {
1445                state: "default" 0.0;
1446                visible: 0;
1447                min: 10 0;
1448                fixed: 1 1;
1449                rel1 {
1450                   relative: 1.0  0.5;
1451                   to_x: "elm.text";
1452                }
1453                rel2 {
1454                   relative: 1.0  0.5;
1455                   to_x: "elm.text";
1456                }
1457                align: 0.0 0.5;
1458             }
1459          }
1460          part {
1461             name: "bar_right_padding";
1462             type: SWALLOW;
1463             scale: 1;
1464             description {
1465                state: "default" 0.0;
1466                visible: 0;
1467                min: 10 0;
1468                fixed: 1 1;
1469                rel1 {
1470                   relative: 0.0  0.5;
1471                   to_x: "elm.units";
1472                }
1473                rel2 {
1474                   relative: 0.0  0.5;
1475                   to_x: "elm.units";
1476                }
1477                align: 1.0 0.5;
1478             }
1479          }
1480          part { name: "elm.swallow.icon";
1481             type: SWALLOW;
1482             scale: 1;
1483             description { state: "default" 0.0;
1484                visible: 0;
1485                align: 0.0 0.5;
1486                rel1 {
1487                   to_y: "elm.swallow.bar";
1488                }
1489                rel2 {
1490                   relative: 0.0 1.0;
1491                   to_y: "elm.swallow.bar";
1492                }
1493             }
1494             description { state: "visible" 0.0;
1495                inherit: "default" 0.0;
1496                visible: 1;
1497                aspect: 1.0 1.0;
1498                aspect_preference: VERTICAL;
1499             }
1500          }
1501          part { name: "elm.text";
1502             type: TEXT;
1503             mouse_events: 0;
1504             scale: 1;
1505             description { state: "default" 0.0;
1506                visible: 0;
1507                fixed: 1 1;
1508                align: 0.0 0.5;
1509                rel1.to_x: "elm.swallow.icon";
1510                rel1.relative: 1.0 0.0;
1511                rel1.offset: -1 4;
1512                rel2.to_x: "elm.swallow.icon";
1513                rel2.relative: 1.0 1.0;
1514                rel2.offset: -1 -5;
1515                color: SLIDER_EBOOK_UNITS_TEXT_COLOR_INC;
1516                text {
1517                   font: "SLP:style=Bold";
1518                   size: SLIDER_EBOOK_UNITS_TEXT_SIZE_INC;
1519                   min: 0 0;
1520                   align: 0.0 0.5;
1521                   text_class: "slp_bold";
1522                }
1523             }
1524             description { state: "visible" 0.0;
1525                inherit: "default" 0.0;
1526                visible: 1;
1527                text.min: 1 1;
1528                rel1.offset: 0 4;
1529                rel2.offset: 0 -5;
1530             }
1531          }
1532          part { name: "elm.swallow.end";
1533             type: SWALLOW;
1534             scale: 1;
1535             description { state: "default" 0.0;
1536                visible: 0;
1537                align: 1.0 0.5;
1538                rel1 {
1539                   relative: 1.0 0.0;
1540                   to_y: "elm.swallow.bar";
1541                }
1542                rel2 {
1543                   relative: 1.0 1.0;
1544                   to_y: "elm.swallow.bar";
1545                }
1546             }
1547             description { state: "visible" 0.0;
1548                inherit: "default" 0.0;
1549                visible: 1;
1550                aspect: 1.0 1.0;
1551                aspect_preference: VERTICAL;
1552             }
1553          }
1554          part { name: "units";
1555             mouse_events: 0;
1556             scale: 1;
1557             description { state: "default" 0.0;
1558                visible: 0;
1559                rel1 {
1560                   to_x: "elm.units";
1561                   offset: 0 5;
1562                }
1563                image {
1564 //                  normal: "sl_units.png";
1565                   border: 0 5 3 8;
1566                   border_scale: 1;
1567                }
1568             }
1569             description { state: "visible" 0.0;
1570                inherit: "default" 0.0;
1571                visible: 1;
1572             }
1573          }
1574          part { name: "elm.units";
1575             type: TEXT;
1576             mouse_events: 0;
1577             scale: 1;
1578             description { state: "default" 0.0;
1579                visible: 0;
1580                fixed: 1 1;
1581                align: 1.0 0.5;
1582                rel1.relative: 0.0 0.0;
1583                rel1.offset: 0 8;
1584                rel1.to_x: "elm.swallow.end";
1585                rel2.relative: 0.0 1.0;
1586                rel2.offset: 0 -9;
1587                rel2.to_x: "elm.swallow.end";
1588                color: SLIDER_EBOOK_UNITS_TEXT_COLOR_INC;
1589                text {
1590                   font: "SLP:style=Bold";
1591                   size: SLIDER_EBOOK_UNITS_TEXT_SIZE_INC;
1592                   min: 0 0;
1593                   align: 0.0 0.5;
1594                   text_class: "slp_bold";
1595                }
1596             }
1597             description { state: "visible" 0.0;
1598                inherit: "default" 0.0;
1599                fixed: 1 1;
1600                visible: 1;
1601                text.min: 1 1;
1602                rel1.offset: -5 0;
1603                rel2.offset: -5 -1;
1604             }
1605          }
1606          part { name: "elm.dragable.slider";
1607             type: RECT;
1608             mouse_events: 1;
1609             scale: 1;
1610             dragable {
1611                x: 1 1 0;
1612                y: 0 0 0;
1613                confine: "bg";
1614             }
1615             description { state: "default" 0.0;
1616                min: SLIDER_EBOOK_INDICATOR_WIDTH_INC SLIDER_EBOOK_INDICATOR_HEIGHT_INC;
1617                fixed: 1 1;
1618                rel1 {
1619                   relative: 0.5 0.0;
1620                   to_x: "bg";
1621                }
1622                rel2 {
1623                   relative: 0.5 1.0;
1624                   to_x: "bg";
1625                }
1626                color: 0 0 0 0;
1627             }
1628          }
1629          part { name: "button0";
1630             mouse_events: 0;
1631             scale: 1;
1632             description { state: "default" 0.0;
1633                fixed: 1 1;
1634                min: SLIDER_EBOOK_INDICATOR_WIDTH_INC SLIDER_EBOOK_INDICATOR_HEIGHT_INC;
1635                max: SLIDER_EBOOK_INDICATOR_WIDTH_INC SLIDER_EBOOK_INDICATOR_HEIGHT_INC;
1636                rel1.to: "elm.dragable.slider";
1637                rel2.to: "elm.dragable.slider";
1638                image {
1639                   normal: "00_ebook_slider_handle.png";
1640                   border: 12 12 12 12;
1641                   border_scale: 1;
1642                }
1643             }
1644             description { state: "visible" 0.0;
1645                inherit: "default" 0.0;
1646                image {
1647                   normal: "00_ebook_slider_handle_press.png";
1648                }
1649             }
1650          }
1651          part { name: "popup";
1652             mouse_events: 0;
1653             scale: 1;
1654             description { state: "default" 0.0;
1655                rel1 {
1656                   to: "button0";
1657                   relative: 0.0 0.0;
1658                   offset: -20 -92;
1659                }
1660                rel2 {
1661                   to: "button0";
1662                   relative: 1.0 0.0;
1663                   offset: 22 0;
1664                }
1665                image {
1666             //      normal: "00_slider_popup_bg.png";
1667                   border: 13 21 10 22;
1668                     border_scale: 1;
1669                }
1670                visible: 0;
1671             }
1672             description { state: "visible" 0.0;
1673                inherit: "default" 0.0;
1674                visible: 1;
1675             }
1676          }
1677          part { name: "elm.indicator";
1678             type: TEXT;
1679             mouse_events: 0;
1680 //            effect: SOFT_SHADOW;
1681             scale: 1;
1682             description { state: "default" 0.0;
1683                visible: 1;
1684                fixed: 1 1;
1685                align: 0.5 0.5;
1686                rel1 {
1687                   to: "button0";
1688                   relative: 0.0 0;
1689                   offset: 0 0;
1690                }
1691                rel2 {
1692                   to: "button0";
1693                   relative: 1.0 1.0;
1694                   offset: -2 -2;
1695                }
1696                color: SLIDER_EBOOK_INDICATOR_TEXT_COLOR_INC;
1697                color3: 0 0 0 64;
1698                text {
1699                   font:     "SLP:style=Bold";
1700                   size:     SLIDER_EBOOK_INDICATOR_DEFAULT_TEXT_SIZE_INC;
1701                   min:      1 1;
1702                   align:    0.5 0.5;
1703                   text_class: "slp_bold";
1704                }
1705             }
1706             description { state: "visible" 0.0;
1707                inherit: "default" 0.0;
1708                visible: 1;
1709                color: SLIDER_EBOOK_INDICATOR_TEXT_COLOR_INC;
1710                text.size: SLIDER_EBOOK_INDICATOR_DRAG_TEXT_SIZE_INC;
1711                rel1.to: "popup";
1712                rel2 {
1713                   to: "popup";
1714                   offset: -2 -10;
1715                }
1716             }
1717             description { state: "hide" 0.0;
1718                inherit: "default" 0.0;
1719                visible: 0;
1720              }
1721          }
1722       }
1723       programs {
1724          program { name: "text_show";
1725             signal: "elm,state,text,visible";
1726             source: "elm";
1727             action:  STATE_SET "visible" 0.0;
1728             target: "elm.text";
1729          }
1730          program { name: "text_hide";
1731             signal: "elm,state,text,hidden";
1732             source: "elm";
1733             action:  STATE_SET "default" 0.0;
1734             target: "elm.text";
1735          }
1736          program { name: "icon_show";
1737             signal: "elm,state,icon,visible";
1738             source: "elm";
1739             action:  STATE_SET "visible" 0.0;
1740             target: "elm.swallow.icon";
1741          }
1742          program { name: "icon_hide";
1743             signal: "elm,state,icon,hidden";
1744             source: "elm";
1745             action:  STATE_SET "default" 0.0;
1746             target: "elm.swallow.icon";
1747          }
1748          program { name: "end_show";
1749             signal: "elm,state,end,visible";
1750             source: "elm";
1751             action:  STATE_SET "visible" 0.0;
1752             target: "elm.swallow.end";
1753          }
1754          program { name: "end_hide";
1755             signal: "elm,state,end,hidden";
1756             source: "elm";
1757             action:  STATE_SET "default" 0.0;
1758             target: "elm.swallow.end";
1759          }
1760          program { name: "units_show";
1761             signal: "elm,state,units,visible";
1762             source: "elm";
1763             action:  STATE_SET "visible" 0.0;
1764             target: "elm.units";
1765             target: "units";
1766          }
1767          program { name: "units_hide";
1768             signal: "elm,state,units,hidden";
1769             source: "elm";
1770             action:  STATE_SET "default" 0.0;
1771             target: "elm.units";
1772             target: "units";
1773          }
1774          program { name: "invert_on";
1775             signal: "elm,state,inverted,on";
1776             source: "elm";
1777             script {
1778                set_invert_on();
1779             }
1780          }
1781          program { name: "invert_off";
1782             signal: "elm,state,inverted,off";
1783             source: "elm";
1784             script {
1785                set_invert_off();
1786             }
1787          }
1788          program { name: "set_val_show";
1789             signal: "elm,state,val,show";
1790             source: "elm";
1791             script {
1792                set_value_show();
1793             }
1794          }
1795          program { name: "set_val_hide";
1796             signal: "elm,state,val,hide";
1797             source: "elm";
1798             script {
1799                set_value_hide();
1800             }
1801          }
1802          program { name: "val_show";
1803             signal: "mouse,down,*";
1804             source: "elm.dragable.slider";
1805             script {
1806                thumb_down();
1807             }
1808          }
1809          program { name: "val_hide";
1810             signal: "mouse,up,*";
1811             source: "elm.dragable.slider";
1812             script {
1813                thumb_up();
1814             }
1815          }
1816       }
1817    }
1818    
1819    group { name: "elm/slider/vertical/volume7";
1820       images {
1821          image: "00_volume7_00_ver.png" COMP;
1822          image: "00_volume7_01_ver.png" COMP;
1823          image: "00_volume7_02_ver.png" COMP;
1824          image: "00_volume7_03_ver.png" COMP;
1825          image: "00_volume7_04_ver.png" COMP;
1826          image: "00_volume7_05_ver.png" COMP;
1827          image: "00_volume7_06_ver.png" COMP;
1828          image: "00_volume7_07_ver.png" COMP;
1829                }
1830       script {
1831          public volume_state_change(){
1832             new Float:x, Float:y;
1833             get_drag(PART:"elm.dragable.slider", x, y);
1834             if(y <= 0.1875)
1835                set_state(PART:"base", "volume_07", 0.0);
1836             else if(y <= 0.3125)
1837                set_state(PART:"base", "volume_06", 0.0);
1838             else if(y <= 0.4375)
1839                set_state(PART:"base", "volume_05", 0.0);
1840             else if(y <= 0.5625)
1841                set_state(PART:"base", "volume_04", 0.0);
1842             else if(y <= 0.6875)
1843                set_state(PART:"base", "volume_03", 0.0);
1844             else if(y <= 0.8125)
1845                set_state(PART:"base", "volume_02", 0.0);
1846             else if(y <= 0.9375)
1847                set_state(PART:"base", "volume_01", 0.0);
1848             else
1849                set_state(PART:"base", "default", 0.0);
1850          }
1851       }
1852       parts {
1853          part { name: "base";
1854          scale: 1;
1855          description { state: "default" 0.0;
1856             min: 175 0;
1857             max: 175 999999;
1858             fixed: 1 1;
1859             rel1 { to: "bg";
1860                offset: 0 0;
1861             }
1862             rel2 { to: "bg";
1863                offset: -1 -1;
1864             }
1865             image.normal: "00_volume7_00_ver.png";
1866          }
1867 #define SLIDER7_VER_BG_PART(part_number)\
1868             description {\
1869                state: "volume_"part_number 0.0; \
1870                inherit: "default" 0.0; \
1871                image.normal: "00_volume7_"part_number"_ver.png"; \
1872             }
1873             SLIDER7_VER_BG_PART(01)
1874             SLIDER7_VER_BG_PART(02)
1875             SLIDER7_VER_BG_PART(03)
1876             SLIDER7_VER_BG_PART(04)
1877             SLIDER7_VER_BG_PART(05)
1878             SLIDER7_VER_BG_PART(06)
1879             SLIDER7_VER_BG_PART(07)
1880          }
1881          part { name: "bg";
1882             type: RECT;
1883             mouse_events: 0;
1884             scale: 1;
1885             description { state: "default" 0.0;
1886                visible: 0;
1887                rel1.to: "elm.swallow.bar";
1888                rel2.to: "elm.swallow.bar";
1889                rel2.offset: 0 0;
1890             }
1891          }
1892          part { name: "elm.swallow.bar";
1893             type: SWALLOW;
1894             scale: 1;
1895             description { state: "default" 0.0;
1896                min: 175 0;
1897                max: 175 99999;
1898                align: 0.5 1.0;
1899             }
1900          }
1901          part {
1902             name: "bar_top_padding";
1903             type: SWALLOW;
1904             scale: 1;
1905             description {
1906                state: "default" 0.0;
1907                visible: 0;
1908             //   min: 0 10;
1909                fixed: 1 1;
1910                rel1 {
1911                   relative: 0.5 1.0;
1912                   to_y: "elm.text";
1913                }
1914                rel2 {
1915                   relative: 0.5 1.0;
1916                   to_y: "elm.text";
1917                }
1918                align: 0.5 0.0;
1919             }
1920          }
1921          part {
1922             name: "bar_bottom_padding";
1923             type: SWALLOW;
1924             description {
1925                state: "default" 0.0;
1926                visible: 0;
1927             //   min: 0 10;
1928                fixed: 1 1;
1929                rel1 {
1930                   relative: 0.5 0.0;
1931                   to_y: "elm.units";
1932                }
1933                rel2 {
1934                   relative: 0.5 0.0;
1935                   to_y: "elm.units";
1936                }
1937                align: 0.5 1.0;
1938             }
1939          }
1940          part { name: "elm.swallow.icon";
1941             type: SWALLOW;
1942             scale: 1;
1943             description { state: "default" 0.0;
1944                visible: 0;
1945                align: 0.5 0.0;
1946                rel1 {
1947                   to_x: "elm.swallow.bar";
1948                }
1949                rel2 {
1950                   relative: 1.0 0.0;
1951                   to_x: "elm.swallow.bar";
1952                }
1953             }
1954             description { state: "visible" 0.0;
1955                inherit: "default" 0.0;
1956                visible: 1;
1957                aspect: 1.0 1.0;
1958                aspect_preference: HORIZONTAL;
1959             }
1960          }
1961          part { name: "elm.text";
1962             type: TEXT;
1963             mouse_events: 0;
1964             scale: 1;
1965             description { state: "default" 0.0;
1966                visible: 0;
1967                fixed: 1 1;
1968                align: 0.5 0.0;
1969                rel1.to_y: "elm.swallow.icon";
1970                rel1.relative: 0.0 1.0;
1971                rel2.to_y: "elm.swallow.icon";
1972                rel2.relative: 1.0 1.0;
1973                color: 164 160 149 255;
1974                text {
1975                   font: "SLP:style=Bold";
1976                   size: 18;
1977                   min: 0 0;
1978                   align: 0.5 0;
1979                   text_class: "slp_bold";
1980                }
1981             }
1982             description { state: "visible" 0.0;
1983                inherit: "default" 0.0;
1984                visible: 1;
1985                text.min: 1 1;
1986             }
1987          }
1988          part { name: "elm.swallow.end";
1989             type: SWALLOW;
1990             scale: 1;
1991             description { state: "default" 0.0;
1992                visible: 0;
1993                align: 0.5 1.0;
1994                rel1 {
1995                   relative: 0.0 1.0;
1996                   to_x: "elm.swallow.bar";
1997                }
1998                rel2 {
1999                   relative: 1.0 1.0;
2000                   to_x: "elm.swallow.bar";
2001                }
2002             }
2003             description { state: "visible" 0.0;
2004                inherit: "default" 0.0;
2005                visible: 1;
2006                aspect: 1.0 1.0;
2007                aspect_preference: HORIZONTAL;
2008             }
2009          }
2010          part { name: "units";
2011             mouse_events: 0;
2012             scale: 1;
2013             description { state: "default" 0.0;
2014                visible: 0;
2015                rel1 {
2016                   to_y: "elm.units";
2017                }
2018             }
2019             description { state: "visible" 0.0;
2020                inherit: "default" 0.0;
2021                visible: 1;
2022             }
2023          }
2024          part { name: "elm.units";
2025             type: TEXT;
2026             mouse_events: 0;
2027             scale: 1;
2028             description { state: "default" 0.0;
2029                visible: 0;
2030                fixed: 1 1;
2031                align: 0.5 1.0;
2032                rel1.relative: 0.0 0.0;
2033                rel1.to_y: "elm.swallow.end";
2034                rel2.relative: 1.0 0.0;
2035                rel2.to_y: "elm.swallow.end";
2036                color: 164 160 149 255;
2037                text {
2038                   font: "SLP:style=Bold";
2039                   size: 18;
2040                   min: 0 0;
2041                   align: 0.5 0.0;
2042                   text_class: "slp_bold";
2043                }
2044             }
2045             description { state: "visible" 0.0;
2046                inherit: "default" 0.0;
2047                fixed: 1 1;
2048                visible: 1;
2049                text.min: 1 1;
2050                rel1.offset: -5 0;
2051                rel2.offset: -5 -1;
2052             }
2053          }
2054          part { name: "elm.dragable.slider";
2055             type: RECT;
2056             mouse_events: 1;
2057             scale: 1;
2058             dragable {
2059                x: 0 0 0;
2060                y: 1 1 0;
2061                confine: "bg";
2062             }
2063             description { state: "default" 0.0;
2064                min: 175 5;
2065                fixed: 1 1;
2066                rel1 {
2067                   relative: 0.0 0.5;
2068                   to_x: "bg";
2069                }
2070                rel2 {
2071                   relative: 1.0 0.5;
2072                   to_x: "bg";
2073                }
2074                color: 0 0 0 0;
2075             }
2076          }
2077       }
2078       programs {
2079          program { name: "text_show";
2080             signal: "elm,state,text,visible";
2081             source: "elm";
2082             action:  STATE_SET "visible" 0.0;
2083             target: "elm.text";
2084          }
2085          program { name: "text_hide";
2086             signal: "elm,state,text,hidden";
2087             source: "elm";
2088             action:  STATE_SET "default" 0.0;
2089             target: "elm.text";
2090          }
2091          program { name: "icon_show";
2092             signal: "elm,state,icon,visible";
2093             source: "elm";
2094             action:  STATE_SET "visible" 0.0;
2095             target: "elm.swallow.icon";
2096          }
2097          program { name: "icon_hide";
2098             signal: "elm,state,icon,hidden";
2099             source: "elm";
2100             action:  STATE_SET "default" 0.0;
2101             target: "elm.swallow.icon";
2102          }
2103          program { name: "end_show";
2104             signal: "elm,state,end,visible";
2105             source: "elm";
2106             action:  STATE_SET "visible" 0.0;
2107             target: "elm.swallow.end";
2108          }
2109          program { name: "end_hide";
2110             signal: "elm,state,end,hidden";
2111             source: "elm";
2112             action:  STATE_SET "default" 0.0;
2113             target: "elm.swallow.end";
2114          }
2115          program { name: "units_show";
2116             signal: "elm,state,units,visible";
2117             source: "elm";
2118             action:  STATE_SET "visible" 0.0;
2119             target: "elm.units";
2120             target: "units";
2121          }
2122          program { name: "units_hide";
2123             signal: "elm,state,units,hidden";
2124             source: "elm";
2125             action:  STATE_SET "default" 0.0;
2126             target: "elm.units";
2127             target: "units";
2128          }
2129          program { name: "volume_state_change";
2130             signal: "elm,state,drag";
2131             source: "elm";
2132             script {
2133                volume_state_change()
2134             }
2135          }
2136       }
2137    }
2138
2139    group { name: "elm/slider/vertical/volume15";
2140       images {
2141          image: "00_volume15_00_ver.png" COMP;
2142          image: "00_volume15_01_ver.png" COMP;
2143          image: "00_volume15_02_ver.png" COMP;
2144          image: "00_volume15_03_ver.png" COMP;
2145          image: "00_volume15_04_ver.png" COMP;
2146          image: "00_volume15_05_ver.png" COMP;
2147          image: "00_volume15_06_ver.png" COMP;
2148          image: "00_volume15_07_ver.png" COMP;
2149          image: "00_volume15_08_ver.png" COMP;
2150          image: "00_volume15_09_ver.png" COMP;
2151          image: "00_volume15_10_ver.png" COMP;
2152          image: "00_volume15_11_ver.png" COMP;
2153          image: "00_volume15_12_ver.png" COMP;
2154          image: "00_volume15_13_ver.png" COMP;
2155          image: "00_volume15_14_ver.png" COMP;
2156          image: "00_volume15_15_ver.png" COMP;
2157       }
2158       script {
2159          public volume_state_change(){
2160             new Float:x, Float:y;
2161             get_drag(PART:"elm.dragable.slider", x, y);
2162             if(y <= 0.09375)
2163                set_state(PART:"base", "volume_15", 0.0);
2164             else if(y <= 0.15625)
2165                set_state(PART:"base", "volume_14", 0.0);
2166                  else if(y <= 0.21875)
2167                set_state(PART:"base", "volume_13", 0.0);
2168             else if(y <= 0.28125)
2169                set_state(PART:"base", "volume_12", 0.0);
2170             else if(y <= 0.34375)
2171                set_state(PART:"base", "volume_11", 0.0);
2172             else if(y <= 0.40625)
2173                set_state(PART:"base", "volume_10", 0.0);
2174             else if(y <= 0.46875)
2175                set_state(PART:"base", "volume_09", 0.0);
2176             else if(y <= 0.53125)
2177                set_state(PART:"base", "volume_08", 0.0);
2178             else if(y <= 0.59375)
2179                set_state(PART:"base", "volume_07", 0.0);
2180             else if(y <= 0.65625)
2181                set_state(PART:"base", "volume_06", 0.0);
2182             else if(y <= 0.71875)
2183                set_state(PART:"base", "volume_05", 0.0);
2184             else if(y <= 0.78125)
2185                set_state(PART:"base", "volume_04", 0.0);
2186             else if(y <= 0.84375)
2187                set_state(PART:"base", "volume_03", 0.0);
2188             else if(y <= 0.90625)
2189                set_state(PART:"base", "volume_02", 0.0);
2190             else if(y <= 0.96875)
2191                set_state(PART:"base", "volume_01", 0.0);
2192             else
2193                set_state(PART:"base", "default", 0.0);
2194          }
2195       }
2196       parts {
2197          part { name: "base";
2198             scale: 1;
2199             description { state: "default" 0.0;
2200                max: 175 999999;
2201                min: 175 0;
2202                fixed: 1 1;
2203                rel1 { to: "bg";
2204                   offset: 0 0;
2205                }
2206                rel2 { to: "bg";
2207                   offset: -1 -1;
2208                }
2209                image.normal: "00_volume15_00_ver.png";
2210             }
2211 #define SLIDER15_VER_BG_PART(part_number)\
2212             description {\
2213                state: "volume_"part_number 0.0; \
2214                inherit: "default" 0.0; \
2215                image.normal: "00_volume15_"part_number"_ver.png"; \
2216             }
2217             SLIDER15_VER_BG_PART(01)
2218             SLIDER15_VER_BG_PART(02)
2219             SLIDER15_VER_BG_PART(03)
2220             SLIDER15_VER_BG_PART(04)
2221             SLIDER15_VER_BG_PART(05)
2222             SLIDER15_VER_BG_PART(06)
2223             SLIDER15_VER_BG_PART(07)
2224             SLIDER15_VER_BG_PART(08)
2225             SLIDER15_VER_BG_PART(09)
2226             SLIDER15_VER_BG_PART(10)
2227             SLIDER15_VER_BG_PART(11)
2228             SLIDER15_VER_BG_PART(12)
2229             SLIDER15_VER_BG_PART(13)
2230             SLIDER15_VER_BG_PART(14)
2231             SLIDER15_VER_BG_PART(15)
2232          }
2233          part { name: "bg";
2234             type: RECT;
2235             mouse_events: 0;
2236             scale: 1;
2237             description { state: "default" 0.0;
2238                visible: 0;
2239                rel1.to: "elm.swallow.bar";
2240                rel2.to: "elm.swallow.bar";
2241                rel2.offset: 0 0;
2242             }
2243          }
2244          part { name: "elm.swallow.bar";
2245             type: SWALLOW;
2246             scale: 1;
2247             description { state: "default" 0.0;
2248                min: 175 0;
2249                max: 175 99999;
2250                align: 0.5 1.0;
2251             }
2252          }
2253          part { name: "bar_top_padding";
2254             type: SWALLOW;
2255             scale: 1;
2256             description {
2257                state: "default" 0.0;
2258                visible: 0;
2259             //   min: 0 10;
2260                fixed: 1 1;
2261                rel1 {
2262                   relative: 0.5 1.0;
2263                   to_y: "elm.text";
2264                }
2265                rel2 {
2266                   relative: 0.5 1.0;
2267                   to_y: "elm.text";
2268                }
2269                align: 0.5 0.0;
2270             }
2271          }
2272          part { name: "bar_bottom_padding";
2273             type: SWALLOW;
2274             description {
2275                state: "default" 0.0;
2276                visible: 0;
2277             //   min: 0 10;
2278                fixed: 1 1;
2279                rel1 {
2280                   relative: 0.5 0.0;
2281                   to_y: "elm.units";
2282                }
2283                rel2 {
2284                   relative: 0.5 0.0;
2285                   to_y: "elm.units";
2286                }
2287                align: 0.5 1.0;
2288             }
2289          }
2290          part { name: "elm.swallow.icon";
2291             type: SWALLOW;
2292             scale: 1;
2293             description { state: "default" 0.0;
2294                visible: 0;
2295                align: 0.5 0.0;
2296                rel1 {
2297                   to_x: "elm.swallow.bar";
2298                }
2299                rel2 {
2300                   relative: 1.0 0.0;
2301                   to_x: "elm.swallow.bar";
2302                }
2303             }
2304             description { state: "visible" 0.0;
2305                inherit: "default" 0.0;
2306                visible: 1;
2307                aspect: 1.0 1.0;
2308                aspect_preference: HORIZONTAL;
2309             }
2310          }
2311          part { name: "elm.text";
2312             type: TEXT;
2313             mouse_events: 0;
2314             scale: 1;
2315             description { state: "default" 0.0;
2316                visible: 0;
2317                fixed: 1 1;
2318                align: 0.5 0.0;
2319                rel1.to_y: "elm.swallow.icon";
2320                rel1.relative: 0.0 1.0;
2321                rel2.to_y: "elm.swallow.icon";
2322                rel2.relative: 1.0 1.0;
2323                color: 164 160 149 255;
2324                text {
2325                   font: "SLP:style=Bold";
2326                   size: 18;
2327                   min: 0 0;
2328                   align: 0.5 0;
2329                   text_class: "slp_bold";
2330                }
2331             }
2332             description { state: "visible" 0.0;
2333                inherit: "default" 0.0;
2334                visible: 1;
2335                text.min: 1 1;
2336             }
2337          }
2338          part { name: "elm.swallow.end";
2339             type: SWALLOW;
2340             scale: 1;
2341             description { state: "default" 0.0;
2342                visible: 0;
2343                align: 0.5 1.0;
2344                rel1 {
2345                   relative: 0.0 1.0;
2346                   to_x: "elm.swallow.bar";
2347                }
2348                rel2 {
2349                   relative: 1.0 1.0;
2350                   to_x: "elm.swallow.bar";
2351                }
2352             }
2353             description { state: "visible" 0.0;
2354                inherit: "default" 0.0;
2355                visible: 1;
2356                aspect: 1.0 1.0;
2357                aspect_preference: HORIZONTAL;
2358             }
2359          }
2360          part { name: "units";
2361             mouse_events: 0;
2362             scale: 1;
2363             description { state: "default" 0.0;
2364                visible: 0;
2365                rel1 {
2366                   to_y: "elm.units";
2367                }
2368             }
2369             description { state: "visible" 0.0;
2370                inherit: "default" 0.0;
2371                visible: 1;
2372             }
2373          }
2374          part { name: "elm.units";
2375             type: TEXT;
2376             mouse_events: 0;
2377             scale: 1;
2378             description { state: "default" 0.0;
2379                visible: 0;
2380                fixed: 1 1;
2381                align: 0.5 1.0;
2382                rel1.relative: 0.0 0.0;
2383                rel1.to_y: "elm.swallow.end";
2384                rel2.relative: 1.0 0.0;
2385                rel2.to_y: "elm.swallow.end";
2386                color: 164 160 149 255;
2387                text {
2388                   font: "SLP:style=Bold";
2389                   size: 18;
2390                   min: 0 0;
2391                   align: 0.5 0.0;
2392                   text_class: "slp_bold";
2393                }
2394             }
2395             description { state: "visible" 0.0;
2396                inherit: "default" 0.0;
2397                fixed: 1 1;
2398                visible: 1;
2399                text.min: 1 1;
2400                rel1.offset: -5 0;
2401                rel2.offset: -5 -1;
2402             }
2403          }
2404          part { name: "elm.dragable.slider";
2405             type: RECT;
2406             mouse_events: 1;
2407             scale: 1;
2408             dragable {
2409                x: 0 0 0;
2410                y: 1 1 0;
2411                confine: "bg";
2412             }
2413             description { state: "default" 0.0;
2414                min: 175 5;
2415                fixed: 1 1;
2416                rel1 {
2417                   relative: 0.0 0.5;
2418                   to_x: "bg";
2419                }
2420                rel2 {
2421                   relative: 1.0 0.5;
2422                   to_x: "bg";
2423                }
2424                color: 0 0 0 0;
2425             }
2426          }
2427        }
2428       programs {
2429          program { name: "text_show";
2430             signal: "elm,state,text,visible";
2431             source: "elm";
2432             action:  STATE_SET "visible" 0.0;
2433             target: "elm.text";
2434          }
2435          program { name: "text_hide";
2436             signal: "elm,state,text,hidden";
2437             source: "elm";
2438             action:  STATE_SET "default" 0.0;
2439             target: "elm.text";
2440          }
2441          program { name: "icon_show";
2442             signal: "elm,state,icon,visible";
2443             source: "elm";
2444             action:  STATE_SET "visible" 0.0;
2445             target: "elm.swallow.icon";
2446          }
2447          program { name: "icon_hide";
2448             signal: "elm,state,icon,hidden";
2449             source: "elm";
2450             action:  STATE_SET "default" 0.0;
2451             target: "elm.swallow.icon";
2452          }
2453          program { name: "end_show";
2454             signal: "elm,state,end,visible";
2455             source: "elm";
2456             action:  STATE_SET "visible" 0.0;
2457             target: "elm.swallow.end";
2458          }
2459          program { name: "end_hide";
2460             signal: "elm,state,end,hidden";
2461             source: "elm";
2462             action:  STATE_SET "default" 0.0;
2463             target: "elm.swallow.end";
2464          }
2465          program { name: "units_show";
2466             signal: "elm,state,units,visible";
2467             source: "elm";
2468             action:  STATE_SET "visible" 0.0;
2469             target: "elm.units";
2470             target: "units";
2471          }
2472          program { name: "units_hide";
2473             signal: "elm,state,units,hidden";
2474             source: "elm";
2475             action:  STATE_SET "default" 0.0;
2476             target: "elm.units";
2477             target: "units";
2478          }
2479          program { name: "volume_state_change";
2480             signal: "elm,state,drag";
2481             source: "elm";
2482             script {
2483                volume_state_change()
2484             }
2485          }
2486       }
2487    }
2488
2489    group { name: "elm/slider/horizontal/default";
2490            alias: "elm/slider/horizontal/disabled";
2491       images {
2492          image: "00_winset_list_progress_bg.png" COMP;
2493          image: "00_winset_list_progress_bar.png" COMP;
2494          image: "00_slider_bar_press.png" COMP;
2495       }
2496       script {
2497          public invert_on = 0;
2498          public set_invert_on() {
2499             set_state(PART:"level", "inverted", 0.0);
2500             set_state(PART:"level2", "inverted", 0.0);
2501             set_int(invert_on, 1);
2502          }
2503          public set_invert_off() {
2504             set_state(PART:"level", "default", 0.0);
2505             set_state(PART:"level2", "default", 0.0);
2506             set_int(invert_on, 0);
2507          }
2508          public thumb_down() {
2509             if(get_int(invert_on) == 0)
2510                set_state(PART:"level", "pressed", 0.0);
2511             else if(get_int(invert_on) == 1)
2512                set_state(PART:"level2", "pressed", 0.0);
2513             }
2514          public thumb_up() {
2515             if(get_int(invert_on) == 0)
2516                set_state(PART:"level", "default", 0.0);
2517             else if(get_int(invert_on) == 1)
2518                set_state(PART:"level2", "inverted", 0.0);
2519             }
2520          }
2521          parts {
2522             part { name: "base";
2523                mouse_events: 0;
2524                scale: 1;
2525                description { state: "default" 0.0;
2526                   min: SLIDER_BASE_MIN_WIDTH_INC SLIDER_BASE_HEIGHT_INC;
2527                   max: 99999 SLIDER_BASE_HEIGHT_INC;
2528                   rel1.to: "bg";
2529                   rel2.to: "bg";
2530                   image.normal: "00_winset_list_progress_bg.png";
2531                   image.border: 0 0 4 4;
2532                   image.border_scale: 1;
2533                }
2534             }
2535             part { name: "level";
2536                mouse_events: 0;
2537                scale: 1;
2538                description { state: "default" 0.0;
2539                   fixed: 1 1;
2540                   rel1.to: "base";
2541                   rel2 {
2542                      to_y: "base";
2543                      to_x: "elm.dragable.slider";
2544                      relative: 0.5 1.0;
2545                   }
2546                   image.normal: "00_winset_list_progress_bar.png";
2547                   image.border: 0 0 4 4;
2548                   image.border_scale: 1;
2549                }
2550                description { state: "inverted" 0.0;
2551                   inherit: "default" 0.0;
2552                   visible: 0;
2553                }
2554                description { state: "pressed" 0.0;
2555                   inherit: "default" 0.0;
2556                   image.normal: "00_winset_list_progress_bar.png";
2557                }
2558             }
2559             part { name: "level2";
2560                mouse_events: 0;
2561                scale: 1;
2562                description { state: "default" 0.0;
2563                   fixed: 1 1;
2564                   visible: 0;
2565                   rel1 {
2566                      to_y: "base";
2567                      to_x: "elm.dragable.slider";
2568                      relative: 0.5 0.0;
2569                   }
2570                   rel2.to: "base";
2571                   image.normal: "00_winset_list_progress_bg.png";
2572                   image.border: 0 0 4 4;
2573                   image.border_scale: 1;
2574                }
2575                description { state: "inverted" 0.0;
2576                   inherit: "default" 0.0;
2577                   visible: 1;
2578                }
2579                description { state: "pressed" 0.0;
2580                   inherit: "default" 0.0;
2581                   visible: 1;
2582                   image.normal: "00_winset_list_progress_bg.png";
2583                }
2584             }
2585             part { name: "bg";
2586                type: RECT;
2587                mouse_events: 0;
2588                scale: 1;
2589                description { state: "default" 0.0;
2590                   visible: 0;
2591                   rel1.to: "elm.swallow.bar";
2592                   rel2.to: "elm.swallow.bar";
2593                }
2594             }
2595             part { name: "elm.swallow.bar";
2596                type: SWALLOW;
2597                mouse_events: 0;
2598                scale: 1;
2599                description { state: "default" 0.0;
2600                   min: SLIDER_SWALLOW_BAR_MIN_WIDTH_INC SLIDER_SWALLOW_BAR_HEIGHT_INC;
2601                   max: 99999 SLIDER_SWALLOW_BAR_HEIGHT_INC;
2602                   align: 1.0 0.5;
2603                   rel1 {
2604                      to_x: "bar_left_padding";
2605                      relative: 1.0 0.0;
2606                   }
2607                   rel2 {
2608                      to_x: "bar_right_padding";
2609                      relative: 0.0 1.0;
2610                   }
2611                }
2612             }
2613             part {
2614                name: "bar_left_padding";
2615                type: SWALLOW;
2616                scale: 1;
2617                description {
2618                   state: "default" 0.0;
2619                   visible: 0;
2620                   min: 10 0;
2621                   fixed: 1 1;
2622                   rel1 {
2623                      relative: 1.0  0.5;
2624                      to_x: "elm.text";
2625                   }
2626                   rel2 {
2627                      relative: 1.0  0.5;
2628                      to_x: "elm.text";
2629                   }
2630                   align: 0.0 0.5;
2631                }
2632             }
2633             part {
2634                name: "bar_right_padding";
2635                type: SWALLOW;
2636                scale: 1;
2637                description {
2638                   state: "default" 0.0;
2639                   visible: 0;
2640                   min: 10 0;
2641                   fixed: 1 1;
2642                   rel1 {
2643                      relative: 0.0  0.5;
2644                      to_x: "elm.units";
2645                   }
2646                   rel2 {
2647                      relative: 0.0  0.5;
2648                      to_x: "elm.units";
2649                   }
2650                   align: 1.0 0.5;
2651                }
2652             }
2653             part { name: "elm.swallow.icon";
2654                type: SWALLOW;
2655                scale: 1;
2656                description { state: "default" 0.0;
2657                   visible: 0;
2658                   align: 0.0 0.5;
2659                   rel1 {
2660                      to_y: "elm.swallow.bar";
2661                   }
2662                   rel2 {
2663                      relative: 0.0 1.0;
2664                      to_y: "elm.swallow.bar";
2665                   }
2666                }
2667                description { state: "visible" 0.0;
2668                   inherit: "default" 0.0;
2669                   visible: 1;
2670                   aspect: 1.0 1.0;
2671                   aspect_preference: VERTICAL;
2672                }
2673             }
2674             part { name: "elm.text";
2675                type: TEXT;
2676                mouse_events: 0;
2677                scale: 1;
2678                description { state: "default" 0.0;
2679                   visible: 0;
2680                   fixed: 1 1;
2681                   align: 0.0 0.5;
2682                   rel1.to_x: "elm.swallow.icon";
2683                   rel1.relative: 1.0 0.0;
2684                   rel2.to_x: "elm.swallow.icon";
2685                   color: SLIDER_UNITS_TEXT_COLOR_INC;
2686                   text {
2687                      font: "SLP:style=Medium";
2688                      size: SLIDER_UNITS_TEXT_SIZE_INC;
2689                      min: 0 0;
2690                      align: 0.0 0.5;
2691                      text_class: "slp_medium";
2692                   }
2693                }
2694                description { state: "visible" 0.0;
2695                   inherit: "default" 0.0;
2696                   visible: 1;
2697                   text.min: 1 1;
2698                }
2699             }
2700             part { name: "elm.swallow.end";
2701                type: SWALLOW;
2702                scale: 1;
2703                description { state: "default" 0.0;
2704                   visible: 0;
2705                   align: 1.0 0.5;
2706                   rel1 {
2707                      relative: 1.0 0.0;
2708                      to_y: "elm.swallow.bar";
2709                   }
2710                   rel2 {
2711                      relative: 1.0 1.0;
2712                      to_y: "elm.swallow.bar";
2713                   }
2714                }
2715                description { state: "visible" 0.0;
2716                   inherit: "default" 0.0;
2717                   visible: 1;
2718                   aspect: 1.0 1.0;
2719                   aspect_preference: VERTICAL;
2720                }
2721             }
2722             part { name: "units";
2723                mouse_events: 0;
2724                scale: 1;
2725                description { state: "default" 0.0;
2726                   visible: 0;
2727                   rel1 {
2728                      to_x: "elm.units";
2729                   }
2730                }
2731                description { state: "visible" 0.0;
2732                   inherit: "default" 0.0;
2733                   visible: 1;
2734                }
2735             }
2736             part { name: "elm.units";
2737                type: TEXT;
2738                mouse_events: 0;
2739                scale: 1;
2740                description { state: "default" 0.0;
2741                   visible: 0;
2742                   fixed: 1 1;
2743                   align: 1.0 0.5;
2744                   rel1.to_x: "elm.swallow.end";
2745                   rel2.relative: 0.0 1.0;
2746                   rel2.to_x: "elm.swallow.end";
2747                   color: SLIDER_UNITS_TEXT_COLOR_INC;
2748                   text {
2749                      font: "SLP:style=Bold";
2750                      size: SLIDER_UNITS_TEXT_SIZE_INC;
2751                      min: 0 0;
2752                      align: 0.0 0.5;
2753                      text_class: "slp_bold";
2754                   }
2755                }
2756                description { state: "visible" 0.0;
2757                   inherit: "default" 0.0;
2758                   fixed: 1 1;
2759                   visible: 1;
2760                   text.min: 1 1;
2761                }
2762             }
2763             part { name: "elm.dragable.slider";
2764                type: GROUP;
2765                source: "elm/slider/horizontal/indicator/default";
2766                mouse_events: 1;
2767                scale: 1;
2768                dragable {
2769                   x: 1 1 0;
2770                   y: 0 0 0;
2771                   confine: "bg";
2772                }
2773                description { state: "default" 0.0;
2774                   min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
2775                   fixed: 1 1;
2776                   align: 0.5 0.5;
2777                   color: 0 0 0 0;
2778                }
2779             }
2780             part { name: "disabler";
2781                type: RECT;
2782                mouse_events: 1;
2783                repeat_events: 0;
2784                scale: 1;
2785                description { state: "default" 0.0;
2786                   visible: 0;
2787                   min: 1 1;
2788                   color: SLIDER_DISABLER_PART_COLOR_INC;
2789                }
2790                description { state: "disabled" 0.0;
2791                   inherit: "default" 0.0;
2792                   visible: 1;
2793                }
2794             }
2795          }
2796          programs {
2797             program { name: "text_show";
2798             signal: "elm,state,text,visible";
2799             source: "elm";
2800             action:  STATE_SET "visible" 0.0;
2801             target: "elm.text";
2802          }
2803          program { name: "text_hide";
2804             signal: "elm,state,text,hidden";
2805             source: "elm";
2806             action:  STATE_SET "default" 0.0;
2807             target: "elm.text";
2808          }
2809          program { name: "icon_show";
2810             signal: "elm,state,icon,visible";
2811             source: "elm";
2812             action:  STATE_SET "visible" 0.0;
2813             target: "elm.swallow.icon";
2814          }
2815          program { name: "icon_hide";
2816             signal: "elm,state,icon,hidden";
2817             source: "elm";
2818             action:  STATE_SET "default" 0.0;
2819             target: "elm.swallow.icon";
2820          }
2821          program { name: "end_show";
2822             signal: "elm,state,end,visible";
2823             source: "elm";
2824             action:  STATE_SET "visible" 0.0;
2825             target: "elm.swallow.end";
2826          }
2827          program { name: "end_hide";
2828             signal: "elm,state,end,hidden";
2829             source: "elm";
2830             action:  STATE_SET "default" 0.0;
2831             target: "elm.swallow.end";
2832          }
2833          program { name: "units_show";
2834             signal: "elm,state,units,visible";
2835             source: "elm";
2836             action:  STATE_SET "visible" 0.0;
2837             target: "elm.units";
2838             target: "units";
2839          }
2840          program { name: "units_hide";
2841             signal: "elm,state,units,hidden";
2842             source: "elm";
2843             action:  STATE_SET "default" 0.0;
2844             target: "elm.units";
2845             target: "units";
2846          }
2847          program { name: "invert_on";
2848             signal: "elm,state,inverted,on";
2849             source: "elm";
2850             script {
2851                set_invert_on();
2852             }
2853          }
2854          program { name: "invert_off";
2855             signal: "elm,state,inverted,off";
2856             source: "elm";
2857             script {
2858                set_invert_off();
2859             }
2860          }
2861          program { name: "val_show";
2862             signal: "mouse,down,*";
2863             source: "elm.dragable.slider";
2864             script {
2865                thumb_down();
2866             }
2867          }
2868          program { name: "val_hide";
2869             signal: "mouse,up,*";
2870             source: "elm.dragable.slider";
2871             script {
2872                thumb_up();
2873             }
2874          }
2875          program { name: "slider_disable";
2876             signal: "elm,state,disabled";
2877             source: "elm";
2878             action:  STATE_SET "disabled" 0.0;
2879             target: "disabler";
2880          }
2881          program { name: "slider_enable";
2882             signal: "elm,state,enabled";
2883             source: "elm";
2884             action:  STATE_SET "default" 0.0;
2885             target: "disabler";
2886          }
2887       }
2888    }
2889
2890    group { name: "elm/slider/horizontal/expanded_indicator_button";
2891       inherit: "elm/slider/horizontal/default";
2892       script {
2893          public invert_on = 0;
2894          public set_invert_on() {
2895             set_state(PART:"level", "inverted", 0.0);
2896             set_state(PART:"level2", "inverted", 0.0);
2897             set_int(invert_on, 1);
2898          }
2899          public set_invert_off() {
2900             set_state(PART:"level", "default", 0.0);
2901             set_state(PART:"level2", "default", 0.0);
2902             set_int(invert_on, 0);
2903          }
2904          public thumb_down() {
2905             if(get_int(invert_on) == 0)
2906                set_state(PART:"level", "pressed", 0.0);
2907             else if(get_int(invert_on) == 1)
2908                set_state(PART:"level2", "pressed", 0.0);
2909             }
2910          public thumb_up() {
2911             if(get_int(invert_on) == 0)
2912                set_state(PART:"level", "default", 0.0);
2913             else if(get_int(invert_on) == 1)
2914                set_state(PART:"level2", "inverted", 0.0);
2915             }
2916          }
2917       parts {
2918          part { name: "elm.dragable.slider";
2919             type: GROUP;
2920             source: "elm/slider/horizontal/indicator/expanded_indicator_button";
2921             mouse_events: 1;
2922             scale: 1;
2923             dragable {
2924                x: 1 1 0;
2925                y: 0 0 0;
2926                confine: "bg";
2927             }
2928             description { state: "default" 0.0;
2929                min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
2930                fixed: 1 1;
2931                rel1 {
2932                   relative: 0.5 0.0;
2933                   to_x: "bg";
2934                }
2935                rel2 {
2936                   relative: 0.5 1.0;
2937                   to_x: "bg";
2938                }
2939                color: 0 0 0 0;
2940             }
2941          }
2942       }
2943    }
2944
2945    group { name: "elm/slider/horizontal/indicator/expanded_indicator_button";
2946       inherit: "elm/slider/horizontal/indicator/default";
2947       parts {
2948          part { name: "button_events";
2949             type: RECT;
2950             mouse_events: 1;
2951             scale: 1;
2952             description { state: "default" 0.0;
2953                fixed: 1 1;
2954                min: 2*SLIDER_INDICATOR_WIDTH_INC 1.5*SLIDER_INDICATOR_HEIGHT_INC;
2955                align: 0.5 0.0;
2956                aspect: 1.0 1.0;
2957                aspect_preference: VERTICAL;
2958                color: 0 0 0 0;
2959             }
2960          }
2961       }
2962    }