X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-selection-popup.cpp;h=5d953dbb04622a71cff138687938df4aef44f2f5;hp=4b9f548dc88e07805e2142c963044fe3ccede32e;hb=ff6ce970724ccc8bee65f7c93411b274907c09d7;hpb=536dbd95b845181336b94928d26e92b2f5da47fc diff --git a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.cpp b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.cpp index 4b9f548..5d953db 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.cpp +++ b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -25,31 +25,27 @@ using namespace Dali; namespace Dali { - namespace Toolkit { - -TextSelectionPopup TextSelectionPopup::New( Buttons enabledButtons, - TextSelectionPopupCallbackInterface* callbackInterface ) +TextSelectionPopup TextSelectionPopup::New(TextSelectionPopupCallbackInterface* callbackInterface) { - return Internal::TextSelectionPopup::New( enabledButtons, - callbackInterface ); + return Internal::TextSelectionPopup::New(callbackInterface); } TextSelectionPopup::TextSelectionPopup() { } -TextSelectionPopup::TextSelectionPopup( const TextSelectionPopup& handle ) -: Control( handle ) +TextSelectionPopup::TextSelectionPopup(const TextSelectionPopup& handle) +: Control(handle) { } -TextSelectionPopup& TextSelectionPopup::operator=( const TextSelectionPopup& handle ) +TextSelectionPopup& TextSelectionPopup::operator=(const TextSelectionPopup& handle) { - if( &handle != this ) + if(&handle != this) { - Control::operator=( handle ); + Control::operator=(handle); } return *this; } @@ -58,14 +54,19 @@ TextSelectionPopup::~TextSelectionPopup() { } -TextSelectionPopup TextSelectionPopup::DownCast( BaseHandle handle ) +TextSelectionPopup TextSelectionPopup::DownCast(BaseHandle handle) { return Control::DownCast(handle); } -void TextSelectionPopup::RaiseAbove( Layer target ) +void TextSelectionPopup::EnableButtons(Toolkit::TextSelectionPopup::Buttons buttonsToEnable) +{ + GetImpl(*this).EnableButtons(buttonsToEnable); +} + +void TextSelectionPopup::RaiseAbove(Actor target) { - GetImpl(*this).RaiseAbove( target ); + GetImpl(*this).RaiseAbove(target); } void TextSelectionPopup::ShowPopup() @@ -73,17 +74,31 @@ void TextSelectionPopup::ShowPopup() GetImpl(*this).ShowPopup(); } -TextSelectionPopup::TextSelectionPopup( Internal::TextSelectionPopup& implementation ) -: Control(implementation) +void TextSelectionPopup::HidePopup() { + GetImpl(*this).HidePopup(); } -TextSelectionPopup::TextSelectionPopup( Dali::Internal::CustomActor* internal ) -: Control( internal ) +void TextSelectionPopup::SetProperties(const Dali::Property::Map& properties) { - VerifyCustomActorPointer( internal ); + GetImpl(*this).SetProperties(properties); } +void TextSelectionPopup::GetProperties(Dali::Property::Map& properties) +{ + GetImpl(*this).GetProperties(properties); +} + +TextSelectionPopup::TextSelectionPopup(Internal::TextSelectionPopup& implementation) +: Control(implementation) +{ +} + +TextSelectionPopup::TextSelectionPopup(Dali::Internal::CustomActor* internal) +: Control(internal) +{ + VerifyCustomActorPointer(internal); +} } // namespace Toolkit