[Genlist] change edit mode style
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / photocam.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
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
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  */
17
18
19
20 group { name: "elm/photocam/base/default";
21        script {
22            public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
23            public timer0(val) {
24                new v;
25                v = get_int(sbvis_v);
26                if (v) {
27                    v = get_int(sbalways_v);
28                    if (!v) {
29                        emit("do-hide-vbar", "");
30                        set_int(sbvis_v, 0);
31                    }
32                }
33                v = get_int(sbvis_h);
34                if (v) {
35                    v = get_int(sbalways_h);
36                    if (!v) {
37                        emit("do-hide-hbar", "");
38                        set_int(sbvis_h, 0);
39                    }
40                }
41                set_int(sbvis_timer, 0);
42                return 0;
43            }
44        }
45        images {
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;
78        }
79        parts {
80            part { name: "bg";
81                type: RECT;
82                    scale: 1;
83                description { state: "default" 0.0;
84                    rel1.offset: 0 0;
85                    rel2.offset: -1 -1;
86                    color: 255 255 255 0;
87                }
88            }
89            part { name: "clipper";
90                type: RECT;
91                mouse_events: 0;
92                scale: 1;
93                description { state: "default" 0.0;
94                    rel1.to: "bg";
95                    rel2.to: "bg";
96                }
97            }
98            part { name: "elm.swallow.content";
99                clip_to: "clipper";
100                type: SWALLOW;
101                scale: 1;
102                description { state: "default" 0.0;
103                    rel1.offset: 0 0;
104                    rel2.offset: -1 -1;
105                }
106            }
107            part { name: "conf_over";
108                mouse_events: 0;
109                scale: 1;
110                description { state: "default" 0.0;
111                   rel1.offset: 0 0;
112                   rel2.offset: -1 -1;
113                   visible: 0;
114                }
115            }
116            part { name: "busy_clip";
117                type: RECT;
118                mouse_events: 0;
119                description { state: "default" 0.0;
120                    visible: 0;
121                    color: 255 255 255 0;
122                }
123                description { state: "active" 0.0;
124                    visible: 1;
125                    color: 255 255 255 255;
126                }
127            }
128            part { name: "busy";
129                clip_to: "busy_clip";
130                mouse_events: 0;
131                description { state: "default" 0.0;
132                    fixed: 1 1;
133                    min: 32 32;
134                    aspect: 1.0 1.0;
135                    align: 1.0 1.0;
136                    aspect_preference: BOTH;
137                    rel1 {
138                        relative: 0.9 0.9;
139                        offset:   -9 -9;
140                    }
141                    rel2 {
142                        relative: 0.9 0.9;
143                        offset:   -9 -9;
144                    }
145                    image {
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";
176                    }
177                }
178            }
179          part { name: "sb_vbar_clip_master";
180             type: RECT;
181             mouse_events: 0;
182             scale: 1;
183             description { state: "default" 0.0;
184             }
185             description { state: "hidden" 0.0;
186                visible: 0;
187                color: 255 255 255 0;
188             }
189          }
190          part { name: "sb_vbar_clip";
191             clip_to: "sb_vbar_clip_master";
192             type: RECT;
193             mouse_events: 0;
194             scale: 1;
195             description { state: "default" 0.0;
196             }
197             description { state: "hidden" 0.0;
198                visible: 0;
199                color: 255 255 255 0;
200             }
201          }
202          part {name: "vbar.padding";
203             type: RECT;
204             mouse_events: 0;
205             description { state: "default" 0.0;
206                min: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_PADDING_SIZE 0;
207                max: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_PADDING_SIZE 0;
208                align: 1 0.5;
209                rel1 {
210                   relative: 0.0 0.0;
211                   to: "elm.swallow.content";
212                }
213                rel2 {
214                   relative: 1.0 1.0;
215                   to: "elm.swallow.content";
216                }
217             }
218          }
219          part { name: "sb_vbar";
220             type: RECT;
221             mouse_events: 0;
222             scale: 1;
223             description { state: "default" 0.0;
224                fixed: 1 1;
225                visible: 0;
226                min: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_MIN_SIZE_INC;
227                align: 1.0 0.0;
228                rel1 {
229                   relative: 1.0 0.0;
230                   offset: -1 0;
231                   to_y: "elm.swallow.content";
232                   to_x: "elm.swallow.content";
233                }
234                rel2 {
235                   relative: 0.0 1.0;
236                   offset: -1 -1;
237                   to_y: "elm.swallow.content";
238                   to_x: "vbar.padding";
239                }
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: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_MIN_SIZE_INC;
254                max: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_MAX_SIZE_INC;
255                rel1 {
256                   relative: 0.5  0.5;
257                   offset:   0    0;
258                   to: "sb_vbar";
259                }
260                rel2 {
261                   relative: 0.5  0.5;
262                   offset:   0    0;
263                   to: "sb_vbar";
264                }
265                image {
266                   normal: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_IMAGE;
267                   border: SCROLLER_PHOTOCAM_SCROLLBAR_VBAR_IMAGE_BORDER;
268                   border_scale: 1;
269                   middle: DEFAULT;
270                }
271             }
272          }
273          part { name: "sb_hbar_clip_master";
274             type: RECT;
275             mouse_events: 0;
276             description { state: "default" 0.0;
277             }
278             description { state: "hidden" 0.0;
279                visible: 0;
280                color: 255 255 255 0;
281             }
282          }
283          part { name: "sb_hbar_clip";
284             clip_to: "sb_hbar_clip_master";
285             type: RECT;
286             mouse_events: 0;
287             scale: 1;
288             description { state: "default" 0.0;
289             }
290             description { state: "hidden" 0.0;
291                visible: 0;
292                color: 255 255 255 0;
293             }
294          }
295          part {name: "hbar.padding";
296             type: RECT;
297             mouse_events: 0;
298             description { state: "default" 0.0;
299                min: 0 SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_PADDING_SIZE;
300                max: 0 SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_PADDING_SIZE;
301                align: 1 1;
302                rel1 {
303                   relative: 0.0 0.0;
304                   to: "elm.swallow.content";
305                }
306                rel2 {
307                   relative: 1.0 1.0;
308                   to: "elm.swallow.content";
309                }
310             }
311          }
312          part { name: "sb_hbar";
313             type: RECT;
314             mouse_events: 0;
315             scale: 1;
316             description { state: "default" 0.0;
317                fixed: 1 1;
318                visible: 0;
319                min: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_MIN_SIZE_INC;
320                align: 0.0 1.0;
321                rel1 {
322                   relative: 0.0 1.0;
323                   offset: 0 -1;
324                   to_y: "elm.swallow.content";
325                   to_x: "elm.swallow.content";
326                }
327                rel2 {
328                   relative: 0.0 1.0;
329                   offset: -1 -1;
330                   to_x: "sb_vbar";
331                   to_y: "hbar.padding";
332                }
333             }
334          }
335          part { name: "elm.dragable.hbar";
336             clip_to: "sb_hbar_clip";
337             mouse_events: 0;
338             scale: 1;
339             dragable {
340                x: 1 1 0;
341                y: 0 0 0;
342                confine: "sb_hbar";
343             }
344             description { state: "default" 0.0;
345                fixed: 1 1;
346                min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
347                max: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MAX_SIZE_INC;
348                rel1 {
349                   relative: 0.5  0.5;
350                   offset: 0 0;
351                   to: "sb_hbar";
352                }
353                rel2 {
354                   relative: 0.5  0.5;
355                   offset: 0 0;
356                   to: "sb_hbar";
357                }
358                color: 255 255 255 0;
359                image {
360                   normal: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_IMAGE;
361                   border: SCROLLER_PHOTOCAM_SCROLLBAR_HBAR_IMAGE_BORDER;
362                   border_scale: 1;
363                   middle: SOLID;
364                }
365             }
366          }
367        }
368        programs {
369            program { name: "load";
370                signal: "load";
371                source: "";
372                script {
373                    set_state(PART:"sb_hbar_clip", "hidden", 0.0);
374                    set_state(PART:"sb_vbar_clip", "hidden", 0.0);
375                    set_int(sbvis_h, 0);
376                    set_int(sbvis_v, 0);
377                    set_int(sbalways_v, 0);
378                    set_int(sbalways_h, 0);
379                    set_int(sbvis_timer, 0);
380                }
381            }
382
383            program { name: "vbar_show";
384                signal: "elm,action,show,vbar";
385                source: "elm";
386                action:  STATE_SET "default" 0.0;
387                target: "sb_vbar_clip_master";
388            }
389            program { name: "vbar_hide";
390                signal: "elm,action,hide,vbar";
391                source: "elm";
392                action:  STATE_SET "hidden" 0.0;
393                target: "sb_vbar_clip_master";
394            }
395            program { name: "vbar_show_always";
396                signal: "elm,action,show_always,vbar";
397                source: "elm";
398                script {
399                    new v;
400                    v = get_int(sbvis_v);
401                    v |= get_int(sbalways_v);
402                    if (!v) {
403                        set_int(sbalways_v, 1);
404                        emit("do-show-vbar", "");
405                        set_int(sbvis_v, 1);
406                    }
407                }
408            }
409            program { name: "vbar_show_notalways";
410                signal: "elm,action,show_notalways,vbar";
411                source: "elm";
412                script {
413                    new v;
414                    v = get_int(sbalways_v);
415                    if (v) {
416                        set_int(sbalways_v, 0);
417                        v = get_int(sbvis_v);
418                        if (!v) {
419                            emit("do-hide-vbar", "");
420                            set_int(sbvis_v, 0);
421                        }
422                    }
423                }
424            }
425            program { name: "sb_vbar_show";
426                signal: "do-show-vbar";
427                source: "";
428                action:  STATE_SET "default" 0.0;
429                transition: LINEAR 1.0;
430                target: "sb_vbar_clip";
431            }
432            program { name: "sb_vbar_hide";
433                signal: "do-hide-vbar";
434                source: "";
435                action:  STATE_SET "hidden" 0.0;
436                transition: LINEAR 1.0;
437                target: "sb_vbar_clip";
438            }
439
440            program { name: "hbar_show";
441                signal: "elm,action,show,hbar";
442                source: "elm";
443                action:  STATE_SET "default" 0.0;
444                target: "sb_hbar_clip_master";
445            }
446            program { name: "hbar_hide";
447                signal: "elm,action,hide,hbar";
448                source: "elm";
449                action:  STATE_SET "hidden" 0.0;
450                target: "sb_hbar_clip_master";
451            }
452            program { name: "hbar_show_always";
453                signal: "elm,action,show_always,hbar";
454                source: "elm";
455                script {
456                    new v;
457                    v = get_int(sbvis_h);
458                    v |= get_int(sbalways_h);
459                    if (!v) {
460                        set_int(sbalways_h, 1);
461                        emit("do-show-hbar", "");
462                        set_int(sbvis_h, 1);
463                    }
464                }
465            }
466            program { name: "hbar_show_notalways";
467                signal: "elm,action,show_notalways,hbar";
468                source: "elm";
469                script {
470                    new v;
471                    v = get_int(sbalways_h);
472                    if (v) {
473                        set_int(sbalways_h, 0);
474                        v = get_int(sbvis_h);
475                        if (!v) {
476                            emit("do-hide-hbar", "");
477                            set_int(sbvis_h, 0);
478                        }
479                    }
480                }
481            }
482            program { name: "sb_hbar_show";
483                signal: "do-show-hbar";
484                source: "";
485                action:  STATE_SET "default" 0.0;
486                transition: LINEAR 1.0;
487                target: "sb_hbar_clip";
488            }
489            program { name: "sb_hbar_hide";
490                signal: "do-hide-hbar";
491                source: "";
492                action:  STATE_SET "hidden" 0.0;
493                transition: LINEAR 1.0;
494                target: "sb_hbar_clip";
495            }
496
497            program { name: "scroll";
498                signal: "elm,action,scroll";
499                source: "elm";
500                script {
501                    new v;
502                    v = get_int(sbvis_v);
503                    v |= get_int(sbalways_v);
504                    if (!v) {
505                        emit("do-show-vbar", "");
506                        set_int(sbvis_v, 1);
507                    }
508                    v = get_int(sbvis_h);
509                    v |= get_int(sbalways_h);
510                    if (!v) {
511                        emit("do-show-hbar", "");
512                        set_int(sbvis_h, 1);
513                    }
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);
518                }
519            }
520            program { name: "go1";
521                signal: "elm,state,busy,start";
522                source: "elm";
523                action: STATE_SET "active" 0.0;
524                transition: SINUSOIDAL 1.0;
525                target:  "busy_clip";
526            }
527            program { name: "go2";
528                signal: "elm,state,busy,start";
529                source: "elm";
530                action: STATE_SET "default" 0.0;
531                transition: LINEAR 0.5;
532                target: "busy";
533                after:  "go2";
534            }
535            program { name: "stop1";
536                signal: "elm,state,busy,stop";
537                source: "elm";
538                action: STATE_SET "default" 0.0;
539                transition: SINUSOIDAL 1.0;
540                target: "busy_clip";
541                after: "stop2";
542            }
543          program { name: "stop2";
544             action: ACTION_STOP;
545             target: "go2";
546          }
547       }
548    }
549