Flip effect to Pager
authorTiago Rezende Campos Falcao <developer@tiagofalcao.com>
Fri, 12 Nov 2010 12:28:56 +0000 (12:28 +0000)
committerTiago Rezende Campos Falcao <developer@tiagofalcao.com>
Fri, 12 Nov 2010 12:28:56 +0000 (12:28 +0000)
Did we still need the flip?

SVN revision: 54497

data/themes/default.edc
src/bin/test_pager.c

index 5612814bdee47971c02cc33c601539896e323028..73bfa216ee8fe067e7d7649fff4ad85f3ffabd6c 100644 (file)
@@ -23672,6 +23672,132 @@ collections {
        }
    }
 
+   group { name: "elm/pager/base/flip";
+      data.item: "onshow" "raise";
+      images {
+         image: "frame_1.png" COMP;
+         image: "frame_2.png" COMP;
+         image: "dia_grad.png" COMP;
+      }
+      parts {
+         part { name: "elm.swallow.content";
+            type: SWALLOW;
+            description { state: "default" 0.0;
+               map {
+                  on: 1;
+                  smooth: 1;
+                  backface_cull: 1;
+                  perspective_on: 1;
+               }
+               perspective {
+                  zplane: 0;
+                  focal: 1000;
+               }
+            }
+            description { state: "hidden" 0.0;
+               inherit: "default" 0.0;
+               visible: 0;
+               map.rotation.y: 90.0;
+            }
+            description { state: "before_hidden" 0.0;
+               inherit: "default" 0.0;
+               visible: 0;
+               map.rotation.y: -90.0;
+            }
+         }
+      }
+      programs {
+         program { name: "push_start";
+            signal: "elm,action,push";
+            source: "elm";
+            after: "push1";
+         }
+         program { name: "push1";
+            action:  STATE_SET "hidden" 0.0;
+            target: "elm.swallow.content";
+            after: "push2";
+         }
+         program { name: "push2";
+            action:  STATE_SET "default" 0.0;
+            in: 0.5 0.0;
+            transition: LINEAR 0.5;
+            target: "elm.swallow.content";
+            after: "push3";
+         }
+         program { name: "push3";
+            action: SIGNAL_EMIT "elm,action,show,finished" "";
+         }
+
+         program { name: "show_start";
+            signal: "elm,action,show";
+            source: "elm";
+            after: "show1";
+         }
+         program { name: "show1";
+            action:  STATE_SET "before_hidden" 0.0;
+            target: "elm.swallow.content";
+            after: "show2";
+         }
+         program { name: "show2";
+            action:  STATE_SET "default" 0.0;
+            in: 0.5 0.0;
+            transition: LINEAR 0.5;
+            target: "elm.swallow.content";
+            after: "show3";
+         }
+         program { name: "show3";
+            action: SIGNAL_EMIT "elm,action,show,finished" "";
+         }
+
+         program { name: "pop_start";
+            signal: "elm,action,pop";
+            source: "elm";
+            after: "pop1";
+         }
+         program { name: "pop1";
+            action:  STATE_SET "default" 0.0;
+            target: "elm.swallow.content";
+            after: "pop2";
+         }
+         program { name: "pop2";
+            action:  STATE_SET "hidden" 0.0;
+            transition: LINEAR 0.5;
+            target: "elm.swallow.content";
+            after: "pop3";
+         }
+         program { name: "pop3";
+            action: SIGNAL_EMIT "elm,action,hide,finished" "";
+         }
+
+         program { name: "hide_start";
+            signal: "elm,action,hide";
+            source: "elm";
+            after: "hide1";
+         }
+         program { name: "hide1";
+            action:  STATE_SET "default" 0.0;
+            target: "elm.swallow.content";
+            after: "hide2";
+         }
+         program { name: "hide2";
+            action:  STATE_SET "before_hidden" 0.0;
+            transition: LINEAR 0.5;
+            target: "elm.swallow.content";
+            after: "hide3";
+         }
+         program { name: "hide3";
+            action: SIGNAL_EMIT "elm,action,hide,finished" "";
+         }
+
+         program { name: "reset";
+            signal: "elm,action,reset";
+            source: "elm";
+            action:  STATE_SET "default" 0.0;
+            target: "elm.swallow.content";
+         }
+      }
+   }
+
 
 
 ///////////////////////////////////////////////////////////////////////////////
index 41e6c4f00d79b3974e7a90a4fc89ea52ec518237..924d77dbc9453f344c2836d5594d79b2439bd807 100644 (file)
@@ -48,7 +48,8 @@ static const struct style_tuple styles[] = {
        { "Slide Invisible", "slide_invisible"},
        { "Fade", "fade"},
        { "Fade Translucide", "fade_translucide"},
-       { "Fade Invisible", "fade_invisible"}
+       { "Fade Invisible", "fade_invisible"},
+       { "Flip", "flip"},
 };
 
 static void