X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-label-impl.h;h=a204be6c8644a9e67d94826cd9aa4069c8ba0ee3;hb=4bcf7c57006f4241565c31c13dde06b8eea99855;hp=e9ad7a75b739c8aa37bf12ef9524103e4d8e9280;hpb=b8f550700dbe3304f217b3dc7a240854089b8b4e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/text-controls/text-label-impl.h b/dali-toolkit/internal/controls/text-controls/text-label-impl.h index e9ad7a7..a204be6 100644 --- a/dali-toolkit/internal/controls/text-controls/text-label-impl.h +++ b/dali-toolkit/internal/controls/text-controls/text-label-impl.h @@ -24,6 +24,7 @@ // INTERNAL INCLUDES #include #include +#include #include #include #include @@ -41,7 +42,7 @@ namespace Internal /** * @brief A control which renders a short text string. */ -class TextLabel : public Control, public Text::ControlInterface, public Text::ScrollerInterface +class TextLabel : public Control, public Text::ControlInterface, public Text::ScrollerInterface, public Text::AnchorControlInterface { public: /** @@ -69,6 +70,22 @@ public: */ static Property::Value GetProperty(BaseObject* object, Property::Index index); + /** + * @copydoc Dali::Toollkit::TextLabel::AnchorClickedSignal() + */ + DevelTextLabel::AnchorClickedSignalType& AnchorClickedSignal(); + + /** + * 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); + Text::ControllerPtr getController(); private: // From Control @@ -88,6 +105,11 @@ private: // From Control void OnRelayout(const Vector2& size, RelayoutContainer& container) override; /** + * @copydoc Control::OnTap() + */ + void OnTap(const TapGesture& tap) override; + + /** * @copydoc Control::GetNaturalSize() */ Vector3 GetNaturalSize() override; @@ -115,6 +137,12 @@ private: // from TextScroller */ void ScrollingFinished() override; +public: // From AnchorControlInterface + /** + * @copydoc Text::AnchorControlInterface::AnchorClicked() + */ + void AnchorClicked(const std::string& href) override; + private: // Implementation /** * Construct a new TextLabel. @@ -155,6 +183,9 @@ private: // Data Toolkit::Visual::Base mVisual; + // Signals + Toolkit::DevelTextLabel::AnchorClickedSignalType mAnchorClickedSignal; + int mRenderingBackend; bool mTextUpdateNeeded : 1;