*/
// EXTERNAL INCLUDES
-#include <dali/public-api/actors/image-actor.h>
#include <dali/public-api/common/dali-vector.h>
// INTERNAL INCLUDES
-#include <dali-toolkit/public-api/controls/text-view/text-view.h>
#include <dali-toolkit/public-api/controls/buttons/radio-button.h>
+#include <dali-toolkit/public-api/controls/table-view/table-view.h>
#include "button-impl.h"
namespace Dali
*/
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::RadioButton::SetLabel(const std::string& label)
- */
- void SetLabel(const std::string& label);
-
- /**
- * @copydoc Dali::Toolkit::RadioButton::SetLabel(Actor label)
- */
- void SetLabel(Actor label);
-
- /**
- * @copydoc Dali::Toolkit::RadioButton::GetLabel()
- */
- Actor GetLabel() const;
-
- /**
- * @copydoc Dali::Toolkit::RadioButton::SetSelected(bool selected)
- */
- void SetSelected(bool selected);
-
- /**
- * @copydoc Dali::Toolkit::RadioButton::IsSelected()
- */
- bool IsSelected()const;
+private: // From Button
/**
- * @copydoc Dali::Toolkit::RadioButton::ToggleState()
+ * @copydoc Toolkit::Internal::Button::OnInitialize
*/
- void ToggleState();
-
- /**
- * @copydoc Dali::Toolkit::Control::OnRelayout()
- */
- virtual void OnRelayout( const Vector2& size, ActorSizeContainer& container );
-
- public:
- // Properties
-
- /**
- * @copydoc Button::SetProperty
- */
- static void SetProperty(BaseObject* object, Property::Index propertyIndex, const Property::Value& value);
-
- /**
- * @copydoc Button::GetProperty
- */
- static Property::Value GetProperty(BaseObject* object, Property::Index propertyIndex);
-
- protected: // From Control
+ virtual void OnInitialize();
/**
- * Sets the relative position of image and label.
+ * @copydoc Toolkit::Internal::Button::OnStateChange
*/
- virtual void OnInitialize();
+ virtual void OnStateChange( State newState );
- protected: // From Button
/**
- * Change button state when the button is pressed.
+ * @copydoc Toolkit::Internal::Button::OnToggleReleased
*/
- virtual void OnButtonUp();
+ virtual bool OnToggleReleased();
- 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