Added new winset styles (2.2.2.38-2.2.2.44) according to the GUI Guide 1.8
[profile/ivi/efl-theme-tizen.git] / themes / widgets / photocam.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/photocam/base/default";
20        script {
21            public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
22            public timer0(val) {
23                new v;
24                v = get_int(sbvis_v);
25                if (v) {
26                    v = get_int(sbalways_v);
27                    if (!v) {
28                        emit("do-hide-vbar", "");
29                        set_int(sbvis_v, 0);
30                    }
31                }
32                v = get_int(sbvis_h);
33                if (v) {
34                    v = get_int(sbalways_h);
35                    if (!v) {
36                        emit("do-hide-hbar", "");
37                        set_int(sbvis_h, 0);
38                    }
39                }
40                set_int(sbvis_timer, 0);
41                return 0;
42            }
43        }
44        images {
45            image: "00_scroll_bar.png" COMP;
46            image: "bt_sm_shine.png" COMP;
47            image: "bt_sm_hilight.png" COMP;
48            image: "sb_runnerh.png" COMP;
49            image: "sb_runnerv.png" COMP;
50            image: "00_winset_list_process_01.png" COMP;
51            image: "00_winset_list_process_02.png" COMP;
52            image: "00_winset_list_process_03.png" COMP;
53            image: "00_winset_list_process_04.png" COMP;
54            image: "00_winset_list_process_05.png" COMP;
55            image: "00_winset_list_process_06.png" COMP;
56            image: "00_winset_list_process_07.png" COMP;
57            image: "00_winset_list_process_08.png" COMP;
58            image: "00_winset_list_process_09.png" COMP;
59            image: "00_winset_list_process_10.png" COMP;
60            image: "00_winset_list_process_11.png" COMP;
61            image: "00_winset_list_process_12.png" COMP;
62            image: "00_winset_list_process_13.png" COMP;
63            image: "00_winset_list_process_14.png" COMP;
64            image: "00_winset_list_process_15.png" COMP;
65            image: "00_winset_list_process_16.png" COMP;
66            image: "00_winset_list_process_17.png" COMP;
67            image: "00_winset_list_process_18.png" COMP;
68            image: "00_winset_list_process_19.png" COMP;
69            image: "00_winset_list_process_20.png" COMP;
70            image: "00_winset_list_process_21.png" COMP;
71            image: "00_winset_list_process_22.png" COMP;
72            image: "00_winset_list_process_23.png" COMP;
73            image: "00_winset_list_process_24.png" COMP;
74            image: "00_winset_list_process_25.png" COMP;
75            image: "00_winset_list_process_26.png" COMP;
76            image: "00_winset_list_process_27.png" COMP;
77            image: "00_winset_list_process_28.png" COMP;
78            image: "00_winset_list_process_29.png" COMP;
79            image: "00_winset_list_process_30.png" COMP;
80        }
81        parts {
82            part { name: "bg";
83                type: RECT;
84                scale: 1;
85                description { state: "default" 0.0;
86                    rel1.offset: 0 0;
87                    rel2.offset: -1 -1;
88                    color: 255 255 255 0;
89                }
90            }
91            part { name: "clipper";
92                type: RECT;
93                mouse_events: 0;
94                scale: 1;
95                description { state: "default" 0.0;
96                    rel1.to: "bg";
97                    rel2.to: "bg";
98                }
99            }
100            part { name: "elm.swallow.content";
101                clip_to: "clipper";
102                type: SWALLOW;
103                scale: 1;
104                description { state: "default" 0.0;
105                    rel1.offset: 0 0;
106                    rel2.offset: -1 -1;
107                }
108            }
109            part { name: "conf_over";
110                mouse_events: 0;
111                scale: 1;
112                description { state: "default" 0.0;
113                   rel1.offset: 0 0;
114                   rel2.offset: -1 -1;
115                   visible: 0;
116                }
117            }
118            part { name: "busy_clip";
119                type: RECT;
120                mouse_events: 0;
121                description { state: "default" 0.0;
122                    visible: 0;
123                    color: 255 255 255 0;
124                }
125                description { state: "active" 0.0;
126                    visible: 1;
127                    color: 255 255 255 255;
128                }
129            }
130            part { name: "busy";
131                clip_to: "busy_clip";
132                mouse_events: 0;
133                description { state: "default" 0.0;
134                    fixed: 1 1;
135                    min: 32 32;
136                    aspect: 1.0 1.0;
137                    align: 1.0 1.0;
138                    aspect_preference: BOTH;
139                    rel1 {
140                        relative: 0.9 0.9;
141                        offset:   -9 -9;
142                    }
143                    rel2 {
144                        relative: 0.9 0.9;
145                        offset:   -9 -9;
146                    }
147                    image {
148                        normal: "00_winset_list_process_30.png";
149                        tween:  "00_winset_list_process_01.png";
150                        tween:  "00_winset_list_process_02.png";
151                        tween:  "00_winset_list_process_03.png";
152                        tween:  "00_winset_list_process_04.png";
153                        tween:  "00_winset_list_process_05.png";
154                        tween:  "00_winset_list_process_06.png";
155                        tween:  "00_winset_list_process_07.png";
156                        tween:  "00_winset_list_process_08.png";
157                        tween:  "00_winset_list_process_09.png";
158                        tween:  "00_winset_list_process_10.png";
159                        tween:  "00_winset_list_process_11.png";
160                        tween:  "00_winset_list_process_12.png";
161                        tween:  "00_winset_list_process_13.png";
162                        tween:  "00_winset_list_process_14.png";
163                        tween:  "00_winset_list_process_15.png";
164                        tween:  "00_winset_list_process_16.png";
165                        tween:  "00_winset_list_process_17.png";
166                        tween:  "00_winset_list_process_18.png";
167                        tween:  "00_winset_list_process_19.png";
168                        tween:  "00_winset_list_process_20.png";
169                        tween:  "00_winset_list_process_21.png";
170                        tween:  "00_winset_list_process_22.png";
171                        tween:  "00_winset_list_process_23.png";
172                        tween:  "00_winset_list_process_24.png";
173                        tween:  "00_winset_list_process_25.png";
174                        tween:  "00_winset_list_process_26.png";
175                        tween:  "00_winset_list_process_27.png";
176                        tween:  "00_winset_list_process_28.png";
177                        tween:  "00_winset_list_process_29.png";
178                    }
179                }
180            }
181          part { name: "sb_vbar_clip_master";
182             type: RECT;
183             mouse_events: 0;
184             scale: 1;
185             description { state: "default" 0.0;
186             }
187             description { state: "hidden" 0.0;
188                visible: 0;
189                color: 255 255 255 0;
190             }
191          }
192          part { name: "sb_vbar_clip";
193             clip_to: "sb_vbar_clip_master";
194             type: RECT;
195             mouse_events: 0;
196             scale: 1;
197             description { state: "default" 0.0;
198             }
199             description { state: "hidden" 0.0;
200                visible: 0;
201                color: 255 255 255 0;
202             }
203          }
204          part { name: "sb_vbar";
205             type: RECT;
206             mouse_events: 0;
207             scale: 1;
208             description { state: "default" 0.0;
209                fixed: 1 1;
210                visible: 0;
211                min: 8 8;
212                align: 1.0 0.0;
213                rel1 {
214                   relative: 1.0 0.0;
215                   offset: -1 0;
216                }
217                rel2 {
218                   relative: 1.0 0.0;
219                   offset: -1 -1;
220                   to_y: "sb_hbar";
221                }
222             }
223          }
224          part { name: "sb_vbar_runner";
225             clip_to: "sb_vbar_clip";
226             mouse_events: 0;
227             scale: 1;
228             description { state: "default" 0.0;
229                min: 8 8;
230                max: 8 99999;
231                rel1.to: "sb_vbar";
232                rel2.to: "sb_vbar";
233                visible: 0;
234                image {
235                   normal: "sb_runnerv.png";
236                   border: 0 0 4 4;
237                   border_scale: 1;
238                }
239                fill.smooth: 0;
240             }
241          }
242          part { name: "elm.dragable.vbar";
243             clip_to: "sb_vbar_clip";
244             mouse_events: 0;
245             scale: 1;
246             dragable {
247                x: 0 0 0;
248                y: 1 1 0;
249                confine: "sb_vbar";
250             }
251             description { state: "default" 0.0;
252                fixed: 1 1;
253                min: 8 8;
254                rel1 {
255                   relative: 0.5  0.5;
256                   offset:   0    0;
257                   to: "sb_vbar";
258                }
259                rel2 {
260                   relative: 0.5  0.5;
261                   offset:   0    0;
262                   to: "sb_vbar";
263                }
264                image {
265         normal: "00_scroll_bar.png";
266         border: 3 3 3 3;
267         border_scale: 1;
268                   middle: DEFAULT;
269                }
270             }
271          }
272          part { name: "sb_vbar_over1";
273             clip_to: "sb_vbar_clip";
274             mouse_events: 0;
275             scale: 1;
276             description { state: "default" 0.0;
277                rel1.to: "elm.dragable.vbar";
278                rel2.relative: 1.0 0.5;
279                rel2.to: "elm.dragable.vbar";
280                visible: 0;
281                image {
282                   normal: "bt_sm_hilight.png";
283                   border: 6 6 6 0;
284                   border_scale: 1;
285                }
286             }
287          }
288          part { name: "sb_vbar_over2";
289             clip_to: "sb_vbar_clip";
290             mouse_events: 0;
291             scale: 1;
292             description { state: "default" 0.0;
293                rel1.to: "elm.dragable.vbar";
294                rel2.to: "elm.dragable.vbar";
295                visible: 0;
296                image {
297                   normal: "bt_sm_shine.png";
298                   border: 6 6 6 0;
299                   border_scale: 1;
300                }
301             }
302          }
303          part { name: "sb_hbar_clip_master";
304             type: RECT;
305             mouse_events: 0;
306             description { state: "default" 0.0;
307             }
308             description { state: "hidden" 0.0;
309                visible: 0;
310                color: 255 255 255 0;
311             }
312          }
313          part { name: "sb_hbar_clip";
314             clip_to: "sb_hbar_clip_master";
315             type: RECT;
316             mouse_events: 0;
317             scale: 1;
318             description { state: "default" 0.0;
319             }
320             description { state: "hidden" 0.0;
321                visible: 0;
322                color: 255 255 255 0;
323             }
324          }
325          part { name: "sb_hbar";
326             type: RECT;
327             mouse_events: 0;
328             scale: 1;
329             description { state: "default" 0.0;
330                fixed: 1 1;
331                visible: 0;
332                min: 50 8;
333                align: 0.0 1.0;
334                rel1 {
335                   relative: 0.0 1.0;
336                   offset: 0 -1;
337                }
338                rel2 {
339                   relative: 0.0 1.0;
340                   offset: -1 -1;
341                   to_x: "sb_vbar";
342                }
343             }
344          }
345          part { name: "sb_hbar_runner";
346             clip_to: "sb_hbar_clip";
347             mouse_events: 0;
348             scale: 1;
349             description { state: "default" 0.0;
350                min: 50 8;
351                max: 99999 8;
352                rel1.to: "sb_hbar";
353                rel2.to: "sb_hbar";
354                visible: 0;
355                image {
356                   normal: "sb_runnerh.png";
357                   border: 4 4 0 0;
358                   border_scale: 1;
359                }
360                fill.smooth: 0;
361             }
362          }
363          part { name: "elm.dragable.hbar";
364             clip_to: "sb_hbar_clip";
365             mouse_events: 0;
366             scale: 1;
367             dragable {
368                x: 1 1 0;
369                y: 0 0 0;
370                confine: "sb_hbar";
371             }
372             description { state: "default" 0.0;
373                fixed: 1 1;
374                min: 50 8;
375                rel1 {
376                   relative: 0.5  0.5;
377                   offset: 0 0;
378                   to: "sb_hbar";
379                }
380                rel2 {
381                   relative: 0.5  0.5;
382                   offset: 0 0;
383                   to: "sb_hbar";
384                }
385                color: 255 255 255 0;
386                image {
387         normal: "00_scroll_bar.png";
388         border: 3 3 3 3;
389         border_scale: 1;
390                }
391                image.middle: SOLID;
392             }
393          }
394          part { name: "sb_hbar_over1";
395             clip_to: "sb_hbar_clip";
396             mouse_events: 0;
397             scale: 1;
398             description { state: "default" 0.0;
399                rel1.to: "elm.dragable.hbar";
400                rel2.relative: 1.0 0.5;
401                rel2.to: "elm.dragable.hbar";
402                visible: 0;
403                image {
404                   normal: "bt_sm_hilight.png";
405                   border: 6 6 6 0;
406                   border_scale: 1;
407                }
408             }
409          }
410          part { name: "sb_hbar_over2";
411             clip_to: "sb_hbar_clip";
412             mouse_events: 0;
413             scale: 1;
414             description { state: "default" 0.0;
415                rel1.to: "elm.dragable.hbar";
416                rel2.to: "elm.dragable.hbar";
417                visible: 0;
418                image {
419                   normal: "bt_sm_shine.png";
420                   border: 6 6 6 0;
421                   border_scale: 1;
422                }
423             }
424          }
425        }
426        programs {
427            program { name: "load";
428                signal: "load";
429                source: "";
430                script {
431                    set_state(PART:"sb_hbar_clip", "hidden", 0.0);
432                    set_state(PART:"sb_vbar_clip", "hidden", 0.0);
433                    set_int(sbvis_h, 0);
434                    set_int(sbvis_v, 0);
435                    set_int(sbalways_v, 0);
436                    set_int(sbalways_h, 0);
437                    set_int(sbvis_timer, 0);
438                }
439            }
440
441            program { name: "vbar_show";
442                signal: "elm,action,show,vbar";
443                source: "elm";
444                action:  STATE_SET "default" 0.0;
445                target: "sb_vbar_clip_master";
446            }
447            program { name: "vbar_hide";
448                signal: "elm,action,hide,vbar";
449                source: "elm";
450                action:  STATE_SET "hidden" 0.0;
451                target: "sb_vbar_clip_master";
452            }
453            program { name: "vbar_show_always";
454                signal: "elm,action,show_always,vbar";
455                source: "elm";
456                script {
457                    new v;
458                    v = get_int(sbvis_v);
459                    v |= get_int(sbalways_v);
460                    if (!v) {
461                        set_int(sbalways_v, 1);
462                        emit("do-show-vbar", "");
463                        set_int(sbvis_v, 1);
464                    }
465                }
466            }
467            program { name: "vbar_show_notalways";
468                signal: "elm,action,show_notalways,vbar";
469                source: "elm";
470                script {
471                    new v;
472                    v = get_int(sbalways_v);
473                    if (v) {
474                        set_int(sbalways_v, 0);
475                        v = get_int(sbvis_v);
476                        if (!v) {
477                            emit("do-hide-vbar", "");
478                            set_int(sbvis_v, 0);
479                        }
480                    }
481                }
482            }
483            program { name: "sb_vbar_show";
484                signal: "do-show-vbar";
485                source: "";
486                action:  STATE_SET "default" 0.0;
487                transition: LINEAR 1.0;
488                target: "sb_vbar_clip";
489            }
490            program { name: "sb_vbar_hide";
491                signal: "do-hide-vbar";
492                source: "";
493                action:  STATE_SET "hidden" 0.0;
494                transition: LINEAR 1.0;
495                target: "sb_vbar_clip";
496            }
497
498            program { name: "hbar_show";
499                signal: "elm,action,show,hbar";
500                source: "elm";
501                action:  STATE_SET "default" 0.0;
502                target: "sb_hbar_clip_master";
503            }
504            program { name: "hbar_hide";
505                signal: "elm,action,hide,hbar";
506                source: "elm";
507                action:  STATE_SET "hidden" 0.0;
508                target: "sb_hbar_clip_master";
509            }
510            program { name: "hbar_show_always";
511                signal: "elm,action,show_always,hbar";
512                source: "elm";
513                script {
514                    new v;
515                    v = get_int(sbvis_h);
516                    v |= get_int(sbalways_h);
517                    if (!v) {
518                        set_int(sbalways_h, 1);
519                        emit("do-show-hbar", "");
520                        set_int(sbvis_h, 1);
521                    }
522                }
523            }
524            program { name: "hbar_show_notalways";
525                signal: "elm,action,show_notalways,hbar";
526                source: "elm";
527                script {
528                    new v;
529                    v = get_int(sbalways_h);
530                    if (v) {
531                        set_int(sbalways_h, 0);
532                        v = get_int(sbvis_h);
533                        if (!v) {
534                            emit("do-hide-hbar", "");
535                            set_int(sbvis_h, 0);
536                        }
537                    }
538                }
539            }
540            program { name: "sb_hbar_show";
541                signal: "do-show-hbar";
542                source: "";
543                action:  STATE_SET "default" 0.0;
544                transition: LINEAR 1.0;
545                target: "sb_hbar_clip";
546            }
547            program { name: "sb_hbar_hide";
548                signal: "do-hide-hbar";
549                source: "";
550                action:  STATE_SET "hidden" 0.0;
551                transition: LINEAR 1.0;
552                target: "sb_hbar_clip";
553            }
554
555            program { name: "scroll";
556                signal: "elm,action,scroll";
557                source: "elm";
558                script {
559                    new v;
560                    v = get_int(sbvis_v);
561                    v |= get_int(sbalways_v);
562                    if (!v) {
563                        emit("do-show-vbar", "");
564                        set_int(sbvis_v, 1);
565                    }
566                    v = get_int(sbvis_h);
567                    v |= get_int(sbalways_h);
568                    if (!v) {
569                        emit("do-show-hbar", "");
570                        set_int(sbvis_h, 1);
571                    }
572                    v = get_int(sbvis_timer);
573                    if (v > 0) cancel_timer(v);
574                    v = timer(2.0, "timer0", 0);
575                    set_int(sbvis_timer, v);
576                }
577            }
578            program { name: "go1";
579                signal: "elm,state,busy,start";
580                source: "elm";
581                action: STATE_SET "active" 0.0;
582                transition: SINUSOIDAL 1.0;
583                target:  "busy_clip";
584            }
585            program { name: "go2";
586                signal: "elm,state,busy,start";
587                source: "elm";
588                action: STATE_SET "default" 0.0;
589                transition: LINEAR 0.5;
590                target: "busy";
591                after:  "go2";
592            }
593            program { name: "stop1";
594                signal: "elm,state,busy,stop";
595                source: "elm";
596                action: STATE_SET "default" 0.0;
597                transition: SINUSOIDAL 1.0;
598                target: "busy_clip";
599                after: "stop2";
600            }
601          program { name: "stop2";
602             action: ACTION_STOP;
603             target: "go2";
604          }
605       }
606    }
607