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=531b53b99353f31f2867270731f88e985f5156aa;hp=ec0ac2c824e6b03b5e31473bac82210036688c35;hb=8a647e87a01c5c78451653c1264a9eea81ac9b20;hpb=0de4495ae0ad22b60ce3d1257e30628ea518f377 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 ec0ac2c..531b53b 100644 --- a/dali-toolkit/internal/controls/buttons/check-box-button-impl.h +++ b/dali-toolkit/internal/controls/buttons/check-box-button-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_H__ -#define __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_H__ +#ifndef DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_H +#define DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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,7 +20,6 @@ // EXTERNAL INCLUDES #include -#include // INTERNAL INCLUDES #include @@ -63,43 +62,13 @@ private: */ virtual ~CheckBoxButton(); - /** - * Setup the ticking effect to the selected image. - */ - void SetTickUVEffect(); - private: // From Button /** * @copydoc Toolkit::Internal::Button::OnInitialize */ - virtual void OnInitialize(); - - /** - * @copydoc Toolkit::Internal::Button::OnLabelSet - */ - virtual void OnLabelSet( bool noPadding ); - - /** - * @copydoc Toolkit::Internal::Button::OnDisabled - */ - virtual void OnDisabled(); - - /** - * @copydoc Toolkit::Internal::Button::PrepareForTranstionIn( Actor actor ) - */ - virtual void PrepareForTranstionIn( Actor actor ); - - /** - * @copydoc Toolkit::Internal::Button::PrepareForTranstionOut( Actor actor ) - */ - virtual void PrepareForTranstionOut( Actor actor ); - - /** - * @copydoc Toolkit::Internal::Button::OnTransitionInImage( Actor actor ) - */ - virtual void OnTransitionIn( Actor actor ); + void OnInitialize() override; private: @@ -108,9 +77,14 @@ private: // Undefined CheckBoxButton& operator=( const CheckBoxButton& ); - -private: - Actor mSelectedImage; +protected: + struct AccessibleImpl : public Button::AccessibleImpl + { + using Button::AccessibleImpl::AccessibleImpl; + + Dali::Accessibility::States CalculateStates() override; + }; + void OnStateChange( State newState ) override; }; } // namespace Internal @@ -139,4 +113,4 @@ inline const Toolkit::Internal::CheckBoxButton& GetImplementation( const Toolkit } // namespace Dali -#endif // __DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_H__ +#endif // DALI_TOOLKIT_INTERNAL_CHECK_BOX_BUTTON_H