tizen 2.4 release
[framework/uifw/e17-mod-tizen-comp.git] / data / group / capture_effect.edc
1    /*-----------------------------------------------------*/
2    /* group "capture_effect"                              */
3    /*-----------------------------------------------------*/
4    group { name: "capture_effect";
5       images {
6          image: "capture.png" COMP;
7       }
8       parts {
9          part { name: "clipper";
10             type: RECT;
11             mouse_events: 0;
12             description { state: "default" 0.0;
13                visible: 1;
14                color: 255 255 255 20;
15                rel1 {
16                   relative: -2.0  -2.0;
17                   offset: -9999 -9999;
18                }
19                rel2 {
20                   relative: 2.0   2.0;
21                   offset: 9999  9999;
22                }
23             }
24             description { state: "visible" 0.0;
25                inherit: "default" 0.0;
26                visible: 1;
27                color: 255 255 255 128;
28             }
29          }
30          part { name: "shower";
31             type: RECT;
32             mouse_events: 0;
33             description { state: "default" 0.0;
34                visible: 0;
35                rel1 {
36                   relative: -0.6  -0.6;
37                }
38                rel2 {
39                   relative: 1.6  1.6;
40                }
41             }
42             description { state: "visible" 0.0;
43                inherit: "default" 0.0;
44                rel1 {
45                   relative: 0.0  0.0;
46                }
47                rel2 {
48                   relative: 1.0  1.0;
49                }
50             }
51          }
52          part { name: "capture_image";
53             type: IMAGE;
54             clip_to: "clipper";
55             mouse_events: 0;
56             description { state: "default" 0.0;
57                image.normal: "capture.png";
58                rel1.to: "shower";
59                rel2.to: "shower";
60             }
61             description { state: "visible" 0.0;
62                image.normal: "capture.png";
63                rel1.to: "shower";
64                rel2.to: "shower";
65             }
66          }
67       }
68       programs {
69          program { name: "capture-effect1";
70             signal: "img,state,capture,on";
71             source: "img";
72             action: STATE_SET "default" 0.0;
73             target: "clipper";
74             target: "shower";
75             target: "capture_image";
76             after: "capture-effect2";
77          }
78          program { name: "capture-effect2";
79             action: STATE_SET "visible" 0.0;
80             //transition: ACCELERATE 0.15;
81             transition: DECELERATE 0.15;
82             target: "clipper";
83             target: "shower";
84             after: "capture-effect3";
85          }
86          program { name: "capture-effect3";
87             action: STATE_SET "default" 0.0;
88             //transition: DECELERATE 0.15;
89             transition: ACCELERATE 0.15;
90             target: "clipper";
91             target: "shower";
92             after: "capture-effect4";
93          }
94
95          program { name: "capture-effect4";
96             action: SIGNAL_EMIT "img,capture,show,done" "img";
97          }
98       }
99    } /* end of group "testgroup"    */