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: "White/63x63/00_list_process_01.png" COMP;
49 image: "White/63x63/00_list_process_02.png" COMP;
50 image: "White/63x63/00_list_process_03.png" COMP;
51 image: "White/63x63/00_list_process_04.png" COMP;
52 image: "White/63x63/00_list_process_05.png" COMP;
53 image: "White/63x63/00_list_process_06.png" COMP;
54 image: "White/63x63/00_list_process_07.png" COMP;
55 image: "White/63x63/00_list_process_08.png" COMP;
56 image: "White/63x63/00_list_process_09.png" COMP;
57 image: "White/63x63/00_list_process_10.png" COMP;
58 image: "White/63x63/00_list_process_11.png" COMP;
59 image: "White/63x63/00_list_process_12.png" COMP;
60 image: "White/63x63/00_list_process_13.png" COMP;
61 image: "White/63x63/00_list_process_14.png" COMP;
62 image: "White/63x63/00_list_process_15.png" COMP;
63 image: "White/63x63/00_list_process_16.png" COMP;
64 image: "White/63x63/00_list_process_17.png" COMP;
65 image: "White/63x63/00_list_process_18.png" COMP;
66 image: "White/63x63/00_list_process_19.png" COMP;
67 image: "White/63x63/00_list_process_20.png" COMP;
68 image: "White/63x63/00_list_process_21.png" COMP;
69 image: "White/63x63/00_list_process_22.png" COMP;
70 image: "White/63x63/00_list_process_23.png" COMP;
71 image: "White/63x63/00_list_process_24.png" COMP;
72 image: "White/63x63/00_list_process_25.png" COMP;
73 image: "White/63x63/00_list_process_26.png" COMP;
74 image: "White/63x63/00_list_process_27.png" COMP;
75 image: "White/63x63/00_list_process_28.png" COMP;
76 image: "White/63x63/00_list_process_29.png" COMP;
77 image: "White/63x63/00_list_process_30.png" COMP;
83 description { state: "default" 0.0;
89 part { name: "clipper";
93 description { state: "default" 0.0;
98 part { name: "elm.swallow.content";
102 description { state: "default" 0.0;
107 part { name: "conf_over";
110 description { state: "default" 0.0;
116 part { name: "busy_clip";
119 description { state: "default" 0.0;
121 color: 255 255 255 0;
123 description { state: "active" 0.0;
125 color: 255 255 255 255;
129 clip_to: "busy_clip";
131 description { state: "default" 0.0;
136 aspect_preference: BOTH;
146 normal: "White/63x63/00_list_process_30.png";
147 tween: "White/63x63/00_list_process_01.png";
148 tween: "White/63x63/00_list_process_02.png";
149 tween: "White/63x63/00_list_process_03.png";
150 tween: "White/63x63/00_list_process_04.png";
151 tween: "White/63x63/00_list_process_05.png";
152 tween: "White/63x63/00_list_process_06.png";
153 tween: "White/63x63/00_list_process_07.png";
154 tween: "White/63x63/00_list_process_08.png";
155 tween: "White/63x63/00_list_process_09.png";
156 tween: "White/63x63/00_list_process_10.png";
157 tween: "White/63x63/00_list_process_11.png";
158 tween: "White/63x63/00_list_process_12.png";
159 tween: "White/63x63/00_list_process_13.png";
160 tween: "White/63x63/00_list_process_14.png";
161 tween: "White/63x63/00_list_process_15.png";
162 tween: "White/63x63/00_list_process_16.png";
163 tween: "White/63x63/00_list_process_17.png";
164 tween: "White/63x63/00_list_process_18.png";
165 tween: "White/63x63/00_list_process_19.png";
166 tween: "White/63x63/00_list_process_20.png";
167 tween: "White/63x63/00_list_process_21.png";
168 tween: "White/63x63/00_list_process_22.png";
169 tween: "White/63x63/00_list_process_23.png";
170 tween: "White/63x63/00_list_process_24.png";
171 tween: "White/63x63/00_list_process_25.png";
172 tween: "White/63x63/00_list_process_26.png";
173 tween: "White/63x63/00_list_process_27.png";
174 tween: "White/63x63/00_list_process_28.png";
175 tween: "White/63x63/00_list_process_29.png";
179 part { name: "sb_vbar_clip_master";
183 description { state: "default" 0.0;
185 description { state: "hidden" 0.0;
187 color: 255 255 255 0;
190 part { name: "sb_vbar_clip";
191 clip_to: "sb_vbar_clip_master";
195 description { state: "default" 0.0;
197 description { state: "hidden" 0.0;
199 color: 255 255 255 0;
202 part {name: "vbar.padding";
205 description { state: "default" 0.0;
206 min: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_PADDING_SIZE 0;
207 max: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_PADDING_SIZE 0;
211 to: "elm.swallow.content";
215 to: "elm.swallow.content";
219 part { name: "sb_vbar";
223 description { state: "default" 0.0;
226 min: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_MIN_SIZE_INC;
231 to_y: "elm.swallow.content";
232 to_x: "elm.swallow.content";
237 to_y: "elm.swallow.content";
238 to_x: "vbar.padding";
242 part { name: "elm.dragable.vbar";
243 clip_to: "sb_vbar_clip";
251 description { state: "default" 0.0;
253 min: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_MIN_SIZE_INC;
254 max: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_MAX_SIZE_INC;
266 normal: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_IMAGE;
267 border: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_IMAGE_BORDER;
273 part { name: "sb_hbar_clip_master";
276 description { state: "default" 0.0;
278 description { state: "hidden" 0.0;
280 color: 255 255 255 0;
283 part { name: "sb_hbar_clip";
284 clip_to: "sb_hbar_clip_master";
288 description { state: "default" 0.0;
290 description { state: "hidden" 0.0;
292 color: 255 255 255 0;
295 part {name: "hbar.padding";
298 description { state: "default" 0.0;
299 min: 0 SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_PADDING_SIZE;
300 max: 0 SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_PADDING_SIZE;
304 to: "elm.swallow.content";
308 to: "elm.swallow.content";
312 part { name: "sb_hbar";
316 description { state: "default" 0.0;
319 min: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_MIN_SIZE_INC;
324 to_y: "elm.swallow.content";
325 to_x: "elm.swallow.content";
331 to_y: "hbar.padding";
335 part { name: "elm.dragable.hbar";
336 clip_to: "sb_hbar_clip";
344 description { state: "default" 0.0;
346 min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
347 max: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MAX_SIZE_INC;
358 color: 255 255 255 0;
360 normal: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_IMAGE;
361 border: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_IMAGE_BORDER;
369 program { name: "load";
373 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
374 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
377 set_int(sbalways_v, 0);
378 set_int(sbalways_h, 0);
379 set_int(sbvis_timer, 0);
383 program { name: "vbar_show";
384 signal: "elm,action,show,vbar";
386 action: STATE_SET "default" 0.0;
387 target: "sb_vbar_clip_master";
389 program { name: "vbar_hide";
390 signal: "elm,action,hide,vbar";
392 action: STATE_SET "hidden" 0.0;
393 target: "sb_vbar_clip_master";
395 program { name: "vbar_show_always";
396 signal: "elm,action,show_always,vbar";
400 v = get_int(sbvis_v);
401 v |= get_int(sbalways_v);
403 set_int(sbalways_v, 1);
404 emit("do-show-vbar", "");
409 program { name: "vbar_show_notalways";
410 signal: "elm,action,show_notalways,vbar";
414 v = get_int(sbalways_v);
416 set_int(sbalways_v, 0);
417 v = get_int(sbvis_v);
419 emit("do-hide-vbar", "");
425 program { name: "sb_vbar_show";
426 signal: "do-show-vbar";
428 action: STATE_SET "default" 0.0;
429 transition: LINEAR 1.0;
430 target: "sb_vbar_clip";
432 program { name: "sb_vbar_hide";
433 signal: "do-hide-vbar";
435 action: STATE_SET "hidden" 0.0;
436 transition: LINEAR 1.0;
437 target: "sb_vbar_clip";
440 program { name: "hbar_show";
441 signal: "elm,action,show,hbar";
443 action: STATE_SET "default" 0.0;
444 target: "sb_hbar_clip_master";
446 program { name: "hbar_hide";
447 signal: "elm,action,hide,hbar";
449 action: STATE_SET "hidden" 0.0;
450 target: "sb_hbar_clip_master";
452 program { name: "hbar_show_always";
453 signal: "elm,action,show_always,hbar";
457 v = get_int(sbvis_h);
458 v |= get_int(sbalways_h);
460 set_int(sbalways_h, 1);
461 emit("do-show-hbar", "");
466 program { name: "hbar_show_notalways";
467 signal: "elm,action,show_notalways,hbar";
471 v = get_int(sbalways_h);
473 set_int(sbalways_h, 0);
474 v = get_int(sbvis_h);
476 emit("do-hide-hbar", "");
482 program { name: "sb_hbar_show";
483 signal: "do-show-hbar";
485 action: STATE_SET "default" 0.0;
486 transition: LINEAR 1.0;
487 target: "sb_hbar_clip";
489 program { name: "sb_hbar_hide";
490 signal: "do-hide-hbar";
492 action: STATE_SET "hidden" 0.0;
493 transition: LINEAR 1.0;
494 target: "sb_hbar_clip";
497 program { name: "scroll";
498 signal: "elm,action,scroll";
502 v = get_int(sbvis_v);
503 v |= get_int(sbalways_v);
505 emit("do-show-vbar", "");
508 v = get_int(sbvis_h);
509 v |= get_int(sbalways_h);
511 emit("do-show-hbar", "");
514 v = get_int(sbvis_timer);
515 if (v > 0) cancel_timer(v);
516 v = timer(2.0, "timer0", 0);
517 set_int(sbvis_timer, v);
520 program { name: "go1";
521 signal: "elm,state,busy,start";
523 action: STATE_SET "active" 0.0;
524 transition: SINUSOIDAL 1.0;
527 program { name: "go2";
528 signal: "elm,state,busy,start";
530 action: STATE_SET "default" 0.0;
531 transition: LINEAR 0.5;
535 program { name: "stop1";
536 signal: "elm,state,busy,stop";
538 action: STATE_SET "default" 0.0;
539 transition: SINUSOIDAL 1.0;
543 program { name: "stop2";