X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-field-impl.h;h=6e9525d2de0f82a287678292a6d1d7d6de5f5e11;hb=dce4534d43ed90c6b5d1a412a06d4171a607971a;hp=fa55c77ee52be42bd8d71807af3771555c17c3aa;hpb=1134791cdb74ee5826f0027638f1422abb16b6fc;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/text-controls/text-field-impl.h b/dali-toolkit/internal/controls/text-controls/text-field-impl.h index fa55c77..6e9525d 100644 --- a/dali-toolkit/internal/controls/text-controls/text-field-impl.h +++ b/dali-toolkit/internal/controls/text-controls/text-field-impl.h @@ -19,7 +19,7 @@ */ // EXTERNAL INCLUDES -#include +#include // INTERNAL INCLUDES #include @@ -71,6 +71,22 @@ public: */ static Property::Value GetProperty( BaseObject* object, Property::Index index ); + /** + * Connects a callback function with the object's signals. + * @param[in] object The object providing the signal. + * @param[in] tracker Used to disconnect the signal. + * @param[in] signalName The signal to connect to. + * @param[in] functor A newly allocated FunctorDelegate. + * @return True if the signal was connected. + * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor. + */ + static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor ); + + /** + * @copydoc TextField::MaxLengthReachedSignal() + */ + Toolkit::TextField::MaxLengthReachedSignalType& MaxLengthReachedSignal(); + private: // From Control /** @@ -81,7 +97,7 @@ private: // From Control /** * @copydoc Control::OnStyleChange() */ - virtual void OnStyleChange( Toolkit::StyleManager styleManager, StyleChange change ); + virtual void OnStyleChange( Toolkit::StyleManager styleManager, StyleChange::Type change ); /** * @copydoc Control::GetNaturalSize() @@ -96,7 +112,7 @@ private: // From Control /** * @copydoc Control::OnInitialize() */ - virtual void OnRelayout( const Vector2& size, ActorSizeContainer& container ); + virtual void OnRelayout( const Vector2& size, RelayoutContainer& container ); /** * @copydoc Control::OnKeyInputFocusGained() @@ -109,11 +125,16 @@ private: // From Control virtual void OnKeyInputFocusLost(); /** - * Received for single & double taps + * @copydoc Control::OnTap() */ virtual void OnTap( const TapGesture& tap ); /** + * @copydoc Control::OnPan() + */ + virtual void OnPan( const PanGesture& gesture ); + + /** * @copydoc Dali::CustomActorImpl::OnKeyEvent(const KeyEvent&) */ virtual bool OnKeyEvent(const KeyEvent& event); @@ -132,6 +153,11 @@ private: // From Control */ virtual void RequestTextRelayout(); + /** + * @copydoc Text::ControlInterface::MaxLengthReached() + */ + virtual void MaxLengthReached(); + private: // Implementation /** @@ -159,14 +185,15 @@ private: // Implementation */ virtual ~TextField(); -private: - // Undefined copy constructor and assignment operators TextField(const TextField&); TextField& operator=(const TextField& rhs); private: // Data + // Signals + Toolkit::TextField::MaxLengthReachedSignalType mMaxLengthReachedSignal; + Text::ControllerPtr mController; Text::RendererPtr mRenderer; Text::DecoratorPtr mDecorator;