(Animation) Updates following DestroyAction removal & DisconnectAction addition 09/28209/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 30 Sep 2014 09:32:28 +0000 (10:32 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 30 Sep 2014 09:32:31 +0000 (10:32 +0100)
Change-Id: I0eae8f62143138967b91130bb6e4c588229077f6

base/dali-toolkit/internal/builder/builder-animations.cpp
base/dali-toolkit/public-api/controls/scrollable/item-view/grid-layout.cpp
optional/dali-toolkit/internal/controls/navigation-frame/navigation-control-impl.cpp
optional/dali-toolkit/internal/controls/view/view-impl.cpp

index 72911b8..de6b380 100644 (file)
@@ -201,19 +201,19 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D
     }
   }
 
-  if( OptionalString endAction = constant.IsString(  IsChild(child, "destroy-action" ) ) )
+  if( OptionalString endAction = constant.IsString(  IsChild(child, "disconnect-action" ) ) )
   {
     if("BAKE" == *endAction)
     {
-      animation.SetDestroyAction( Animation::Bake );
+      animation.SetDisconnectAction( Animation::Bake );
     }
     else if("DISCARD" == *endAction)
     {
-      animation.SetDestroyAction( Animation::Discard );
+      animation.SetDisconnectAction( Animation::Discard );
     }
     else if("BAKE_FINAL" == *endAction)
     {
-      animation.SetDestroyAction( Animation::BakeFinal );
+      animation.SetDisconnectAction( Animation::BakeFinal );
     }
   }
 
index 17aa375..a2fef08 100644 (file)
@@ -623,7 +623,6 @@ void GridLayout::GetResizeAnimation(Animation& animation, Actor actor, Vector3 s
     // so that we can avoid the actors overlapping during orientation change.
     animation.Resize( actor, shrink, AlphaFunctions::EaseOut, 0.0f, durationSeconds * 0.5f );
     animation.Resize( actor, size, AlphaFunctions::EaseIn, 0.0f, durationSeconds );
-    animation.SetDestroyAction( Animation::Bake );
   }
 }
 
index 7a04ae9..2ad6931 100644 (file)
@@ -253,7 +253,6 @@ void NavigationControl::OrientationChanged( int angle )
     }
 
     Animation animation = Animation::New( mOrientationAnimationDuration );
-    animation.SetDestroyAction( Animation::Bake );
     animation.RotateTo( Self(), Degree( -angle ), Vector3::ZAXIS, mOrientationAnimationAlphaFunc );
     animation.Play();
 
index fa2a9d6..8bf9811 100644 (file)
@@ -231,8 +231,6 @@ void View::OrientationChanged( Dali::Orientation orientation )
     }
   }
 
-  mRotateAnimation.SetDestroyAction( Animation::Bake );
-
   Toolkit::View handle( GetOwner() );
   mOrientationAnimationStartedSignalV2.Emit( handle, mRotateAnimation, orientation );