tizen 2.4 release
[framework/uifw/e17-mod-tizen-comp.git] / data / group / shadow_fade.edc
1 /*-----------------------------------------------------*/
2 /* group "shadow_fade"                                 */
3 /*-----------------------------------------------------*/
4 group { name: "shadow_fade";
5   #include "../common/comp-config.edc"
6   images {
7      image: "comp-sh1.png" COMP;
8   }
9   parts {
10      part { name: "clipper";
11         type: RECT;
12         mouse_events: 0;
13         description { state: "default" 0.0;
14            visible: 1;
15            color: 255 255 255 1;
16            rel1.relative: -1.0  -1.0;
17            rel1.offset:  -9999 -9999;
18            rel2.relative:  2.0   2.0;
19            rel2.offset:   9999  9999;
20         }
21         description { state: "invisible" 0.0;
22            inherit: "default" 0.0;
23            visible: 1;
24         }
25         description { state: "visible" 0.0;
26            inherit: "default" 0.0;
27            visible: 1;
28            color: 255 255 255 255;
29         }
30         description { state: "foreground" 0.0;
31            inherit: "default" 0.0;
32            visible: 1;
33            color: 255 255 255 255;
34         }
35         description { state: "background" 0.0;
36            inherit: "default" 0.0;
37            visible: 1;
38            color: 255 255 255 100;
39         }
40         description { state: "hide" 0.0;
41            inherit: "default" 0.0;
42         }
43      }
44      part { name: "shadow";
45         mouse_events: 0;
46         clip_to: "clipper";
47         description { state: "default" 0.0;
48            visible: 0;
49            image {
50               normal: "comp-sh1.png";
51               border: 12 12 12 12;
52               middle: 0;
53            }
54            fill.smooth: 0;
55            rel1 {
56               to: "e.swallow.content";
57               relative: 0.0 0.0;
58               offset: -12 -12;
59            }
60            rel2 {
61               to: "e.swallow.content";
62               relative: 1.0 1.0;
63               offset: 11 11;
64            }
65         }
66         description { state: "show" 0.0;
67            inherit: "default" 0.0;
68            visible: 1;
69         }
70         description { state: "hidden" 0.0;
71            inherit: "default" 0.0;
72         }
73      }
74      part { name: "shower";
75         type: RECT;
76         mouse_events: 0;
77         description { state: "default" 0.0;
78            visible: 0;
79            rel1.relative: 0 0;
80            rel1.offset:   0 0;
81            rel2.relative: 1 1;
82         }
83         description { state: "invisible" 0.0;
84            inherit: "default" 0.0;
85            rel1.relative: 0 0;
86            rel1.offset:   0 0;
87            rel2.relative: 1 1;
88         }
89         description { state: "visible" 0.0;
90            inherit: "default" 0.0;
91            rel1.relative: 0 0;
92            rel1.offset:   0 0;
93            rel2.relative: 1 1;
94         }
95         description { state: "hide" 0.0;
96            inherit: "default" 0.0;
97            rel1.relative: 0 0;
98            rel1.offset:   0 0;
99            rel2.relative: 1 1;
100         }
101         description { state: "foreground" 0.0;
102            inherit: "default" 0.0;
103            rel1.relative: 0 0;
104            rel1.offset:   0 0;
105            rel2.relative: 1 1;
106         }
107         description { state: "background" 0.0;
108            inherit: "default" 0.0;
109            rel1.relative: 0.05 0.05;
110            rel1.offset:   0 0;
111            rel2.relative: 0.95 0.95;
112         }
113      }
114      part { name: "e.swallow.transp.offset";
115         type: SWALLOW;
116         clip_to: "clipper";
117         mouse_events: 0;
118         description { state: "default" 0.0;
119            align: 0 0;
120            rel1 {
121               relative: 0.0 0.0;
122               to: "shower";
123            }
124            rel2 {
125               relative: 0.0 0.0;
126               to: "shower";
127            }
128         }
129      }
130      part { name: "e.swallow.transp.rect";
131         type: SWALLOW;
132         clip_to: "clipper";
133         mouse_events: 0;
134         description { state: "default" 0.0;
135            align: 0 0;
136            rel1 {
137               relative: 1.0 1.0;
138               to: "e.swallow.transp.offset";
139            }
140            rel2 {
141               relative: 1.0 1.0;
142               to: "e.swallow.transp.offset";
143            }
144         }
145      }
146      part { name: "persp";
147         type: RECT;
148         description { state: "default" 0.0;
149            min: 10 10;
150            max: 10 10;
151            visible: 0;
152            perspective.zplane: 0.0;
153            perspective.focal: 1000;
154         }
155         description { state: "hide" 0.0;
156            inherit: "default" 0.0;
157            perspective.zplane: -700.0;
158            perspective.focal: 1000;
159         }
160         description { state: "invisible" 0.0;
161            inherit: "default" 0.0;
162            perspective.zplane: -2000.0;
163            perspective.focal: 1000;
164         }
165         description { state: "visible" 0.0;
166            inherit: "default" 0.0;
167            perspective.zplane: 0.0;
168            perspective.focal: 1000;
169         }
170      }
171      part { name: "e.swallow.content";
172         type: SWALLOW;
173         clip_to: "clipper";
174         mouse_events: 0;
175         description { state: "default" 0.0;
176            rel1.to: "shower";
177            rel2.to: "shower";
178         }
179         description { state: "invisible" 0.0;
180            rel1.to: "shower";
181            rel2.to: "shower";
182            map {
183               on: 1;
184               smooth: 1;
185               backface_cull: 0;
186               perspective_on: 1;
187               alpha: 1;
188               perspective: "persp";
189               rotation {
190                  x: 0;
191                  y: 0;
192                  z: 0;
193               }
194            }
195         }
196         description { state: "visible" 0.0;
197            rel1.to: "shower";
198            rel2.to: "shower";
199            map {
200               on: 1;
201               smooth: 1;
202               backface_cull: 0;
203               perspective_on: 1;
204               alpha: 1;
205               perspective: "persp";
206               rotation {
207                  x: 0;
208                  y: 0;
209                  z: 0;
210               }
211            }
212         }
213         description { state: "hide" 0.0;
214            rel1.to: "shower";
215            rel2.to: "shower";
216            map {
217               on: 1;
218               smooth: 1;
219               backface_cull: 0;
220               perspective_on: 1;
221               alpha: 1;
222               perspective: "persp";
223               rotation {
224                  x: 0;
225                  y: 0;
226                  z: 0;
227               }
228            }
229         }
230         description { state: "foreground" 0.0;
231            rel1.to: "shower";
232            rel2.to: "shower";
233         }
234         description { state: "background" 0.0;
235            rel1.to: "shower";
236            rel2.to: "shower";
237         }
238      }
239   }
240   programs {
241      program { name: "show1";
242         signal: "e,state,visible,on";
243         source: "e";
244         action: STATE_SET "invisible" 0.0;
245         target: "clipper";
246         target: "shower";
247         target: "persp";
248         target: "e.swallow.content";
249         after: "show1-1";
250      }
251      program { name: "show1-1";
252         action: STATE_SET "invisible" 0.0;
253         transition: LINEAR 0.05;
254         target: "clipper";
255         target: "shower";
256         target: "persp";
257         target: "e.swallow.content";
258         after: "show2";
259      }
260      program { name: "show2";
261         action: STATE_SET "visible" 0.0;
262         transition: DECEL_FAC 0.15 0.8;
263         target: "clipper";
264         target: "shower";
265         target: "persp";
266         target: "e.swallow.content";
267         after: "show3";
268      }
269      program { name: "show3";
270         action: SIGNAL_EMIT "e,action,show,done" "e";
271      }
272      program { name: "background_show";
273         signal: "e,state,background,visible,on";
274         source: "e";
275         action: STATE_SET "foreground" 0.0;
276         target: "clipper";
277         target: "shower";
278         target: "e.swallow.content";
279         after: "background_show2";
280      }
281      program { name: "background_show2";
282         action: STATE_SET "background" 0.0;
283         transition: DECELERATE 0.25;
284         target: "clipper";
285         target: "shower";
286         target: "e.swallow.content";
287         after: "background_show3";
288      }
289      program { name: "background_show3";
290         action: SIGNAL_EMIT "e,action,show,done" "e";
291      }
292      program { name: "hide1";
293         signal: "e,state,visible,off";
294         source: "e";
295         action: STATE_SET "visible" 0.0;
296         target: "clipper";
297         target: "shower";
298         target: "persp";
299         target: "e.swallow.content";
300         after: "hide1-1";
301      }
302      program { name: "hide1-1";
303         action: STATE_SET "visible" 0.0;
304         transition: LINEAR 0.05;
305         target: "clipper";
306         target: "shower";
307         target: "persp";
308         after: "hide2";
309      }
310      program { name: "hide2";
311         action: STATE_SET "hide" 0.0;
312         transition: ACCEL_FAC 0.25 1.5;
313         target: "clipper";
314         target: "shower";
315         target: "persp";
316         after: "hide3";
317      }
318      program { name: "hide3";
319         action: STATE_SET "default" 0.0;
320         target: "clipper";
321         target: "shower";
322         target: "persp";
323         after: "hide4";
324      }
325      program { name: "hide4";
326         action: SIGNAL_EMIT "e,action,hide,done" "e";
327      }
328      program { name: "background_hide1";
329         signal: "e,state,background,visible,off";
330         source: "e";
331         action: STATE_SET "background" 0.0;
332         target: "clipper";
333         target: "shower";
334         target: "e.swallow.content";
335         after: "background_hide2";
336      }
337      program { name: "background_hide2";
338         action: STATE_SET "foreground" 0.0;
339         transition: DECELERATE 0.25;
340         target: "clipper";
341         target: "shower";
342         after: "background_hide3";
343      }
344      program { name: "background_hide3";
345         action: SIGNAL_EMIT "e,action,hide,done" "e";
346      }
347      program { name: "show1_noeffect";
348         signal: "e,state,visible,on,noeffect";
349         source: "e";
350         action: STATE_SET "default" 0.0;
351         target: "clipper";
352         target: "shower";
353         target: "e.swallow.content";
354         after: "show2_noeffect";
355      }
356      program { name: "show2_noeffect";
357         action: STATE_SET "visible" 0.0;
358         target: "clipper";
359         target: "shower";
360         target: "e.swallow.content";
361         after: "show3";
362      }
363      program { name: "hide1_noeffect";
364         signal: "e,state,visible,off,noeffect";
365         source: "e";
366         action: STATE_SET "default" 0.0;
367         target: "clipper";
368         target: "shower";
369         after: "hide3";
370      }
371      program { name: "shadow-on";
372         signal: "e,state,shadow,on";
373         source: "e";
374         action: STATE_SET "show" 0.0;
375         target: "shadow";
376      }
377      program { name: "shadow-off";
378         signal: "e,state,shadow,off";
379         source: "e";
380         action: STATE_SET "hidden" 0.0;
381         target: "shadow";
382      }
383   }
384 } /* end of group "shadow_fade" */