X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fbuttons%2Fradio-button.cpp;h=b43523d79d269510113e5f5a071e9948297324e4;hb=5cc78df05271786e4c1c18a0eaab32e05612df9d;hp=e58f1c5c7a61f72fa2b05fba47550f5334b4f1c6;hpb=306d2f61a1b64179e801fa8a0bb2bd7b4e9dd682;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..b43523d 100644 --- a/dali-toolkit/public-api/controls/buttons/radio-button.cpp +++ b/dali-toolkit/public-api/controls/buttons/radio-button.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2015 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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