X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fradio-button-impl.h;h=039a2f00d3ded3ab2928f748e38c4e1a398fe685;hb=88e08dd541d5441bd0b6661e392621c1d6ba4d6a;hp=dc31882572e17ef412ad42bc0b9b211aaa34321f;hpb=2acdedcc7c7e732a9ec97d08c8cee7423ed6ebf7;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/buttons/radio-button-impl.h b/dali-toolkit/internal/controls/buttons/radio-button-impl.h index dc31882..039a2f0 100644 --- a/dali-toolkit/internal/controls/buttons/radio-button-impl.h +++ b/dali-toolkit/internal/controls/buttons/radio-button-impl.h @@ -23,8 +23,8 @@ #include // INTERNAL INCLUDES -#include #include +#include #include "button-impl.h" namespace Dali @@ -41,74 +41,56 @@ namespace Internal */ class RadioButton: public Button { - public: +public: /** * Create a new RadioButton. * - * @return A smart-pointer to the newly allocated PushButton. + * @return A smart-pointer to the newly allocated RadioButton. */ static Dali::Toolkit::RadioButton New(); - /** - * Construct a new PushButton. - */ - RadioButton(); +private: /** - * Construct a new PushButton with label. + * Construct a new RadioButton. */ - RadioButton( const std::string& label ); - - /** - * Construct a new PushButton with label. - */ - RadioButton( Actor label ); + RadioButton(); /** * A reference counted object may only be deleted by calling Unreference() */ virtual ~RadioButton(); - /** - * @copydoc Dali::Toolkit::Button::SetLabel( Actor label ) - */ - virtual void SetLabel( Actor label ); // TODO: After refactoring painter, this will be removed +private: // From Button /** - * @copydoc Dali::Toolkit::Button::SetSelected( bool selected ) + * @copydoc Toolkit::Internal::Button::OnButtonInitialize */ - virtual void SetSelected( bool selected ); + virtual void OnButtonInitialize(); /** - * @copydoc Dali::Toolkit::Control::OnRelayout() + * @copydoc Toolkit::Internal::Button::OnButtonUp */ - virtual void OnRelayout( const Vector2& size, ActorSizeContainer& container ); - - protected: // From Control + virtual void OnButtonUp(); /** - * Sets the relative position of image and label. + * @copydoc Toolkit::Internal::Button::OnSelected */ - virtual void OnInitialize(); + virtual void OnSelected(); - protected: // From Button /** - * Change button state when the button is pressed. + * @copydoc Toolkit::Internal::Button::OnLabelSet */ - virtual void OnButtonUp(); + virtual void OnLabelSet( bool noPadding ); - private: +private: // Undefined RadioButton( const RadioButton& origin ); // Undefined RadioButton& operator=( const RadioButton& origin ); - - Image mUnselectedImage; ///< Stores the unselected image - Image mSelectedImage; ///< Stores the selected image - ImageActor mRadioIcon; ///< Stores the current image }; } // namespace Internal