X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fcheck-box-button-impl.h;h=7f55610f0d748f969693148cac46a7e75270aad1;hb=620ac79821b89142af1926f3577c7fa003f16ad3;hp=47b91ae649c79b99221e073401bfae63fa821e5d;hpb=826a077bb3183b5d317bfb22e14ab4e217d26f40;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 47b91ae..7f55610 100644 --- a/dali-toolkit/internal/controls/buttons/check-box-button-impl.h +++ b/dali-toolkit/internal/controls/buttons/check-box-button-impl.h @@ -52,27 +52,17 @@ public: */ static Dali::Toolkit::CheckBoxButton New(); -public: // From Button - - /** - * @copydoc Toolkit::Internal::Button::SetSelectedImage( Actor image ) - */ - virtual void SetSelectedImage( Actor image ); - - /** - * @copydoc Toolkit::Internal::Button::SetBackgroundImage( Actor image ) - */ - virtual void SetBackgroundImage( Actor image ); +private: /** - * @copydoc Toolkit::Internal::Button::SetDisabledSelectedImage( Actor image ) + * Construct a new CheckBoxButton. */ - virtual void SetDisabledSelectedImage( Actor image ); + CheckBoxButton(); /** - * @copydoc Toolkit::Internal::Button::SetDisabledBackgroundImage( Actor image ) + * A reference counted object may only be deleted by calling Unreference() */ - virtual void SetDisabledBackgroundImage( Actor image ); + virtual ~CheckBoxButton(); private: // From Button @@ -90,56 +80,39 @@ private: // From Button /** * @copydoc Toolkit::Internal::Button::OnSelected() */ - virtual void OnSelected( bool selected ); + virtual bool OnSelected(); /** - * @copydoc Toolkit::Internal::Button::OnDisabled( bool disabled ) + * @copydoc Toolkit::Internal::Button::OnDisabled() */ - virtual void OnDisabled( bool disabled ); - -private: + virtual bool OnDisabled(); /** - * Construct a new CheckBoxButton. + * @copydoc Toolkit::Internal::Button::StopAllAnimations() */ - CheckBoxButton(); - - /** - * A reference counted object may only be deleted by calling Unreference() - */ - virtual ~CheckBoxButton(); + virtual void StopAllAnimations(); private: /** - * Adds the actor to the button. - */ - void AddChild( Actor& actor ); - - /** - * Removes the actor from the button. - */ - void RemoveChild( Actor& actor ); - - /** - * Adds the actor to the check in animation. - * It creates a check in animation if needed and starts the check in animation. + * Adds the actor to the transition animation. + * It creates a transition animation if needed and starts the animation. * @param[in] actor The actor. */ - void StartCheckInAnimation( Actor& actor ); + void StartTransitionAnimation( Actor& actor ); /** - * Stops the check in animation. + * Stops the transition animation. + * @param[in] remove If true, removes the fadeout actor from root. */ - void StopCheckInAnimation(); + void StopTransitionAnimation( bool remove = true ); // slots /** - * Called when the check in animation finishes. - * It changes the check button paint state. + * Called when the transition animation finishes. */ - void CheckInAnimationFinished( Dali::Animation& source ); + void TransitionAnimationFinished( Dali::Animation& source ); private: @@ -150,10 +123,8 @@ private: CheckBoxButton& operator=( const CheckBoxButton& ); private: - Animation mCheckInAnimation; ///< Animation used in the state transitions. - ImageRegionEffect mTickUVEffect; ///< ImageRegionEffect to expand the tick across - - PaintState mPaintState; ///< The paint state. + Animation mTransitionAnimation; ///< Animation used in the state transitions. + ImageRegionEffect mTickUVEffect; ///< ImageRegionEffect to expand the tick across }; } // namespace Internal