X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fradio-button-impl.h;h=db289052e51602e1bdbe41995c740976650a45bc;hb=d011049f576aaf534d52180829398b917e08de04;hp=07c622ba6c97c6448e0fb223104572ebd94f0c76;hpb=57869973578f6a0b0f836d396c7232ddb8302c6b;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 07c622b..db28905 100644 --- a/dali-toolkit/internal/controls/buttons/radio-button-impl.h +++ b/dali-toolkit/internal/controls/buttons/radio-button-impl.h @@ -41,7 +41,7 @@ namespace Internal */ class RadioButton: public Button { - public: +public: /** * Create a new RadioButton. @@ -58,93 +58,67 @@ class RadioButton: public Button /** * Construct a new PushButton with label. */ - RadioButton(const std::string& label); + RadioButton( const std::string& label ); /** * Construct a new PushButton with label. */ - RadioButton(Actor label); + RadioButton( Actor label ); /** * A reference counted object may only be deleted by calling Unreference() */ virtual ~RadioButton(); - /** - * @copydoc Dali::Toolkit::RadioButton::SetLabel(const std::string& label) - */ - void SetLabel(const std::string& label); +public: // From Button /** - * @copydoc Dali::Toolkit::RadioButton::SetLabel(Actor label) + * @copydoc Toolkit::Internal::Button::SetButtonImage( Actor image ) */ - void SetLabel(Actor label); + virtual void SetButtonImage( Actor image ); /** - * @copydoc Dali::Toolkit::RadioButton::GetLabel() + * @copydoc Toolkit::Internal::Button::SetSelectedImage( Actor image ) */ - Actor GetLabel() const; + virtual void SetSelectedImage( Actor image ); - /** - * @copydoc Dali::Toolkit::RadioButton::SetSelected(bool selected) - */ - void SetSelected(bool selected); +private: // From Button /** - * @copydoc Dali::Toolkit::RadioButton::IsSelected() + * @copydoc Toolkit::Internal::Button::OnButtonInitialize() */ - bool IsSelected()const; + virtual void OnButtonInitialize(); /** - * @copydoc Dali::Toolkit::RadioButton::ToggleState() + * @copydoc Toolkit::Internal::Button::OnButtonUp() */ - void ToggleState(); - - /** - * @copydoc Dali::Toolkit::Control::OnRelayout() - */ - virtual void OnRelayout( const Vector2& size, ActorSizeContainer& container ); - - public: - // Properties + virtual void OnButtonUp(); /** - * @copydoc Button::SetProperty + * @copydoc Toolkit::Internal::Button::OnSelected() */ - static void SetProperty(BaseObject* object, Property::Index propertyIndex, const Property::Value& value); + virtual void OnSelected( bool selected ); /** - * @copydoc Button::GetProperty + * @copydoc Toolkit::Internal::Button::OnLabelSet() */ - static Property::Value GetProperty(BaseObject* object, Property::Index propertyIndex); + virtual void OnLabelSet(); - protected: // From Control - - /** - * Sets the relative position of image and label. - */ - virtual void OnInitialize(); +private: // From Control - protected: // From Button /** - * Change button state when the button is pressed. + * @copydoc Dali::Toolkit::Control::OnRelayout() */ - virtual void OnButtonUp(); + virtual void OnRelayout( const Vector2& size, ActorSizeContainer& container ); - private: +private: // Undefined - RadioButton(const RadioButton& origin); + 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 - Actor mLabel; ///< Stores the button label - bool mSelected; ///< Stores the selected state -} ; + RadioButton& operator=( const RadioButton& origin ); +}; } // namespace Internal