X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Ftext-controls%2Ftext-field.cpp;h=1ebedb6e04679af05cbb367ea0c180acf626cfe1;hp=397f6a5d11c8bfa1eb89a72bcce1d99e6c082fd8;hb=4593cc619ab0739fc8586c0c752209c555b0c8e3;hpb=297b1b9a9b6ed72fe98d5afb018ff4d1c951ce7d diff --git a/dali-toolkit/public-api/controls/text-controls/text-field.cpp b/dali-toolkit/public-api/controls/text-controls/text-field.cpp index 397f6a5..1ebedb6 100644 --- a/dali-toolkit/public-api/controls/text-controls/text-field.cpp +++ b/dali-toolkit/public-api/controls/text-controls/text-field.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. @@ -27,18 +27,6 @@ namespace Dali namespace Toolkit { -const std::string TextField::RENDERING_BACKEND_PROPERTY_NAME("rendering-backend"); -const std::string TextField::PLACEHOLDER_TEXT_PROPERTY_NAME("placeholder-text"); -const std::string TextField::TEXT_PROPERTY_NAME("text"); -const std::string TextField::CURSOR_IMAGE_PROPERTY_NAME("cursor-image"); -const std::string TextField::PRIMARY_CURSOR_COLOR_PROPERTY_NAME("primary-cursor-color"); -const std::string TextField::SECONDARY_CURSOR_COLOR_PROPERTY_NAME("secondary-cursor-color"); -const std::string TextField::ENABLE_CURSOR_BLINK_PROPERTY_NAME("enable-cursor-blink"); -const std::string TextField::CURSOR_BLINK_INTERVAL_PROPERTY_NAME("cursor-blink-interval"); -const std::string TextField::CURSOR_BLINK_DURATION_PROPERTY_NAME("cursor-blink-duration"); -const std::string TextField::GRAB_HANDLE_IMAGE_PROPERTY_NAME("grab-handle-image"); -const std::string TextField::DECORATION_BOUNDING_BOX("decoration-bounding-box"); - TextField TextField::New() { return Internal::TextField::New(); @@ -48,27 +36,36 @@ TextField::TextField() { } -TextField::TextField( const TextField& handle ) -: Control( handle ) +TextField::TextField( const TextField& handle ) = default; + +TextField::TextField( TextField&& rhs ) = default; + +TextField& TextField::operator=( const TextField& handle ) = default; + +TextField& TextField::operator=( TextField&& rhs ) = default; + +TextField::~TextField() +{ +} + +TextField TextField::DownCast( BaseHandle handle ) { + return Control::DownCast(handle); } -TextField& TextField::operator=( const TextField& handle ) +TextField::TextChangedSignalType& TextField::TextChangedSignal() { - if( &handle != this ) - { - Control::operator=( handle ); - } - return *this; + return Dali::Toolkit::GetImpl( *this ).TextChangedSignal(); } -TextField::~TextField() +TextField::MaxLengthReachedSignalType& TextField::MaxLengthReachedSignal() { + return Dali::Toolkit::GetImpl( *this ).MaxLengthReachedSignal(); } -TextField TextField::DownCast( BaseHandle handle ) +TextField::InputStyleChangedSignalType& TextField::InputStyleChangedSignal() { - return Control::DownCast(handle); + return Dali::Toolkit::GetImpl( *this ).InputStyleChangedSignal(); } TextField::TextField( Internal::TextField& implementation )