X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fbuilder%2Fbuilder-animations.cpp;h=980fc90748839065e5ee712fb709d67e7e3b1f95;hb=d43575da616e1370372b1331f47dce36dc4ac145;hp=93f3623a175ca785b59fc8acbcd92bcf7d7c254f;hpb=63618525421c207278841dc1d866047169412866;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/builder/builder-animations.cpp b/dali-toolkit/internal/builder/builder-animations.cpp index 93f3623..980fc90 100644 --- a/dali-toolkit/internal/builder/builder-animations.cpp +++ b/dali-toolkit/internal/builder/builder-animations.cpp @@ -17,7 +17,7 @@ // EXTERNAL INCLUDES #include -#include +#include #include // INTERNAL INCLUDES @@ -159,7 +159,7 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D Animation animation( Animation::New( 0.f ) ); - // duration needs to be set before AnimateTo calls for correct operation when AnimateTo has no "time-period". + // duration needs to be set before AnimateTo calls for correct operation when AnimateTo has no "timePeriod". OptionalFloat duration = constant.IsFloat( IsChild(child, "duration" ) ); if( duration ) @@ -172,7 +172,7 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D animation.SetLooping( *looping ); } - if( OptionalString endAction = constant.IsString( IsChild(child, "end-action" ) ) ) + if( OptionalString endAction = constant.IsString( IsChild(child, "endAction" ) ) ) { if("BAKE" == *endAction) { @@ -188,7 +188,7 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D } } - if( OptionalString endAction = constant.IsString( IsChild(child, "disconnect-action" ) ) ) + if( OptionalString endAction = constant.IsString( IsChild(child, "disconnectAction" ) ) ) { if("BAKE" == *endAction) { @@ -229,13 +229,13 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D // to allow animating shader uniforms if( propIndex == Property::INVALID_INDEX ) { - RenderableActor renderable = RenderableActor::DownCast( targetHandle ); - if( renderable ) + ImageActor imageActor = ImageActor::DownCast( targetHandle ); + if( imageActor ) { // A limitation here is that its possible that between creation of animation // and running it the ShaderEffect of the actor has been changed. // However this is a unlikely use case especially when using scripts. - if( ShaderEffect effect = renderable.GetShaderEffect() ) + if( ShaderEffect effect = imageActor.GetShaderEffect() ) { propIndex = effect.GetPropertyIndex( *property ); if(propIndex != Property::INVALID_INDEX) @@ -267,7 +267,7 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D AlphaFunction alphaFunction( AlphaFunction::DEFAULT ); TimePeriod timePeriod( 0.f ); - OptionalChild timeChild = IsChild( pKeyChild.second, "time-period" ); + OptionalChild timeChild = IsChild( pKeyChild.second, "timePeriod" ); if( timeChild ) { @@ -276,12 +276,12 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D durationSum = std::max( durationSum, timePeriod.delaySeconds + timePeriod.durationSeconds ); - if( OptionalString alphaChild = constant.IsString( IsChild(pKeyChild.second, "alpha-function" ) ) ) + if( OptionalString alphaChild = constant.IsString( IsChild(pKeyChild.second, "alphaFunction" ) ) ) { alphaFunction = GetAlphaFunction( *alphaChild ); } - if( OptionalChild keyFrameChild = IsChild(pKeyChild.second, "key-frames") ) + if( OptionalChild keyFrameChild = IsChild(pKeyChild.second, "keyFrames") ) { DALI_ASSERT_ALWAYS( property && "Animation must specify a property name" ); Property prop = Property( targetHandle, propIndex ); @@ -313,7 +313,7 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D } AlphaFunction kfAlphaFunction( AlphaFunction::DEFAULT ); - if( OptionalString alphaFuncStr = constant.IsString( IsChild(pKeyChild.second, "alpha-function") ) ) + if( OptionalString alphaFuncStr = constant.IsString( IsChild(pKeyChild.second, "alphaFunction") ) ) { kfAlphaFunction = GetAlphaFunction( *alphaFuncStr ); }