[SVN Migration r61148]
[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: 1;
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: "layout2";
172       images {
173          image: "over.png" COMP;
174          image: "under.png" COMP;
175          image: "sky.jpg" LOSSY 80;
176          image: "clo.png" LOSSY 60;
177       }
178       parts {
179          part { name: "clip";
180             type: RECT;
181             description { state: "default" 0.0;
182             }
183          }
184          part { name: "sky";
185             mouse_events: 0;
186             clip_to: "clip";
187             description { state: "default" 0.0;
188                aspect: 2.6225 2.6225;
189                aspect_preference: NONE;
190                image.normal: "sky.jpg";
191             }
192             description { state: "drift" 0.0;
193                inherit: "default" 0.0;
194                fill {
195                   origin {
196                      relative: 1.0 0.0;
197                      offset: 0 0;
198                   }
199                }
200             }
201          }
202          part { name: "under";
203             mouse_events: 0;
204             clip_to: "clip";
205             description { state: "default" 0.0;
206                align: 0.5 0.0;
207                aspect: 1.486068111 1.486068111;
208                aspect_preference: HORIZONTAL;
209                image.normal: "under.png";
210             }
211          }
212          part { name: "text";
213             type: TEXT;
214             clip_to: "clip";
215             description { state: "default" 0.0;
216                color: 255 255 0 255;
217                rel1 {
218                   relative: 0.3 0.02;
219                }
220                rel2 {
221                   relative: 0.6 0.12;
222                }
223                align: 0.5 0.5;
224                text {
225                   font: "Sans:style=Bold";
226                   size: 14;
227                   min: 1 1;
228                   text: "some edje text here";
229                }
230             }
231          }
232          part { name: "element1";
233             type: SWALLOW;
234             clip_to: "clip";
235             description { state: "default" 0.0;
236                rel1 {
237                   relative: 0.2 0.2;
238                }
239                rel2 {
240                   relative: 0.4 0.3;
241                }
242             }
243          }
244          part { name: "element2";
245             type: SWALLOW;
246             clip_to: "clip";
247             description { state: "default" 0.0;
248                rel1 {
249                   relative: 0.6 0.3;
250                }
251                rel2 {
252                   relative: 0.9 0.5;
253                }
254             }
255          }
256          part { name: "element3";
257             type: SWALLOW;
258             clip_to: "clip";
259             description { state: "default" 0.0;
260                rel1 {
261                   relative: 0.1 0.7;
262                }
263                rel2 {
264                   relative: 0.9 0.9;
265                }
266             }
267          }
268          part { name: "over";
269             mouse_events: 0;
270             clip_to: "clip";
271             description { state: "default" 0.0;
272                align: 0.0 1.0;
273                aspect: 2.238095238 2.238095238;
274                max: 329 147;
275                aspect_preference: HORIZONTAL;
276                image.normal: "over.png";
277             }
278          }
279          part { name: "clo";
280             mouse_events: 0;
281             clip_to: "clip";
282             description { state: "default" 0.0;
283                fill {
284                   smooth: 0;
285                   origin {
286                      relative: 0.0 0.0;
287                      offset: 0 0;
288                   }
289                   size {
290                      relative: 1.84722 1.0;
291                      offset: 0 0;
292                   }
293                }
294                image.normal: "clo.png";
295             }
296             description { state: "drift" 0.0;
297                inherit: "default" 0.0;
298                fill {
299                   origin {
300                      relative: 1.84722 0.0;
301                      offset: 0 0;
302                   }
303                   size {
304                      relative: 1.84722 1.0;
305                      offset: 0 0;
306                   }
307                }
308             }
309          }
310       }
311    }
312    group { name: "launcher_page";
313       parts {
314          part { name: "slot.0.0"; type: SWALLOW;
315             description { state: "default" 0.0;
316               rel1 { relative: 0.0  0.0;
317               }
318               rel2 { relative: 0.25 0.25;
319               }
320             }
321          }
322          part { name: "slot.1.0"; type: SWALLOW;
323             description { state: "default" 0.0;
324               rel1 { relative: 0.25 0.0;
325               }
326               rel2 { relative: 0.50 0.25;
327               }
328             }
329          }
330          part { name: "slot.2.0"; type: SWALLOW;
331             description { state: "default" 0.0;
332               rel1 { relative: 0.50 0.0;
333               }
334               rel2 { relative: 0.75 0.25;
335               }
336             }
337          }
338          part { name: "slot.3.0"; type: SWALLOW;
339             description { state: "default" 0.0;
340               rel1 { relative: 0.75 0.0;
341               }
342               rel2 { relative: 1.00 0.25;
343               }
344             }
345          }
346          part { name: "slot.0.1"; type: SWALLOW;
347             description { state: "default" 0.0;
348               rel1 { relative: 0.0  0.25;
349               }
350               rel2 { relative: 0.25 0.50;
351               }
352             }
353          }
354          part { name: "slot.1.1"; type: SWALLOW;
355             description { state: "default" 0.0;
356               rel1 { relative: 0.25 0.25;
357               }
358               rel2 { relative: 0.50 0.50;
359               }
360             }
361          }
362          part { name: "slot.2.1"; type: SWALLOW;
363             description { state: "default" 0.0;
364               rel1 { relative: 0.50 0.25;
365               }
366               rel2 { relative: 0.75 0.50;
367               }
368             }
369          }
370          part { name: "slot.3.1"; type: SWALLOW;
371             description { state: "default" 0.0;
372               rel1 { relative: 0.75 0.25;
373               }
374               rel2 { relative: 1.00 0.50;
375               }
376             }
377          }
378          part { name: "slot.0.2"; type: SWALLOW;
379             description { state: "default" 0.0;
380               rel1 { relative: 0.0  0.50;
381               }
382               rel2 { relative: 0.25 0.75;
383               }
384             }
385          }
386          part { name: "slot.1.2"; type: SWALLOW;
387             description { state: "default" 0.0;
388               rel1 { relative: 0.25 0.50;
389               }
390               rel2 { relative: 0.50 0.75;
391               }
392             }
393          }
394          part { name: "slot.2.2"; type: SWALLOW;
395             description { state: "default" 0.0;
396               rel1 { relative: 0.50 0.50;
397               }
398               rel2 { relative: 0.75 0.75;
399               }
400             }
401          }
402          part { name: "slot.3.2"; type: SWALLOW;
403             description { state: "default" 0.0;
404               rel1 { relative: 0.75 0.50;
405               }
406               rel2 { relative: 1.00 0.75;
407               }
408             }
409          }
410          part { name: "slot.0.3"; type: SWALLOW;
411             description { state: "default" 0.0;
412               rel1 { relative: 0.0  0.75;
413               }
414               rel2 { relative: 0.25 1.00;
415               }
416             }
417          }
418          part { name: "slot.1.3"; type: SWALLOW;
419             description { state: "default" 0.0;
420               rel1 { relative: 0.25 0.75;
421               }
422               rel2 { relative: 0.50 1.00;
423               }
424             }
425          }
426          part { name: "slot.2.3"; type: SWALLOW;
427             description { state: "default" 0.0;
428               rel1 { relative: 0.50 0.75;
429               }
430               rel2 { relative: 0.75 1.00;
431               }
432             }
433          }
434          part { name: "slot.3.3"; type: SWALLOW;
435             description { state: "default" 0.0;
436               rel1 { relative: 0.75 0.75;
437               }
438               rel2 { relative: 1.00 1.00;
439               }
440             }
441          }
442       }
443    }
444    group { name: "launcher_icon";
445       parts {
446          part { name: "slot"; type: SWALLOW;
447             description { state: "default" 0.0;
448               rel1 { relative: 0.0 0.0;
449               }
450               rel2 { relative: 1.00 0.00;
451                 to_y: "label";
452               }
453             }
454             description { state: "drag1" 0.0;
455               inherit: "default" 0.0;
456               rel1.offset: -5 -3;
457               rel2.offset: -5 -3;
458             }
459             description { state: "drag2" 0.0;
460               inherit: "default" 0.0;
461               rel1.offset: 10 3;
462               rel2.offset: 10 3;
463             }
464             description { state: "drag3" 0.0;
465               inherit: "default" 0.0;
466               rel1.offset: -1  6;
467               rel2.offset: -1  6;
468             }
469          }
470          part { name: "label"; type: TEXT;
471             effect: SOFT_SHADOW;
472             scale: 1;
473             description { state: "default" 0.0;
474               fixed: 1 1;
475               align: 0.5 1.0;
476               rel1 { relative: 0.0  1.00;
477               }
478               rel2 { relative: 1.00 1.00;
479               }
480               color: 224 224 224 255;
481               color3: 0 0 0 64;
482               text {
483                 font: "Sans:style=Bold,Edje-Vera-Bold";
484                 size: 10;
485                 min: 0 1;
486                 max: 1 1;
487                 align: 0.5 0.0;
488               }
489             }
490             description { state: "hi" 0.0;
491               inherit: "default" 0.0;
492               color: 255 0 0 255;
493               color3: 0 0 0 255;
494             }
495             description { state: "drag1" 0.0;
496               inherit: "default" 0.0;
497               color: 255 0 0 255;
498               color3: 0 0 0 255;
499               rel1.offset: -5 -3;
500               rel2.offset: -5 -3;
501             }
502             description { state: "drag2" 0.0;
503               inherit: "default" 0.0;
504               color: 255 0 0 255;
505               color3: 0 0 0 255;
506               rel1.offset: 10 3;
507               rel2.offset: 10 3;
508             }
509             description { state: "drag3" 0.0;
510               inherit: "default" 0.0;
511               color: 255 0 0 255;
512               color3: 0 0 0 255;
513               rel1.offset: -1  6;
514               rel2.offset: -1  6;
515             }
516          }
517       }
518       programs {
519          program { name: "click";
520             signal: "click"; source: "app";
521             action: STATE_SET "hi" 0.0;
522             transition: LINEAR 0.5;
523             target: "label";
524          }
525          program { name: "drag1";
526             signal: "drag"; source: "app";
527             action: STATE_SET "drag1" 0.0;
528             transition: LINEAR 0.1;
529             target: "label";
530             target: "slot";
531             after: "drag2";
532          }
533          program { name: "drag2";
534             action: STATE_SET "drag2" 0.0;
535             transition: LINEAR 0.2;
536             target: "label";
537             target: "slot";
538             after: "drag3";
539          }
540          program { name: "drag3";
541             action: STATE_SET "drag3" 0.0;
542             transition: LINEAR 0.1;
543             target: "label";
544             target: "slot";
545             after: "drag1";
546          }
547          program { name: "drop";
548             signal: "drop"; source: "app";
549             action: STATE_SET "default" 0.0;
550             target: "label";
551             target: "slot";
552          }
553          program { name: "unclick";
554             signal: "unclick"; source: "app";
555             action: STATE_SET "default" 0.0;
556             transition: LINEAR 0.5;
557             target: "label";
558             target: "slot";
559          }
560          program { name: "cancel";
561             signal: "cancel"; source: "app";
562             action: STATE_SET "default" 0.0;
563             transition: LINEAR 0.5;
564             target: "label";
565             target: "slot";
566          }
567       }
568    }
569    group { name: "twolines";
570       parts {
571          part { name: "clip";
572             type: RECT;
573             description { state: "default" 0.0;
574             }
575          }
576          part { name: "under";
577             mouse_events: 0;
578             clip_to: "clip";
579             type: RECT;
580             description { state: "default" 0.0;
581                color: 0 128 200 30;
582             }
583          }
584          part { name: "element1";
585             type: SWALLOW;
586             clip_to: "clip";
587             description { state: "default" 0.0;
588                rel1 {
589                   relative: 0.0 0.0;
590                   offset: 4 4;
591                }
592                rel2 {
593                   relative: 1.0 0.5;
594                   offset: -5 -3;
595                }
596             }
597          }
598          part { name: "element2";
599             type: SWALLOW;
600             clip_to: "clip";
601             description { state: "default" 0.0;
602                rel1 {
603                   relative: 0.0 0.5;
604                   offset: 4 2;
605                }
606                rel2 {
607                   relative: 1.0 1.0;
608                   offset: -5 -5;
609                }
610             }
611          }
612       }
613    }
614       group { name: "segment_test";
615       parts{
616          part {
617             name: "bg";
618             type: RECT;
619             scale: 1; //allow scaling
620             description {
621             state: "default" 0.0;
622             visible: 0;
623             min: 480 400;
624             color:  0 0 0 0;
625             }
626          }
627          part { name: "top_padding";
628             type: RECT;
629             scale: 1; //allow scaling
630             description {
631                state: "default" 0.0;
632                visible: 0;
633                min : 250 30; //minimum size for gap filler
634                fixed: 0 1;
635                rel1 { relative: 0 0; }
636                rel2 { relative: 1 0; }
637                color:  0 0 0 0;
638                align: 0 0;
639             }
640          }
641          part { name: "segment1";
642             type: SWALLOW;
643             scale: 1;
644             description {
645                state: "default" 0.0;
646                fixed: 1 1;
647                rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "top_padding"; }
648                rel2 { relative: 1.0 0.25; to: "bg"; }
649                align: 0.5 0.0;
650             }
651          }
652          part { name: "segment1_bottom_padding";
653             type: RECT;
654             scale: 1;
655             description {
656                state: "default" 0.0;
657                visible: 0;
658                min : 250 10;
659                max : 250 10;
660                fixed: 1 1;
661                align: 0.5 0;
662                rel1 { relative: 0 1.0; to_y: "segment1"; }
663                rel2 { relative: 1 1.0; to_y: "segment1"; }
664                color: 0 255 0 0;
665             }
666          }
667          part { name: "segment2";
668             type: SWALLOW;
669             scale: 1;
670             description {
671                state: "default" 0.0;
672                fixed: 1 1;
673                rel1 { relative: 0.1 1.0; to_x: "bg"; to_y: "segment1_bottom_padding"; }
674                rel2 { relative: 0.9 160/400; to: "bg"; }
675                align: 0.5 0.0;
676             }
677          }
678          part { name: "segment2_bottom_padding";
679             type: RECT;
680             scale: 1;
681             description {
682                state: "default" 0.0;
683                visible: 0;
684                min : 250 10;
685                max : 250 10;
686                fixed: 1 1;
687                align: 0.5 0;
688                rel1 { relative: 0 1.0; to_y: "segment2"; }
689                rel2 { relative: 1 1.0; to_y: "segment2"; }
690                color: 0 255 0 0;
691             }
692          }
693          part { name: "segment3";
694             type: SWALLOW;
695             scale: 1;
696             description {
697                state: "default" 0.0;
698                fixed: 1 1;
699                rel1 { relative: 0.2 1.0; to_x: "bg"; to_y: "segment2_bottom_padding"; }
700                rel2 { relative: 0.8 0.6; to: "bg"; }
701                align: 0.5 0.0;
702             }
703          }
704          part { name: "segment3_bottom_padding";
705             type: RECT;
706             scale: 1;
707             description {
708                state: "default" 0.0;
709                visible: 0;
710                min : 250 10;
711                max : 250 10;
712                fixed: 1 1;
713                align: 0.5 0;
714                rel1 { relative: 0 1.0; to_y: "segment3"; }
715                rel2 { relative: 1 1.0; to_y: "segment3"; }
716                color: 0 255 0 0;
717             }
718          }
719          part { name: "segment4";
720             type: SWALLOW;
721             scale: 1;
722             description {
723                state: "default" 0.0;
724                fixed: 1 1;
725                rel1 { relative: 0.3 1.0; to_x: "bg"; to_y: "segment3_bottom_padding"; }
726                rel2 { relative: 0.7 340/400; to: "bg"; }
727                align: 0.5 0.0;
728             }
729          }
730          part { name: "btn1_bottom_padding";
731             type: RECT;
732             scale: 1;
733             description {
734                state: "default" 0.0;
735                visible: 0;
736                min : 250 100;
737                max : 250 100;
738                fixed: 1 1;
739                align: 0.5 0;
740                rel1 { relative: 0 1.0; to_y: "segment4"; }
741                rel2 { relative: 1 1.0; to_y: "segment4"; }
742                color: 0 255 0 0;
743             }
744          }
745        }
746    }
747    group { name: "bg_overlay";
748       images {
749          image: "clo.png" LOSSY 60;
750       }
751       parts {
752          part { name: "clip";
753             type: RECT;
754             description { state: "default" 0.0;
755             }
756          }
757          part { name: "clo";
758             mouse_events: 0;
759             clip_to: "clip";
760             description { state: "default" 0.0;
761                fill {
762                   smooth: 0;
763                   origin {
764                      relative: 0.0 0.0;
765                      offset: 0 0;
766                   }
767                   size {
768                      relative: 1.84722 1.0;
769                      offset: 0 0;
770                   }
771                }
772                image.normal: "clo.png";
773             }
774             description { state: "drift" 0.0;
775                inherit: "default" 0.0;
776                fill {
777                   origin {
778                      relative: 1.84722 0.0;
779                      offset: 0 0;
780                   }
781                   size {
782                      relative: 1.84722 1.0;
783                      offset: 0 0;
784                   }
785                }
786             }
787          }
788       }
789       programs {
790          program { name: "anim1";
791             signal: "load";
792             source: "";
793             action: STATE_SET "drift" 0.0;
794             transition: LINEAR 10.0;
795             target: "clo";
796             after: "anim2";
797          }
798          program { name: "anim2";
799             action: STATE_SET "default" 0.0;
800             target: "clo";
801             after: "anim1";
802          }
803       }
804    }
805    group {
806       name: "test/layout";
807       images {
808          image: "sky.jpg" LOSSY 80;
809       }
810       parts {
811             part {
812                  name: "bg";
813                  description {
814                      state: "default" 0.0;
815                      color: 255 255 255 100;
816                      image.normal: "sky.jpg";
817                  }
818             }
819             part {
820                  name: "swallow";
821                  type: SWALLOW;
822                  description {
823                      state: "default" 0.0;
824                      rel1.offset: 8 8;
825                      rel2.offset: -7 -7;
826                  }
827             }
828       }
829    }
830 }