X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fcheck-box-button-impl.h;h=ec0ac2c824e6b03b5e31473bac82210036688c35;hb=refs%2Fchanges%2F49%2F88249%2F1;hp=7f55610f0d748f969693148cac46a7e75270aad1;hpb=a41a75fa9679db6703affe8870af6e1eb6bcfc48;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/buttons/check-box-button-impl.h b/dali-toolkit/internal/controls/buttons/check-box-button-impl.h index 7f55610..ec0ac2c 100644 --- a/dali-toolkit/internal/controls/buttons/check-box-button-impl.h +++ b/dali-toolkit/internal/controls/buttons/check-box-button-impl.h @@ -2,7 +2,7 @@ #define __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,11 +20,10 @@ // EXTERNAL INCLUDES #include -#include +#include // INTERNAL INCLUDES #include -#include #include "button-impl.h" @@ -64,55 +63,43 @@ private: */ virtual ~CheckBoxButton(); -private: // From Button - - /** - * @copydoc Toolkit::Internal::Button::OnButtonInitialize() + * Setup the ticking effect to the selected image. */ - virtual void OnButtonInitialize(); + void SetTickUVEffect(); + +private: // From Button - /** - * @copydoc Toolkit::Internal::Button::OnLabelSet() - */ - virtual void OnLabelSet(); /** - * @copydoc Toolkit::Internal::Button::OnSelected() + * @copydoc Toolkit::Internal::Button::OnInitialize */ - virtual bool OnSelected(); + virtual void OnInitialize(); /** - * @copydoc Toolkit::Internal::Button::OnDisabled() + * @copydoc Toolkit::Internal::Button::OnLabelSet */ - virtual bool OnDisabled(); + virtual void OnLabelSet( bool noPadding ); /** - * @copydoc Toolkit::Internal::Button::StopAllAnimations() + * @copydoc Toolkit::Internal::Button::OnDisabled */ - virtual void StopAllAnimations(); - -private: + virtual void OnDisabled(); /** - * Adds the actor to the transition animation. - * It creates a transition animation if needed and starts the animation. - * @param[in] actor The actor. + * @copydoc Toolkit::Internal::Button::PrepareForTranstionIn( Actor actor ) */ - void StartTransitionAnimation( Actor& actor ); + virtual void PrepareForTranstionIn( Actor actor ); /** - * Stops the transition animation. - * @param[in] remove If true, removes the fadeout actor from root. + * @copydoc Toolkit::Internal::Button::PrepareForTranstionOut( Actor actor ) */ - void StopTransitionAnimation( bool remove = true ); - - // slots + virtual void PrepareForTranstionOut( Actor actor ); /** - * Called when the transition animation finishes. + * @copydoc Toolkit::Internal::Button::OnTransitionInImage( Actor actor ) */ - void TransitionAnimationFinished( Dali::Animation& source ); + virtual void OnTransitionIn( Actor actor ); private: @@ -123,8 +110,7 @@ private: CheckBoxButton& operator=( const CheckBoxButton& ); private: - Animation mTransitionAnimation; ///< Animation used in the state transitions. - ImageRegionEffect mTickUVEffect; ///< ImageRegionEffect to expand the tick across + Actor mSelectedImage; }; } // namespace Internal