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=9f9251830dc1efaf3c98c7ac9b24f77ce2d9d354;hp=4b9f548dc88e07805e2142c963044fe3ccede32e;hb=3d655cb57a51fee5d3a887aa36f4c6b8b77c2f7d;hpb=c2c26bbf1ab67ccf1a74c920ab1189cf24255daf 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..9f92518 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,21 @@ 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 ) +TextSelectionPopup::TextSelectionPopup(Internal::TextSelectionPopup& implementation) +: Control(implementation) { - VerifyCustomActorPointer( internal ); } +TextSelectionPopup::TextSelectionPopup(Dali::Internal::CustomActor* internal) +: Control(internal) +{ + VerifyCustomActorPointer(internal); +} } // namespace Toolkit