Merge remote-tracking branch 'remotes/origin/upstream'
[framework/uifw/elementary.git] / data / objects / test.edc
index 5fb5459..3bfeccc 100644 (file)
@@ -7,8 +7,14 @@ collections {
         image: "clo.png" LOSSY 60;
       }
       parts {
+         part { name: "clip";
+            type: RECT;
+            description { state: "default" 0.0;
+            }
+         }
         part { name: "sky";
-            mouse_events: 0;
+            mouse_events: 1;
+            clip_to: "clip";
            description { state: "default" 0.0;
               aspect: 2.6225 2.6225;
               aspect_preference: NONE;
@@ -26,6 +32,7 @@ collections {
         }
         part { name: "under";
             mouse_events: 0;
+            clip_to: "clip";
            description { state: "default" 0.0;
               align: 0.5 0.0;
               aspect: 1.486068111 1.486068111;
@@ -33,8 +40,29 @@ collections {
               image.normal: "under.png";
            }
         }
+        part { name: "text";
+           type: TEXT;
+            clip_to: "clip";
+           description { state: "default" 0.0;
+              color: 255 255 0 255;
+              rel1 {
+                 relative: 0.3 0.02;
+              }
+              rel2 {
+                 relative: 0.6 0.12;
+              }
+              align: 0.5 0.5;
+              text {
+                 font: "Sans:style=Bold";
+                 size: 14;
+                 min: 1 1;
+                 text: "some edje text here";
+              }
+           }
+        }
         part { name: "element1";
            type: SWALLOW;
+            clip_to: "clip";
            description { state: "default" 0.0;
               rel1 {
                  relative: 0.2 0.2;
@@ -46,6 +74,7 @@ collections {
         }
         part { name: "element2";
            type: SWALLOW;
+            clip_to: "clip";
            description { state: "default" 0.0;
               rel1 {
                  relative: 0.6 0.3;
@@ -57,6 +86,7 @@ collections {
         }
         part { name: "element3";
            type: SWALLOW;
+            clip_to: "clip";
            description { state: "default" 0.0;
               rel1 {
                  relative: 0.1 0.7;
@@ -68,6 +98,7 @@ collections {
         }
         part { name: "over";
             mouse_events: 0;
+            clip_to: "clip";
            description { state: "default" 0.0;
               align: 0.0 1.0;
               aspect: 2.238095238 2.238095238;
@@ -78,6 +109,7 @@ collections {
         }
          part { name: "clo";
             mouse_events: 0;
+            clip_to: "clip";
             description { state: "default" 0.0;
                fill {
                   smooth: 0;
@@ -136,5 +168,717 @@ collections {
          }
       }
    }
+   group { name: "layout2";
+      images {
+        image: "over.png" COMP;
+        image: "under.png" COMP;
+        image: "sky.jpg" LOSSY 80;
+        image: "clo.png" LOSSY 60;
+      }
+      parts {
+         part { name: "clip";
+            type: RECT;
+            description { state: "default" 0.0;
+            }
+         }
+        part { name: "sky";
+            mouse_events: 0;
+            clip_to: "clip";
+           description { state: "default" 0.0;
+              aspect: 2.6225 2.6225;
+              aspect_preference: NONE;
+              image.normal: "sky.jpg";
+           }
+           description { state: "drift" 0.0;
+               inherit: "default" 0.0;
+               fill {
+                  origin {
+                     relative: 1.0 0.0;
+                     offset: 0 0;
+                  }
+               }
+           }
+        }
+        part { name: "under";
+            mouse_events: 0;
+            clip_to: "clip";
+           description { state: "default" 0.0;
+              align: 0.5 0.0;
+              aspect: 1.486068111 1.486068111;
+              aspect_preference: HORIZONTAL;
+              image.normal: "under.png";
+           }
+        }
+        part { name: "text";
+           type: TEXT;
+            clip_to: "clip";
+           description { state: "default" 0.0;
+              color: 255 255 0 255;
+              rel1 {
+                 relative: 0.3 0.02;
+              }
+              rel2 {
+                 relative: 0.6 0.12;
+              }
+              align: 0.5 0.5;
+              text {
+                 font: "Sans:style=Bold";
+                 size: 14;
+                 min: 1 1;
+                 text: "some edje text here";
+              }
+           }
+        }
+        part { name: "element1";
+           type: SWALLOW;
+            clip_to: "clip";
+           description { state: "default" 0.0;
+              rel1 {
+                 relative: 0.2 0.2;
+              }
+              rel2 {
+                 relative: 0.4 0.3;
+              }
+           }
+        }
+        part { name: "element2";
+           type: SWALLOW;
+            clip_to: "clip";
+           description { state: "default" 0.0;
+              rel1 {
+                 relative: 0.6 0.3;
+              }
+              rel2 {
+                 relative: 0.9 0.5;
+              }
+           }
+        }
+        part { name: "element3";
+           type: SWALLOW;
+            clip_to: "clip";
+           description { state: "default" 0.0;
+              rel1 {
+                 relative: 0.1 0.7;
+              }
+              rel2 {
+                 relative: 0.9 0.9;
+              }
+           }
+        }
+        part { name: "over";
+            mouse_events: 0;
+            clip_to: "clip";
+           description { state: "default" 0.0;
+              align: 0.0 1.0;
+              aspect: 2.238095238 2.238095238;
+              max: 329 147;
+              aspect_preference: HORIZONTAL;
+              image.normal: "over.png";
+           }
+        }
+         part { name: "clo";
+            mouse_events: 0;
+            clip_to: "clip";
+            description { state: "default" 0.0;
+               fill {
+                  smooth: 0;
+                  origin {
+                     relative: 0.0 0.0;
+                     offset: 0 0;
+                  }
+                  size {
+                     relative: 1.84722 1.0;
+                     offset: 0 0;
+                  }
+               }
+               image.normal: "clo.png";
+            }
+            description { state: "drift" 0.0;
+               inherit: "default" 0.0;
+               fill {
+                  origin {
+                     relative: 1.84722 0.0;
+                     offset: 0 0;
+                  }
+                  size {
+                     relative: 1.84722 1.0;
+                     offset: 0 0;
+                  }
+               }
+            }
+         }
+      }
+   }
+   group { name: "launcher_page";
+      parts {
+         part { name: "slot.0.0"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.0  0.0;
+              }
+              rel2 { relative: 0.25 0.25;
+              }
+            }
+         }
+         part { name: "slot.1.0"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.25 0.0;
+              }
+              rel2 { relative: 0.50 0.25;
+              }
+            }
+         }
+         part { name: "slot.2.0"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.50 0.0;
+              }
+              rel2 { relative: 0.75 0.25;
+              }
+            }
+         }
+         part { name: "slot.3.0"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.75 0.0;
+              }
+              rel2 { relative: 1.00 0.25;
+              }
+            }
+         }
+         part { name: "slot.0.1"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.0  0.25;
+              }
+              rel2 { relative: 0.25 0.50;
+              }
+            }
+         }
+         part { name: "slot.1.1"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.25 0.25;
+              }
+              rel2 { relative: 0.50 0.50;
+              }
+            }
+         }
+         part { name: "slot.2.1"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.50 0.25;
+              }
+              rel2 { relative: 0.75 0.50;
+              }
+            }
+         }
+         part { name: "slot.3.1"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.75 0.25;
+              }
+              rel2 { relative: 1.00 0.50;
+              }
+            }
+         }
+         part { name: "slot.0.2"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.0  0.50;
+              }
+              rel2 { relative: 0.25 0.75;
+              }
+            }
+         }
+         part { name: "slot.1.2"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.25 0.50;
+              }
+              rel2 { relative: 0.50 0.75;
+              }
+            }
+         }
+         part { name: "slot.2.2"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.50 0.50;
+              }
+              rel2 { relative: 0.75 0.75;
+              }
+            }
+         }
+         part { name: "slot.3.2"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.75 0.50;
+              }
+              rel2 { relative: 1.00 0.75;
+              }
+            }
+         }
+         part { name: "slot.0.3"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.0  0.75;
+              }
+              rel2 { relative: 0.25 1.00;
+              }
+            }
+         }
+         part { name: "slot.1.3"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.25 0.75;
+              }
+              rel2 { relative: 0.50 1.00;
+              }
+            }
+         }
+         part { name: "slot.2.3"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.50 0.75;
+              }
+              rel2 { relative: 0.75 1.00;
+              }
+            }
+         }
+         part { name: "slot.3.3"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.75 0.75;
+              }
+              rel2 { relative: 1.00 1.00;
+              }
+            }
+         }
+      }
+   }
+   group { name: "launcher_icon";
+      parts {
+         part { name: "slot"; type: SWALLOW;
+            description { state: "default" 0.0;
+              rel1 { relative: 0.0 0.0;
+              }
+              rel2 { relative: 1.00 0.00;
+                to_y: "label";
+              }
+            }
+            description { state: "drag1" 0.0;
+              inherit: "default" 0.0;
+              rel1.offset: -5 -3;
+              rel2.offset: -5 -3;
+            }
+            description { state: "drag2" 0.0;
+              inherit: "default" 0.0;
+              rel1.offset: 10 3;
+              rel2.offset: 10 3;
+            }
+            description { state: "drag3" 0.0;
+              inherit: "default" 0.0;
+              rel1.offset: -1  6;
+              rel2.offset: -1  6;
+            }
+         }
+         part { name: "label"; type: TEXT;
+            effect: SOFT_SHADOW;
+            scale: 1;
+            description { state: "default" 0.0;
+              fixed: 1 1;
+              align: 0.5 1.0;
+              rel1 { relative: 0.0  1.00;
+              }
+              rel2 { relative: 1.00 1.00;
+              }
+              color: 224 224 224 255;
+              color3: 0 0 0 64;
+              text {
+                font: "Sans:style=Bold,Edje-Vera-Bold";
+                size: 10;
+                min: 0 1;
+                max: 1 1;
+                align: 0.5 0.0;
+              }
+            }
+            description { state: "hi" 0.0;
+              inherit: "default" 0.0;
+              color: 255 0 0 255;
+              color3: 0 0 0 255;
+            }
+            description { state: "drag1" 0.0;
+              inherit: "default" 0.0;
+              color: 255 0 0 255;
+              color3: 0 0 0 255;
+              rel1.offset: -5 -3;
+              rel2.offset: -5 -3;
+            }
+            description { state: "drag2" 0.0;
+              inherit: "default" 0.0;
+              color: 255 0 0 255;
+              color3: 0 0 0 255;
+              rel1.offset: 10 3;
+              rel2.offset: 10 3;
+            }
+            description { state: "drag3" 0.0;
+              inherit: "default" 0.0;
+              color: 255 0 0 255;
+              color3: 0 0 0 255;
+              rel1.offset: -1  6;
+              rel2.offset: -1  6;
+            }
+         }
+      }
+      programs {
+         program { name: "click";
+            signal: "click"; source: "app";
+            action: STATE_SET "hi" 0.0;
+            transition: LINEAR 0.5;
+            target: "label";
+         }
+         program { name: "drag1";
+            signal: "drag"; source: "app";
+            action: STATE_SET "drag1" 0.0;
+            transition: LINEAR 0.1;
+            target: "label";
+            target: "slot";
+            after: "drag2";
+         }
+         program { name: "drag2";
+            action: STATE_SET "drag2" 0.0;
+            transition: LINEAR 0.2;
+            target: "label";
+            target: "slot";
+            after: "drag3";
+         }
+         program { name: "drag3";
+            action: STATE_SET "drag3" 0.0;
+            transition: LINEAR 0.1;
+            target: "label";
+            target: "slot";
+            after: "drag1";
+         }
+         program { name: "drop";
+            signal: "drop"; source: "app";
+            action: STATE_SET "default" 0.0;
+            target: "label";
+            target: "slot";
+         }
+         program { name: "unclick";
+            signal: "unclick"; source: "app";
+            action: STATE_SET "default" 0.0;
+            transition: LINEAR 0.5;
+            target: "label";
+            target: "slot";
+         }
+         program { name: "cancel";
+            signal: "cancel"; source: "app";
+            action: STATE_SET "default" 0.0;
+            transition: LINEAR 0.5;
+            target: "label";
+            target: "slot";
+         }
+      }
+   }
+   group { name: "twolines";
+      parts {
+         part { name: "clip";
+            type: RECT;
+            description { state: "default" 0.0;
+            }
+         }
+         part { name: "under";
+            mouse_events: 0;
+            clip_to: "clip";
+            type: RECT;
+            description { state: "default" 0.0;
+               color: 0 128 200 30;
+            }
+         }
+         part { name: "element1";
+            type: SWALLOW;
+            clip_to: "clip";
+            description { state: "default" 0.0;
+               rel1 {
+                  relative: 0.0 0.0;
+                  offset: 4 4;
+               }
+               rel2 {
+                  relative: 1.0 0.5;
+                  offset: -5 -3;
+               }
+            }
+         }
+         part { name: "element2";
+            type: SWALLOW;
+            clip_to: "clip";
+            description { state: "default" 0.0;
+               rel1 {
+                  relative: 0.0 0.5;
+                  offset: 4 2;
+               }
+               rel2 {
+                  relative: 1.0 1.0;
+                  offset: -5 -5;
+               }
+            }
+         }
+      }
+   }
+      group { name: "segment_test";
+      parts{
+         part {
+            name: "bg";
+            type: RECT;
+            scale: 1; //allow scaling
+            description {
+               state: "default" 0.0;
+               visible: 0;
+               visible: 0;
+               min: 480 400;
+            }
+         }
+         part { name: "top_padding";
+            type: RECT;
+            scale: 1; //allow scaling
+            description {
+               state: "default" 0.0;
+               visible: 0;
+               min : 250 30; //minimum size for gap filler
+               fixed: 0 1;
+               rel1 {
+                  relative: 0 0;
+               }
+               rel2 {
+                  relative: 1 0;
+               }
+               align: 0 0;
+            }
+         }
+         part { name: "segment1";
+            type: SWALLOW;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               fixed: 1 1;
+               rel1 {
+                  relative: 0.0 1.0;
+                  to_x: "bg";
+                  to_y: "top_padding";
+               }
+               rel2 {
+                  relative: 1.0 0.25;
+                  to: "bg";
+               }
+               align: 0.5 0.0;
+            }
+         }
+         part { name: "segment1_bottom_padding";
+            type: RECT;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               visible: 0;
+               min : 250 10;
+               max : 250 10;
+               fixed: 1 1;
+               align: 0.5 0;
+               rel1 {
+                  relative: 0 1.0;
+                  to_y: "segment1";
+               }
+               rel2 {
+                  relative: 1 1.0;
+                  to_y: "segment1";
+               }
+            }
+         }
+         part { name: "segment2";
+            type: SWALLOW;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               fixed: 1 1;
+               rel1 {
+                  relative: 0.1 1.0;
+                  to_x: "bg";
+                  to_y: "segment1_bottom_padding";
+               }
+               rel2 {
+                  relative: 0.9 160/400;
+                  to: "bg";
+               }
+               align: 0.5 0.0;
+            }
+         }
+         part { name: "segment2_bottom_padding";
+            type: RECT;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               visible: 0;
+               min : 250 10;
+               max : 250 10;
+               fixed: 1 1;
+               align: 0.5 0;
+               rel1 {
+                  relative: 0 1.0;
+                  to_y: "segment2";
+               }
+               rel2 {
+                  relative: 1 1.0;
+                  to_y: "segment2";
+               }
+            }
+         }
+         part { name: "segment3";
+            type: SWALLOW;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               fixed: 1 1;
+               rel1 {
+                  relative: 0.2 1.0;
+                  to_x: "bg";
+                  to_y: "segment2_bottom_padding";
+               }
+               rel2 {
+                  relative: 0.8 0.6;
+                  to: "bg";
+               }
+               align: 0.5 0.0;
+            }
+         }
+         part { name: "segment3_bottom_padding";
+            type: RECT;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               visible: 0;
+               min : 250 10;
+               max : 250 10;
+               fixed: 1 1;
+               align: 0.5 0;
+               rel1 {
+                  relative: 0 1.0;
+                  to_y: "segment3";
+               }
+               rel2 {
+                  relative: 1 1.0;
+                  to_y: "segment3";
+               }
+            }
+         }
+         part { name: "segment4";
+            type: SWALLOW;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               fixed: 1 1;
+               rel1 {
+                  relative: 0.3 1.0;
+                  to_x: "bg";
+                  to_y: "segment3_bottom_padding";
+               }
+               rel2 {
+                  relative: 0.7 340/400;
+                  to: "bg";
+               }
+<<<<<<< HEAD
+=======
+               align: 0.5 0.0;
+>>>>>>> remotes/origin/upstream
+            }
+         }
+         part { name: "btn1_bottom_padding";
+            type: RECT;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               visible: 0;
+               min : 250 100;
+               max : 250 100;
+               fixed: 1 1;
+               align: 0.5 0;
+               rel1 {
+                  relative: 0 1.0;
+                  to_y: "segment4";
+               }
+               rel2 {
+                  relative: 1 1.0;
+                  to_y: "segment4";
+               }
+            }
+         }
+       }
+   }
+   group { name: "bg_overlay";
+      images {
+        image: "clo.png" LOSSY 60;
+      }
+      parts {
+         part { name: "clip";
+            type: RECT;
+            description { state: "default" 0.0;
+            }
+         }
+         part { name: "clo";
+            mouse_events: 0;
+            clip_to: "clip";
+            description { state: "default" 0.0;
+               fill {
+                  smooth: 0;
+                  origin {
+                     relative: 0.0 0.0;
+                     offset: 0 0;
+                  }
+                  size {
+                     relative: 1.84722 1.0;
+                     offset: 0 0;
+                  }
+               }
+               image.normal: "clo.png";
+            }
+            description { state: "drift" 0.0;
+               inherit: "default" 0.0;
+               fill {
+                  origin {
+                     relative: 1.84722 0.0;
+                     offset: 0 0;
+                  }
+                  size {
+                     relative: 1.84722 1.0;
+                     offset: 0 0;
+                  }
+               }
+            }
+         }
+      }
+      programs {
+         program { name: "anim1";
+            signal: "load";
+            source: "";
+            action: STATE_SET "drift" 0.0;
+            transition: LINEAR 10.0;
+            target: "clo";
+            after: "anim2";
+         }
+         program { name: "anim2";
+            action: STATE_SET "default" 0.0;
+            target: "clo";
+            after: "anim1";
+         }
+      }
+   }
+   group {
+      name: "test/layout";
+      images {
+         image: "sky.jpg" LOSSY 80;
+      }
+      parts {
+            part {
+                 name: "bg";
+                 description {
+                     state: "default" 0.0;
+                     color: 255 255 255 100;
+                     image.normal: "sky.jpg";
+                 }
+            }
+            part {
+                 name: "swallow";
+                 type: SWALLOW;
+                 description {
+                     state: "default" 0.0;
+                     rel1.offset: 8 8;
+                     rel2.offset: -7 -7;
+                 }
+            }
+      }
+   }
 }
-