aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/elementary/data/objects/test.edc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/elementary/data/objects/test.edc881
1 files changed, 881 insertions, 0 deletions
diff --git a/libraries/elementary/data/objects/test.edc b/libraries/elementary/data/objects/test.edc
new file mode 100644
index 0000000..ec51e7d
--- /dev/null
+++ b/libraries/elementary/data/objects/test.edc
@@ -0,0 +1,881 @@
1collections {
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 visible: 0;
624 min: 480 400;
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 {
636 relative: 0 0;
637 }
638 rel2 {
639 relative: 1 0;
640 }
641 align: 0 0;
642 }
643 }
644 part { name: "segment1";
645 type: SWALLOW;
646 scale: 1;
647 description {
648 state: "default" 0.0;
649 fixed: 1 1;
650 rel1 {
651 relative: 0.0 1.0;
652 to_x: "bg";
653 to_y: "top_padding";
654 }
655 rel2 {
656 relative: 1.0 0.25;
657 to: "bg";
658 }
659 align: 0.5 0.0;
660 }
661 }
662 part { name: "segment1_bottom_padding";
663 type: RECT;
664 scale: 1;
665 description {
666 state: "default" 0.0;
667 visible: 0;
668 min : 250 10;
669 max : 250 10;
670 fixed: 1 1;
671 align: 0.5 0;
672 rel1 {
673 relative: 0 1.0;
674 to_y: "segment1";
675 }
676 rel2 {
677 relative: 1 1.0;
678 to_y: "segment1";
679 }
680 }
681 }
682 part { name: "segment2";
683 type: SWALLOW;
684 scale: 1;
685 description {
686 state: "default" 0.0;
687 fixed: 1 1;
688 rel1 {
689 relative: 0.1 1.0;
690 to_x: "bg";
691 to_y: "segment1_bottom_padding";
692 }
693 rel2 {
694 relative: 0.9 160/400;
695 to: "bg";
696 }
697 align: 0.5 0.0;
698 }
699 }
700 part { name: "segment2_bottom_padding";
701 type: RECT;
702 scale: 1;
703 description {
704 state: "default" 0.0;
705 visible: 0;
706 min : 250 10;
707 max : 250 10;
708 fixed: 1 1;
709 align: 0.5 0;
710 rel1 {
711 relative: 0 1.0;
712 to_y: "segment2";
713 }
714 rel2 {
715 relative: 1 1.0;
716 to_y: "segment2";
717 }
718 }
719 }
720 part { name: "segment3";
721 type: SWALLOW;
722 scale: 1;
723 description {
724 state: "default" 0.0;
725 fixed: 1 1;
726 rel1 {
727 relative: 0.2 1.0;
728 to_x: "bg";
729 to_y: "segment2_bottom_padding";
730 }
731 rel2 {
732 relative: 0.8 0.6;
733 to: "bg";
734 }
735 align: 0.5 0.0;
736 }
737 }
738 part { name: "segment3_bottom_padding";
739 type: RECT;
740 scale: 1;
741 description {
742 state: "default" 0.0;
743 visible: 0;
744 min : 250 10;
745 max : 250 10;
746 fixed: 1 1;
747 align: 0.5 0;
748 rel1 {
749 relative: 0 1.0;
750 to_y: "segment3";
751 }
752 rel2 {
753 relative: 1 1.0;
754 to_y: "segment3";
755 }
756 }
757 }
758 part { name: "segment4";
759 type: SWALLOW;
760 scale: 1;
761 description {
762 state: "default" 0.0;
763 fixed: 1 1;
764 rel1 {
765 relative: 0.3 1.0;
766 to_x: "bg";
767 to_y: "segment3_bottom_padding";
768 }
769 rel2 {
770 relative: 0.7 340/400;
771 to: "bg";
772 }
773 align: 0.5 0.0;
774 }
775 }
776 part { name: "btn1_bottom_padding";
777 type: RECT;
778 scale: 1;
779 description {
780 state: "default" 0.0;
781 visible: 0;
782 min : 250 100;
783 max : 250 100;
784 fixed: 1 1;
785 align: 0.5 0;
786 rel1 {
787 relative: 0 1.0;
788 to_y: "segment4";
789 }
790 rel2 {
791 relative: 1 1.0;
792 to_y: "segment4";
793 }
794 }
795 }
796 }
797 }
798 group { name: "bg_overlay";
799 images {
800 image: "clo.png" LOSSY 60;
801 }
802 parts {
803 part { name: "clip";
804 type: RECT;
805 description { state: "default" 0.0;
806 }
807 }
808 part { name: "clo";
809 mouse_events: 0;
810 clip_to: "clip";
811 description { state: "default" 0.0;
812 fill {
813 smooth: 0;
814 origin {
815 relative: 0.0 0.0;
816 offset: 0 0;
817 }
818 size {
819 relative: 1.84722 1.0;
820 offset: 0 0;
821 }
822 }
823 image.normal: "clo.png";
824 }
825 description { state: "drift" 0.0;
826 inherit: "default" 0.0;
827 fill {
828 origin {
829 relative: 1.84722 0.0;
830 offset: 0 0;
831 }
832 size {
833 relative: 1.84722 1.0;
834 offset: 0 0;
835 }
836 }
837 }
838 }
839 }
840 programs {
841 program { name: "anim1";
842 signal: "load";
843 source: "";
844 action: STATE_SET "drift" 0.0;
845 transition: LINEAR 10.0;
846 target: "clo";
847 after: "anim2";
848 }
849 program { name: "anim2";
850 action: STATE_SET "default" 0.0;
851 target: "clo";
852 after: "anim1";
853 }
854 }
855 }
856 group {
857 name: "test/layout";
858 images {
859 image: "sky.jpg" LOSSY 80;
860 }
861 parts {
862 part {
863 name: "bg";
864 description {
865 state: "default" 0.0;
866 color: 255 255 255 100;
867 image.normal: "sky.jpg";
868 }
869 }
870 part {
871 name: "swallow";
872 type: SWALLOW;
873 description {
874 state: "default" 0.0;
875 rel1.offset: 8 8;
876 rel2.offset: -7 -7;
877 }
878 }
879 }
880 }
881}