X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fcheck-box-button-impl.h;h=e80b8385836d64147b10d4c2a792d9cf7fb315c0;hp=47b91ae649c79b99221e073401bfae63fa821e5d;hb=18644a10e91e667563734dfa9fa8be6b85ffdc51;hpb=cc82bd9b187cda8fe2c8336b73fd1fa9376cfebd 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..e80b838 100644 --- a/dali-toolkit/internal/controls/buttons/check-box-button-impl.h +++ b/dali-toolkit/internal/controls/buttons/check-box-button-impl.h @@ -20,11 +20,11 @@ // EXTERNAL INCLUDES #include -#include +#include // INTERNAL INCLUDES #include -#include +#include #include "button-impl.h" @@ -52,94 +52,55 @@ public: */ static Dali::Toolkit::CheckBoxButton New(); -public: // From Button - - /** - * @copydoc Toolkit::Internal::Button::SetSelectedImage( Actor image ) - */ - virtual void SetSelectedImage( Actor image ); +private: /** - * @copydoc Toolkit::Internal::Button::SetBackgroundImage( Actor image ) + * Construct a new CheckBoxButton. */ - virtual void SetBackgroundImage( Actor image ); + CheckBoxButton(); /** - * @copydoc Toolkit::Internal::Button::SetDisabledSelectedImage( Actor image ) + * A reference counted object may only be deleted by calling Unreference() */ - virtual void SetDisabledSelectedImage( Actor image ); + virtual ~CheckBoxButton(); /** - * @copydoc Toolkit::Internal::Button::SetDisabledBackgroundImage( Actor image ) + * Setup the ticking effect to the selected image. */ - virtual void SetDisabledBackgroundImage( Actor image ); + void SetTickUVEffect(); private: // From Button /** - * @copydoc Toolkit::Internal::Button::OnButtonInitialize() + * @copydoc Toolkit::Internal::Button::OnButtonInitialize */ virtual void OnButtonInitialize(); /** - * @copydoc Toolkit::Internal::Button::OnLabelSet() + * @copydoc Toolkit::Internal::Button::OnLabelSet */ - virtual void OnLabelSet(); + virtual void OnLabelSet( bool noPadding ); /** - * @copydoc Toolkit::Internal::Button::OnSelected() + * @copydoc Toolkit::Internal::Button::OnDisabled */ - virtual void OnSelected( bool selected ); + virtual void OnDisabled(); /** - * @copydoc Toolkit::Internal::Button::OnDisabled( bool disabled ) + * @copydoc Toolkit::Internal::Button::PrepareForTranstionIn( Actor actor ) */ - virtual void OnDisabled( bool disabled ); - -private: + virtual void PrepareForTranstionIn( Actor actor ); /** - * Construct a new CheckBoxButton. + * @copydoc Toolkit::Internal::Button::PrepareForTranstionOut( Actor actor ) */ - CheckBoxButton(); + virtual void PrepareForTranstionOut( Actor actor ); /** - * A reference counted object may only be deleted by calling Unreference() + * @copydoc Toolkit::Internal::Button::OnTransitionInImage( Actor actor ) */ - virtual ~CheckBoxButton(); - -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. - * @param[in] actor The actor. - */ - void StartCheckInAnimation( Actor& actor ); - - /** - * Stops the check in animation. - */ - void StopCheckInAnimation(); - - // slots - - /** - * Called when the check in animation finishes. - * It changes the check button paint state. - */ - void CheckInAnimationFinished( Dali::Animation& source ); + virtual void OnTransitionIn( Actor actor ); private: @@ -150,10 +111,7 @@ 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. + Actor mSelectedImage; }; } // namespace Internal