X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fbuttons%2Fradio-button.cpp;h=c6982257cabff7c84d27d832e3d1c16b0fd2ba49;hb=dc3613bb6248908c267a76e378b04962bce85664;hp=e58f1c5c7a61f72fa2b05fba47550f5334b4f1c6;hpb=2ddfbb9e23a7c3fc30e604236c41e0ef6d2ed6a2;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/buttons/radio-button.cpp b/dali-toolkit/public-api/controls/buttons/radio-button.cpp index e58f1c5..c698225 100644 --- a/dali-toolkit/public-api/controls/buttons/radio-button.cpp +++ b/dali-toolkit/public-api/controls/buttons/radio-button.cpp @@ -34,17 +34,17 @@ RadioButton::RadioButton() { } -RadioButton::RadioButton(Internal::RadioButton& implementation) - : Button(implementation) +RadioButton::RadioButton( Internal::RadioButton& implementation ) + : Button( implementation ) { } -RadioButton::RadioButton(const RadioButton& radioButton) - : Button(radioButton) +RadioButton::RadioButton( const RadioButton& radioButton ) + : Button( radioButton ) { } -RadioButton& RadioButton::operator=(const RadioButton& radioButton ) +RadioButton& RadioButton::operator=( const RadioButton& radioButton ) { if( &radioButton != this ) { @@ -53,8 +53,8 @@ RadioButton& RadioButton::operator=(const RadioButton& radioButton ) return *this; } -RadioButton::RadioButton(Dali::Internal::CustomActor* internal) - : Button(internal) +RadioButton::RadioButton( Dali::Internal::CustomActor* internal ) + : Button( internal ) { VerifyCustomActorPointer( internal ); } @@ -68,55 +68,25 @@ RadioButton RadioButton::New() return Internal::RadioButton::New(); } -RadioButton RadioButton::New(const std::string& label) +RadioButton RadioButton::New( const std::string& label ) { RadioButton radioButton = Internal::RadioButton::New(); - radioButton.SetLabel(label); + radioButton.SetLabel( label ); return radioButton; } -RadioButton RadioButton::New(Actor label) +RadioButton RadioButton::New( Actor label ) { RadioButton radioButton = Internal::RadioButton::New(); - radioButton.SetLabel(label); + radioButton.SetLabel( label ); return radioButton; } -RadioButton RadioButton::DownCast(BaseHandle handle) +RadioButton RadioButton::DownCast( BaseHandle handle ) { return Control::DownCast( handle ); } -void RadioButton::SetLabel(const std::string& label) -{ - Dali::Toolkit::GetImplementation(*this).SetLabel(label); -} - -void RadioButton::SetLabel(Actor label) -{ - Dali::Toolkit::GetImplementation(*this).SetLabel(label); -} - -Actor RadioButton::GetLabel() const -{ - return Dali::Toolkit::GetImplementation(*this).GetLabel(); -} - -void RadioButton::SetSelected(bool selected) -{ - Dali::Toolkit::GetImplementation(*this).SetSelected(selected); -} - -bool RadioButton::IsSelected()const -{ - return Dali::Toolkit::GetImplementation(*this).IsSelected(); -} - -void RadioButton::ToggleState() -{ - Dali::Toolkit::GetImplementation(*this).ToggleState(); -} - } // namespace Toolkit } // namespace Dali