*/
class RadioButton: public Button
{
- public:
+public:
/**
* Create a new RadioButton.
/**
* 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