e694f6ec8d1ca24b6396b708bb30b2caecd50cf5
[framework/uifw/elementary.git] / data / objects / test.edc
1 collections {
2    group { name: "layout";
3       images {
4          image: "over.png" COMP;
5          image: "under.png" COMP;
6          image: "sky.jpg" LOSSY 80;
7          image: "clo.png" LOSSY 60;
8       }
9       parts {
10          part { name: "clip";
11             type: RECT;
12             description { state: "default" 0.0;
13             }
14          }
15          part { name: "sky";
16             mouse_events: 0;
17             clip_to: "clip";
18             description { state: "default" 0.0;
19                aspect: 2.6225 2.6225;
20                aspect_preference: NONE;
21                image.normal: "sky.jpg";
22             }
23             description { state: "drift" 0.0;
24                inherit: "default" 0.0;
25                fill {
26                   origin {
27                      relative: 1.0 0.0;
28                      offset: 0 0;
29                   }
30                }
31             }
32          }
33          part { name: "under";
34             mouse_events: 0;
35             clip_to: "clip";
36             description { state: "default" 0.0;
37                align: 0.5 0.0;
38                aspect: 1.486068111 1.486068111;
39                aspect_preference: HORIZONTAL;
40                image.normal: "under.png";
41             }
42          }
43          part { name: "element1";
44             type: SWALLOW;
45             clip_to: "clip";
46             description { state: "default" 0.0;
47                rel1 {
48                   relative: 0.2 0.2;
49                }
50                rel2 {
51                   relative: 0.4 0.3;
52                }
53             }
54          }
55          part { name: "element2";
56             type: SWALLOW;
57             clip_to: "clip";
58             description { state: "default" 0.0;
59                rel1 {
60                   relative: 0.6 0.3;
61                }
62                rel2 {
63                   relative: 0.9 0.5;
64                }
65             }
66          }
67          part { name: "element3";
68             type: SWALLOW;
69             clip_to: "clip";
70             description { state: "default" 0.0;
71                rel1 {
72                   relative: 0.1 0.7;
73                }
74                rel2 {
75                   relative: 0.9 0.9;
76                }
77             }
78          }
79          part { name: "over";
80             mouse_events: 0;
81             clip_to: "clip";
82             description { state: "default" 0.0;
83                align: 0.0 1.0;
84                aspect: 2.238095238 2.238095238;
85                max: 329 147;
86                aspect_preference: HORIZONTAL;
87                image.normal: "over.png";
88             }
89          }
90          part { name: "clo";
91             mouse_events: 0;
92             clip_to: "clip";
93             description { state: "default" 0.0;
94                fill {
95                   smooth: 0;
96                   origin {
97                      relative: 0.0 0.0;
98                      offset: 0 0;
99                   }
100                   size {
101                      relative: 1.84722 1.0;
102                      offset: 0 0;
103                   }
104                }
105                image.normal: "clo.png";
106             }
107             description { state: "drift" 0.0;
108                inherit: "default" 0.0;
109                fill {
110                   origin {
111                      relative: 1.84722 0.0;
112                      offset: 0 0;
113                   }
114                   size {
115                      relative: 1.84722 1.0;
116                      offset: 0 0;
117                   }
118                }
119             }
120          }
121       }
122       programs {
123          program { name: "anim1";
124             signal: "load";
125             source: "";
126             action: STATE_SET "drift" 0.0;
127             transition: LINEAR 10.0;
128             target: "clo";
129             after: "anim2";
130          }
131          program { name: "anim2";
132             action: STATE_SET "default" 0.0;
133             target: "clo";
134             after: "anim1";
135          }
136          program { name: "anim3";
137             signal: "load";
138             source: "";
139             action: STATE_SET "drift" 0.0;
140             transition: LINEAR 40.0;
141             target: "sky";
142             after: "anim4";
143          }
144          program { name: "anim4";
145             action: STATE_SET "default" 0.0;
146             target: "sky";
147             after: "anim3";
148          }
149       }
150    }
151    group { name: "launcher_page";
152       parts {
153          part { name: "slot.0.0"; type: SWALLOW;
154             description { state: "default" 0.0;
155               rel1 { relative: 0.0  0.0;
156               }
157               rel2 { relative: 0.25 0.25;
158               }
159             }
160          }
161          part { name: "slot.1.0"; type: SWALLOW;
162             description { state: "default" 0.0;
163               rel1 { relative: 0.25 0.0;
164               }
165               rel2 { relative: 0.50 0.25;
166               }
167             }
168          }
169          part { name: "slot.2.0"; type: SWALLOW;
170             description { state: "default" 0.0;
171               rel1 { relative: 0.50 0.0;
172               }
173               rel2 { relative: 0.75 0.25;
174               }
175             }
176          }
177          part { name: "slot.3.0"; type: SWALLOW;
178             description { state: "default" 0.0;
179               rel1 { relative: 0.75 0.0;
180               }
181               rel2 { relative: 1.00 0.25;
182               }
183             }
184          }
185          part { name: "slot.0.1"; type: SWALLOW;
186             description { state: "default" 0.0;
187               rel1 { relative: 0.0  0.25;
188               }
189               rel2 { relative: 0.25 0.50;
190               }
191             }
192          }
193          part { name: "slot.1.1"; type: SWALLOW;
194             description { state: "default" 0.0;
195               rel1 { relative: 0.25 0.25;
196               }
197               rel2 { relative: 0.50 0.50;
198               }
199             }
200          }
201          part { name: "slot.2.1"; type: SWALLOW;
202             description { state: "default" 0.0;
203               rel1 { relative: 0.50 0.25;
204               }
205               rel2 { relative: 0.75 0.50;
206               }
207             }
208          }
209          part { name: "slot.3.1"; type: SWALLOW;
210             description { state: "default" 0.0;
211               rel1 { relative: 0.75 0.25;
212               }
213               rel2 { relative: 1.00 0.50;
214               }
215             }
216          }
217          part { name: "slot.0.2"; type: SWALLOW;
218             description { state: "default" 0.0;
219               rel1 { relative: 0.0  0.50;
220               }
221               rel2 { relative: 0.25 0.75;
222               }
223             }
224          }
225          part { name: "slot.1.2"; type: SWALLOW;
226             description { state: "default" 0.0;
227               rel1 { relative: 0.25 0.50;
228               }
229               rel2 { relative: 0.50 0.75;
230               }
231             }
232          }
233          part { name: "slot.2.2"; type: SWALLOW;
234             description { state: "default" 0.0;
235               rel1 { relative: 0.50 0.50;
236               }
237               rel2 { relative: 0.75 0.75;
238               }
239             }
240          }
241          part { name: "slot.3.2"; type: SWALLOW;
242             description { state: "default" 0.0;
243               rel1 { relative: 0.75 0.50;
244               }
245               rel2 { relative: 1.00 0.75;
246               }
247             }
248          }
249          part { name: "slot.0.3"; type: SWALLOW;
250             description { state: "default" 0.0;
251               rel1 { relative: 0.0  0.75;
252               }
253               rel2 { relative: 0.25 1.00;
254               }
255             }
256          }
257          part { name: "slot.1.3"; type: SWALLOW;
258             description { state: "default" 0.0;
259               rel1 { relative: 0.25 0.75;
260               }
261               rel2 { relative: 0.50 1.00;
262               }
263             }
264          }
265          part { name: "slot.2.3"; type: SWALLOW;
266             description { state: "default" 0.0;
267               rel1 { relative: 0.50 0.75;
268               }
269               rel2 { relative: 0.75 1.00;
270               }
271             }
272          }
273          part { name: "slot.3.3"; type: SWALLOW;
274             description { state: "default" 0.0;
275               rel1 { relative: 0.75 0.75;
276               }
277               rel2 { relative: 1.00 1.00;
278               }
279             }
280          }
281       }
282    }
283    group { name: "launcher_icon";
284       parts {
285          part { name: "slot"; type: SWALLOW;
286             description { state: "default" 0.0;
287               rel1 { relative: 0.0 0.0;
288               }
289               rel2 { relative: 1.00 0.00;
290                 to_y: "label";
291               }
292             }
293             description { state: "drag1" 0.0;
294               inherit: "default" 0.0;
295               rel1.offset: -5 -3;
296               rel2.offset: -5 -3;
297             }
298             description { state: "drag2" 0.0;
299               inherit: "default" 0.0;
300               rel1.offset: 10 3;
301               rel2.offset: 10 3;
302             }
303             description { state: "drag3" 0.0;
304               inherit: "default" 0.0;
305               rel1.offset: -1  6;
306               rel2.offset: -1  6;
307             }
308          }
309          part { name: "label"; type: TEXT;
310             effect: SOFT_SHADOW;
311             scale: 1;
312             description { state: "default" 0.0;
313               fixed: 1 1;
314               align: 0.5 1.0;
315               rel1 { relative: 0.0  1.00;
316               }
317               rel2 { relative: 1.00 1.00;
318               }
319               color: 224 224 224 255;
320               color3: 0 0 0 64;
321               text {
322                 font: "Sans:style=Bold,Edje-Vera-Bold";
323                 size: 10;
324                 min: 0 1;
325                 max: 1 1;
326                 align: 0.5 0.0;
327               }
328             }
329             description { state: "hi" 0.0;
330               inherit: "default" 0.0;
331               color: 255 0 0 255;
332               color3: 0 0 0 255;
333             }
334             description { state: "drag1" 0.0;
335               inherit: "default" 0.0;
336               color: 255 0 0 255;
337               color3: 0 0 0 255;
338               rel1.offset: -5 -3;
339               rel2.offset: -5 -3;
340             }
341             description { state: "drag2" 0.0;
342               inherit: "default" 0.0;
343               color: 255 0 0 255;
344               color3: 0 0 0 255;
345               rel1.offset: 10 3;
346               rel2.offset: 10 3;
347             }
348             description { state: "drag3" 0.0;
349               inherit: "default" 0.0;
350               color: 255 0 0 255;
351               color3: 0 0 0 255;
352               rel1.offset: -1  6;
353               rel2.offset: -1  6;
354             }
355          }
356       }
357       programs {
358          program { name: "click";
359             signal: "click"; source: "app";
360             action: STATE_SET "hi" 0.0;
361             transition: LINEAR 0.5;
362             target: "label";
363          }
364          program { name: "drag1";
365             signal: "drag"; source: "app";
366             action: STATE_SET "drag1" 0.0;
367             transition: LINEAR 0.1;
368             target: "label";
369             target: "slot";
370             after: "drag2";
371          }
372          program { name: "drag2";
373             action: STATE_SET "drag2" 0.0;
374             transition: LINEAR 0.2;
375             target: "label";
376             target: "slot";
377             after: "drag3";
378          }
379          program { name: "drag3";
380             action: STATE_SET "drag3" 0.0;
381             transition: LINEAR 0.1;
382             target: "label";
383             target: "slot";
384             after: "drag1";
385          }
386          program { name: "drop";
387             signal: "drop"; source: "app";
388             action: STATE_SET "default" 0.0;
389             target: "label";
390             target: "slot";
391          }
392          program { name: "unclick";
393             signal: "unclick"; source: "app";
394             action: STATE_SET "default" 0.0;
395             transition: LINEAR 0.5;
396             target: "label";
397             target: "slot";
398          }
399          program { name: "cancel";
400             signal: "cancel"; source: "app";
401             action: STATE_SET "default" 0.0;
402             transition: LINEAR 0.5;
403             target: "label";
404             target: "slot";
405          }
406       }
407    }
408 }
409