X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fpush-button-impl.cpp;h=3391bae6c9a82339b5e1acbc818d8528af732ed4;hb=7f0a28e0f0da67178997e5a647bdc471e8dcb652;hp=cb5a747c5cec44b5931dc6869213ca9bbd23ddfa;hpb=e5dbcae1f8ee31b14d675793ab86161eeeefb029;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/buttons/push-button-impl.cpp b/dali-toolkit/internal/controls/buttons/push-button-impl.cpp index cb5a747..3391bae 100644 --- a/dali-toolkit/internal/controls/buttons/push-button-impl.cpp +++ b/dali-toolkit/internal/controls/buttons/push-button-impl.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #if defined(DEBUG_ENABLED) extern Debug::Filter* gLogButtonFilter; @@ -47,8 +48,6 @@ namespace Internal namespace { -const float ANIMATION_TIME( 0.2f ); - BaseHandle Create() { return Toolkit::PushButton::New(); @@ -102,7 +101,6 @@ PushButton::PushButton() : Button(), mIconAlignment( RIGHT ) { - SetAnimationTime( ANIMATION_TIME ); } PushButton::~PushButton() @@ -167,12 +165,12 @@ void PushButton::SetProperty( BaseObject* object, Property::Index propertyIndex, { case Toolkit::PushButton::Property::UNSELECTED_ICON: { - pushButtonImpl.CreateVisualsForComponent( Toolkit::Button::Property::UNSELECTED_VISUAL, value, DepthIndex::CONTENT ); + pushButtonImpl.CreateVisualsForComponent( Toolkit::DevelButton::Property::UNSELECTED_VISUAL, value, DepthIndex::CONTENT ); break; } case Toolkit::PushButton::Property::SELECTED_ICON: { - pushButtonImpl.CreateVisualsForComponent( Toolkit::Button::Property::SELECTED_VISUAL, value, DepthIndex::CONTENT ); + pushButtonImpl.CreateVisualsForComponent( Toolkit::DevelButton::Property::SELECTED_VISUAL, value, DepthIndex::CONTENT ); break; } case Toolkit::PushButton::Property::ICON_ALIGNMENT: @@ -245,46 +243,6 @@ Property::Value PushButton::GetProperty( BaseObject* object, Property::Index pro return value; } -void PushButton::PrepareForTranstionIn( Actor actor ) -{ - // Set Toolkit::Button::Property::SELECTED_VISUAL and Toolkit::Button::Property::UNSELECTED_VISUAL to opacity 0 - // Then get and start animation -} - -void PushButton::PrepareForTranstionOut( Actor actor ) -{ - // Set Toolkit::Button::Property::SELECTED_VISUAL and Toolkit::Button::Property::UNSELECTED_VISUAL to opacity 1 - // Then get and start animation -} - -void PushButton::OnTransitionIn( Actor actor ) -{ - // Only transition selected and unselected visual, background doesn't change. - // Start Fade animation to 1 -} - -void PushButton::OnTransitionOut( Actor actor ) -{ - // Only transition selected and unselected visual, background doesn't change. - // Start Fade animation to 0 -} - -void PushButton::FadeImageTo( Actor actor , float opacity ) -{ - if( actor ) - { - Dali::Animation transitionAnimation = GetTransitionAnimation(); - DALI_ASSERT_DEBUG( transitionAnimation ); - - if( transitionAnimation ) - { - DALI_LOG_INFO( gLogButtonFilter, Debug::Verbose, "PushButton::FadeImageTo(%f)\n", opacity ); - - transitionAnimation.AnimateTo( Property( actor, Actor::Property::COLOR_ALPHA ), opacity ); - } - } -} - } // namespace Internal } // namespace Toolkit