2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #define SLIDER_INDICATOR_TEXT_COLOR_INC 42 109 140 255
19 #define SLIDER_UNITS_TEXT_COLOR_INC 100 100 100 255
20 #define SLIDER_UNITS_TEXT_SIZE_INC 30
21 #define SLIDER_INDICATOR_TEXT_SIZE_INC 40
22 #define SLIDER_BASE_HEIGHT_INC 16
23 #define SLIDER_BASE_MIN_WIDTH_INC 375
24 #define SLIDER_BASE_HEIGHT_INC 16
25 #define SLIDER_SWALLOW_BAR_MIN_WIDTH_INC 58
26 #define SLIDER_SWALLOW_BAR_HEIGHT_INC 58
27 #define SLIDER_INDICATOR_MAX_WIDTH_INC 90
28 #define SLIDER_INDICATOR_WIDTH_INC 58
29 #define SLIDER_INDICATOR_HEIGHT_INC 58
30 #define SLIDER_DISABLER_PART_COLOR_INC 185 185 185 100
32 group { name: "elm/slider/horizontal/indicator/default";
33 alias: "elm/slider/horizontal/indicator/disabled";
34 alias: "elm/slider/vertical/indicator/default";
35 alias: "elm/slider/vertical/indicator/disabled";
36 alias: "elm/slider/horizontal/indicator/tap_to_drag";
38 image: "00_slider_handle.png" COMP;
39 image: "00_slider_handle_dim.png" COMP;
43 part { name: "button_events";
47 description { state: "default" 0.0;
49 min: 2*SLIDER_INDICATOR_WIDTH_INC 1.5*SLIDER_INDICATOR_HEIGHT_INC;
51 aspect_preference: VERTICAL;
54 description { state: "disabled" 0.0;
55 inherit: "default" 0.0;
60 part { name: "button0";
63 description { state: "default" 0.0;
65 min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
66 max: SLIDER_INDICATOR_MAX_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
76 normal: "00_slider_handle.png";
81 description { state: "disabled" 0.0;
82 inherit: "default" 0.0;
84 normal: "00_slider_handle_dim.png";
89 part { name: "elm.indicator";
93 description { state: "default" 0.0;
95 color: SLIDER_INDICATOR_TEXT_COLOR_INC;
97 font: "SLP:style=Medium";
98 size: SLIDER_INDICATOR_TEXT_SIZE_INC;
101 text_class: "slp_medium";
104 description { state: "hide" 0.0;
105 inherit: "default" 0.0;
108 } /* "elm.indicator" end */
109 } /* parts of "elm/slider/horizontal/indicator/default" end */
112 program { name: "set_val_show";
113 signal: "elm,state,val,show";
115 action: STATE_SET "default" 0.0;
116 target: "elm.indicator";
118 program { name: "set_val_hide";
119 signal: "elm,state,val,hide";
121 action: STATE_SET "hide" 0.0;
122 target: "elm.indicator";
124 program { name: "slider_disable";
125 signal: "elm,state,disabled";
127 action: STATE_SET "disabled" 0.0;
129 target: "button_events";
131 program { name: "slider_enable";
132 signal: "elm,state,enabled";
134 action: STATE_SET "default" 0.0;
136 target: "button_events";
140 /* END group "elm/slider/horizontal/indicator/default" */
142 group { name: "elm/slider/horizontal/volumeHorizontalSlider";
144 image: "00_winset_list_progress_bg.png" COMP;
145 image: "00_winset_list_progress_bar.png" COMP;
146 image: "00_winset_divider_line.png" COMP;
150 public invert_on = 0;
151 public set_invert_on() {
152 set_state(PART:"level", "inverted", 0.0);
153 set_state(PART:"level2", "inverted", 0.0);
154 set_int(invert_on, 1);
156 public set_invert_off() {
157 set_state(PART:"level", "default", 0.0);
158 set_state(PART:"level2", "default", 0.0);
159 set_int(invert_on, 0);
161 public thumb_down() {
162 if(get_int(invert_on) == 0)
163 set_state(PART:"level", "pressed", 0.0);
164 else if(get_int(invert_on) == 1)
165 set_state(PART:"level2", "pressed", 0.0);
168 if(get_int(invert_on) == 0)
169 set_state(PART:"level", "default", 0.0);
170 else if(get_int(invert_on) == 1)
171 set_state(PART:"level2", "inverted", 0.0);
179 description { state: "default" 0.0;
184 image.normal: "00_winset_list_progress_bg.png";
185 image.border: 0 0 4 4;
186 image.border_scale: 1;
190 part { name: "level";
194 description { state: "default" 0.0;
199 to_x: "elm.dragable.slider";
202 image.normal: "00_winset_list_progress_bar.png";
203 image.border: 0 0 4 4;
204 image.border_scale: 1;
206 description { state: "inverted" 0.0;
207 inherit: "default" 0.0;
210 description { state: "pressed" 0.0;
211 inherit: "default" 0.0;
212 image.normal: "00_winset_list_progress_bar.png";
216 part { name: "level2";
220 description { state: "default" 0.0;
225 to_x: "elm.dragable.slider";
229 image.normal: "00_winset_list_progress_bar.png";
230 image.border: 0 0 4 4;
231 image.border_scale: 1;
233 description { state: "inverted" 0.0;
234 inherit: "default" 0.0;
237 description { state: "pressed" 0.0;
238 inherit: "default" 0.0;
240 image.normal: "00_winset_list_progress_bar.png";
248 description { state: "default" 0.0;
250 rel1.to: "elm.swallow.bar";
251 rel2.to: "elm.swallow.bar";
255 part { name: "elm.swallow.bar";
259 description { state: "default" 0.0;
264 to_x: "bar_left_padding";
268 to_x: "bar_right_padding";
272 } /* "elm.swallow.bar" end */
274 part { name: "bar_left_padding";
278 state: "default" 0.0;
293 } /* "bar_left_padding" end */
296 name: "bar_right_padding";
300 state: "default" 0.0;
315 } /* "bar_right_padding" end */
317 part { name: "divider";
320 description { state: "default" 0.0;
327 to_x: "bar_right_right_padding";
331 to_x: "bar_right_right_padding";
334 normal: "00_winset_divider_line.png";
339 } /* "divider" end */
342 name: "bar_right_right_padding";
346 state: "default" 0.0;
352 to_x: "elm.swallow.end";
356 to_x: "elm.swallow.end";
360 } /* "bar_right_right_padding" end */
362 part { name: "elm.swallow.icon";
365 description { state: "default" 0.0;
369 to_y: "elm.swallow.bar";
373 to_y: "elm.swallow.bar";
376 description { state: "visible" 0.0;
377 inherit: "default" 0.0;
380 aspect_preference: VERTICAL;
382 } /* "elm.swallow.icon" end */
384 part { name: "elm.text";
388 description { state: "default" 0.0;
392 rel1.to_x: "elm.swallow.icon";
393 rel1.relative: 1.0 0.0;
394 rel2.to_x: "elm.swallow.icon";
395 color: SLIDER_UNITS_TEXT_COLOR_INC;
397 font: "SLP:style=Medium";
398 size: SLIDER_UNITS_TEXT_SIZE_INC;
401 text_class: "slp_medium";
404 description { state: "visible" 0.0;
405 inherit: "default" 0.0;
409 } /* "elm.text" end */
411 part { name: "elm.swallow.end";
414 description { state: "default" 0.0;
419 to_y: "elm.swallow.bar";
423 to_y: "elm.swallow.bar";
426 description { state: "visible" 0.0;
427 inherit: "default" 0.0;
430 aspect_preference: VERTICAL;
432 } /* "elm.swallow.end" end */
434 part { name: "elm.dragable.slider";
436 source: "elm/slider/horizontal/indicator/default";
444 description { state: "default" 0.0;
445 min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
450 } /* "elm.dragable.slider" end */
452 part { name: "disabler";
457 description { state: "default" 0.0;
461 description { state: "disabled" 0.0;
462 inherit: "default" 0.0;
465 } /* "disabler" end */
467 part { name: "clipper";
469 description { state: "default" 0.0;
470 color: 255 255 255 255;
472 description { state: "disabled" 0.0;
473 color: 255 255 255 102;
476 } /* "clipper" end */
479 program { name: "text_show";
480 signal: "elm,state,text,visible";
482 action: STATE_SET "visible" 0.0;
485 program { name: "text_hide";
486 signal: "elm,state,text,hidden";
488 action: STATE_SET "default" 0.0;
491 program { name: "icon_show";
492 signal: "elm,state,icon,visible";
494 action: STATE_SET "visible" 0.0;
495 target: "elm.swallow.icon";
497 program { name: "icon_hide";
498 signal: "elm,state,icon,hidden";
500 action: STATE_SET "default" 0.0;
501 target: "elm.swallow.icon";
503 program { name: "end_show";
504 signal: "elm,state,end,visible";
506 action: STATE_SET "visible" 0.0;
507 target: "elm.swallow.end";
509 program { name: "end_hide";
510 signal: "elm,state,end,hidden";
512 action: STATE_SET "default" 0.0;
513 target: "elm.swallow.end";
515 program { name: "invert_on";
516 signal: "elm,state,inverted,on";
522 program { name: "invert_off";
523 signal: "elm,state,inverted,off";
529 program { name: "val_show";
530 signal: "mouse,down,*";
531 source: "elm.dragable.slider";
536 program { name: "val_hide";
537 signal: "mouse,up,*";
538 source: "elm.dragable.slider";
543 program { name: "slider_disable";
544 signal: "elm,state,disabled";
546 action: STATE_SET "disabled" 0.0;
550 program { name: "slider_enable";
551 signal: "elm,state,enabled";
553 action: STATE_SET "default" 0.0;
559 /* END group "elm/slider/horizontal/volumeHorizontalSlider" */
561 group { name : "block_events";
563 part { name : "blockevent";
573 source : "blockevent";
574 signal : "mouse,clicked,1";
575 action : SIGNAL_EMIT "clicked" "*";
579 /* END group "block_events" */
581 group { name : "volumeLayout";
583 image: "00_popup_bg.png" COMP;
586 part { name : "base";
589 description { state: "default" 0.0;
591 normal: "00_popup_bg.png";
600 part { name: "elm.swallow.content";
603 description { state: "default" 0.0;
618 /* END group "volumeLayout" */
620 group { name : "volumeLayoutContent";
622 part { name : "pad_t";
626 description { state: "default" 0.0;
642 part { name : "pad_l";
645 description { state: "default" 0.0;
648 rel2.relative: 0.0 1.0;
654 part { name: "pad_r";
657 description { state: "default" 0.0;
660 rel1.relative: 1.0 0.0;
666 part{ name:"elm.swallow.content";
669 description { state: "default" 0.0;
681 } /* "elm.swallow.content" end */
683 part { name: "pad_b";
687 description { state: "default" 0.0;
701 /* END group "volumeLayoutContent" */