3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 group { name: "elm/photocam/base/default";
22 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
27 v = get_int(sbalways_v);
29 emit("do-hide-vbar", "");
35 v = get_int(sbalways_h);
37 emit("do-hide-hbar", "");
41 set_int(sbvis_timer, 0);
46 image: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_IMAGE COMP;
47 image: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_IMAGE COMP;
48 image: "bt_sm_shine.png" COMP;
49 image: "bt_sm_hilight.png" COMP;
50 image: "sb_runnerh.png" COMP;
51 image: "sb_runnerv.png" COMP;
52 image: "process/white/63x63/00_list_process_01.png" COMP;
53 image: "process/white/63x63/00_list_process_02.png" COMP;
54 image: "process/white/63x63/00_list_process_03.png" COMP;
55 image: "process/white/63x63/00_list_process_04.png" COMP;
56 image: "process/white/63x63/00_list_process_05.png" COMP;
57 image: "process/white/63x63/00_list_process_06.png" COMP;
58 image: "process/white/63x63/00_list_process_07.png" COMP;
59 image: "process/white/63x63/00_list_process_08.png" COMP;
60 image: "process/white/63x63/00_list_process_09.png" COMP;
61 image: "process/white/63x63/00_list_process_10.png" COMP;
62 image: "process/white/63x63/00_list_process_11.png" COMP;
63 image: "process/white/63x63/00_list_process_12.png" COMP;
64 image: "process/white/63x63/00_list_process_13.png" COMP;
65 image: "process/white/63x63/00_list_process_14.png" COMP;
66 image: "process/white/63x63/00_list_process_15.png" COMP;
67 image: "process/white/63x63/00_list_process_16.png" COMP;
68 image: "process/white/63x63/00_list_process_17.png" COMP;
69 image: "process/white/63x63/00_list_process_18.png" COMP;
70 image: "process/white/63x63/00_list_process_19.png" COMP;
71 image: "process/white/63x63/00_list_process_20.png" COMP;
72 image: "process/white/63x63/00_list_process_21.png" COMP;
73 image: "process/white/63x63/00_list_process_22.png" COMP;
74 image: "process/white/63x63/00_list_process_23.png" COMP;
75 image: "process/white/63x63/00_list_process_24.png" COMP;
76 image: "process/white/63x63/00_list_process_25.png" COMP;
77 image: "process/white/63x63/00_list_process_26.png" COMP;
78 image: "process/white/63x63/00_list_process_27.png" COMP;
79 image: "process/white/63x63/00_list_process_28.png" COMP;
80 image: "process/white/63x63/00_list_process_29.png" COMP;
81 image: "process/white/63x63/00_list_process_30.png" COMP;
87 description { state: "default" 0.0;
93 part { name: "clipper";
97 description { state: "default" 0.0;
102 part { name: "elm.swallow.content";
106 description { state: "default" 0.0;
111 part { name: "conf_over";
114 description { state: "default" 0.0;
120 part { name: "busy_clip";
123 description { state: "default" 0.0;
125 color: 255 255 255 0;
127 description { state: "active" 0.0;
129 color: 255 255 255 255;
133 clip_to: "busy_clip";
135 description { state: "default" 0.0;
140 aspect_preference: BOTH;
150 normal: "process/white/63x63/00_list_process_30.png";
151 tween: "process/white/63x63/00_list_process_01.png";
152 tween: "process/white/63x63/00_list_process_02.png";
153 tween: "process/white/63x63/00_list_process_03.png";
154 tween: "process/white/63x63/00_list_process_04.png";
155 tween: "process/white/63x63/00_list_process_05.png";
156 tween: "process/white/63x63/00_list_process_06.png";
157 tween: "process/white/63x63/00_list_process_07.png";
158 tween: "process/white/63x63/00_list_process_08.png";
159 tween: "process/white/63x63/00_list_process_09.png";
160 tween: "process/white/63x63/00_list_process_10.png";
161 tween: "process/white/63x63/00_list_process_11.png";
162 tween: "process/white/63x63/00_list_process_12.png";
163 tween: "process/white/63x63/00_list_process_13.png";
164 tween: "process/white/63x63/00_list_process_14.png";
165 tween: "process/white/63x63/00_list_process_15.png";
166 tween: "process/white/63x63/00_list_process_16.png";
167 tween: "process/white/63x63/00_list_process_17.png";
168 tween: "process/white/63x63/00_list_process_18.png";
169 tween: "process/white/63x63/00_list_process_19.png";
170 tween: "process/white/63x63/00_list_process_20.png";
171 tween: "process/white/63x63/00_list_process_21.png";
172 tween: "process/white/63x63/00_list_process_22.png";
173 tween: "process/white/63x63/00_list_process_23.png";
174 tween: "process/white/63x63/00_list_process_24.png";
175 tween: "process/white/63x63/00_list_process_25.png";
176 tween: "process/white/63x63/00_list_process_26.png";
177 tween: "process/white/63x63/00_list_process_27.png";
178 tween: "process/white/63x63/00_list_process_28.png";
179 tween: "process/white/63x63/00_list_process_29.png";
183 part { name: "sb_vbar_clip_master";
187 description { state: "default" 0.0;
189 description { state: "hidden" 0.0;
191 color: 255 255 255 0;
194 part { name: "sb_vbar_clip";
195 clip_to: "sb_vbar_clip_master";
199 description { state: "default" 0.0;
201 description { state: "hidden" 0.0;
203 color: 255 255 255 0;
206 part {name: "vbar.padding";
209 description { state: "default" 0.0;
210 min: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_PADDING_SIZE 0;
211 max: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_PADDING_SIZE 0;
215 to: "elm.swallow.content";
219 to: "elm.swallow.content";
223 part { name: "sb_vbar";
227 description { state: "default" 0.0;
230 min: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_MIN_SIZE_INC;
235 to_y: "elm.swallow.content";
236 to_x: "elm.swallow.content";
241 to_y: "elm.swallow.content";
242 to_x: "vbar.padding";
246 part { name: "sb_vbar_runner";
247 clip_to: "sb_vbar_clip";
250 description { state: "default" 0.0;
251 min: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_MIN_SIZE_INC;
252 max: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_MAX_SIZE_INC;
257 normal: "sb_runnerv.png";
258 border: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_RUNNER_BORDER;
264 part { name: "elm.dragable.vbar";
265 clip_to: "sb_vbar_clip";
273 description { state: "default" 0.0;
275 min: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_MIN_SIZE_INC;
276 max: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_MAX_SIZE_INC;
288 normal: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_IMAGE;
289 border: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_IMAGE_BORDER;
295 part { name: "sb_vbar_over1";
296 clip_to: "sb_vbar_clip";
299 description { state: "default" 0.0;
300 rel1.to: "elm.dragable.vbar";
301 rel2.relative: 1.0 0.5;
302 rel2.to: "elm.dragable.vbar";
305 normal: "bt_sm_hilight.png";
306 border: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_OVER1;
311 part { name: "sb_vbar_over2";
312 clip_to: "sb_vbar_clip";
315 description { state: "default" 0.0;
316 rel1.to: "elm.dragable.vbar";
317 rel2.to: "elm.dragable.vbar";
320 normal: "bt_sm_shine.png";
321 border: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_OVER2;
326 part { name: "sb_hbar_clip_master";
329 description { state: "default" 0.0;
331 description { state: "hidden" 0.0;
333 color: 255 255 255 0;
336 part { name: "sb_hbar_clip";
337 clip_to: "sb_hbar_clip_master";
341 description { state: "default" 0.0;
343 description { state: "hidden" 0.0;
345 color: 255 255 255 0;
348 part {name: "hbar.padding";
351 description { state: "default" 0.0;
352 min: 0 SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_PADDING_SIZE;
353 max: 0 SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_PADDING_SIZE;
357 to: "elm.swallow.content";
361 to: "elm.swallow.content";
365 part { name: "sb_hbar";
369 description { state: "default" 0.0;
372 min: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_MIN_SIZE_INC;
377 to_y: "elm.swallow.content";
378 to_x: "elm.swallow.content";
384 to_y: "hbar.padding";
388 part { name: "sb_hbar_runner";
389 clip_to: "sb_hbar_clip";
392 description { state: "default" 0.0;
393 min: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_MIN_SIZE_INC;
394 max: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_MAX_SIZE_INC;
399 normal: "sb_runnerh.png";
400 border: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_RUNNER_BORDER;
406 part { name: "elm.dragable.hbar";
407 clip_to: "sb_hbar_clip";
415 description { state: "default" 0.0;
417 min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
418 max: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MAX_SIZE_INC;
429 color: 255 255 255 0;
431 normal: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_IMAGE;
432 border: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_IMAGE_BORDER;
438 part { name: "sb_hbar_over1";
439 clip_to: "sb_hbar_clip";
442 description { state: "default" 0.0;
443 rel1.to: "elm.dragable.hbar";
444 rel2.relative: 1.0 0.5;
445 rel2.to: "elm.dragable.hbar";
448 normal: "bt_sm_hilight.png";
449 border: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_OVER1;
454 part { name: "sb_hbar_over2";
455 clip_to: "sb_hbar_clip";
458 description { state: "default" 0.0;
459 rel1.to: "elm.dragable.hbar";
460 rel2.to: "elm.dragable.hbar";
463 normal: "bt_sm_shine.png";
464 border: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_OVER2;
471 program { name: "load";
475 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
476 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
479 set_int(sbalways_v, 0);
480 set_int(sbalways_h, 0);
481 set_int(sbvis_timer, 0);
485 program { name: "vbar_show";
486 signal: "elm,action,show,vbar";
488 action: STATE_SET "default" 0.0;
489 target: "sb_vbar_clip_master";
491 program { name: "vbar_hide";
492 signal: "elm,action,hide,vbar";
494 action: STATE_SET "hidden" 0.0;
495 target: "sb_vbar_clip_master";
497 program { name: "vbar_show_always";
498 signal: "elm,action,show_always,vbar";
502 v = get_int(sbvis_v);
503 v |= get_int(sbalways_v);
505 set_int(sbalways_v, 1);
506 emit("do-show-vbar", "");
511 program { name: "vbar_show_notalways";
512 signal: "elm,action,show_notalways,vbar";
516 v = get_int(sbalways_v);
518 set_int(sbalways_v, 0);
519 v = get_int(sbvis_v);
521 emit("do-hide-vbar", "");
527 program { name: "sb_vbar_show";
528 signal: "do-show-vbar";
530 action: STATE_SET "default" 0.0;
531 transition: LINEAR 1.0;
532 target: "sb_vbar_clip";
534 program { name: "sb_vbar_hide";
535 signal: "do-hide-vbar";
537 action: STATE_SET "hidden" 0.0;
538 transition: LINEAR 1.0;
539 target: "sb_vbar_clip";
542 program { name: "hbar_show";
543 signal: "elm,action,show,hbar";
545 action: STATE_SET "default" 0.0;
546 target: "sb_hbar_clip_master";
548 program { name: "hbar_hide";
549 signal: "elm,action,hide,hbar";
551 action: STATE_SET "hidden" 0.0;
552 target: "sb_hbar_clip_master";
554 program { name: "hbar_show_always";
555 signal: "elm,action,show_always,hbar";
559 v = get_int(sbvis_h);
560 v |= get_int(sbalways_h);
562 set_int(sbalways_h, 1);
563 emit("do-show-hbar", "");
568 program { name: "hbar_show_notalways";
569 signal: "elm,action,show_notalways,hbar";
573 v = get_int(sbalways_h);
575 set_int(sbalways_h, 0);
576 v = get_int(sbvis_h);
578 emit("do-hide-hbar", "");
584 program { name: "sb_hbar_show";
585 signal: "do-show-hbar";
587 action: STATE_SET "default" 0.0;
588 transition: LINEAR 1.0;
589 target: "sb_hbar_clip";
591 program { name: "sb_hbar_hide";
592 signal: "do-hide-hbar";
594 action: STATE_SET "hidden" 0.0;
595 transition: LINEAR 1.0;
596 target: "sb_hbar_clip";
599 program { name: "scroll";
600 signal: "elm,action,scroll";
604 v = get_int(sbvis_v);
605 v |= get_int(sbalways_v);
607 emit("do-show-vbar", "");
610 v = get_int(sbvis_h);
611 v |= get_int(sbalways_h);
613 emit("do-show-hbar", "");
616 v = get_int(sbvis_timer);
617 if (v > 0) cancel_timer(v);
618 v = timer(2.0, "timer0", 0);
619 set_int(sbvis_timer, v);
622 program { name: "go1";
623 signal: "elm,state,busy,start";
625 action: STATE_SET "active" 0.0;
626 transition: SINUSOIDAL 1.0;
629 program { name: "go2";
630 signal: "elm,state,busy,start";
632 action: STATE_SET "default" 0.0;
633 transition: LINEAR 0.5;
637 program { name: "stop1";
638 signal: "elm,state,busy,stop";
640 action: STATE_SET "default" 0.0;
641 transition: SINUSOIDAL 1.0;
645 program { name: "stop2";