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=ec3ad655c832a55ab644fe63a04baa79ca81a003;hb=ff6ce970724ccc8bee65f7c93411b274907c09d7;hpb=5419ef62a5e3ee36785444083e914804268ea488 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 ec3ad65..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,27 +54,51 @@ 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).RaiseAbove( target ); + GetImpl(*this).EnableButtons(buttonsToEnable); } -TextSelectionPopup::TextSelectionPopup( Internal::TextSelectionPopup& implementation ) -: Control(implementation) +void TextSelectionPopup::RaiseAbove(Actor target) +{ + GetImpl(*this).RaiseAbove(target); +} + +void TextSelectionPopup::ShowPopup() +{ + GetImpl(*this).ShowPopup(); +} + +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