X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-field-impl.h;h=e2759803b0527eac04d07f1a8395354771f08a51;hb=5b3cf0e6742934674bdf62bbe15af00e39eae566;hp=0e53053a85542daa7b14ee1b93e194e4281b07b1;hpb=0a602bfd2ebfc87655895aaaabecce8de5c12d33;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 0e53053..e275980 100644 --- a/dali-toolkit/internal/controls/text-controls/text-field-impl.h +++ b/dali-toolkit/internal/controls/text-controls/text-field-impl.h @@ -27,6 +27,9 @@ #include #include +// EXTERNAL INCLUDES +#include + namespace Dali { @@ -137,6 +140,16 @@ private: // From Control virtual void OnPan( const PanGesture& gesture ); /** + * @copydoc Control::OnLongPress() + */ + virtual void OnLongPress( const LongPressGesture& gesture ); + + /** + * @copydoc Control::OnStageConnection() + */ + virtual void OnStageConnection( int depth ); + + /** * @copydoc Dali::CustomActorImpl::OnKeyEvent(const KeyEvent&) */ virtual bool OnKeyEvent(const KeyEvent& event); @@ -144,7 +157,7 @@ private: // From Control /** * @copydoc Text::ControlInterface::AddDecoration() */ - virtual void AddDecoration( Actor& actor ); + virtual void AddDecoration( Actor& actor, bool needsClipping ); /** * @copydoc Text::ControlInterface::RequestTextRelayout() @@ -166,6 +179,12 @@ private: // From Control */ ImfManager::ImfCallbackData OnImfEvent( ImfManager& imfManager, const ImfManager::ImfEventData& imfEvent ); + /** + * @brief Callback when Clipboard signals an item should be pasted + * @param[in] clipboard handle to Clipboard Event Notifier + */ + void OnClipboardTextSelected( ClipboardEventNotifier& clipboard ); + private: // Implementation /** @@ -205,6 +224,14 @@ private: // Implementation TextField(const TextField&); TextField& operator=(const TextField& rhs); + /** + * @brief Render view, create and attach actor(s) to this Text Field. + */ + void RenderText(); + + // Connection needed to re-render text, when a Text Field returns to the stage. + void OnStageConnect( Dali::Actor actor ); + private: // Data // Signals @@ -215,11 +242,13 @@ private: // Data Text::RendererPtr mRenderer; Text::DecoratorPtr mDecorator; Text::ClipperPtr mClipper; ///< For EXCEED_POLICY_CLIP + std::vector mClippingDecorationActors; ///< Decoration actors which need clipping. - RenderableActor mRenderableActor; + Actor mRenderableActor; int mRenderingBackend; int mExceedPolicy; + bool mHasBeenStaged:1; }; } // namespace Internal