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=9d4335a4a74d1d810dade2754e382685277a991c;hpb=38a8b42e1f7765a9b3314a033700fb25d4a6f8fd;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 9d4335a..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" @@ -52,95 +51,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::OnLabelSet() - */ - virtual void OnLabelSet(); /** - * @copydoc Toolkit::Internal::Button::OnSelected() + * @copydoc Toolkit::Internal::Button::OnInitialize */ - virtual void OnSelected( bool selected ); + virtual void OnInitialize(); /** - * @copydoc Toolkit::Internal::Button::OnDisabled( bool disabled ) + * @copydoc Toolkit::Internal::Button::OnLabelSet */ - virtual void OnDisabled( bool disabled ); - -private: // From Control + virtual void OnLabelSet( bool noPadding ); /** - * @copydoc Dali::Toolkit::Control::OnRelayout() + * @copydoc Toolkit::Internal::Button::OnDisabled */ - virtual void OnRelayout( const Vector2& size, ActorSizeContainer& container ); - -private: + virtual void OnDisabled(); /** - * Construct a new CheckBoxButton. + * @copydoc Toolkit::Internal::Button::PrepareForTranstionIn( Actor actor ) */ - CheckBoxButton(); + virtual void PrepareForTranstionIn( Actor actor ); /** - * A reference counted object may only be deleted by calling Unreference() + * @copydoc Toolkit::Internal::Button::PrepareForTranstionOut( 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 ); + virtual void PrepareForTranstionOut( 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. + * @copydoc Toolkit::Internal::Button::OnTransitionInImage( Actor 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: @@ -151,10 +110,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