X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fcheck-box-button-impl.h;h=0135e6b5b349b00d26ee6ac0b7aa3d68742c0064;hb=31df2b9472ccbe0ae460a958535be8ef790c96f2;hp=619a5714856ab29d150107d5cc373d30390741df;hpb=87f440c3d0367ca5a7027eef8d01d79b8703cf05;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 619a571..0135e6b 100644 --- a/dali-toolkit/internal/controls/buttons/check-box-button-impl.h +++ b/dali-toolkit/internal/controls/buttons/check-box-button-impl.h @@ -18,10 +18,15 @@ * */ -// INTERNAL INCLUDES +// EXTERNAL INCLUDES #include +#include +#include + +// INTERNAL INCLUDES #include +#include #include "button-impl.h" @@ -49,7 +54,7 @@ public: */ static Dali::Toolkit::CheckBoxButton New(); -protected: +private: /** * Construct a new CheckBoxButton. @@ -61,6 +66,56 @@ protected: */ virtual ~CheckBoxButton(); +private: // From Button + + + /** + * @copydoc Toolkit::Internal::Button::OnButtonInitialize() + */ + virtual void OnButtonInitialize(); + + /** + * @copydoc Toolkit::Internal::Button::OnLabelSet() + */ + virtual void OnLabelSet(); + + /** + * @copydoc Toolkit::Internal::Button::OnSelected() + */ + virtual bool OnSelected(); + + /** + * @copydoc Toolkit::Internal::Button::OnDisabled() + */ + virtual bool OnDisabled(); + + /** + * @copydoc Toolkit::Internal::Button::StopAllAnimations() + */ + virtual void StopAllAnimations(); + +private: + + /** + * Adds the actor to the transition animation. + * It creates a transition animation if needed and starts the animation. + * @param[in] actor The actor. + */ + void StartTransitionAnimation( Actor& actor ); + + /** + * Stops the transition animation. + * @param[in] remove If true, removes the fadeout actor from root. + */ + void StopTransitionAnimation( bool remove = true ); + + // slots + + /** + * Called when the transition animation finishes. + */ + void TransitionAnimationFinished( Dali::Animation& source ); + private: // Undefined @@ -68,6 +123,10 @@ private: // Undefined CheckBoxButton& operator=( const CheckBoxButton& ); + +private: + Animation mTransitionAnimation; ///< Animation used in the state transitions. + ShaderEffect mTickUVEffect; ///< ImageRegionEffect to expand the tick across }; } // namespace Internal