X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Ftext-controls%2Ftext-field.cpp;h=fc5826151a6f0ff37cd328e06a92decaa5441de0;hb=a3b69d118ee5f918a827b23ea76813a7aefad845;hp=d89130201cf02b25f039183550bab9837ddded1f;hpb=cbf1db0d70086e78736daaf1a4f0dc3e832378e3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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 d891302..fc58261 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) 2016 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,16 +27,6 @@ namespace Dali namespace Toolkit { -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"); - TextField TextField::New() { return Internal::TextField::New(); @@ -69,9 +59,19 @@ TextField TextField::DownCast( BaseHandle handle ) return Control::DownCast(handle); } -void TextField::SetRenderer( Text::RendererPtr renderer ) +TextField::TextChangedSignalType& TextField::TextChangedSignal() +{ + return Dali::Toolkit::GetImpl( *this ).TextChangedSignal(); +} + +TextField::MaxLengthReachedSignalType& TextField::MaxLengthReachedSignal() +{ + return Dali::Toolkit::GetImpl( *this ).MaxLengthReachedSignal(); +} + +TextField::InputStyleChangedSignalType& TextField::InputStyleChangedSignal() { - GetImpl(*this).SetRenderer( renderer ); + return Dali::Toolkit::GetImpl( *this ).InputStyleChangedSignal(); } TextField::TextField( Internal::TextField& implementation )