X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-field-impl.h;h=6e9525d2de0f82a287678292a6d1d7d6de5f5e11;hp=5428275dca1022e4a31c27472a2dcec547c61b1a;hb=73d239b4c5c2c4a558cbaf44bdcc744c8f497c14;hpb=7aa9e3d716396348b89c913b306bbc1ce201db69 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 5428275..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() @@ -137,6 +153,11 @@ private: // From Control */ virtual void RequestTextRelayout(); + /** + * @copydoc Text::ControlInterface::MaxLengthReached() + */ + virtual void MaxLengthReached(); + private: // Implementation /** @@ -164,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;