X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-input-method-context.h;h=d53e02a3a029193c3beed26563f94f1b61fe9d9e;hp=cf174cff5a15bb5ef316852c604ffebdcc00f898;hb=6154e1e69b7cd3afb49213c4f6f5730dd3df074e;hpb=781bcb1f3697b58f1da3f662b033345814dd903a diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-input-method-context.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-input-method-context.h index cf174cf..d53e02a 100755 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-input-method-context.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-input-method-context.h @@ -47,7 +47,16 @@ class InputMethodContext : public BaseHandle public: /** - * @brief Events that are generated by the input method context. + * @brief The direction of text. + */ + enum TextDirection + { + LeftToRight, + RightToLeft, + }; + + /** + * @brief Events that are generated by the InputMethodContext. */ enum EventType { @@ -60,7 +69,68 @@ public: }; /** - * @brief This structure is used to pass on data from the input method cotext regarding predictive text. + * @brief Enumeration for state of the input panel. + */ + enum State + { + DEFAULT = 0, ///< Unknown state + SHOW, ///< Input panel is shown + HIDE, ///< Input panel is hidden + WILL_SHOW ///< Input panel in process of being shown + }; + + /** + * @brief Enumeration for the type of Keyboard. + */ + enum KeyboardType + { + SOFTWARE_KEYBOARD, ///< Software keyboard (Virtual keyboard) is default + HARDWARE_KEYBOARD ///< Hardware keyboard + }; + + /** + * @brief Enumeration for the language mode of the input panel. + */ + enum class InputPanelLanguage + { + AUTOMATIC, ///< IME Language automatically set depending on the system display + ALPHABET ///< Latin alphabet at all times + }; + + /** + * @brief Enumeration for the preedit style types. + */ + enum class PreeditStyle + { + NONE, ///< None style + UNDERLINE, ///< Underline substring style + REVERSE, ///< Reverse substring style + HIGHLIGHT, ///< Highlight substring style + CUSTOM_PLATFORM_STYLE_1, ///< Custom style for platform + CUSTOM_PLATFORM_STYLE_2, ///< Custom style for platform + CUSTOM_PLATFORM_STYLE_3, ///< Custom style for platform + CUSTOM_PLATFORM_STYLE_4 ///< Custom style for platform + }; + + /** + * @brief This structure is for the preedit style types and indices. + */ + struct PreeditAttributeData + { + PreeditAttributeData() + : preeditType( PreeditStyle::NONE ), + startIndex( 0 ), + endIndex( 0 ) + { + } + + PreeditStyle preeditType; /// The preedit style type + unsigned int startIndex; /// The start index of preedit + unsigned int endIndex; /// The end index of preedit + }; + + /** + * @brief This structure is used to pass on data from the InputMethodContext regarding predictive text. */ struct EventData { @@ -140,6 +210,8 @@ public: typedef Signal< void () > VoidSignalType; typedef Signal< void (bool) > StatusSignalType; + using PreEditAttributeDataContainer = Vector< Dali::InputMethodContext::PreeditAttributeData >; + public: /** @@ -252,6 +324,20 @@ public: */ bool FilterEventKey( const Dali::KeyEvent& keyEvent ); + /** + * @brief Sets the preedit type. + * + * @param[in] type The preedit style type + */ + void SetPreeditStyle( PreeditStyle type ); + + /** + * @brief Gets the preedit attributes data. + * + * @param[out] attrs The preedit attributes data. + */ + void GetPreeditStyle( Dali::InputMethodContext::PreEditAttributeDataContainer& attrs ) const; + public: // Signals