Merge "Merge Conflict resolved. [SegmentControl] Complete Refactoring of SegmentContr...
[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: "text";
44             type: TEXT;
45             clip_to: "clip";
46             description { state: "default" 0.0;
47                color: 255 255 0 255;
48                rel1 {
49                   relative: 0.3 0.02;
50                }
51                rel2 {
52                   relative: 0.6 0.12;
53                }
54                align: 0.5 0.5;
55                text {
56                   font: "Sans:style=Bold";
57                   size: 14;
58                   min: 1 1;
59                   text: "some edje text here";
60                }
61             }
62          }
63          part { name: "element1";
64             type: SWALLOW;
65             clip_to: "clip";
66             description { state: "default" 0.0;
67                rel1 {
68                   relative: 0.2 0.2;
69                }
70                rel2 {
71                   relative: 0.4 0.3;
72                }
73             }
74          }
75          part { name: "element2";
76             type: SWALLOW;
77             clip_to: "clip";
78             description { state: "default" 0.0;
79                rel1 {
80                   relative: 0.6 0.3;
81                }
82                rel2 {
83                   relative: 0.9 0.5;
84                }
85             }
86          }
87          part { name: "element3";
88             type: SWALLOW;
89             clip_to: "clip";
90             description { state: "default" 0.0;
91                rel1 {
92                   relative: 0.1 0.7;
93                }
94                rel2 {
95                   relative: 0.9 0.9;
96                }
97             }
98          }
99          part { name: "over";
100             mouse_events: 0;
101             clip_to: "clip";
102             description { state: "default" 0.0;
103                align: 0.0 1.0;
104                aspect: 2.238095238 2.238095238;
105                max: 329 147;
106                aspect_preference: HORIZONTAL;
107                image.normal: "over.png";
108             }
109          }
110          part { name: "clo";
111             mouse_events: 0;
112             clip_to: "clip";
113             description { state: "default" 0.0;
114                fill {
115                   smooth: 0;
116                   origin {
117                      relative: 0.0 0.0;
118                      offset: 0 0;
119                   }
120                   size {
121                      relative: 1.84722 1.0;
122                      offset: 0 0;
123                   }
124                }
125                image.normal: "clo.png";
126             }
127             description { state: "drift" 0.0;
128                inherit: "default" 0.0;
129                fill {
130                   origin {
131                      relative: 1.84722 0.0;
132                      offset: 0 0;
133                   }
134                   size {
135                      relative: 1.84722 1.0;
136                      offset: 0 0;
137                   }
138                }
139             }
140          }
141       }
142       programs {
143          program { name: "anim1";
144             signal: "load";
145             source: "";
146             action: STATE_SET "drift" 0.0;
147             transition: LINEAR 10.0;
148             target: "clo";
149             after: "anim2";
150          }
151          program { name: "anim2";
152             action: STATE_SET "default" 0.0;
153             target: "clo";
154             after: "anim1";
155          }
156          program { name: "anim3";
157             signal: "load";
158             source: "";
159             action: STATE_SET "drift" 0.0;
160             transition: LINEAR 40.0;
161             target: "sky";
162             after: "anim4";
163          }
164          program { name: "anim4";
165             action: STATE_SET "default" 0.0;
166             target: "sky";
167             after: "anim3";
168          }
169       }
170    }
171    group { name: "launcher_page";
172       parts {
173          part { name: "slot.0.0"; type: SWALLOW;
174             description { state: "default" 0.0;
175               rel1 { relative: 0.0  0.0;
176               }
177               rel2 { relative: 0.25 0.25;
178               }
179             }
180          }
181          part { name: "slot.1.0"; type: SWALLOW;
182             description { state: "default" 0.0;
183               rel1 { relative: 0.25 0.0;
184               }
185               rel2 { relative: 0.50 0.25;
186               }
187             }
188          }
189          part { name: "slot.2.0"; type: SWALLOW;
190             description { state: "default" 0.0;
191               rel1 { relative: 0.50 0.0;
192               }
193               rel2 { relative: 0.75 0.25;
194               }
195             }
196          }
197          part { name: "slot.3.0"; type: SWALLOW;
198             description { state: "default" 0.0;
199               rel1 { relative: 0.75 0.0;
200               }
201               rel2 { relative: 1.00 0.25;
202               }
203             }
204          }
205          part { name: "slot.0.1"; type: SWALLOW;
206             description { state: "default" 0.0;
207               rel1 { relative: 0.0  0.25;
208               }
209               rel2 { relative: 0.25 0.50;
210               }
211             }
212          }
213          part { name: "slot.1.1"; type: SWALLOW;
214             description { state: "default" 0.0;
215               rel1 { relative: 0.25 0.25;
216               }
217               rel2 { relative: 0.50 0.50;
218               }
219             }
220          }
221          part { name: "slot.2.1"; type: SWALLOW;
222             description { state: "default" 0.0;
223               rel1 { relative: 0.50 0.25;
224               }
225               rel2 { relative: 0.75 0.50;
226               }
227             }
228          }
229          part { name: "slot.3.1"; type: SWALLOW;
230             description { state: "default" 0.0;
231               rel1 { relative: 0.75 0.25;
232               }
233               rel2 { relative: 1.00 0.50;
234               }
235             }
236          }
237          part { name: "slot.0.2"; type: SWALLOW;
238             description { state: "default" 0.0;
239               rel1 { relative: 0.0  0.50;
240               }
241               rel2 { relative: 0.25 0.75;
242               }
243             }
244          }
245          part { name: "slot.1.2"; type: SWALLOW;
246             description { state: "default" 0.0;
247               rel1 { relative: 0.25 0.50;
248               }
249               rel2 { relative: 0.50 0.75;
250               }
251             }
252          }
253          part { name: "slot.2.2"; type: SWALLOW;
254             description { state: "default" 0.0;
255               rel1 { relative: 0.50 0.50;
256               }
257               rel2 { relative: 0.75 0.75;
258               }
259             }
260          }
261          part { name: "slot.3.2"; type: SWALLOW;
262             description { state: "default" 0.0;
263               rel1 { relative: 0.75 0.50;
264               }
265               rel2 { relative: 1.00 0.75;
266               }
267             }
268          }
269          part { name: "slot.0.3"; type: SWALLOW;
270             description { state: "default" 0.0;
271               rel1 { relative: 0.0  0.75;
272               }
273               rel2 { relative: 0.25 1.00;
274               }
275             }
276          }
277          part { name: "slot.1.3"; type: SWALLOW;
278             description { state: "default" 0.0;
279               rel1 { relative: 0.25 0.75;
280               }
281               rel2 { relative: 0.50 1.00;
282               }
283             }
284          }
285          part { name: "slot.2.3"; type: SWALLOW;
286             description { state: "default" 0.0;
287               rel1 { relative: 0.50 0.75;
288               }
289               rel2 { relative: 0.75 1.00;
290               }
291             }
292          }
293          part { name: "slot.3.3"; type: SWALLOW;
294             description { state: "default" 0.0;
295               rel1 { relative: 0.75 0.75;
296               }
297               rel2 { relative: 1.00 1.00;
298               }
299             }
300          }
301       }
302    }
303    group { name: "launcher_icon";
304       parts {
305          part { name: "slot"; type: SWALLOW;
306             description { state: "default" 0.0;
307               rel1 { relative: 0.0 0.0;
308               }
309               rel2 { relative: 1.00 0.00;
310                 to_y: "label";
311               }
312             }
313             description { state: "drag1" 0.0;
314               inherit: "default" 0.0;
315               rel1.offset: -5 -3;
316               rel2.offset: -5 -3;
317             }
318             description { state: "drag2" 0.0;
319               inherit: "default" 0.0;
320               rel1.offset: 10 3;
321               rel2.offset: 10 3;
322             }
323             description { state: "drag3" 0.0;
324               inherit: "default" 0.0;
325               rel1.offset: -1  6;
326               rel2.offset: -1  6;
327             }
328          }
329          part { name: "label"; type: TEXT;
330             effect: SOFT_SHADOW;
331             scale: 1;
332             description { state: "default" 0.0;
333               fixed: 1 1;
334               align: 0.5 1.0;
335               rel1 { relative: 0.0  1.00;
336               }
337               rel2 { relative: 1.00 1.00;
338               }
339               color: 224 224 224 255;
340               color3: 0 0 0 64;
341               text {
342                 font: "Sans:style=Bold,Edje-Vera-Bold";
343                 size: 10;
344                 min: 0 1;
345                 max: 1 1;
346                 align: 0.5 0.0;
347               }
348             }
349             description { state: "hi" 0.0;
350               inherit: "default" 0.0;
351               color: 255 0 0 255;
352               color3: 0 0 0 255;
353             }
354             description { state: "drag1" 0.0;
355               inherit: "default" 0.0;
356               color: 255 0 0 255;
357               color3: 0 0 0 255;
358               rel1.offset: -5 -3;
359               rel2.offset: -5 -3;
360             }
361             description { state: "drag2" 0.0;
362               inherit: "default" 0.0;
363               color: 255 0 0 255;
364               color3: 0 0 0 255;
365               rel1.offset: 10 3;
366               rel2.offset: 10 3;
367             }
368             description { state: "drag3" 0.0;
369               inherit: "default" 0.0;
370               color: 255 0 0 255;
371               color3: 0 0 0 255;
372               rel1.offset: -1  6;
373               rel2.offset: -1  6;
374             }
375          }
376       }
377       programs {
378          program { name: "click";
379             signal: "click"; source: "app";
380             action: STATE_SET "hi" 0.0;
381             transition: LINEAR 0.5;
382             target: "label";
383          }
384          program { name: "drag1";
385             signal: "drag"; source: "app";
386             action: STATE_SET "drag1" 0.0;
387             transition: LINEAR 0.1;
388             target: "label";
389             target: "slot";
390             after: "drag2";
391          }
392          program { name: "drag2";
393             action: STATE_SET "drag2" 0.0;
394             transition: LINEAR 0.2;
395             target: "label";
396             target: "slot";
397             after: "drag3";
398          }
399          program { name: "drag3";
400             action: STATE_SET "drag3" 0.0;
401             transition: LINEAR 0.1;
402             target: "label";
403             target: "slot";
404             after: "drag1";
405          }
406          program { name: "drop";
407             signal: "drop"; source: "app";
408             action: STATE_SET "default" 0.0;
409             target: "label";
410             target: "slot";
411          }
412          program { name: "unclick";
413             signal: "unclick"; source: "app";
414             action: STATE_SET "default" 0.0;
415             transition: LINEAR 0.5;
416             target: "label";
417             target: "slot";
418          }
419          program { name: "cancel";
420             signal: "cancel"; source: "app";
421             action: STATE_SET "default" 0.0;
422             transition: LINEAR 0.5;
423             target: "label";
424             target: "slot";
425          }
426       }
427    }
428    group { name: "twolines";
429       parts {
430          part { name: "clip";
431             type: RECT;
432             description { state: "default" 0.0;
433             }
434          }
435          part { name: "under";
436             mouse_events: 0;
437             clip_to: "clip";
438             type: RECT;
439             description { state: "default" 0.0;
440                color: 0 128 200 30;
441             }
442          }
443          part { name: "element1";
444             type: SWALLOW;
445             clip_to: "clip";
446             description { state: "default" 0.0;
447                rel1 {
448                   relative: 0.0 0.0;
449                   offset: 4 4;
450                }
451                rel2 {
452                   relative: 1.0 0.5;
453                   offset: -5 -3;
454                }
455             }
456          }
457          part { name: "element2";
458             type: SWALLOW;
459             clip_to: "clip";
460             description { state: "default" 0.0;
461                rel1 {
462                   relative: 0.0 0.5;
463                   offset: 4 2;
464                }
465                rel2 {
466                   relative: 1.0 1.0;
467                   offset: -5 -5;
468                }
469             }
470          }
471       }
472    }
473    group { name: "segment_test";
474       parts{
475          part {
476             name: "bg";
477             type: RECT;
478             scale: 1; //allow scaling
479             description {
480             state: "default" 0.0;
481             color:  0 0 0 0;
482             }
483          }
484          part { name: "top_padding";
485             type: RECT;
486             scale: 1; //allow scaling
487             description {
488                state: "default" 0.0;
489                min : 250 30; //minimum size for gap filler
490                fixed: 0 1;
491                rel1 { relative: 0 0; }
492                rel2 { relative: 1 0; }
493                color:  0 0 0 0;
494                align: 0 0;
495             }
496          }
497          part { name: "segment";
498             type: SWALLOW;
499             scale: 1;
500             description {
501                state: "default" 0.0;
502                fixed: 1 1;
503                min: 360 50;
504                max: 360 50;
505                rel1 { relative: 0 1.0; to_y: "top_padding"; }
506                align: 0.5 0;
507             }
508          }
509          part { name: "btn1_bottom_padding";
510             type: RECT;
511             scale: 1;
512             description {
513                state: "default" 0.0;
514                min : 250 30;
515                max : 250 30;
516                fixed: 1 1;
517                align: 0.5 0;
518                rel1 { relative: 0 1.0; to_y: "segment"; }
519                rel2 { relative: 1 1.0; to_y: "segment"; }
520                color: 0 255 0 0;
521             }
522          }
523          part { name: "add";
524             type: SWALLOW;
525             scale: 1;
526             description {
527                state: "default" 0.0;
528                fixed: 1 1;
529                align: 0.5 0;
530                min: 250 50;
531                max: 250 50;
532                rel1 { relative: 0 1.0; to_y: "btn1_bottom_padding"; }
533                align: 0.5 0;
534             }
535          }
536          part { name: "btn2_bottom_padding";
537             type: RECT;
538             scale: 1;
539             description {
540                state: "default" 0.0;
541                min : 250 50;
542                max : 250 50;
543                fixed: 1 1;
544                align: 0.5 0;
545                rel1 { relative: 0 1.0; to_y: "add"; }
546                rel2 { relative: 1 1.0; to_y: "add"; }
547               color: 0 0 0 0;
548            }
549          }
550          part { name: "del";
551             type: SWALLOW;
552             scale: 1;
553             description {
554                state: "default" 0.0;
555                fixed: 1 1;
556                min: 250 50;
557                max: 250 50;
558                align: 0.5 0;
559                rel1 { relative: 0 1.0; to_y: "btn2_bottom_padding"; }
560                align: 0.5 0;
561             }
562          }
563          part { name: "btn3_bottom_padding";
564             type: RECT;
565             scale: 1;
566             description {
567                state: "default" 0.0;
568                min : 250 50;
569                max : 250 50;
570                fixed: 1 1;
571                align: 0.5 0;
572                rel1 { relative: 0 1.0; to_y: "del"; }
573                rel2 { relative: 1 1.0; to_y: "del"; }
574                color: 0 0 0 0;
575             }
576          }
577          part { name: "insert";
578             type: SWALLOW;
579             scale: 1;
580             description {
581                fixed: 1 1;
582                min: 250 50;
583                max: 250 50;
584                state: "default" 0.0;
585                rel1 { relative: 0 1.0; to_y: "btn3_bottom_padding"; }
586                align: 0.5 0;
587             }
588          }
589          part { name: "btn_bottom_padding";
590             type: RECT;
591             scale: 1;
592             description {
593                state: "default" 0.0;
594                min : 0 30;
595                rel1 { relative: 0 1.0; to_y: "insert"; }
596                rel2 { relative: 1 1.0;}
597                color: 0 0 0 0;
598                align: 0.5 1;
599             }
600          }
601       }
602    }
603    group { name: "bg_overlay";
604       images {
605          image: "clo.png" LOSSY 60;
606       }
607       parts {
608          part { name: "clip";
609             type: RECT;
610             description { state: "default" 0.0;
611             }
612          }
613          part { name: "clo";
614             mouse_events: 0;
615             clip_to: "clip";
616             description { state: "default" 0.0;
617                fill {
618                   smooth: 0;
619                   origin {
620                      relative: 0.0 0.0;
621                      offset: 0 0;
622                   }
623                   size {
624                      relative: 1.84722 1.0;
625                      offset: 0 0;
626                   }
627                }
628                image.normal: "clo.png";
629             }
630             description { state: "drift" 0.0;
631                inherit: "default" 0.0;
632                fill {
633                   origin {
634                      relative: 1.84722 0.0;
635                      offset: 0 0;
636                   }
637                   size {
638                      relative: 1.84722 1.0;
639                      offset: 0 0;
640                   }
641                }
642             }
643          }
644       }
645       programs {
646          program { name: "anim1";
647             signal: "load";
648             source: "";
649             action: STATE_SET "drift" 0.0;
650             transition: LINEAR 10.0;
651             target: "clo";
652             after: "anim2";
653          }
654          program { name: "anim2";
655             action: STATE_SET "default" 0.0;
656             target: "clo";
657             after: "anim1";
658          }
659       }
660    }
661 }
662