X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller.h;h=dfeffdc8295c7e6aa724754a5a1e593125658cb8;hb=refs%2Fchanges%2F78%2F42378%2F6;hp=f1e1d28a979700ab8ffe3e55b8388501d7510796;hpb=fa2506d9a311dfa88be3d559004851f8a0717eb8;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-controller.h b/dali-toolkit/internal/text/text-controller.h index f1e1d28..dfeffdc 100644 --- a/dali-toolkit/internal/text/text-controller.h +++ b/dali-toolkit/internal/text/text-controller.h @@ -103,8 +103,7 @@ public: enum InsertType { COMMIT, - PRE_EDIT, - CLIPBOARD + PRE_EDIT }; /** @@ -504,6 +503,12 @@ public: void InsertText( const std::string& text, InsertType type ); /** + * @brief Checks if text is selected and if so removes it. + * @return true if text was removed + */ + bool RemoveSelectedText(); + + /** * @brief Called by editable UI controls when a tap gesture occurs. * @param[in] tapCount The number of taps. * @param[in] x The x position relative to the top-left of the parent control. @@ -540,6 +545,17 @@ public: ImfManager::ImfCallbackData OnImfEvent( ImfManager& imfManager, const ImfManager::ImfEventData& imfEvent ); /** + * @brief Paste given string into Text model + * @param[in] stringToPaste this string will be inserted into the text model + */ + void PasteText( const std::string& stringToPaste ); + + /** + * @brief Event from Clipboard notifying an Item has been selected for pasting + */ + void PasteClipboardItemEvent(); + + /** * @copydoc Dali::Toolkit::Text::Decorator::ControllerInterface::GetTargetSize() */ virtual void GetTargetSize( Vector2& targetSize ); @@ -569,6 +585,13 @@ protected: private: /** + * @brief Helper to KeyEvent() to handle the backspace case. + * + * @return True if a character was deleted. + */ + bool BackspaceKeyEvent(); + + /** * @brief Helper to clear font-specific data. */ void ShowPlaceholderText();