wgui_categories_inputs.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:1705k
源码类别:
MTK
开发平台:
C/C++
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_DANISH(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_DANISH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_danish
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_danish(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_DANISH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_DANISH__) || defined(__MMI_ZI_DANISH__) */
- #if defined(__MMI_T9_POLISH__) || defined(__MMI_ZI_POLISH__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_POLISH
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_POLISH(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_POLISH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_polish
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_polish(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_POLISH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_POLISH__) || defined(__MMI_ZI_POLISH__) */
- #if defined(__MMI_T9_FRENCH__) || defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_FRENCH
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_FRENCH(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_FRENCH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_french
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_french(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_FRENCH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_FRENCH__) || defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__) */
- #if defined(__MMI_T9_GERMAN__) || defined(__MMI_ZI_GERMAN__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_GERMAN
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_GERMAN(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_GERMAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_german
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_german(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_GERMAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_GERMAN__) || defined(__MMI_ZI_GERMAN__) */
- #if defined(__MMI_T9_ITALIAN__) || defined(__MMI_ZI_ITALIAN__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_ITALIAN
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_ITALIAN(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_ITALIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_italian
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_italian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_ITALIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_ITALIAN__) || defined(__MMI_ZI_ITALIAN__) */
- #if defined (__MMI_T9_RUSSIAN__) || defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) || defined(__MMI_CSTAR_RUSSIAN__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_RUSSIAN
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_RUSSIAN(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_RUSSIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_russian
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_russian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_RUSSIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined (__MMI_T9_RUSSIAN__) || defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) */
- #if defined (__MMI_T9_BULGARIAN__) || defined(__MMI_ZI_BULGARIAN__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_BULGARIAN
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_BULGARIAN(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_BULGARIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_bulgarian
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_bulgarian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_BULGARIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined (__MMI_T9_BULGARIAN__) || defined(__MMI_ZI_BULGARIAN__) */
- #if defined(__MMI_ZI_TURKISH__) || defined(__MMI_T9_TURKISH__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_TURKISH
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_TURKISH(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_TURKISH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_turkish
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_turkish(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_TURKISH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_ZI_TURKISH__) || defined(__MMI_T9_TURKISH__) */
- #if defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_PORTUGUESE
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_PORTUGUESE(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_PORTUGUESE;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_portuguese
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_portuguese(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_PORTUGUESE;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__) */
- #if defined(__MMI_ZI_INDONESIAN__) || defined(__MMI_T9_INDONESIAN__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_INDONESIAN
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_INDONESIAN(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_INDONESIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_indonesian
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_indonesian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_INDONESIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_ZI_INDONESIAN__) || defined(__MMI_T9_INDONESIAN__) */
- #if defined(__MMI_ZI_CZECH__) || defined(__MMI_T9_CZECH__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_CZECH
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_CZECH(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_CZECH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_czech
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_czech(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_CZECH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_ZI_CZECH__) || defined(__MMI_T9_CZECH__) */
- #if defined(__MMI_ZI_MALAY__) || defined(__MMI_T9_MALAY__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_MALAY
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_MALAY(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_MALAY;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_malay
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_malay(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_MALAY;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_ZI_MALAY__) || defined(__MMI_T9_MALAY__) */
- #if defined(__MMI_ZI_VIETNAMESE__) || defined(__MMI_T9_VIETNAMESE__) || defined(__MMI_CSTAR_VIETNAMESE__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_VIETNAMESE
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_VIETNAMESE(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_VIETNAMESE;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_vietnamese
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_vietnamese(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_VIETNAMESE;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_ZI_VIETNAMESE__) || defined(__MMI_T9_VIETNAMESE__) */
- #if defined(__MMI_T9_FINNISH__) || defined(__MMI_ZI_FINNISH__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_FINNISH
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_FINNISH(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_FINNISH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_finnish
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_finnish(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_FINNISH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_FINNISH__) || defined(__MMI_ZI_FINNISH__) */
- #if defined(__MMI_ZI_HUNGARIAN__) || defined(__MMI_T9_HUNGARIAN__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_HUNGARIAN
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_HUNGARIAN(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_HUNGARIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_hungarian
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_hungarian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_HUNGARIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_ZI_HUNGARIAN__) || defined(__MMI_T9_HUNGARIAN__) */
- #if defined(__MMI_T9_SLOVAK__) || defined(__MMI_ZI_SLOVAK__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_SLOVAK
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_SLOVAK(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_SLOVAK;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_slovak
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_slovak(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_SLOVAK;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_SLOVAK__) || defined(__MMI_ZI_SLOVAK__) */
- #if defined(__MMI_ZI_DUTCH__) || defined(__MMI_T9_DUTCH__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_DUTCH
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_DUTCH(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_DUTCH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_dutch
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_dutch(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_DUTCH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_ZI_DUTCH__) || defined(__MMI_T9_DUTCH__) */
- #if defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_ZI_NORWEGIAN__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_NORWEGIAN
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_NORWEGIAN(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_NORWEGIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_norwegian
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_norwegian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_NORWEGIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_ZI_NORWEGIAN__) */
- #if defined(__MMI_T9_SWEDISH__) || defined(__MMI_ZI_SWEDISH__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_SWEDISH
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_SWEDISH(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_SWEDISH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_swedish
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_swedish(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_SWEDISH;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_SWEDISH__) || defined(__MMI_ZI_SWEDISH__) */
- #if defined(__MMI_T9_CROATIAN__) || defined(__MMI_ZI_CROATIAN__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_CROATIAN
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_CROATIAN(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_CROATIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_croatian
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_croatian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_CROATIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_CROATIAN__) || defined(__MMI_ZI_CROATIAN__) */
- #if defined(__MMI_ZI_ROMANIAN__) || defined(__MMI_T9_ROMANIAN__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_ROMANIAN
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_ROMANIAN(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_ROMANIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_romanian
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_romanian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_ROMANIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_ZI_ROMANIAN__) || defined(__MMI_T9_ROMANIAN__) */
- #if defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_ZI_SLOVENIAN__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_SLOVENIAN
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_SLOVENIAN(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_SLOVENIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_slovenian
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_slovenian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_SLOVENIAN;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_ZI_SLOVENIAN__) */
- #if defined(__MMI_T9_GREEK__) || defined(__MMI_ZI_GREEK__)
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_GREEK
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_GREEK(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_GREEK;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_EMS_inputbox_change_input_mode_smart_greek
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_EMS_inputbox_change_input_mode_smart_greek(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_GREEK;
- wgui_EMS_inputbox_input_mode_changed = 1;
- }
- #endif /* defined(__MMI_T9_GREEK__) || defined(__MMI_ZI_GREEK__) */
- #endif /* defined(__MMI_T9__) || defined(__MMI_ZI__) || defined(__MMI_KA__) || defined(__MMI_ITAP__) */
- /*****************************************************************************
- * FUNCTION
- * SetCategory28RightSoftkeyFunction
- * DESCRIPTION
- *
- * PARAMETERS
- * f [IN]
- * k [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void SetCategory28RightSoftkeyFunction(void (*f) (void), MMI_key_event_type k)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- UI_UNUSED_PARAMETER(k);
- category28_RSK_function = f;
- }
- /*****************************************************************************
- * FUNCTION
- * handle_category28_right_softkey_down
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void handle_category28_right_softkey_down(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- disable_active_multitap();
- #if(UI_DISABLE_EMS_INPUT_BOX)
- if (MMI_multiline_inputbox.text_length > 1)
- {
- multiline_inputbox_delete_character();
- }
- #else /* (UI_DISABLE_EMS_INPUT_BOX) */
- if (!gui_EMS_inputbox_empty(&MMI_EMS_inputbox))
- {
- EMS_inputbox_backspace();
- }
- #endif /* (UI_DISABLE_EMS_INPUT_BOX) */
- }
- /*****************************************************************************
- * FUNCTION
- * handle_category28_right_softkey_up
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void handle_category28_right_softkey_up(void)
- {
- #if(UI_DISABLE_EMS_INPUT_BOX)
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if ((MMI_multiline_inputbox.text_length <= 1) && (!category28_RSK_label_clear))
- {
- if (category28_RSK_function != NULL)
- {
- category28_RSK_function();
- }
- }
- #else /* (UI_DISABLE_EMS_INPUT_BOX) */
- if (category28_RSK_function != NULL)
- {
- category28_RSK_function();
- }
- #endif /* (UI_DISABLE_EMS_INPUT_BOX) */
- }
- /*****************************************************************************
- * FUNCTION
- * register_category28_handle_right_softkey_up
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void register_category28_handle_right_softkey_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- set_right_softkey_function(handle_category28_right_softkey_up, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * register_category28_handle_clear_key_up
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void register_category28_handle_clear_key_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetKeyHandler(handle_category28_right_softkey_up, KEY_CLEAR, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * handle_category28_right_softkey_long_press
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void handle_category28_right_softkey_long_press(void)
- {
- #if(UI_DISABLE_EMS_INPUT_BOX)
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- multiline_inputbox_delete_all_characters();
- #else /* (UI_DISABLE_EMS_INPUT_BOX) */
- EMS_inputbox_delete_all();
- #endif /* (UI_DISABLE_EMS_INPUT_BOX) */
- }
- /*****************************************************************************
- * FUNCTION
- * handle_category28_input
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void handle_category28_input(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EMS_inputbox_has_changed = 1;
- #if(UI_DISABLE_EMS_INPUT_BOX)
- if (MMI_multiline_inputbox.text_length > 1)
- {
- #if defined(__MMI_WITH_C_KEY__)
- #else /* defined(__MMI_WITH_C_KEY__) */
- if (category28_RSK_label_clear == 0)
- {
- set_right_softkey_label((UI_string_type) get_string(WGUI_CATEGORY_CLEAR_STRING_ID));
- set_right_softkey_icon(NULL);
- redraw_right_softkey();
- category28_RSK_label_clear = 1;
- set_right_softkey_function(UI_dummy_function, KEY_EVENT_UP);
- }
- #endif /* defined(__MMI_WITH_C_KEY__) */
- }
- else
- {
- #if defined(__MMI_WITH_C_KEY__)
- #else /* defined(__MMI_WITH_C_KEY__) */
- if (category28_RSK_label_clear == 1)
- {
- set_right_softkey_label(category28_RSK_label_string);
- set_right_softkey_icon(category28_RSK_label_icon);
- redraw_right_softkey();
- category28_RSK_label_clear = 0;
- set_right_softkey_function(register_category28_handle_right_softkey_up, KEY_EVENT_UP);
- }
- #endif /* defined(__MMI_WITH_C_KEY__) */
- }
- #else /* (UI_DISABLE_EMS_INPUT_BOX) */
- if (MMI_EMS_inputbox.data == NULL)
- {
- return;
- }
- if (!gui_EMS_inputbox_empty(&MMI_EMS_inputbox))
- {
- #if defined(__MMI_WITH_C_KEY__)
- if (category28_RSK_label_clear == 0)
- {
- category28_RSK_label_clear = 1;
- SetKeyHandler(handle_category28_right_softkey_down, KEY_CLEAR, KEY_EVENT_DOWN);
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_UP);
- SetKeyHandler(handle_category28_right_softkey_long_press, KEY_CLEAR, KEY_LONG_PRESS);
- }
- #else /* defined(__MMI_WITH_C_KEY__) */
- if (category28_RSK_label_clear == 0)
- {
- set_right_softkey_label((UI_string_type) get_string(WGUI_CATEGORY_CLEAR_STRING_ID));
- set_right_softkey_icon(NULL);
- redraw_right_softkey();
- category28_RSK_label_clear = 1;
- set_right_softkey_function(UI_dummy_function, KEY_EVENT_UP);
- }
- #endif /* defined(__MMI_WITH_C_KEY__) */
- }
- else
- {
- #if defined(__MMI_WITH_C_KEY__)
- if (category28_RSK_label_clear == 1)
- {
- category28_RSK_label_clear = 0;
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_DOWN);
- SetKeyHandler(register_category28_handle_clear_key_up, KEY_CLEAR, KEY_EVENT_UP);
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_LONG_PRESS);
- }
- #else /* defined(__MMI_WITH_C_KEY__) */
- if (category28_RSK_label_clear == 1)
- {
- set_right_softkey_label(category28_RSK_label_string);
- set_right_softkey_icon(category28_RSK_label_icon);
- redraw_right_softkey();
- category28_RSK_label_clear = 0;
- set_right_softkey_function(register_category28_handle_right_softkey_up, KEY_EVENT_UP);
- }
- #endif /* defined(__MMI_WITH_C_KEY__) */
- }
- #endif /* (UI_DISABLE_EMS_INPUT_BOX) */
- }
- #ifdef __MMI_MULTITAP_THAI__
- /*****************************************************************************
- * FUNCTION
- * handle_category28_change_input_mode_bymultitapthai
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- extern void handle_category28_change_input_mode(void); //KP Jerry add on 2007-4-29
- void handle_category28_change_input_mode_bymultitapthai(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (Get_inputbox_update_states() == 1)
- {
- gui_EMS_input_box_backspace(&MMI_EMS_inputbox);
- wgui_EMS_text_format = MMI_EMS_inputbox.text_format;
- }
- handle_category28_change_input_mode();
- }
- #endif /* __MMI_MULTITAP_THAI__ */
- /*****************************************************************************
- * FUNCTION
- * handle_category28_change_input_mode
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void handle_category28_change_input_mode(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- disable_active_multitap();
- change_input_mode();
- set_MMI_current_input_type();
- switch (MMI_current_input_mode)
- {
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC:
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC:
- #if defined(__MMI_MULTITAP_THAI__)
- case INPUT_MODE_MULTITAP_THAI:
- #endif
- #if defined(__MMI_MULTITAP_SPANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SPANISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_SPANISH:
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_DANISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_DANISH:
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_POLISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_POLISH:
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_FRENCH:
- case INPUT_MODE_MULTITAP_LOWERCASE_FRENCH:
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_GERMAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_GERMAN:
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN:
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN:
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN:
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_TURKISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_TURKISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_TURKISH:
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- case INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE:
- case INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE:
- #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */
- #if defined(__MMI_MULTITAP_HINDI__)
- case INPUT_MODE_MULTITAP_HINDI:
- #endif
- /* PMT RAKESH START 20061006 */
- #if defined(__MMI_MULTITAP_MARATHI__)
- case INPUT_MODE_MULTITAP_MARATHI:
- #endif
- /* PMT RAKESH START 20061006 */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN:
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_MULTITAP_CZECH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_CZECH:
- case INPUT_MODE_MULTITAP_LOWERCASE_CZECH:
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_MULTITAP_MALAY__)
- case INPUT_MODE_MULTITAP_UPPERCASE_MALAY:
- case INPUT_MODE_MULTITAP_LOWERCASE_MALAY:
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- case INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE:
- case INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE:
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- case INPUT_MODE_MULTITAP_HEBREW:
- #endif
- #if defined(__MMI_MULTITAP_FINNISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_FINNISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_FINNISH:
- #endif /* defined(__MMI_MULTITAP_FINNISH__) */
- #if defined(__MMI_MULTITAP_HUNGARIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN:
- #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */
- #if defined(__MMI_MULTITAP_SLOVAK__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK:
- case INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK:
- #endif /* defined(__MMI_MULTITAP_SLOVAK__) */
- #if defined(__MMI_MULTITAP_DUTCH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_DUTCH:
- case INPUT_MODE_MULTITAP_LOWERCASE_DUTCH:
- #endif /* defined(__MMI_MULTITAP_DUTCH__) */
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN:
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- #if defined(__MMI_MULTITAP_ARABIC__)
- case INPUT_MODE_MULTITAP_ARABIC:
- #endif
- //PMT START PERSIAN
- #if defined(__MMI_MULTITAP_PERSIAN__)
- case INPUT_MODE_MULTITAP_PERSIAN:
- #endif
- //PMT END PERSIAN
- #if defined(__MMI_MULTITAP_SWEDISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH:
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_CROATIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN:
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN:
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN:
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_MULTITAP_GREEK__)
- case INPUT_MODE_MULTITAP_UPPERCASE_GREEK:
- case INPUT_MODE_MULTITAP_LOWERCASE_GREEK:
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- case INPUT_MODE_123:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #if defined(__MMI_T9__) || defined(__MMI_ITAP__) || defined(__MMI_KA__)
- case INPUT_MODE_TR_MULTITAP_BOPOMO:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_BPMF_IMG);
- break;
- case INPUT_MODE_SM_MULTITAP_PINYIN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_PINYIN_IMG);
- break;
- case INPUT_MODE_TR_BOPOMO:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_BPMF_IMG);
- break;
- case INPUT_MODE_SM_PINYIN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_PINYIN_IMG);
- break;
- case INPUT_MODE_TR_STROKE:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_TR_STROKE_IMG);
- break;
- case INPUT_MODE_SM_STROKE:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SM_STROKE_IMG);
- break;
- case INPUT_MODE_SMART_UPPERCASE_ABC:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_MODE_SMART_LOWERCASE_ABC:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #if defined(__MMI_T9_SPANISH__)
- case INPUT_MODE_SMART_UPPERCASE_SPANISH:
- case INPUT_MODE_SMART_LOWERCASE_SPANISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_SPANISH__) */
- #if defined(__MMI_T9_DANISH__)
- case INPUT_MODE_SMART_UPPERCASE_DANISH:
- case INPUT_MODE_SMART_LOWERCASE_DANISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_DANISH__) */
- #if defined(__MMI_T9_POLISH__)
- case INPUT_MODE_SMART_UPPERCASE_POLISH:
- case INPUT_MODE_SMART_LOWERCASE_POLISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_POLISH__) */
- #if defined(__MMI_T9_FRENCH__)
- case INPUT_MODE_SMART_UPPERCASE_FRENCH:
- case INPUT_MODE_SMART_LOWERCASE_FRENCH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_FRENCH__) */
- #if defined(__MMI_T9_GERMAN__)
- case INPUT_MODE_SMART_UPPERCASE_GERMAN:
- case INPUT_MODE_SMART_LOWERCASE_GERMAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_GERMAN__) */
- #if defined(__MMI_T9_ITALIAN__)
- case INPUT_MODE_SMART_UPPERCASE_ITALIAN:
- case INPUT_MODE_SMART_LOWERCASE_ITALIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_ITALIAN__) */
- #if defined(__MMI_T9_VIETNAMESE__)
- case INPUT_MODE_SMART_UPPERCASE_VIETNAMESE:
- case INPUT_MODE_SMART_LOWERCASE_VIETNAMESE:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_VIETNAMESE__) */
- #if defined(__MMI_T9_TURKISH__)
- case INPUT_MODE_SMART_UPPERCASE_TURKISH:
- case INPUT_MODE_SMART_LOWERCASE_TURKISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_TURKISH__) */
- #if defined(__MMI_T9_INDONESIAN__)
- case INPUT_MODE_SMART_UPPERCASE_INDONESIAN:
- case INPUT_MODE_SMART_LOWERCASE_INDONESIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_INDONESIAN__) */
- #if defined(__MMI_T9_CZECH__)
- case INPUT_MODE_SMART_UPPERCASE_CZECH:
- case INPUT_MODE_SMART_LOWERCASE_CZECH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_CZECH__) */
- #if defined (__MMI_T9_RUSSIAN__)
- case INPUT_MODE_SMART_UPPERCASE_RUSSIAN:
- case INPUT_MODE_SMART_LOWERCASE_RUSSIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined (__MMI_T9_RUSSIAN__) */
- #if defined (__MMI_T9_BULGARIAN__)
- case INPUT_MODE_SMART_UPPERCASE_BULGARIAN:
- case INPUT_MODE_SMART_LOWERCASE_BULGARIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined (__MMI_T9_BULGARIAN__) */
- #if defined (__MMI_T9_THAI__)
- case INPUT_MODE_SMART_THAI:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined (__MMI_T9_THAI__) */
- #if defined(__MMI_T9_PORTUGUESE__)
- case INPUT_MODE_SMART_UPPERCASE_PORTUGUESE:
- case INPUT_MODE_SMART_LOWERCASE_PORTUGUESE:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_PORTUGUESE__) */
- #if defined(__MMI_T9_FINNISH__)
- case INPUT_MODE_SMART_UPPERCASE_FINNISH:
- case INPUT_MODE_SMART_LOWERCASE_FINNISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_FINNISH__) */
- #if defined(__MMI_T9_HUNGARIAN__)
- case INPUT_MODE_SMART_UPPERCASE_HUNGARIAN:
- case INPUT_MODE_SMART_LOWERCASE_HUNGARIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_HUNGARIAN__) */
- #if defined(__MMI_T9_ARABIC__)
- case INPUT_MODE_SMART_ARABIC:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_ARABIC__) */
- #if defined(__MMI_T9_HINDI__)
- case INPUT_MODE_SMART_HINDI:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_HINDI__) */
- #if defined(__MMI_T9_NORWEGIAN__)
- case INPUT_MODE_SMART_UPPERCASE_NORWEGIAN:
- case INPUT_MODE_SMART_LOWERCASE_NORWEGIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_NORWEGIAN__) */
- #if defined(__MMI_T9_DUTCH__)
- case INPUT_MODE_SMART_UPPERCASE_DUTCH:
- case INPUT_MODE_SMART_LOWERCASE_DUTCH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_DUTCH__) */
- #if defined(__MMI_T9_SLOVENIAN__)
- case INPUT_MODE_SMART_UPPERCASE_SLOVENIAN:
- case INPUT_MODE_SMART_LOWERCASE_SLOVENIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_SLOVENIAN__) */
- #if defined(__MMI_T9_SWEDISH__)
- case INPUT_MODE_SMART_UPPERCASE_SWEDISH:
- case INPUT_MODE_SMART_LOWERCASE_SWEDISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_SWEDISH__) */
- #if defined(__MMI_T9_GREEK__)
- case INPUT_MODE_SMART_UPPERCASE_GREEK:
- case INPUT_MODE_SMART_LOWERCASE_GREEK:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_GREEK__) */
- #if defined(__MMI_T9_HEBREW__)
- case INPUT_MODE_SMART_HEBREW:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_HEBREW__) */
- #if defined(__MMI_T9_MALAY__)
- case INPUT_MODE_SMART_UPPERCASE_MALAY:
- case INPUT_MODE_SMART_LOWERCASE_MALAY:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_MALAY__) */
- #if defined(__MMI_T9_CROATIAN__)
- case INPUT_MODE_SMART_UPPERCASE_CROATIAN:
- case INPUT_MODE_SMART_LOWERCASE_CROATIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_CROATIAN__) */
- #if defined(__MMI_T9_SLOVAK__)
- case INPUT_MODE_SMART_UPPERCASE_SLOVAK:
- case INPUT_MODE_SMART_LOWERCASE_SLOVAK:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_SLOVAK__) */
- #if defined(__MMI_T9_ROMANIAN__)
- case INPUT_MODE_SMART_UPPERCASE_ROMANIAN:
- case INPUT_MODE_SMART_LOWERCASE_ROMANIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_ROMANIAN__) */
- #elif defined(__MMI_ZI__)
- case INPUT_MODE_TR_MULTITAP_BOPOMO:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_BPMF_LOGO);
- break;
- case INPUT_MODE_SM_MULTITAP_PINYIN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO);
- break;
- case INPUT_MODE_TR_BOPOMO:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_BPMF_LOGO);
- break;
- case INPUT_MODE_SM_PINYIN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO);
- break;
- case INPUT_MODE_TR_STROKE:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_TR_STROKE_LOGO);
- break;
- case INPUT_MODE_SM_STROKE:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_SM_STROKE_LOGO);
- break;
- case INPUT_MODE_SMART_UPPERCASE_ABC:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_MODE_SMART_LOWERCASE_ABC:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_MODE_SMART_THAI:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- /* MTK Elvis for R2L characters */
- case INPUT_MODE_SMART_ARABIC:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- //PMT START PERSIAN
- case INPUT_MODE_SMART_PERSIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- //PMT END PERSIAN
- case INPUT_MODE_SMART_HINDI:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_MODE_SMART_HEBREW:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #if defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__)
- case INPUT_MODE_SMART_UPPERCASE_SPANISH:
- case INPUT_MODE_SMART_LOWERCASE_SPANISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__) */
- #if defined(__MMI_ZI_DANISH__)
- case INPUT_MODE_SMART_UPPERCASE_DANISH:
- case INPUT_MODE_SMART_LOWERCASE_DANISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_DANISH__) */
- #if defined(__MMI_ZI_POLISH__)
- case INPUT_MODE_SMART_UPPERCASE_POLISH:
- case INPUT_MODE_SMART_LOWERCASE_POLISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_POLISH__) */
- #if defined(__MMI_ZI_NORWEGIAN__)
- case INPUT_MODE_SMART_UPPERCASE_NORWEGIAN:
- case INPUT_MODE_SMART_LOWERCASE_NORWEGIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_NORWEGIAN__) */
- #if defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__)
- case INPUT_MODE_SMART_UPPERCASE_FRENCH:
- case INPUT_MODE_SMART_LOWERCASE_FRENCH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__) */
- #if defined(__MMI_ZI_GERMAN__)
- case INPUT_MODE_SMART_UPPERCASE_GERMAN:
- case INPUT_MODE_SMART_LOWERCASE_GERMAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_GERMAN__) */
- #if defined(__MMI_ZI_ITALIAN__)
- case INPUT_MODE_SMART_UPPERCASE_ITALIAN:
- case INPUT_MODE_SMART_LOWERCASE_ITALIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_ITALIAN__) */
- #if defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__)
- case INPUT_MODE_SMART_UPPERCASE_RUSSIAN:
- case INPUT_MODE_SMART_LOWERCASE_RUSSIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) */
- #if defined(__MMI_ZI_BULGARIAN__)
- case INPUT_MODE_SMART_UPPERCASE_BULGARIAN:
- case INPUT_MODE_SMART_LOWERCASE_BULGARIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_BULGARIAN__) */
- #if defined(__MMI_ZI_TURKISH__)
- case INPUT_MODE_SMART_UPPERCASE_TURKISH:
- case INPUT_MODE_SMART_LOWERCASE_TURKISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_TURKISH__) */
- #if defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__)
- case INPUT_MODE_SMART_UPPERCASE_PORTUGUESE:
- case INPUT_MODE_SMART_LOWERCASE_PORTUGUESE:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__) */
- #if defined(__MMI_ZI_INDONESIAN__)
- case INPUT_MODE_SMART_UPPERCASE_INDONESIAN:
- case INPUT_MODE_SMART_LOWERCASE_INDONESIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_INDONESIAN__) */
- #if defined(__MMI_ZI_MALAY__)
- case INPUT_MODE_SMART_UPPERCASE_MALAY:
- case INPUT_MODE_SMART_LOWERCASE_MALAY:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_MALAY__) */
- #if defined(__MMI_ZI_VIETNAMESE__)
- case INPUT_MODE_SMART_UPPERCASE_VIETNAMESE:
- case INPUT_MODE_SMART_LOWERCASE_VIETNAMESE:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_VIETNAMESE__) */
- #if defined(__MMI_ZI_SLOVAK__)
- case INPUT_MODE_SMART_UPPERCASE_SLOVAK:
- case INPUT_MODE_SMART_LOWERCASE_SLOVAK:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_SLOVAK__) */
- #if defined(__MMI_ZI_DUTCH__)
- case INPUT_MODE_SMART_UPPERCASE_DUTCH:
- case INPUT_MODE_SMART_LOWERCASE_DUTCH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_DUTCH__) */
- #if defined(__MMI_ZI_SWEDISH__)
- case INPUT_MODE_SMART_UPPERCASE_SWEDISH:
- case INPUT_MODE_SMART_LOWERCASE_SWEDISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_SWEDISH__) */
- #if defined(__MMI_ZI_CROATIAN__)
- case INPUT_MODE_SMART_UPPERCASE_CROATIAN:
- case INPUT_MODE_SMART_LOWERCASE_CROATIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_CROATIAN__) */
- #if defined(__MMI_ZI_ROMANIAN__)
- case INPUT_MODE_SMART_UPPERCASE_ROMANIAN:
- case INPUT_MODE_SMART_LOWERCASE_ROMANIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_ROMANIAN__) */
- #if defined(__MMI_ZI_SLOVENIAN__)
- case INPUT_MODE_SMART_UPPERCASE_SLOVENIAN:
- case INPUT_MODE_SMART_LOWERCASE_SLOVENIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_SLOVENIAN__) */
- #if defined(__MMI_ZI_GREEK__)
- case INPUT_MODE_SMART_UPPERCASE_GREEK:
- case INPUT_MODE_SMART_LOWERCASE_GREEK:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_GREEK__) */
- #if defined(__MMI_ZI_FINNISH__)
- case INPUT_MODE_SMART_UPPERCASE_FINNISH:
- case INPUT_MODE_SMART_LOWERCASE_FINNISH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_FINNISH__) */
- #if defined(__MMI_ZI_CZECH__)
- case INPUT_MODE_SMART_UPPERCASE_CZECH:
- case INPUT_MODE_SMART_LOWERCASE_CZECH:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_CZECH__) */
- #if defined(__MMI_ZI_HUNGARIAN__)
- case INPUT_MODE_SMART_UPPERCASE_HUNGARIAN:
- case INPUT_MODE_SMART_LOWERCASE_HUNGARIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_HUNGARIAN__) */
- //KP Jerry add on 2007-3-8 start
- #elif defined(__MMI_CSTAR__)
- #if defined(__MMI_CSTAR_TR_CHINESE__)
- case INPUT_MODE_TR_MULTITAP_BOPOMO:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_BPMF_IMG);
- break;
- case INPUT_MODE_TR_BOPOMO:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_BPMF_IMG);
- break;
- case INPUT_MODE_TR_STROKE:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_TR_STROKE_IMG);
- break;
- #endif
- #if defined(__MMI_CSTAR_SM_CHINESE__)
- case INPUT_MODE_SM_MULTITAP_PINYIN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_PINYIN_IMG);
- break;
- case INPUT_MODE_SM_PINYIN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_PINYIN_IMG);
- break;
- case INPUT_MODE_SM_STROKE:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SM_STROKE_IMG);
- break;
- case INPUT_MODE_SMART_UPPERCASE_ABC:
- case INPUT_MODE_SMART_LOWERCASE_ABC:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif
- #if defined(__MMI_CSTAR_VIETNAMESE__)
- case INPUT_MODE_SMART_UPPERCASE_VIETNAMESE:
- case INPUT_MODE_SMART_LOWERCASE_VIETNAMESE:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif
- #if defined(__MMI_CSTAR_RUSSIAN__)
- case INPUT_MODE_SMART_UPPERCASE_RUSSIAN:
- case INPUT_MODE_SMART_LOWERCASE_RUSSIAN:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif
- #if defined(__MMI_CSTAR_THAI__)
- case INPUT_MODE_SMART_THAI:
- wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif
- //KP Jerry add on 2007-3-8 start
- #endif
- default:
- wgui_EMS_inputbox_information_icon = NULL;
- break;
- }
- wgui_EMS_redraw_input_information_bar();
- }
- /* MTK end */
- /*****************************************************************************
- * FUNCTION
- * RedrawCategory28Screen
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void RedrawCategory28Screen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gui_lock_double_buffer();
- clear_screen();
- show_title_status_icon();
- draw_title();
- #if(UI_DISABLE_EMS_INPUT_BOX)
- show_multiline_inputbox();
- #else
- show_EMS_inputbox();
- #endif
- wgui_EMS_redraw_input_information_bar();
- #if defined(__MMI_TOUCH_SCREEN__)
- wgui_show_virtual_keyboard();
- #endif
- show_softkey_background();
- show_left_softkey();
- show_right_softkey();
- gui_unlock_double_buffer();
- gui_BLT_double_buffer(0, 0, UI_device_width - 1, UI_device_height - 1);
- /* MTK Elvis for redrawing spelling or candidate boxes */
- if (RedrawSpellingOrCandidateBoxesFunction)
- {
- RedrawSpellingOrCandidateBoxesFunction();
- }
- /* MTK end */
- }
- /*****************************************************************************
- * FUNCTION
- * cat28_virtual_keypad_callback
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void cat28_virtual_keypad_callback(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- #if defined(__MMI_TOUCH_SCREEN__)
- mmi_pen_editor_resize_multiline_input_box_for_vk();
- #endif
- }
- /*****************************************************************************
- * FUNCTION
- * category28callback
- * DESCRIPTION
- *
- * PARAMETERS
- * coordinate [?]
- * RETURNS
- * void
- *****************************************************************************/
- void category28callback(dm_coordinates *coordinate)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (RedrawSpellingOrCandidateBoxesFunction)
- {
- RedrawSpellingOrCandidateBoxesFunction();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * AppendCategory28String
- * DESCRIPTION
- *
- * PARAMETERS
- * input_type [IN]
- * data [?]
- * s [?]
- * history_buffer [?]
- * RETURNS
- *
- *****************************************************************************/
- U8 AppendCategory28String(S16 input_type, EMSData *data, U8 *s, U8 *history_buffer)
- {
- #if(!UI_DISABLE_EMS_INPUT_BOX)
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S32 i = 0;
- #ifdef __MMI_MENUTREE_2__
- S32 j = 0;
- #endif
- S32 l, box_height;
- U8 ts[2];
- U8 h;
- UI_character_type c;
- /* Manju added for template, 1213 */
- S32 remaining_length;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- //Mamju end
- #if defined __MMI_LANG_HINDI__ && (defined __MMI_LANG_ARABIC__ || defined __MMI_LANG_PERSIAN__)
- if (ARABIC_PRESENT || MMI_current_input_mode == INPUT_MODE_SMART_ARABIC || MMI_current_input_mode == INPUT_MODE_SMART_PERSIAN)
- {
- U16 unicode = 0;
- U16 clFill = 0;
- IS_HINDI = 0;
- while ((s[clFill] != ' ' || s[clFill + 1] != ' ') && !IS_HINDI)
- {
- unicode = s[clFill];
- unicode |= (s[clFill + 1] << 8);
- if (UI_HINDI_CHARACTER_UCS2_RANGE(unicode))
- {
- IS_HINDI = 1;
- }
- clFill += 2;
- }
- if (IS_HINDI && ARABIC_PRESENT)
- {
- return (0);
- }
- else if (IS_HINDI)
- {
- test_change_input_mode = test_EMS_inputbox_change_mode;
- wgui_change_inputbox_mode_multitap_HINDI();
- }
- }
- else if (HINDI_PRESENT || MMI_current_input_mode == INPUT_MODE_MULTITAP_HINDI)
- {
- U16 default_direction = 1;
- U16 Count = 0;
- U16 length = pfnUnicodeStrlen((const char*)s) * 2;
- IS_ARABIC = 0;
- for (Count = 0; Count < length; Count += 2)
- {
- bidi_get_char_type(s + Count, (U8*) & default_direction);
- if ((default_direction == 5) || (default_direction == 3) || (default_direction == 2))
- {
- IS_ARABIC = 1;
- }
- }
- if (IS_ARABIC && HINDI_PRESENT)
- {
- return (0);
- }
- else if (IS_ARABIC)
- {
- test_change_input_mode = test_EMS_inputbox_change_mode;
- //PMT START PERSIAN
- #if defined(__MMI_LANG_ARABIC__)
- wgui_change_inputbox_mode_smart_arabic();
- #elif defined(__MMI_LANG_PERSIAN__)
- wgui_change_inputbox_mode_smart_persian();
- #endif
- //PMT END PERSIAN
- }
- }
- #endif /* defined __MMI_LANG_HINDI__ && defined __MMI_LANG_ARABIC__ */
- #if(UI_DOUBLE_BUFFER_SUPPORT)
- gui_lock_double_buffer();
- #endif
- l = gui_strlen((UI_string_type) s);
- box_height = MMI_content_height - MMI_multitap_height - 10;
- gui_create_EMS_input_box(&MMI_EMS_inputbox, 0, (MMI_title_y + MMI_title_height) + 12, UI_device_width, box_height);
- gui_set_EMS_input_box_data(&MMI_EMS_inputbox, data);
- h = set_EMS_inputbox_category_history(MMI_CATEGORY28_ID, history_buffer, (S16*) & input_type);
- if (h)
- {
- gui_EMS_input_box_locate_cursor(&MMI_EMS_inputbox);
- #ifdef __MMI_MESSAGES_EMS__
- gui_EMS_input_box_set_text_format_object(&MMI_EMS_inputbox, &wgui_EMS_text_format);
- #endif
- }
- MMI_EMS_inputbox.flags |= UI_EMS_INPUT_BOX_DISABLE_DRAW;
- gui_show_EMS_input_box(&MMI_EMS_inputbox);
- MMI_EMS_inputbox.flags &= ~UI_EMS_INPUT_BOX_DISABLE_DRAW;
- for (i = 0; i < l; i++)
- {
- UI_STRING_GET_NEXT_CHARACTER(s, c);
- #if(0)
- ts[0]=c>>8;
- ts[1]=c&0xff;
- #else /* (0) */
- ts[1] = c >> 8;
- ts[0] = c & 0xff;
- #endif /* (0) */
- /* Manju added for template, 1213 */
- if (MMI_EMS_inputbox.UCS2_count > 0)
- {
- remaining_length = (EMS_get_remaining_length(MMI_EMS_inputbox.data) >> 1);
- }
- else
- {
- remaining_length = EMS_get_remaining_length(MMI_EMS_inputbox.data);
- }
- if (remaining_length <= 0)
- {
- break;
- }
- if (MMI_EMS_inputbox.UCS2_count == 0)
- {
- if (UI_TEST_UCS2_CHARACTER(c))
- {
- if (EMSSetDCS(MMI_EMS_inputbox.data, SMSAL_UCS2_DCS) != EMS_OK)
- {
- EMSSetDCS(MMI_EMS_inputbox.data, SMSAL_DEFAULT_DCS);
- break;
- }
- else
- {
- if (EMS_get_remaining_length(MMI_EMS_inputbox.data) < 2)
- {
- EMSSetDCS(MMI_EMS_inputbox.data, SMSAL_DEFAULT_DCS);
- break;
- }
- }
- }
- else if (UI_TEST_GSM_EXTENDED(c))
- {
- if (EMS_get_remaining_length(MMI_EMS_inputbox.data) < 2)
- {
- break;
- }
- }
- }
- /* Manju end */
- if (gui_EMS_input_box_add_string(&MMI_EMS_inputbox, ts, &MMI_EMS_inputbox.text_format) != EMS_OK)
- {
- break;
- }
- gui_EMS_input_box_locate_cursor(&MMI_EMS_inputbox);
- }
- get_EMS_inputbox_category_history(MMI_CATEGORY28_ID, history_buffer, input_type);
- #if(UI_DOUBLE_BUFFER_SUPPORT)
- gui_unlock_double_buffer();
- #endif
- if (i == l)
- {
- return (1);
- }
- else
- {
- #ifdef __MMI_MENUTREE_2__
- for (j = 0; j < i; j++)
- {
- gui_EMS_input_box_backspace(&MMI_EMS_inputbox);
- }
- #endif /* __MMI_MENUTREE_2__ */
- return (0);
- }
- #else /* (!UI_DISABLE_EMS_INPUT_BOX) */
- UI_UNUSED_PARAMETER(input_type);
- UI_UNUSED_PARAMETER(data);
- UI_UNUSED_PARAMETER(s);
- UI_UNUSED_PARAMETER(history_buffer);
- return (0);
- #endif /* (!UI_DISABLE_EMS_INPUT_BOX) */
- }
- /*****************************************************************************
- * FUNCTION
- * ShowCategory28Screen
- * DESCRIPTION
- * Displays the MO EMS/SMS screen
- * PARAMETERS
- * title [IN] Title for the screen
- * title_icon [IN] Icon shown with the title
- * left_softkey [IN] Left softkey label
- * left_softkey_icon [IN] Icon for the left softkey
- * right_softkey [IN] Right softkey label
- * right_softkey_icon [IN] Icon for the right softkey
- * data [IN] EMSData (Pre-allocated and initialized)
- * history_buffer [IN] History buffer
- * RETURNS
- * void
- *****************************************************************************/
- void ShowCategory28Screen(
- U16 title,
- U16 title_icon,
- U16 left_softkey,
- U16 left_softkey_icon,
- U16 right_softkey,
- U16 right_softkey_icon,
- EMSData *data,
- U8 *history_buffer)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- #if defined __MMI_LANG_HINDI__ && (defined __MMI_LANG_ARABIC__ || defined __MMI_LANG_PERSIAN__)
- U16 unicode = 0;
- U16 clFill = 0;
- #endif /* defined __MMI_LANG_HINDI__ && defined __MMI_LANG_ARABIC__ */
- dm_data_struct dm_data;
- U16 input_type = (U16) INPUT_TYPE_ALPHANUMERIC_LOWERCASE;
- #if(UI_DISABLE_EMS_INPUT_BOX)
- S32 length;
- S32 i, j, h, fh;
- UI_UNUSED_PARAMETER(history_buffer);
- #else /* (UI_DISABLE_EMS_INPUT_BOX) */
- U8 h;
- S32 box_height;
- #endif /* (UI_DISABLE_EMS_INPUT_BOX) */
- #if defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__)
- mmi_pen_handwriting_area_struct stroke_area;
- mmi_pen_handwriting_area_struct ext_stroke;
- #endif /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gdi_layer_lock_frame_buffer();
- #if defined __MMI_LANG_HINDI__ && (defined __MMI_LANG_ARABIC__ || defined __MMI_LANG_PERSIAN__)
- ARABIC_PRESENT = 0;
- HINDI_PRESENT = 0;
- #endif /* defined __MMI_LANG_HINDI__ && defined __MMI_LANG_ARABIC__ */
- #if defined __MMI_LANG_HINDI__ && (defined __MMI_LANG_ARABIC__ || defined __MMI_LANG_PERSIAN__)
- HINDI_PRESENT = 0;
- ARABIC_PRESENT = 0;
- while ((data->textBuffer[clFill] != ' ' || data->textBuffer[clFill + 1] != ' ') && !HINDI_PRESENT)
- {
- unicode = data->textBuffer[clFill];
- unicode |= (data->textBuffer[clFill + 1] << 8);
- if (UI_HINDI_CHARACTER_UCS2_RANGE(unicode))
- {
- HINDI_PRESENT = 1;
- ARABIC_PRESENT = 0;
- }
- else if (IS_ARABIC_CHARACTER(unicode))
- {
- ARABIC_PRESENT = 1;
- HINDI_PRESENT = 0;
- }
- clFill += 2;
- }
- #endif /* defined __MMI_LANG_HINDI__ && defined __MMI_LANG_ARABIC__ */
- set_current_input_box_type(EDITOR_EMS_INPUT_BOX);
- test_change_input_mode = test_EMS_inputbox_change_mode;
- wgui_set_default_input_type(&input_type);
- #ifdef __MMI_T9__
- InuptMethodEnterCategory28();
- #elif defined(__MMI_ZI__) && defined(__MMI_MESSAGES_EMS__)
- ZiInuptMethodEnterCategory28();
- //KP Jerry add on 2007-3-8 start
- #elif defined(__MMI_CSTAR__)
- CstarInputMethodEnterCategory28();
- //KP Jerry add on 2007-3-8 end
- #elif defined(__MMI_KA__)
- KonkaInuptMethodEnterCategory28();
- #elif defined(__MMI_ITAP__)
- /* under construction !*/
- /* under construction !*/
- #endif
- wgui_inputbox_information_flag = 1;
- wgui_inputbox_information_bar_height = INFORMATION_BAR_HEIGHT;
- wgui_EMS_setup_input_information(
- 0,
- (MMI_title_y + MMI_title_height),
- UI_device_width,
- wgui_inputbox_information_bar_height);
- MMI_menu_shortcut_number = -1;
- change_left_softkey(left_softkey, left_softkey_icon);
- change_right_softkey(right_softkey, right_softkey_icon);
- SetupCategoryKeyHandlers();
- MMI_title_string = (UI_string_type) get_string(title);
- MMI_title_icon = (PU8) get_image(title_icon);
- #if(UI_DISABLE_EMS_INPUT_BOX)
- length = (data->textBufferSize >> 1);
- if (length == 0)
- {
- UI_string_type s = (UI_string_type) "EMS Data not initialized";
- S32 l = gui_strlen((UI_string_type) s);
- temp_EMS_buffer = (UI_string_type) gui_malloc(l * sizeof(UI_character_type));
- gui_strcpy((UI_string_type) temp_EMS_buffer, (UI_string_type) s);
- length = l + 1;
- i = j = l;
- }
- else
- {
- temp_EMS_buffer = (UI_string_type) gui_malloc(length * sizeof(UI_character_type));
- i = j = 0;
- while (j < data->textLength)
- {
- if ((data->textBuffer[j] == ' ') && (data->textBuffer[j + 1] == ' '))
- {
- temp_EMS_buffer[i] = ' ';
- break;
- }
- else
- {
- temp_EMS_buffer[i] = data->textBuffer[j + 1];
- }
- i++;
- j += 2;
- }
- }
- temp_EMS_data = data;
- create_multiline_inputbox_set_buffer(temp_EMS_buffer, length, i, 0);
- register_multiline_inputbox_keys();
- register_hide_multitap(category5_hide_multitap);
- h = MMI_content_height - MMI_multitap_height - 8;
- gui_set_font(MMI_multiline_inputbox.text_font);
- fh = gui_get_character_height();
- h = ((h / fh) * fh) + 8;
- resize_multiline_inputbox(MMI_multiline_inputbox.width, h);
- set_multiline_inputbox_mask(0);
- change_multiline_inputbox_mode(1);
- SetKeyHandler(change_input_mode, KEY_STAR, KEY_EVENT_DOWN);
- inputbox_change_mode = change_multiline_inputbox_input_mode;
- MMI_current_input_mode = 1;
- set_right_softkey_function(handle_category28_right_softkey_down, KEY_EVENT_DOWN);
- set_right_softkey_function(handle_category28_right_softkey_long_press, KEY_LONG_PRESS);
- register_multiline_inputbox_input_callback(handle_category28_input);
- category28_RSK_label_icon = get_image(right_softkey_icon);
- category28_RSK_label_string = get_string(right_softkey);
- handle_category28_input();
- if (MMI_multiline_inputbox.text_length <= 1)
- {
- set_right_softkey_function(handle_category28_right_softkey_up, KEY_EVENT_UP);
- }
- #ifdef __MMI_WALLPAPER_ON_BOTTOM__
- MMI_EMS_inputbox.flags |= UI_EMS_INPUT_BOX_TRANSPARENT_BACKGROUND;
- dm_get_scr_bg_image(
- &editor_scr_bg_ID,
- &editor_scr_bg_filename,
- &editor_scr_bg_x,
- &editor_scr_bg_y,
- &editor_scr_bg_opacity);
- //PMT SUKRIT START 10112006
- dm_set_scr_bg_image(editor_scr_bg_ID, editor_scr_bg_filename, editor_scr_bg_x, editor_scr_bg_y, current_MMI_theme->bg_opacity_low); /* 100605 editor opacity Calvin */
- //PMT SUKRIT END 10112006
- #endif /* __MMI_WALLPAPER_ON_BOTTOM__ */
- #else /* (UI_DISABLE_EMS_INPUT_BOX) */
- #if((UI_ENABLE_FRAME_SKIPPING) && (ENABLE_EMS_INPUTBOX_FRAME_SKIPPING))
- wgui_EMS_inputbox_frame_counter = 0;
- #endif
- #ifdef __MMI_MESSAGES_EMS__
- initialize_EMS_objects();
- #endif
- /* MTK Elvis to adjust to avoid overlap with multitap window */
- #if defined(__MMI_FULL_SCREEN_EDITOR__)
- box_height = MMI_content_height - 13;
- #else
- box_height = MMI_content_height - MMI_multitap_height - 13;
- #endif
- /* MTK end */
- gui_create_EMS_input_box(
- &MMI_EMS_inputbox,
- 0,
- (MMI_title_y + MMI_title_height) + wgui_EMS_inputbox_information_bar_height,
- UI_device_width,
- box_height);
- gui_set_EMS_input_box_data(&MMI_EMS_inputbox, data);
- h = set_EMS_inputbox_category_history(MMI_CATEGORY28_ID, history_buffer, (S16*) & input_type);
- if (h)
- { /* HACK: Current alignment is not saved in history, so test it using a flag */
- if (EMS_inputbox_alignment_added_flag)
- {
- wgui_EMS_text_format.Alignment = EMS_inputbox_alignment;
- MMI_EMS_inputbox.text_format.Alignment = EMS_inputbox_alignment;
- EMS_inputbox_alignment_added_flag = 0;
- }
- #ifdef __MMI_MESSAGES_EMS__
- gui_EMS_input_box_set_text_format_object(&MMI_EMS_inputbox, &wgui_EMS_text_format);
- #endif
- }
- else
- {
- gui_EMS_input_box_set_text_format_cursor_position(&MMI_EMS_inputbox);
- wgui_EMS_text_format = MMI_EMS_inputbox.text_format;
- }
- gui_EMS_input_box_locate_cursor(&MMI_EMS_inputbox);
- register_hide_multitap(category5_hide_multitap);
- SetKeyHandler(handle_category28_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
- /* MTK Terry : Switch IME by long press # */
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- SetKeyHandler(handle_category28_change_input_mode, KEY_POUND, KEY_LONG_PRESS);
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- register_EMS_inputbox_keys();
- #ifdef __MMI_WALLPAPER_ON_BOTTOM__
- MMI_EMS_inputbox.flags |= UI_EMS_INPUT_BOX_TRANSPARENT_BACKGROUND;
- dm_get_scr_bg_image(
- &editor_scr_bg_ID,
- &editor_scr_bg_filename,
- &editor_scr_bg_x,
- &editor_scr_bg_y,
- &editor_scr_bg_opacity);
- //PMT SUKRIT START 10112006
- dm_set_scr_bg_image(editor_scr_bg_ID, editor_scr_bg_filename, editor_scr_bg_x, editor_scr_bg_y, current_MMI_theme->bg_opacity_low); /* 100605 editor opacity Calvin */
- //PMT SUKRIT END 10112006
- #endif /* __MMI_WALLPAPER_ON_BOTTOM__ */
- inputbox_change_mode = change_EMS_inputbox_input_mode;
- /* Get input mode from "Input Methods" list selection */
- wgui_change_inputbox_mode_multitap_ABC = wgui_EMS_inputbox_change_input_mode_multitap_ABC;
- wgui_change_inputbox_mode_multitap_abc = wgui_EMS_inputbox_change_input_mode_multitap_abc;
- wgui_change_inputbox_mode_mode_numeric = wgui_EMS_inputbox_change_input_mode_multitap_numeric;
- /* PMT dara added for Multitap thai */
- #if defined(__MMI_MULTITAP_THAI__)
- wgui_change_inputbox_mode_multitap_thai = wgui_EMS_inputbox_change_input_mode_multitap_thai;
- #endif
- #if defined(__MMI_MULTITAP_SPANISH__)
- wgui_change_inputbox_mode_multitap_SPANISH = wgui_EMS_inputbox_change_input_mode_multitap_SPANISH;
- wgui_change_inputbox_mode_multitap_spanish = wgui_EMS_inputbox_change_input_mode_multitap_spanish;
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- wgui_change_inputbox_mode_multitap_DANISH = wgui_EMS_inputbox_change_input_mode_multitap_DANISH;
- wgui_change_inputbox_mode_multitap_danish = wgui_EMS_inputbox_change_input_mode_multitap_danish;
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- wgui_change_inputbox_mode_multitap_POLISH = wgui_EMS_inputbox_change_input_mode_multitap_POLISH;
- wgui_change_inputbox_mode_multitap_polish = wgui_EMS_inputbox_change_input_mode_multitap_polish;
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- wgui_change_inputbox_mode_multitap_FRENCH = wgui_EMS_inputbox_change_input_mode_multitap_FRENCH;
- wgui_change_inputbox_mode_multitap_french = wgui_EMS_inputbox_change_input_mode_multitap_french;
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- wgui_change_inputbox_mode_multitap_GERMAN = wgui_EMS_inputbox_change_input_mode_multitap_GERMAN;
- wgui_change_inputbox_mode_multitap_german = wgui_EMS_inputbox_change_input_mode_multitap_german;
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- wgui_change_inputbox_mode_multitap_ITALIAN = wgui_EMS_inputbox_change_input_mode_multitap_ITALIAN;
- wgui_change_inputbox_mode_multitap_italian = wgui_EMS_inputbox_change_input_mode_multitap_italian;
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- wgui_change_inputbox_mode_multitap_RUSSIAN = wgui_EMS_inputbox_change_input_mode_multitap_RUSSIAN;
- wgui_change_inputbox_mode_multitap_russian = wgui_EMS_inputbox_change_input_mode_multitap_russian;
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- wgui_change_inputbox_mode_multitap_BULGARIAN = wgui_EMS_inputbox_change_input_mode_multitap_BULGARIAN;
- wgui_change_inputbox_mode_multitap_bulgarian = wgui_EMS_inputbox_change_input_mode_multitap_bulgarian;
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_TURKISH__)
- wgui_change_inputbox_mode_multitap_TURKISH = wgui_EMS_inputbox_change_input_mode_multitap_TURKISH;
- wgui_change_inputbox_mode_multitap_turkish = wgui_EMS_inputbox_change_input_mode_multitap_turkish;
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- wgui_change_inputbox_mode_multitap_PORTUGUESE = wgui_EMS_inputbox_change_input_mode_multitap_PORTUGUESE;
- wgui_change_inputbox_mode_multitap_portuguese = wgui_EMS_inputbox_change_input_mode_multitap_portuguese;
- #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */
- #if defined(__MMI_MULTITAP_HINDI__)
- wgui_change_inputbox_mode_multitap_HINDI = wgui_EMS_inputbox_change_input_mode_multitap_HINDI;
- #endif
- /* PMT RAKESH START 20061006 */
- #if defined(__MMI_MULTITAP_MARATHI__)
- wgui_change_inputbox_mode_multitap_MARATHI = wgui_EMS_inputbox_change_input_mode_multitap_MARATHI;
- #endif
- /* PMT RAKESH END 20061006 */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- wgui_change_inputbox_mode_multitap_INDONESIAN = wgui_EMS_inputbox_change_input_mode_multitap_INDONESIAN;
- wgui_change_inputbox_mode_multitap_indonesian = wgui_EMS_inputbox_change_input_mode_multitap_indonesian;
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_MULTITAP_CZECH__)
- wgui_change_inputbox_mode_multitap_CZECH = wgui_EMS_inputbox_change_input_mode_multitap_CZECH;
- wgui_change_inputbox_mode_multitap_czech = wgui_EMS_inputbox_change_input_mode_multitap_czech;
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_MULTITAP_MALAY__)
- wgui_change_inputbox_mode_multitap_MALAY = wgui_EMS_inputbox_change_input_mode_multitap_MALAY;
- wgui_change_inputbox_mode_multitap_malay = wgui_EMS_inputbox_change_input_mode_multitap_malay;
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- wgui_change_inputbox_mode_multitap_VIETNAMESE = wgui_EMS_inputbox_change_input_mode_multitap_VIETNAMESE;
- wgui_change_inputbox_mode_multitap_vietnamese = wgui_EMS_inputbox_change_input_mode_multitap_vietnamese;
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_MULTITAP_FINNISH__)