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=5b85fac164cf90b5a15b154e6595b0a440d7f8bb;hb=ff6ce970724ccc8bee65f7c93411b274907c09d7;hpb=cb6abb2872336c1532a69093f05d8cb333c31f47 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 5b85fac..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,22 +54,51 @@ TextSelectionPopup::~TextSelectionPopup() { } -TextSelectionPopup TextSelectionPopup::DownCast( BaseHandle handle ) +TextSelectionPopup TextSelectionPopup::DownCast(BaseHandle handle) { return Control::DownCast(handle); } -TextSelectionPopup::TextSelectionPopup( Internal::TextSelectionPopup& implementation ) -: Control(implementation) +void TextSelectionPopup::EnableButtons(Toolkit::TextSelectionPopup::Buttons buttonsToEnable) +{ + GetImpl(*this).EnableButtons(buttonsToEnable); +} + +void TextSelectionPopup::RaiseAbove(Actor target) { + GetImpl(*this).RaiseAbove(target); } -TextSelectionPopup::TextSelectionPopup( Dali::Internal::CustomActor* internal ) -: Control( internal ) +void TextSelectionPopup::ShowPopup() { - VerifyCustomActorPointer( internal ); + GetImpl(*this).ShowPopup(); } +void TextSelectionPopup::HidePopup() +{ + GetImpl(*this).HidePopup(); +} + +void TextSelectionPopup::SetProperties(const Dali::Property::Map& properties) +{ + 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