wgui_categories_inputs.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:1705k
源码类别:
MTK
开发平台:
C/C++
- * wgui_close_singleline_inputbox
- * DESCRIPTION
- * close single line input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_close_singleline_inputbox(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_singleline_inputbox_handle_multitap_input_complete(WGUI_INPUTBOX_EDIT_MULTITAP_ANY);
- reset_singleline_inputbox();
- wgui_singleline_inputbox_RSK_function = NULL;
- wgui_singleline_inputbox_RSK_label_clear = 0;
- wgui_singleline_inputbox_decimal_input_mode_flag = 0;
- wgui_inputbox_not_empty_callback = NULL;
- wgui_inputbox_empty_callback = NULL;
- wgui_inputbox_validation_callback = NULL;
- wgui_inputbox_UCS2_count_function = NULL;
- wgui_inputbox_GSM_ext_count_function = NULL;
- wgui_inputbox_information_flag = 0;
- #ifdef __MMI_ZI__
- ZiInuptMethodExitSinglelineInputBox();
- #endif
- #if defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__)
- mmi_pen_editor_close_input_box();
- #endif
- if (test_change_input_mode != NULL)
- {
- if (test_change_input_mode())
- {
- MMI_english_input_mode_flag = 0;
- }
- else
- {
- MMI_english_input_mode_flag = 1;
- }
- }
- else
- {
- MMI_english_input_mode_flag = 0;
- }
- if (MMI_allow_only_english_input_modes)
- {
- MMI_english_input_mode_flag = 1;
- MMI_allow_only_english_input_modes = 0;
- }
- test_change_input_mode = NULL;
- /* W05.36 Fix Vietnamese Tone Input Issue */
- set_current_input_box_type(EDITOR_NONE_INPUT_BOX);
- }
- /* Common functions for multi line input box screens */
- S32 wgui_inputbox_information_bar_x;
- S32 wgui_inputbox_information_bar_y;
- S32 wgui_inputbox_information_bar_width;
- S32 wgui_inputbox_information_bar_height;
- U8 wgui_inputbox_information_flag = 0;
- #ifdef UI_SMALL_CATEGORY_EDITOR
- U8 wgui_small_editor_information_flag = 0;
- #endif
- PU8 wgui_inputbox_information_icon = NULL;
- S32 wgui_inputbox_buffer_size = 0;
- /*****************************************************************************
- * FUNCTION
- * wgui_setup_input_information
- * DESCRIPTION
- * set input information of input box like bar width/bar height
- * PARAMETERS
- * x [IN] Start x position of input box
- * y [IN] Start y position of input box
- * width [IN] Width of input box
- * height [IN] Height of input box
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_setup_input_information(S32 x, S32 y, S32 width, S32 height)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_inputbox_information_bar_x = x;
- wgui_inputbox_information_bar_y = y;
- wgui_inputbox_information_bar_width = width;
- wgui_inputbox_information_bar_height = height;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_input_information_background
- * DESCRIPTION
- * fill the background color of information of input box
- * PARAMETERS
- * x1 [IN] Start x position of input box
- * y1 [IN] Start y position of input box
- * x2 [IN] End x position of input box
- * y2 [IN] End y position of input box
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_input_information_background(S32 x1, S32 y1, S32 x2, S32 y2)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /* Now reads color from the theme structure */
- color c = current_information_bar_theme->background_color;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gui_reset_clip();
- if (MMI_multiline_inputbox.flags & UI_MULTI_LINE_INPUT_BOX_INCLUDE_INFO_AREA)
- {
- UI_filled_area f = *MMI_multiline_inputbox.normal_filler;
- if (f.flags & UI_FILLED_AREA_SINGLE_BORDER)
- {
- f.flags &= ~UI_FILLED_AREA_SINGLE_BORDER;
- }
- gui_set_clip(x1, y1, x2, y2);
- gui_draw_filled_area(x1, y1, x2, y2, &f);
- }
- else
- {
- /* W05.39 Set Information Bar Background as GDI_COLOR_TRANSPARENT when wgui_is_wallpaper_on_bottom */
- if (wgui_is_wallpaper_on_bottom() == MMI_TRUE)
- {
- gdi_draw_solid_rect(x1, y1, x2, y2, GDI_COLOR_TRANSPARENT);
- }
- else
- {
- gui_fill_rectangle(x1, y1, x2, y2, c);
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_hide_input_information_bar
- * DESCRIPTION
- * hide information bar
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_hide_input_information_bar()
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S32 x1 = 0;
- S32 y1 = wgui_inputbox_information_bar_y;
- S32 x2 = UI_device_width - 1;
- S32 y2 = wgui_inputbox_information_bar_y + wgui_inputbox_information_bar_height - 1;
- color c = gui_color(255, 255, 255);
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gui_reset_clip();
- gui_fill_rectangle(x1, y1, x2, y2, c);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_show_input_mode
- * DESCRIPTION
- * show current input mode on the top of editor scrren
- * PARAMETERS
- * input_mode [IN]
- * inputbox_information_icon [IN]
- * RETURNS
- * void
- *****************************************************************************/
- #if defined(__MMI_TOUCH_SCREEN__)
- UI_filled_area information_bar_BG_filler =
- {
- UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_ROUNDED_BORDER | UI_FILLED_AREA_SINGLE_BORDER,
- UI_NULL_IMAGE,
- NULL,
- /* { 248,144,248,100 }, */
- {255, 185, 253, 100},
- {0, 0, 0, 0},
- {160, 72, 168, 100},
- {255, 0, 0, 100},
- 0
- };
- #endif /* defined(__MMI_TOUCH_SCREEN__) */
- void wgui_show_input_mode_internal(
- S32 info_bar_x,
- S32 info_bar_y,
- S32 info_bar_width,
- S32 info_bar_height,
- U8 input_mode,
- PU8 inputbox_information_icon)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- color c = *current_MMI_theme->input_method_text_color;
- #if !defined(__MMI_TOUCH_SCREEN__)
- stFontAttribute *f = &MMI_small_font;
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- stFontAttribute *f = &MMI_medium_font;
- S32 rect_height;
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- S32 width, height;
- UI_string_type inputmode_string = (UI_string_type) "";
- #ifdef __MMI_HINDI_ALG__
- U16 name[] = {IV_A, IV_AA, IV_I, 0x0}; /* added during merge */
- #endif
- /* PMT RAKESH START 20061006 */
- #if defined (__MMI_LANG_MARATHI__)
- U16 input_mode_marathi_string_array[] = {C_MA, C_RA, DV_AA, C_TTHA, DV_II, 0x0};
- #endif
- /* PMT RAKESH END 20061006 */
- S32 x, x1, x2;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- #if defined(__MMI_TOUCH_SCREEN__)
- wgui_information_bar_input_mode_display_width = 0;
- wgui_information_bar_input_mode_display_height = 0;
- #endif
- x = x1 = info_bar_x;
- x2 = info_bar_x + info_bar_width - 1;
- switch (MMI_current_input_mode)
- {
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_ABC_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC:
- case INPUT_MODE_MMI_LOWERCASE_ABC:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_abc_STRING_ID);
- break;
- #if defined(__MMI_MULTITAP_THAI__)
- case INPUT_MODE_MULTITAP_THAI:
- case INPUT_MODE_MMI_MULTITAP_THAI:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_thai_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_THAI__) */
- #if defined(__MMI_MULTITAP_SPANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SPANISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_SPANISH_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SPANISH:
- case INPUT_MODE_MMI_LOWERCASE_SPANISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_spanish_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_T9_SPANISH__) || defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__) || defined(__MMI_CSTAR_SPANISH__) //KP Jerry add "__MMI_CSTAR_SPANISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_SPANISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_SPANISH_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_SPANISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_spanish_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_SPANISH__) || defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__) || defined(__MMI_CSTAR_SPANISH__) */ //KP Jerry add "__MMI_CSTAR_SPANISH__" on 2007-4-6
- #if defined(__MMI_MULTITAP_DANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_DANISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_DANISH_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_DANISH:
- case INPUT_MODE_MMI_LOWERCASE_DANISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_danish_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_T9_DANISH__) || defined(__MMI_ZI_DANISH__) || defined(__MMI_CSTAR_DANISH__) //KP Jerry add "__MMI_CSTAR_DANISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_DANISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_DANISH_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_DANISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_danish_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_DANISH__) || defined(__MMI_ZI_DANISH__) || defined(__MMI_CSTAR_DANISH__) */ //KP Jerry add "__MMI_CSTAR_DANISH__" on 2007-4-6
- #if defined(__MMI_MULTITAP_POLISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_POLISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_POLISH_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_POLISH:
- case INPUT_MODE_MMI_LOWERCASE_POLISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_polish_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_T9_POLISH__) || defined(__MMI_ZI_POLISH__) || defined(__MMI_CSTAR_POLISH__) //KP Jerry add "__MMI_CSTAR_POLISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_POLISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_POLISH_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_POLISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_polish_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_POLISH__) || defined(__MMI_ZI_POLISH__) || defined(__MMI_CSTAR_POLISH__) */ //KP Jerry add "__MMI_CSTAR_POLISH__" on 2007-4-6
- #if defined(__MMI_MULTITAP_FRENCH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_FRENCH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_FRENCH_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_FRENCH:
- case INPUT_MODE_MMI_LOWERCASE_FRENCH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_french_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_T9_FRENCH__) || defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__) || defined(__MMI_CSTAR_FRENCH__) //KP Jerry add "__MMI_CSTAR_FRENCH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_FRENCH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_FRENCH_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_FRENCH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_french_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_FRENCH__) || defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__) || defined(__MMI_CSTAR_FRENCH__) */ //KP Jerry add "__MMI_CSTAR_FRENCH__" on 2007-4-6
- #if defined(__MMI_MULTITAP_GERMAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_GERMAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_GERMAN_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_GERMAN:
- case INPUT_MODE_MMI_LOWERCASE_GERMAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_german_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_T9_GERMAN__) || defined(__MMI_ZI_GERMAN__) || defined(__MMI_CSTAR_GERMAN__) //KP Jerry add "__MMI_CSTAR_GERMAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_GERMAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_GERMAN_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_GERMAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_german_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_GERMAN__) || defined(__MMI_ZI_GERMAN__) || defined(__MMI_CSTAR_GERMAN__) */ //KP Jerry add "__MMI_CSTAR_GERMAN__" on 2007-4-6
- #if defined(__MMI_MULTITAP_ITALIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_ITALIAN_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN:
- case INPUT_MODE_MMI_LOWERCASE_ITALIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_italian_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_T9_ITALIAN__) || defined(__MMI_ZI_ITALIAN__) || defined(__MMI_CSTAR_ITALIAN__) //KP Jerry add "__MMI_CSTAR_ITALIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_ITALIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_ITALIAN_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_ITALIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_italian_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_ITALIAN__) || defined(__MMI_ZI_ITALIAN__) || defined(__MMI_CSTAR_ITALIAN__) */ //KP Jerry add "__MMI_CSTAR_ITALIAN__" on 2007-4-6
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_RUSSIAN_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN:
- case INPUT_MODE_MMI_LOWERCASE_RUSSIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_russian_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_BULGARIAN_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN:
- case INPUT_MODE_MMI_LOWERCASE_BULGARIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_bulgarian_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- case INPUT_MODE_MULTITAP_HEBREW:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_HEBREW_STRING_ID);
- break;
- case INPUT_MODE_MMI_MULTITAP_HEBREW:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_HEBREW_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_HEBREW__) */
- #if defined(__MMI_MULTITAP_ARABIC__)
- case INPUT_MODE_MULTITAP_ARABIC:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_ARABIC_STRING_ID);
- break;
- case INPUT_MODE_MMI_MULTITAP_ARABIC:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_ARABIC_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_ARABIC__) */
- //PMT START PERSIAN
- #if defined(__MMI_MULTITAP_PERSIAN__)
- case INPUT_MODE_MULTITAP_PERSIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_PERSIAN_STRING_ID);
- break;
- case INPUT_MODE_MMI_MULTITAP_PERSIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_PERSIAN_STRING_ID);
- break;
- #endif
- //PMT END PERSIAN
- #if defined(__MMI_T9_RUSSIAN__) || defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) || defined(__MMI_CSTAR_RUSSIAN__) //KP Jerry add "__MMI_CSTAR_RUSSIAN__" on 2007-4-17
- case INPUT_MODE_SMART_UPPERCASE_RUSSIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_RUSSIAN_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_RUSSIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_russian_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_RUSSIAN__) || defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) || defined(__MMI_CSTAR_RUSSIAN__) */ //KP Jerry add "__MMI_CSTAR_RUSSIAN__" on 2007-4-17
- #if defined(__MMI_T9_BULGARIAN__) || defined(__MMI_ZI_BULGARIAN__) || defined(__MMI_CSTAR_BULGARIAN__) //KP Jerry add "__MMI_CSTAR_BULGARIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_BULGARIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_BULGARIAN_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_BULGARIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_bulgarian_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_BULGARIAN__) || defined(__MMI_ZI_BULGARIAN__) || defined(__MMI_CSTAR_BULGARIAN__) */ //KP Jerry add "__MMI_CSTAR_BULGARIAN__" on 2007-4-6
- #if defined(__MMI_MULTITAP_TURKISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_TURKISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_TURKISH_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_TURKISH:
- case INPUT_MODE_MMI_LOWERCASE_TURKISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_turkish_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_ZI_TURKISH__) || defined(__MMI_T9_TURKISH__) || defined(__MMI_CSTAR_TURKISH__) //KP Jerry add "__MMI_CSTAR_TURKISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_TURKISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_TURKISH_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_TURKISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_turkish_STRING_ID);
- break;
- #endif /* defined(__MMI_ZI_TURKISH__) || defined(__MMI_T9_TURKISH__) || defined(__MMI_CSTAR_TURKISH__) */ //KP Jerry add "__MMI_CSTAR_TURKISH__" on 2007-4-6
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- case INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_PORTUGUESE_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE:
- case INPUT_MODE_MMI_LOWERCASE_PORTUGUESE:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_portuguese_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */
- #if defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__) || defined(__MMI_CSTAR_PORTUGUESE__) //KP Jerry add "__MMI_CSTAR_PORTUGUESE__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_PORTUGUESE:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_PORTUGUESE_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_PORTUGUESE:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_portuguese_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__) || defined(__MMI_CSTAR_PORTUGUESE__) */ //KP Jerry add "__MMI_CSTAR_PORTUGUESE__" on 2007-4-6
- #if defined(__MMI_MULTITAP_HINDI__)
- case INPUT_MODE_MULTITAP_HINDI:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_HINDI_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_HINDI__) */
- /* PMT RAKESH START 20061006 */
- #if defined (__MMI_MULTITAP_MARATHI__)
- case INPUT_MODE_MULTITAP_MARATHI:
- inputmode_string = (UI_string_type) input_mode_marathi_string_array;
- break;
- #endif /* defined (__MMI_MULTITAP_MARATHI__) */
- /* PMT RAKESH END 20061006 */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_INDONESIAN_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN:
- case INPUT_MODE_MMI_LOWERCASE_INDONESIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_indonesian_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_ZI_INDONESIAN__) || defined(__MMI_T9_INDONESIAN__) || defined(__MMI_CSTAR_INDONESIAN__) //KP Jerry add "__MMI_CSTAR_INDONESIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_INDONESIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_INDONESIAN_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_INDONESIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_indonesian_STRING_ID);
- break;
- #endif /* defined(__MMI_ZI_INDONESIAN__) || defined(__MMI_T9_INDONESIAN__) || defined(__MMI_CSTAR_INDONESIAN__) */ //KP Jerry add "__MMI_CSTAR_INDONESIAN__" on 2007-4-6
- #if defined(__MMI_MULTITAP_CZECH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_CZECH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_CZECH_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_CZECH:
- case INPUT_MODE_MMI_LOWERCASE_CZECH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_czech_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_T9_CZECH__) || defined(__MMI_ZI_CZECH__) || defined(__MMI_CSTAR_CZECH__) //KP Jerry add "__MMI_CSTAR_CZECH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_CZECH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_CZECH_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_CZECH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_czech_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_CZECH__) || defined(__MMI_ZI_CZECH__) || defined(__MMI_CSTAR_CZECH__) */ //KP Jerry add "__MMI_CSTAR_CZECH__" on 2007-4-6
- #if defined(__MMI_MULTITAP_MALAY__)
- case INPUT_MODE_MULTITAP_UPPERCASE_MALAY:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_MALAY_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_MALAY:
- case INPUT_MODE_MMI_LOWERCASE_MALAY:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_malay_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_ZI_MALAY__) || defined(__MMI_T9_MALAY__) || defined(__MMI_CSTAR_MALAY__) //KP Jerry add "__MMI_CSTAR_MALAY__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_MALAY:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_MALAY_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_MALAY:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_malay_STRING_ID);
- break;
- #endif /* defined(__MMI_ZI_MALAY__) || defined(__MMI_T9_MALAY__) || defined(__MMI_CSTAR_MALAY__) */ //KP Jerry add "__MMI_CSTAR_MALAY__" on 2007-4-6
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- case INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_VIETNAMESE_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE:
- case INPUT_MODE_MMI_LOWERCASE_VIETNAMESE:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_vietnamese_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_ZI_VIETNAMESE__) || defined(__MMI_T9_VIETNAMESE__) || defined(__MMI_CSTAR_VIETNAMESE__) //KP Jerry add "__MMI_CSTAR_VIETNAMESE__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_VIETNAMESE:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_VIETNAMESE_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_VIETNAMESE:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_vietnamese_STRING_ID);
- break;
- #endif /* defined(__MMI_ZI_VIETNAMESE__) || defined(__MMI_T9_VIETNAMESE__) || defined(__MMI_CSTAR_VIETNAMESE__) */ //KP Jerry add "__MMI_CSTAR_VIETNAMESE__" on 2007-4-6
- #if defined(__MMI_MULTITAP_FINNISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_FINNISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_FINNISH_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_FINNISH:
- case INPUT_MODE_MMI_LOWERCASE_FINNISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_finnish_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_FINNISH__) */
- #if defined(__MMI_T9_FINNISH__) || defined(__MMI_ZI_FINNISH__) || defined(__MMI_CSTAR_FINNISH__) //KP Jerry add "__MMI_CSTAR_FINNISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_FINNISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_FINNISH_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_FINNISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_finnish_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_FINNISH__) || defined(__MMI_ZI_FINNISH__) || defined(__MMI_CSTAR_FINNISH__) */ //KP Jerry add "__MMI_CSTAR_FINNISH__" on 2007-4-6
- #if defined(__MMI_MULTITAP_HUNGARIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_HUNGARIAN_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN:
- case INPUT_MODE_MMI_LOWERCASE_HUNGARIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_hungarian_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */
- #if defined(__MMI_T9_HUNGARIAN__) || defined(__MMI_ZI_HUNGARIAN__) || defined(__MMI_CSTAR_HUNGARIAN__) //KP Jerry add "__MMI_CSTAR_HUNGARIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_HUNGARIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_HUNGARIAN_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_HUNGARIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_hungarian_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_HUNGARIAN__) || defined(__MMI_ZI_HUNGARIAN__) || defined(__MMI_CSTAR_HUNGARIAN__) */ //KP Jerry add "__MMI_CSTAR_HUNGARIAN__" on 2007-4-6
- #if defined(__MMI_MULTITAP_SLOVAK__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_SLOVAK_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK:
- case INPUT_MODE_MMI_LOWERCASE_SLOVAK:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_slovak_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_SLOVAK__) */
- #if defined(__MMI_T9_SLOVAK__) || defined(__MMI_ZI_SLOVAK__) || defined(__MMI_CSTAR_SLOVAK__) //KP Jerry add "__MMI_CSTAR_SLOVAK__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_SLOVAK:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_SLOVAK_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_SLOVAK:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_slovak_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_SLOVAK__) || defined(__MMI_ZI_SLOVAK__) || defined(__MMI_CSTAR_SLOVAK__) */ //KP Jerry add "__MMI_CSTAR_SLOVAK__" on 2007-4-6
- #if defined(__MMI_MULTITAP_DUTCH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_DUTCH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_DUTCH_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_DUTCH:
- case INPUT_MODE_MMI_LOWERCASE_DUTCH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_dutch_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_DUTCH__) */
- #if defined(__MMI_ZI_DUTCH__) || defined(__MMI_T9_DUTCH__) || defined(__MMI_CSTAR_DUTCH__) //KP Jerry add "__MMI_CSTAR_DUTCH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_DUTCH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_DUTCH_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_DUTCH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_dutch_STRING_ID);
- break;
- #endif /* defined(__MMI_ZI_DUTCH__) || defined(__MMI_T9_DUTCH__) || defined(__MMI_CSTAR_DUTCH__) */ //KP Jerry add "__MMI_CSTAR_DUTCH__" on 2007-4-6
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_NORWEGIAN_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN:
- case INPUT_MODE_MMI_LOWERCASE_NORWEGIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_norwegian_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- #if defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_ZI_NORWEGIAN__) || defined(__MMI_CSTAR_NORWEGIAN__) //KP Jerry add "__MMI_CSTAR_NORWEGIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_NORWEGIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_NORWEGIAN_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_NORWEGIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_norwegian_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_ZI_NORWEGIAN__) || defined(__MMI_CSTAR_NORWEGIAN__) */ //KP Jerry add "__MMI_CSTAR_NORWEGIAN__" on 2007-4-6
- #if defined(__MMI_MULTITAP_SWEDISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_SWEDISH_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH:
- case INPUT_MODE_MMI_LOWERCASE_SWEDISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_swedish_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_T9_SWEDISH__) || defined(__MMI_ZI_SWEDISH__) || defined(__MMI_CSTAR_SWEDISH__) //KP Jerry add "__MMI_CSTAR_SWEDISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_SWEDISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_SWEDISH_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_SWEDISH:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_swedish_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_SWEDISH__) || defined(__MMI_ZI_SWEDISH__) || defined(__MMI_CSTAR_SWEDISH__) */ //KP Jerry add "__MMI_CSTAR_SWEDISH__" on 2007-4-6
- #if defined(__MMI_MULTITAP_CROATIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_CROATIAN_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN:
- case INPUT_MODE_MMI_LOWERCASE_CROATIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_croatian_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_T9_CROATIAN__) || defined(__MMI_ZI_CROATIAN__) || defined(__MMI_CSTAR_CROATIAN__) //KP Jerry add "__MMI_CSTAR_CROATIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_CROATIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_CROATIAN_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_CROATIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_croatian_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_CROATIAN__) || defined(__MMI_ZI_CROATIAN__) || defined(__MMI_CSTAR_CROATIAN__) */ //KP Jerry add "__MMI_CSTAR_CROATIAN__" on 2007-4-6
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_ROMANIAN_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN:
- case INPUT_MODE_MMI_LOWERCASE_ROMANIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_romanian_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_ZI_ROMANIAN__) || defined(__MMI_T9_ROMANIAN__) || defined(__MMI_CSTAR_ROMANIAN__) //KP Jerry add "__MMI_CSTAR_ROMANIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_ROMANIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_ROMANIAN_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_ROMANIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_romanian_STRING_ID);
- break;
- #endif /* defined(__MMI_ZI_ROMANIAN__) || defined(__MMI_T9_ROMANIAN__) || defined(__MMI_CSTAR_ROMANIAN__) */ //KP Jerry add "__MMI_CSTAR_ROMANIAN__" on 2007-4-6
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_SLOVENIAN_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN:
- case INPUT_MODE_MMI_LOWERCASE_SLOVENIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_slovenian_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_ZI_SLOVENIAN__) || defined(__MMI_CSTAR_SLOVENIAN__) //KP Jerry add "__MMI_CSTAR_SLOVENIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_SLOVENIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_SLOVENIAN_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_SLOVENIAN:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_slovenian_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_ZI_SLOVENIAN__) || defined(__MMI_CSTAR_SLOVENIAN__) */ //KP Jerry add "__MMI_CSTAR_SLOVENIAN__" on 2007-4-6
- #if defined(__MMI_MULTITAP_GREEK__)
- case INPUT_MODE_MULTITAP_UPPERCASE_GREEK:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_GREEK_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_GREEK:
- case INPUT_MODE_MMI_LOWERCASE_GREEK:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_greek_STRING_ID);
- break;
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- #if defined(__MMI_T9_GREEK__) || defined(__MMI_ZI_GREEK__) || defined(__MMI_CSTAR_GREEK__) //KP Jerry add "__MMI_CSTAR_GREEK__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_GREEK:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_GREEK_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_GREEK:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_greek_STRING_ID);
- break;
- #endif /* defined(__MMI_T9_GREEK__) || defined(__MMI_ZI_GREEK__) || defined(__MMI_CSTAR_GREEK__) */ //KP Jerry add "__MMI_CSTAR_GREEK__" on 2007-4-6
- case INPUT_MODE_123:
- case INPUT_MODE_MMI_NUMERIC:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_123_STRING_ID);
- break;
- #if defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC_NO_NUMERIC:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_ABC_STRING_ID);
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC_NO_NUMERIC:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_abc_STRING_ID);
- break;
- case INPUT_MODE_123_SYMBOLS:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_123_STRING_ID);
- break;
- #endif /* defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__) */
- case INPUT_MODE_SMART_UPPERCASE_ABC:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_ABC_STRING_ID);
- break;
- case INPUT_MODE_SMART_LOWERCASE_ABC:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_abc_STRING_ID);
- break;
- #ifdef __MMI_LANG_THAI__ //KP Jerry add on 2007-4-17
- case INPUT_MODE_SMART_THAI:
- inputmode_string = (UI_string_type) get_string(STR_INPUT_METHOD_THAI);
- break;
- #endif //KP Jerry add on 2007-4-17
- #ifdef __MMI_LANG_ARABIC__ //KP Jerry add on 2007-4-17
- case INPUT_MODE_SMART_ARABIC:
- inputmode_string = (UI_string_type) get_string(STR_INPUT_METHOD_ARABIC);
- break;
- #endif //KP Jerry add on 2007-4-17
- //PMT START PERSIAN
- #ifdef __MMI_LANG_PERSIAN__ //KP Jerry add on 2007-4-17
- case INPUT_MODE_SMART_PERSIAN:
- inputmode_string = (UI_string_type) get_string(STR_INPUT_METHOD_PERSIAN);
- break;
- #endif //KP Jerry add on 2007-4-17
- //PMT END PERSIAN
- #ifdef __MMI_LANG_HINDI__ //KP Jerry add on 2007-4-17
- case INPUT_MODE_SMART_HINDI:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_HINDI_STRING_ID);
- break;
- #endif //KP Jerry add on 2007-4-17
- #ifdef __MMI_LANG_HEBREW__ //KP Jerry add on 2007-4-17
- case INPUT_MODE_SMART_HEBREW:
- inputmode_string = (UI_string_type) get_string(STR_INPUT_METHOD_HEBREW);
- break;
- #endif //KP Jerry add on 2007-4-17
- }
- gui_set_font(f);
- gui_set_text_color(c);
- gui_set_text_clip(0, 0, UI_device_width - 1, UI_device_height - 1);
- #ifdef __BW_MMI__
- gui_move_text_cursor(2, 2);
- gui_print_text(inputmode_string);
- #else /* __BW_MMI__ */
- #if defined (__MMI_T9__) || defined(__MMI_ITAP__) || defined(__MMI_KA__)|| defined(__MMI_CSTAR__) //KP Jerry add "__MMI_CSTAR__" on 2007-3-8
- if (wgui_inputbox_information_icon == NULL)
- {
- if (!r2lMMIFlag)
- {
- x = x1 + 2;
- }
- else
- {
- x = x2 - 2;
- }
- }
- else
- {
- gui_measure_image(wgui_inputbox_information_icon, &width, &height);
- if (!r2lMMIFlag)
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(x1 + 1, info_bar_y + 1, wgui_inputbox_information_icon, 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_show_transparent_image(
- x1 + 1,
- info_bar_y + (info_bar_height - height) / 2,
- wgui_inputbox_information_icon,
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x = x1 + width + 2;
- }
- else
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x2 - 1 - width,
- info_bar_y + 1,
- wgui_inputbox_information_icon,
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_show_transparent_image(
- x2 - 1 - width,
- info_bar_y + (info_bar_height - height) / 2,
- wgui_inputbox_information_icon,
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x = x2 - 2 - width;
- }
- }
- #elif defined(__MMI_ZI__)
- if (wgui_inputbox_information_icon == NULL)
- {
- if (!r2lMMIFlag)
- {
- x = x1 + 2;
- }
- else
- {
- x = x2 - 2;
- }
- }
- else
- {
- gui_measure_image(get_image(WGUI_INPUT_INFORMATION_ICON1), &width, &height);
- if (!r2lMMIFlag)
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x1 + 1,
- info_bar_y + 1,
- get_image(WGUI_INPUT_INFORMATION_ICON1),
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_show_transparent_image(
- x1 + 1,
- info_bar_y + (info_bar_height - height) / 2,
- get_image(WGUI_INPUT_INFORMATION_ICON1),
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x = x1 + width + 2;
- }
- else
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x2 - 1 - width,
- info_bar_y + 1,
- get_image(WGUI_INPUT_INFORMATION_ICON1),
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_show_transparent_image(
- x2 - 1 - width,
- info_bar_y + (info_bar_height - height) / 2,
- get_image(WGUI_INPUT_INFORMATION_ICON1),
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x = x2 - 2 - width;
- }
- }
- #else
- if (wgui_inputbox_information_icon == NULL)
- {
- if (!r2lMMIFlag)
- {
- x = x1 + 2;
- }
- else
- {
- x = x2 - 2;
- }
- }
- else
- {
- gui_measure_image(wgui_inputbox_information_icon, &width, &height);
- if (!r2lMMIFlag)
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(x1 + 1, info_bar_y + 1, wgui_inputbox_information_icon, 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_show_transparent_image(
- x1 + 1,
- info_bar_y + (info_bar_height - height) / 2,
- wgui_inputbox_information_icon,
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x = x1 + width + 2;
- }
- else
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x2 - 1 - width,
- info_bar_y + 1,
- wgui_inputbox_information_icon,
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_show_transparent_image(
- x2 - 1 - width,
- info_bar_y + (info_bar_height - height) / 2,
- wgui_inputbox_information_icon,
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x = x2 - 2 - width;
- }
- }
- #endif
- #if defined(__MMI_TOUCH_SCREEN__)
- /* 3 is from display icon shift position by adjusting x value
- * 4 is draw rectangle width in touch screen case
- *
- */
- wgui_information_bar_input_mode_display_width = width + 7;
- wgui_information_bar_input_mode_display_height = height;
- gui_measure_string(inputmode_string, &width, &height);
- #ifdef __MMI_T9__
- /* T9 chinese input mode uses icon instead of inputmode_string and
- * no need to adjust x value ,so previous +7 ,now -7
- */
- if(width == 0)
- {
- wgui_information_bar_input_mode_display_width -= 7;
- }
- #endif
- rect_height = gui_get_character_height();
- wgui_information_bar_input_mode_display_width += width;
- if(rect_height > wgui_information_bar_input_mode_display_height)
- {
- wgui_information_bar_input_mode_display_height = rect_height;
- }
- #endif /* defined(__MMI_TOUCH_SCREEN__) */
- switch (MMI_current_input_mode)
- {
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC:
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC:
- case INPUT_MODE_123:
- case INPUT_MODE_MMI_LOWERCASE_ABC: /* Elvis, for quick search */
- case INPUT_MODE_MMI_NUMERIC: /* Elvis, for quick search */
- #if defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC_NO_NUMERIC:
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC_NO_NUMERIC:
- case INPUT_MODE_123_SYMBOLS:
- #endif /* defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__) */
- #if defined(__MMI_MULTITAP_THAI__)
- case INPUT_MODE_MULTITAP_THAI:
- case INPUT_MODE_MMI_MULTITAP_THAI:
- #endif /* defined(__MMI_MULTITAP_THAI__) */
- #if defined(__MMI_MULTITAP_SPANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SPANISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_SPANISH:
- case INPUT_MODE_MMI_LOWERCASE_SPANISH:
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_DANISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_DANISH:
- case INPUT_MODE_MMI_LOWERCASE_DANISH:
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_POLISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_POLISH:
- case INPUT_MODE_MMI_LOWERCASE_POLISH:
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_FRENCH:
- case INPUT_MODE_MULTITAP_LOWERCASE_FRENCH:
- case INPUT_MODE_MMI_LOWERCASE_FRENCH:
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_GERMAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_GERMAN:
- case INPUT_MODE_MMI_LOWERCASE_GERMAN:
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN:
- case INPUT_MODE_MMI_LOWERCASE_ITALIAN:
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN:
- case INPUT_MODE_MMI_LOWERCASE_RUSSIAN:
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN:
- case INPUT_MODE_MMI_LOWERCASE_BULGARIAN:
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_TURKISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_TURKISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_TURKISH:
- case INPUT_MODE_MMI_LOWERCASE_TURKISH:
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- case INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE:
- case INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE:
- case INPUT_MODE_MMI_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 END 20061006 */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN:
- case INPUT_MODE_MMI_LOWERCASE_INDONESIAN:
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_MULTITAP_CZECH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_CZECH:
- case INPUT_MODE_MULTITAP_LOWERCASE_CZECH:
- case INPUT_MODE_MMI_LOWERCASE_CZECH:
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_MULTITAP_MALAY__)
- case INPUT_MODE_MULTITAP_UPPERCASE_MALAY:
- case INPUT_MODE_MULTITAP_LOWERCASE_MALAY:
- case INPUT_MODE_MMI_LOWERCASE_MALAY:
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- case INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE:
- case INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE:
- case INPUT_MODE_MMI_LOWERCASE_VIETNAMESE:
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_MULTITAP_FINNISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_FINNISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_FINNISH:
- case INPUT_MODE_MMI_LOWERCASE_FINNISH:
- #endif /* defined(__MMI_MULTITAP_FINNISH__) */
- #if defined(__MMI_MULTITAP_HUNGARIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN:
- case INPUT_MODE_MMI_LOWERCASE_HUNGARIAN:
- #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */
- #if defined(__MMI_MULTITAP_SWEDISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH:
- case INPUT_MODE_MMI_LOWERCASE_SWEDISH:
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- case INPUT_MODE_MULTITAP_HEBREW:
- case INPUT_MODE_MMI_MULTITAP_HEBREW:
- #endif /* defined(__MMI_MULTITAP_HEBREW__) */
- #if defined(__MMI_MULTITAP_SLOVAK__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK:
- case INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK:
- case INPUT_MODE_MMI_LOWERCASE_SLOVAK:
- #endif /* defined(__MMI_MULTITAP_SLOVAK__) */
- #if defined(__MMI_MULTITAP_DUTCH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_DUTCH:
- case INPUT_MODE_MULTITAP_LOWERCASE_DUTCH:
- case INPUT_MODE_MMI_LOWERCASE_DUTCH:
- #endif /* defined(__MMI_MULTITAP_DUTCH__) */
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN:
- case INPUT_MODE_MMI_LOWERCASE_NORWEGIAN:
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- #if defined(__MMI_MULTITAP_ARABIC__)
- case INPUT_MODE_MULTITAP_ARABIC:
- case INPUT_MODE_MMI_MULTITAP_ARABIC:
- #endif /* defined(__MMI_MULTITAP_ARABIC__) */
- //PMT START PERSIAN
- #if defined(__MMI_MULTITAP_PERSIAN__)
- case INPUT_MODE_MULTITAP_PERSIAN:
- case INPUT_MODE_MMI_MULTITAP_PERSIAN:
- #endif /* defined(__MMI_MULTITAP_ARABIC__) */
- //PMT END PERSIAN
- #if defined(__MMI_MULTITAP_CROATIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN:
- case INPUT_MODE_MMI_LOWERCASE_CROATIAN:
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN:
- case INPUT_MODE_MMI_LOWERCASE_ROMANIAN:
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN:
- case INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN:
- case INPUT_MODE_MMI_LOWERCASE_SLOVENIAN:
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_MULTITAP_GREEK__)
- case INPUT_MODE_MULTITAP_UPPERCASE_GREEK:
- case INPUT_MODE_MULTITAP_LOWERCASE_GREEK:
- case INPUT_MODE_MMI_LOWERCASE_GREEK:
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- if (MMI_current_input_mode == INPUT_MODE_MULTITAP_HINDI)
- {
- gui_move_text_cursor(x, info_bar_y);
- }
- /* PMT RAKESH START 20061006 */
- else if (MMI_current_input_mode == INPUT_MODE_MULTITAP_MARATHI)
- {
- gui_move_text_cursor(x, wgui_inputbox_information_bar_y + 1);
- }
- /* PMT RAKESH END 20061006 */
- else
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_move_text_cursor(x, info_bar_y + 3);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- {
- gui_draw_filled_area(
- x + 2,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_move_text_cursor(
- x + 3,
- info_bar_y + (info_bar_height - height) / 2);
- }
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_print_text(inputmode_string);
- break;
- #if defined (__MMI_T9__) || defined(__MMI_ITAP__) || defined(__MMI_KA__)|| defined(__MMI_CSTAR__) //KP Jerry add "__MMI_CSTAR__" on 2007-3-8
- case INPUT_MODE_SMART_UPPERCASE_ABC:
- case INPUT_MODE_SMART_LOWERCASE_ABC:
- #if defined (__MMI_T9_THAI__) || defined(__MMI_CSTAR_THAI__) //KP Jerry add "__MMI_CSTAR_THAI__" on 2007-4-6
- case INPUT_MODE_SMART_THAI:
- #endif
- #if defined(__MMI_T9_SPANISH__) || defined(__MMI_CSTAR_SPANISH__) //KP Jerry add "__MMI_CSTAR_SPANISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_SPANISH:
- case INPUT_MODE_SMART_LOWERCASE_SPANISH:
- #endif /* defined(__MMI_T9_SPANISH__) || defined(__MMI_CSTAR_SPANISH__) */ //KP Jerry add "__MMI_CSTAR_SPANISH__" on 2007-4-6
- #if defined(__MMI_T9_DANISH__) || defined(__MMI_CSTAR_DANISH__) //KP Jerry add "__MMI_CSTAR_DANISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_DANISH:
- case INPUT_MODE_SMART_LOWERCASE_DANISH:
- #endif /* defined(__MMI_T9_DANISH__) || defined(__MMI_CSTAR_DANISH__) */ //KP Jerry add "__MMI_CSTAR_DANISH__" on 2007-4-6
- #if defined(__MMI_T9_POLISH__) || defined(__MMI_CSTAR_POLISH__) //KP Jerry add "__MMI_CSTAR_POLISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_POLISH:
- case INPUT_MODE_SMART_LOWERCASE_POLISH:
- #endif /* defined(__MMI_T9_POLISH__) || defined(__MMI_CSTAR_POLISH__) */ //KP Jerry add "__MMI_CSTAR_POLISH__" on 2007-4-6
- #if defined(__MMI_T9_FRENCH__) || defined(__MMI_CSTAR_FRENCH__) //KP Jerry add "__MMI_CSTAR_FRENCH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_FRENCH:
- case INPUT_MODE_SMART_LOWERCASE_FRENCH:
- #endif /* defined(__MMI_T9_FRENCH__) || defined(__MMI_CSTAR_FRENCH__) */ //KP Jerry add "__MMI_CSTAR_FRENCH__" on 2007-4-6
- #if defined(__MMI_T9_GERMAN__) || defined(__MMI_CSTAR_GERMAN__) //KP Jerry add "__MMI_CSTAR_GERMAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_GERMAN:
- case INPUT_MODE_SMART_LOWERCASE_GERMAN:
- #endif /* defined(__MMI_T9_GERMAN__) || defined(__MMI_CSTAR_GERMAN__) */ //KP Jerry add "__MMI_CSTAR_GERMAN__" on 2007-4-6
- #if defined(__MMI_T9_ITALIAN__) || defined(__MMI_CSTAR_ITALIAN__) //KP Jerry add "__MMI_CSTAR_ITALIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_ITALIAN:
- case INPUT_MODE_SMART_LOWERCASE_ITALIAN:
- #endif /* defined(__MMI_T9_ITALIAN__) || defined(__MMI_CSTAR_ITALIAN__) */ //KP Jerry add "__MMI_CSTAR_ITALIAN__" on 2007-4-6
- #if defined(__MMI_T9_RUSSIAN__) || defined(__MMI_CSTAR_RUSSIAN__) //KP Jerry add "__MMI_CSTAR_RUSSIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_RUSSIAN:
- case INPUT_MODE_SMART_LOWERCASE_RUSSIAN:
- #endif /* defined(__MMI_T9_RUSSIAN__) || defined(__MMI_CSTAR_RUSSIAN__) */ //KP Jerry add "__MMI_CSTAR_RUSSIAN__" on 2007-4-6
- #if defined(__MMI_T9_BULGARIAN__) || defined(__MMI_CSTAR_BULGARIAN__) //KP Jerry add "__MMI_CSTAR_BULGARIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_BULGARIAN:
- case INPUT_MODE_SMART_LOWERCASE_BULGARIAN:
- #endif /* defined(__MMI_T9_BULGARIAN__) || defined(__MMI_CSTAR_BULGARIAN__) */ //KP Jerry add "__MMI_CSTAR_BULGARIAN__" on 2007-4-6
- #if defined(__MMI_T9_VIETNAMESE__) || defined(__MMI_CSTAR_VIETNAMESE__) //KP Jerry add "__MMI_CSTAR_VIETNAMESE__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_VIETNAMESE:
- case INPUT_MODE_SMART_LOWERCASE_VIETNAMESE:
- #endif /* defined(__MMI_T9_VIETNAMESE__) || defined(__MMI_CSTAR_VIETNAMESE__) */ //KP Jerry add "__MMI_CSTAR_VIETNAMESE__" on 2007-4-6
- #if defined(__MMI_T9_INDONESIAN__) || defined(__MMI_CSTAR_INDONESIAN__) //KP Jerry add "__MMI_CSTAR_INDONESIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_INDONESIAN:
- case INPUT_MODE_SMART_LOWERCASE_INDONESIAN:
- #endif /* defined(__MMI_T9_INDONESIAN__) || defined(__MMI_CSTAR_INDONESIAN__) */ //KP Jerry add "__MMI_CSTAR_INDONESIAN__" on 2007-4-6
- #if defined(__MMI_T9_TURKISH__) || defined(__MMI_CSTAR_TURKISH__) //KP Jerry add "__MMI_CSTAR_TURKISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_TURKISH:
- case INPUT_MODE_SMART_LOWERCASE_TURKISH:
- #endif /* defined(__MMI_T9_TURKISH__) || defined(__MMI_CSTAR_TURKISH__) */ //KP Jerry add "__MMI_CSTAR_TURKISH__" on 2007-4-6
- #if defined(__MMI_T9_CZECH__) || defined(__MMI_CSTAR_CZECH__) //KP Jerry add "__MMI_CSTAR_CZECH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_CZECH:
- case INPUT_MODE_SMART_LOWERCASE_CZECH:
- #endif /* defined(__MMI_T9_CZECH__) || defined(__MMI_CSTAR_CZECH__) */ //KP Jerry add "__MMI_CSTAR_CZECH__" on 2007-4-6
- #if defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_CSTAR_PORTUGUESE__) //KP Jerry add "__MMI_CSTAR_PORTUGUESE__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_PORTUGUESE:
- case INPUT_MODE_SMART_LOWERCASE_PORTUGUESE:
- #endif /* defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_CSTAR_PORTUGUESE__) */ //KP Jerry add "__MMI_CSTAR_PORTUGUESE__" on 2007-4-6
- #if defined(__MMI_T9_FINNISH__) || defined(__MMI_CSTAR_FINNISH__) //KP Jerry add "__MMI_CSTAR_FINNISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_FINNISH:
- case INPUT_MODE_SMART_LOWERCASE_FINNISH:
- #endif /* defined(__MMI_T9_FINNISH__) || defined(__MMI_CSTAR_FINNISH__) */ //KP Jerry add "__MMI_CSTAR_FINNISH__" on 2007-4-6
- #if defined(__MMI_T9_HUNGARIAN__) || defined(__MMI_CSTAR_HUNGARIAN__) //KP Jerry add "__MMI_CSTAR_HUNGARIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_HUNGARIAN:
- case INPUT_MODE_SMART_LOWERCASE_HUNGARIAN:
- #endif /* defined(__MMI_T9_HUNGARIAN__) || defined(__MMI_CSTAR_HUNGARIAN__) */ //KP Jerry add "__MMI_CSTAR_HUNGARIAN__" on 2007-4-6
- #if defined(__MMI_T9_ARABIC__) || defined(__MMI_CSTAR_ARABIC__) //KP Jerry add "__MMI_CSTAR_ARABIC__" on 2007-4-6
- case INPUT_MODE_SMART_ARABIC:
- #endif
- #if defined(__MMI_T9_GREEK__) || defined(__MMI_CSTAR_GREEK__) //KP Jerry add "__MMI_CSTAR_GREEK__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_GREEK:
- case INPUT_MODE_SMART_LOWERCASE_GREEK:
- #endif /* defined(__MMI_T9_GREEK__) || defined(__MMI_CSTAR_GREEK__) */ //KP Jerry add "__MMI_CSTAR_GREEK__" on 2007-4-6
- #if defined(__MMI_T9_HEBREW__) || defined(__MMI_CSTAR_HEBREW__) //KP Jerry add "__MMI_CSTAR_HEBREW__" on 2007-4-6
- case INPUT_MODE_SMART_HEBREW:
- #endif
- #if defined(__MMI_T9_HINDI__) || defined(__MMI_CSTAR_HINDI__) //KP Jerry add "__MMI_CSTAR_HINDI__" on 2007-4-6
- case INPUT_MODE_SMART_HINDI:
- #endif
- #if defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_CSTAR_NORWEGIAN__) //KP Jerry add "__MMI_CSTAR_NORWEGIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_NORWEGIAN:
- case INPUT_MODE_SMART_LOWERCASE_NORWEGIAN:
- #endif /* defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_CSTAR_NORWEGIAN__) */ //KP Jerry add "__MMI_CSTAR_NORWEGIAN__" on 2007-4-6
- #if defined(__MMI_T9_DUTCH__) || defined(__MMI_CSTAR_DUTCH__) //KP Jerry add "__MMI_CSTAR_DUTCH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_DUTCH:
- case INPUT_MODE_SMART_LOWERCASE_DUTCH:
- #endif /* defined(__MMI_T9_DUTCH__) || defined(__MMI_CSTAR_DUTCH__) */ //KP Jerry add "__MMI_CSTAR_DUTCH__" on 2007-4-6
- #if defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_CSTAR_SLOVENIAN__) //KP Jerry add "__MMI_CSTAR_SLOVENIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_SLOVENIAN:
- case INPUT_MODE_SMART_LOWERCASE_SLOVENIAN:
- #endif /* defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_CSTAR_SLOVENIAN__) */ //KP Jerry add "__MMI_CSTAR_SLOVENIAN__" on 2007-4-6
- #if defined(__MMI_T9_SWEDISH__) || defined(__MMI_CSTAR_SWEDISH__) //KP Jerry add "__MMI_CSTAR_SWEDISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_SWEDISH:
- case INPUT_MODE_SMART_LOWERCASE_SWEDISH:
- #endif /* defined(__MMI_T9_SWEDISH__) || defined(__MMI_CSTAR_SWEDISH__) */ //KP Jerry add "__MMI_CSTAR_SWEDISH__" on 2007-4-6
- #if defined(__MMI_T9_MALAY__) || defined(__MMI_CSTAR_MALAY__) //KP Jerry add "__MMI_CSTAR_MALAY__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_MALAY:
- case INPUT_MODE_SMART_LOWERCASE_MALAY:
- #endif /* defined(__MMI_T9_MALAY__) || defined(__MMI_CSTAR_MALAY__) */ //KP Jerry add "__MMI_CSTAR_MALAY__" on 2007-4-6
- #if defined(__MMI_T9_CROATIAN__) || defined(__MMI_CSTAR_CROATIAN__) //KP Jerry add "__MMI_CSTAR_CROATIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_CROATIAN:
- case INPUT_MODE_SMART_LOWERCASE_CROATIAN:
- #endif /* defined(__MMI_T9_CROATIAN__) || defined(__MMI_CSTAR_CROATIAN__) */ //KP Jerry add "__MMI_CSTAR_CROATIAN__" on 2007-4-6
- #if defined(__MMI_T9_SLOVAK__) || defined(__MMI_CSTAR_SLOVAK__) //KP Jerry add "__MMI_CSTAR_SLOVAK__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_SLOVAK:
- case INPUT_MODE_SMART_LOWERCASE_SLOVAK:
- #endif /* defined(__MMI_T9_SLOVAK__) || defined(__MMI_CSTAR_SLOVAK__) */ //KP Jerry add "__MMI_CSTAR_SLOVAK__" on 2007-4-6
- #if defined(__MMI_T9_ROMANIAN__) || defined(__MMI_CSTAR_ROMANIAN__) //KP Jerry add "__MMI_CSTAR_ROMANIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_ROMANIAN:
- case INPUT_MODE_SMART_LOWERCASE_ROMANIAN:
- #endif /* defined(__MMI_T9_ROMANIAN__) || defined(__MMI_CSTAR_ROMANIAN__) */ //KP Jerry add "__MMI_CSTAR_ROMANIAN__" on 2007-4-6
- if (MMI_current_input_mode == INPUT_MODE_SMART_HINDI)
- {
- gui_move_text_cursor(x, info_bar_y);
- }
- else
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_move_text_cursor(x, info_bar_y + 3);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_move_text_cursor(
- x,
- info_bar_y + (info_bar_height - height) / 2);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_print_text(inputmode_string);
- break;
- #elif defined(__MMI_ZI__)
- case INPUT_MODE_SMART_UPPERCASE_ABC:
- case INPUT_MODE_SMART_LOWERCASE_ABC:
- case INPUT_MODE_SMART_THAI:
- /* MTK Elvis for R2L characters */
- case INPUT_MODE_SMART_ARABIC:
- //PMT START PERSIAN
- case INPUT_MODE_SMART_PERSIAN:
- //PMT END PERSIAN
- case INPUT_MODE_SMART_HINDI:
- case INPUT_MODE_SMART_HEBREW:
- #if defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__)
- case INPUT_MODE_SMART_UPPERCASE_SPANISH:
- case INPUT_MODE_SMART_LOWERCASE_SPANISH:
- #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:
- #endif /* defined(__MMI_ZI_DANISH__) */
- #if defined(__MMI_ZI_POLISH__)
- case INPUT_MODE_SMART_UPPERCASE_POLISH:
- case INPUT_MODE_SMART_LOWERCASE_POLISH:
- #endif /* defined(__MMI_ZI_POLISH__) */
- #if defined(__MMI_ZI_NORWEGIAN__)
- case INPUT_MODE_SMART_UPPERCASE_NORWEGIAN:
- case INPUT_MODE_SMART_LOWERCASE_NORWEGIAN:
- #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:
- #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:
- #endif /* defined(__MMI_ZI_GERMAN__) */
- #if defined(__MMI_ZI_ITALIAN__)
- case INPUT_MODE_SMART_UPPERCASE_ITALIAN:
- case INPUT_MODE_SMART_LOWERCASE_ITALIAN:
- #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:
- #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:
- #endif /* defined(__MMI_ZI_BULGARIAN__) */
- #if defined(__MMI_ZI_TURKISH__)
- case INPUT_MODE_SMART_UPPERCASE_TURKISH:
- case INPUT_MODE_SMART_LOWERCASE_TURKISH:
- #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:
- #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:
- #endif /* defined(__MMI_ZI_INDONESIAN__) */
- #if defined(__MMI_ZI_MALAY__)
- case INPUT_MODE_SMART_UPPERCASE_MALAY:
- case INPUT_MODE_SMART_LOWERCASE_MALAY:
- #endif /* defined(__MMI_ZI_MALAY__) */
- #if defined(__MMI_ZI_VIETNAMESE__)
- case INPUT_MODE_SMART_UPPERCASE_VIETNAMESE:
- case INPUT_MODE_SMART_LOWERCASE_VIETNAMESE:
- #endif /* defined(__MMI_ZI_VIETNAMESE__) */
- #if defined(__MMI_ZI_SWEDISH__)
- case INPUT_MODE_SMART_UPPERCASE_SWEDISH:
- case INPUT_MODE_SMART_LOWERCASE_SWEDISH:
- #endif /* defined(__MMI_ZI_SWEDISH__) */
- #if defined(__MMI_ZI_SLOVAK__)
- case INPUT_MODE_SMART_UPPERCASE_SLOVAK:
- case INPUT_MODE_SMART_LOWERCASE_SLOVAK:
- #endif /* defined(__MMI_ZI_SLOVAK__) */
- #if defined(__MMI_ZI_DUTCH__)
- case INPUT_MODE_SMART_UPPERCASE_DUTCH:
- case INPUT_MODE_SMART_LOWERCASE_DUTCH:
- #endif /* defined(__MMI_ZI_DUTCH__) */
- #if defined(__MMI_ZI_CROATIAN__)
- case INPUT_MODE_SMART_UPPERCASE_CROATIAN:
- case INPUT_MODE_SMART_LOWERCASE_CROATIAN:
- #endif /* defined(__MMI_ZI_CROATIAN__) */
- #if defined(__MMI_ZI_ROMANIAN__)
- case INPUT_MODE_SMART_UPPERCASE_ROMANIAN:
- case INPUT_MODE_SMART_LOWERCASE_ROMANIAN:
- #endif /* defined(__MMI_ZI_ROMANIAN__) */
- #if defined(__MMI_ZI_SLOVENIAN__)
- case INPUT_MODE_SMART_UPPERCASE_SLOVENIAN:
- case INPUT_MODE_SMART_LOWERCASE_SLOVENIAN:
- #endif /* defined(__MMI_ZI_SLOVENIAN__) */
- #if defined(__MMI_ZI_GREEK__)
- case INPUT_MODE_SMART_UPPERCASE_GREEK:
- case INPUT_MODE_SMART_LOWERCASE_GREEK:
- #endif /* defined(__MMI_ZI_GREEK__) */
- #if defined(__MMI_ZI_FINNISH__)
- case INPUT_MODE_SMART_UPPERCASE_FINNISH:
- case INPUT_MODE_SMART_LOWERCASE_FINNISH:
- #endif /* defined(__MMI_ZI_FINNISH__) */
- #if defined(__MMI_ZI_CZECH__)
- case INPUT_MODE_SMART_UPPERCASE_CZECH:
- case INPUT_MODE_SMART_LOWERCASE_CZECH:
- #endif /* defined(__MMI_ZI_CZECH__) */
- #if defined(__MMI_ZI_HUNGARIAN__)
- case INPUT_MODE_SMART_UPPERCASE_HUNGARIAN:
- case INPUT_MODE_SMART_LOWERCASE_HUNGARIAN:
- #endif /* defined(__MMI_ZI_HUNGARIAN__) */
- if (wgui_inputbox_information_icon == NULL)
- {
- if (!r2lMMIFlag)
- {
- x += width + 2;
- }
- else
- {
- x -= (width + 2);
- }
- }
- else
- {
- gui_measure_image(wgui_inputbox_information_icon, &width, &height);
- if (!r2lMMIFlag)
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x,
- info_bar_y + 1,
- wgui_inputbox_information_icon,
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_show_transparent_image(
- x,
- info_bar_y + (info_bar_height - height) / 2,
- wgui_inputbox_information_icon,
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x += width + 2;
- }
- else
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x - width,
- info_bar_y + 1,
- wgui_inputbox_information_icon,
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_show_transparent_image(
- x - width,
- info_bar_y + (info_bar_height - height) / 2,
- wgui_inputbox_information_icon,
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x -= (width + 2);
- }
- }
- if (MMI_current_input_mode == INPUT_MODE_SMART_HINDI)
- {
- gui_move_text_cursor(x, info_bar_y);
- }
- /* PMT RAKESH START 20061006 */
- else if (MMI_current_input_mode == INPUT_MODE_MULTITAP_MARATHI)
- {
- gui_move_text_cursor(x, wgui_inputbox_information_bar_y + 1);
- }
- /* PMT RAKESH END 20061006 */
- else
- {
- gui_move_text_cursor(x, info_bar_y + 3);
- }
- gui_print_text(inputmode_string);
- break;
- case INPUT_MODE_TR_MULTITAP_BOPOMO:
- case INPUT_MODE_SM_MULTITAP_PINYIN:
- case INPUT_MODE_TR_STROKE:
- case INPUT_MODE_SM_STROKE:
- if (wgui_inputbox_information_icon == NULL)
- {
- if (!r2lMMIFlag)
- {
- x += width + 2;
- }
- else
- {
- x -= (width + 2);
- }
- }
- else
- {
- gui_measure_image(wgui_inputbox_information_icon, &width, &height);
- #if defined(__MMI_TOUCH_SCREEN__)
- wgui_information_bar_input_mode_display_width += width;
- #endif
- if (!r2lMMIFlag)
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x,
- info_bar_y + 1,
- wgui_inputbox_information_icon,
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_draw_filled_area(
- x,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x + 2,
- info_bar_y + (info_bar_height - height) / 2 + 1,
- wgui_inputbox_information_icon,
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x += width + 2;
- }
- else
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x - width,
- info_bar_y + 1,
- wgui_inputbox_information_icon,
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_draw_filled_area(
- x - width,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x - width,
- info_bar_y + (info_bar_height - height) / 2 + 1,
- wgui_inputbox_information_icon,
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x -= (width + 2);
- }
- }
- break;
- case INPUT_MODE_TR_BOPOMO:
- case INPUT_MODE_SM_PINYIN:
- gui_measure_image(get_image(WGUI_ZI_EZITEXT_LOGO), &width, &height);
- #if defined(__MMI_TOUCH_SCREEN__)
- wgui_information_bar_input_mode_display_width += width;
- #endif
- if (!r2lMMIFlag)
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(x, info_bar_y + 1, get_image(WGUI_ZI_EZITEXT_LOGO), 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_show_transparent_image(
- x,
- info_bar_y + (info_bar_height - height) / 2,
- get_image(WGUI_ZI_EZITEXT_LOGO),
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x += width + 2;
- }
- else
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x - width,
- info_bar_y + 1,
- get_image(WGUI_ZI_EZITEXT_LOGO),
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_show_transparent_image(
- x - width,
- info_bar_y + (info_bar_height - height) / 2,
- get_image(WGUI_ZI_EZITEXT_LOGO),
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x -= (width + 2);
- }
- if (wgui_inputbox_information_icon == NULL)
- {
- if (!r2lMMIFlag)
- {
- x += width + 2;
- }
- else
- {
- x -= (width + 2);
- }
- }
- else
- {
- gui_measure_image(wgui_inputbox_information_icon, &width, &height);
- if (!r2lMMIFlag)
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x,
- info_bar_y + 1,
- wgui_inputbox_information_icon,
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_draw_filled_area(
- x,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x,
- info_bar_y + (info_bar_height - height) / 2 + 1,
- wgui_inputbox_information_icon,
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x += width + 2;
- }
- else
- {
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x - width,
- info_bar_y + 1,
- wgui_inputbox_information_icon,
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- gui_draw_filled_area(
- x - width,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x - width,
- info_bar_y + (info_bar_height - height) / 2 + 1,
- wgui_inputbox_information_icon,
- 0);
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- x -= (width + 2);
- }
- }
- break;
- case INPUT_MODE_MMI_MULTITAP_BPMF:
- gui_measure_image(get_image(WGUI_ZI_EZITEXT_BPMF_LOGO), &width, &height);
- #if defined(__MMI_TOUCH_SCREEN__)
- wgui_information_bar_input_mode_display_width += width;
- #endif
- if (!r2lMMIFlag)
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x,
- info_bar_y + 1,
- get_image(WGUI_ZI_EZITEXT_BPMF_LOGO),
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- {
- gui_draw_filled_area(
- x,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x + 2,
- info_bar_y + (info_bar_height - height) / 2 + 1,
- get_image(WGUI_ZI_EZITEXT_BPMF_LOGO),
- 0);
- }
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- else
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x - width,
- info_bar_y + 1,
- get_image(WGUI_ZI_EZITEXT_BPMF_LOGO),
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- {
- gui_draw_filled_area(
- x - width,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x - width + 2,
- info_bar_y + (info_bar_height - height) / 2 + 1,
- get_image(WGUI_ZI_EZITEXT_BPMF_LOGO),
- 0);
- }
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- break;
- case INPUT_MODE_MMI_MULTITAP_PINYIN:
- gui_measure_image(get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO), &width, &height);
- #if defined(__MMI_TOUCH_SCREEN__)
- wgui_information_bar_input_mode_display_width += width;
- #endif
- if (!r2lMMIFlag)
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x,
- info_bar_y + 1,
- get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO),
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- {
- gui_draw_filled_area(
- x,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x + 2,
- info_bar_y + (info_bar_height - height) / 2 + 1,
- get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO),
- 0);
- }
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- else
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x - width,
- info_bar_y + 1,
- get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO),
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- {
- gui_draw_filled_area(
- x - width,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x - width + 2,
- info_bar_y + (info_bar_height - height) / 2 + 1,
- get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO),
- 0);
- }
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- break;
- case INPUT_MODE_MMI_SM_STROKE:
- gui_measure_image(get_image(WGUI_ZI_EZITEXT_SM_STROKE_LOGO), &width, &height);
- #if defined(__MMI_TOUCH_SCREEN__)
- wgui_information_bar_input_mode_display_width += width;
- #endif
- if (!r2lMMIFlag)
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x,
- info_bar_y + 1,
- get_image(WGUI_ZI_EZITEXT_SM_STROKE_LOGO),
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- {
- gui_draw_filled_area(
- x,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x + 2,
- info_bar_y + (info_bar_height - height) / 2 + 1,
- get_image(WGUI_ZI_EZITEXT_SM_STROKE_LOGO),
- 0);
- }
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- else
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x - width,
- info_bar_y + 1,
- get_image(WGUI_ZI_EZITEXT_SM_STROKE_LOGO),
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- {
- gui_draw_filled_area(
- x - width,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x - width + 2,
- info_bar_y + (info_bar_height - height) / 2 + 1,
- get_image(WGUI_ZI_EZITEXT_SM_STROKE_LOGO),
- 0);
- }
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- break;
- case INPUT_MODE_MMI_TR_STROKE:
- gui_measure_image(get_image(WGUI_ZI_EZITEXT_TR_STROKE_LOGO), &width, &height);
- #if defined(__MMI_TOUCH_SCREEN__)
- wgui_information_bar_input_mode_display_width += width;
- #endif
- if (!r2lMMIFlag)
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x,
- info_bar_y + 1,
- get_image(WGUI_ZI_EZITEXT_TR_STROKE_LOGO),
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- {
- gui_draw_filled_area(
- x,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x + 2,
- info_bar_y + (info_bar_height - height) / 2 + 1,
- get_image(WGUI_ZI_EZITEXT_TR_STROKE_LOGO),
- 0);
- }
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- else
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_show_transparent_image(
- x - width,
- info_bar_y + 1,
- get_image(WGUI_ZI_EZITEXT_TR_STROKE_LOGO),
- 0);
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- {
- gui_draw_filled_area(
- x - width + 2,
- info_bar_y + (info_bar_height - rect_height) / 2 - 1,
- x + 4 + width,
- info_bar_y + (info_bar_height + rect_height) / 2,
- &information_bar_BG_filler);
- gui_show_transparent_image(
- x - width,
- info_bar_y + (wgui_inputbox_information_bar_height - height) / 2 + 1,
- get_image(WGUI_ZI_EZITEXT_TR_STROKE_LOGO),
- 0);
- }
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- break;
- #endif
- }
- #endif /* __BW_MMI__ */
- }
- void wgui_show_input_mode(U8 input_mode, PU8 inputbox_information_icon)
- {
- wgui_show_input_mode_internal(
- wgui_inputbox_information_bar_x,
- wgui_inputbox_information_bar_y,
- wgui_inputbox_information_bar_width,
- wgui_inputbox_information_bar_height,
- input_mode,
- inputbox_information_icon);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_redraw_remaining_characters_display
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_redraw_remaining_characters_display_internal(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- #ifndef __MMI_HIDE_MUL_REMAINING_CHAR__
- color c;
- /* MTK Leo added, for BW_MMI display */
- #ifdef __BW_MMI__
- S32 x1 = UI_device_width - 21;
- S32 y1 = 2;
- S32 x2 = UI_device_width - 1;
- S32 y2 = (MMI_title_y + MMI_title_height) - 2;
- #else /* __BW_MMI__ */
- /* MTK Elvis for R2L characters */
- S32 x1;
- S32 x2;
- S32 y1 = wgui_inputbox_information_bar_y;
- S32 y2 = wgui_inputbox_information_bar_y + wgui_inputbox_information_bar_height - 1;
- /* MTK end */
- #endif /* __BW_MMI__ */
- /* MTK Leo end */
- #if !defined(__MMI_TOUCH_SCREEN__)
- stFontAttribute *f = &MMI_small_font;
- S32 w, n, max_n;
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- stFontAttribute *f = &MMI_medium_font;
- S32 w, h, n, max_n;
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- UI_character_type str[32];
- /* MTK Terry for 0x81 encoding support for Phone Book */
- U8 temp_0x81 = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* MTK Elvis for R2L characters */
- if (!r2lMMIFlag)
- {
- x1 = wgui_inputbox_information_bar_x + (wgui_inputbox_information_bar_width >> 1);
- x2 = wgui_inputbox_information_bar_x + wgui_inputbox_information_bar_width - 1;
- }
- else
- {
- x1 = wgui_inputbox_information_bar_x;
- x2 = wgui_inputbox_information_bar_x + (wgui_inputbox_information_bar_width / 2) - 1;
- }
- /* MTK end */
- #if(UI_DOUBLE_BUFFER_SUPPORT)
- gui_lock_double_buffer();
- #endif
- /* Warning: Temporary change only UCS2 / ASCII. This has to be done in a more formal manner */
- n = (MMI_multiline_inputbox.text_length >> 1) - 1;
- max_n = (MMI_multiline_inputbox.available_length >> 1) - 1;
- if ((MMI_multiline_inputbox.flags & UI_MULTI_LINE_INPUT_BOX_CHECK_GSM_EXTENDED) &&
- (MMI_multiline_inputbox.UCS2_count == 0))
- {
- n += MMI_multiline_inputbox.GSM_ext_count;
- }
- if ((MMI_multiline_inputbox.flags & UI_MULTI_LINE_INPUT_BOX_PLUS_CHARACTER_HANDLING) &&
- (MMI_multiline_inputbox.text[0] == '+'))
- {
- n--;
- max_n--;
- }
- if (MMI_current_input_ext_type & INPUT_TYPE_EXT_USE_0x81_ENCODING)
- {
- temp_0x81 = mmi_phb_convert_to_0x81((S8*) MMI_multiline_inputbox.text, FALSE);
- if (0 != temp_0x81)
- {
- max_n = (MMI_multiline_inputbox.allocated_length >> 1) - 4;
- n = temp_0x81 - 3;
- }
- }
- if (!(MMI_multiline_inputbox.flags & UI_MULTI_LINE_INPUT_BOX_INCLUDE_INFO_AREA))
- {
- wgui_input_information_background(x1, y1, x2, y2);
- }
- gui_reset_text_clip();
- gui_sprintf(str, "%d/%d", n, max_n);
- c = *current_MMI_theme->remaining_length_text_color;
- gui_set_font(f);
- gui_set_text_color(c);
- gui_set_text_clip(0, 0, UI_device_width - 1, UI_device_height - 1);
- #if !defined(__MMI_TOUCH_SCREEN__)
- w = gui_get_string_width(str);
- #else
- gui_measure_string(str, &w, &h);
- #endif
- //MTK Leo added, for BW_MMI display
- //MTK Elvis for R2L characters
- if (!r2lMMIFlag)
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_move_text_cursor(x2 - 2 - w, y1 + 2);
- #else
- gui_move_text_cursor(x2 - 2 - w, y1 + (wgui_inputbox_information_bar_height - h) / 2);
- #endif
- else
- #if !defined(__MMI_TOUCH_SCREEN__)
- gui_move_text_cursor(x1 + 2 + w, y1 + 2);
- #else
- gui_move_text_cursor(x1 + 2 + w, y1 + (wgui_inputbox_information_bar_height - h) / 2);
- #endif
- //MTK end
- //MTK Leo end
- gui_print_text(str);
- #if(UI_DOUBLE_BUFFER_SUPPORT)
- gui_unlock_double_buffer();
- gui_BLT_double_buffer(x1, y1, x2, y2);
- #endif /* (UI_DOUBLE_BUFFER_SUPPORT) */
- #endif /* __MMI_HIDE_MUL_REMAINING_CHAR__ */
- }
- void wgui_redraw_remaining_characters_display(void)
- {
- if(MMI_multiline_inputbox.infobar_reminder_char_callback==NULL)
- wgui_redraw_remaining_characters_display_internal();
- else
- {
- S32 x1 = wgui_inputbox_information_bar_x;
- S32 y1 = wgui_inputbox_information_bar_y;
- S32 x2 = wgui_inputbox_information_bar_x + wgui_inputbox_information_bar_width - 1;
- S32 y2 = wgui_inputbox_information_bar_y + wgui_inputbox_information_bar_height - 1;
- MMI_multiline_inputbox.infobar_reminder_char_callback(x1,y1,x2,y2);
- }
- }
- void wgui_multiline_inputbox_show_current_input_method(S32 x1,S32 y1,S32 x2,S32 y2)
- {
- wgui_show_input_mode_internal(
- x1,
- y1,
- x2-x1+1,
- y2-y1+1,
- MMI_current_input_mode, wgui_inputbox_information_icon);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_redraw_input_information_bar
- * DESCRIPTION
- * redrwa input information bar
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_redraw_input_information_bar(void)
- {
- S32 x1 = wgui_inputbox_information_bar_x;
- S32 y1 = wgui_inputbox_information_bar_y;
- S32 x2 = wgui_inputbox_information_bar_x + wgui_inputbox_information_bar_width - 1;
- S32 y2 = wgui_inputbox_information_bar_y + wgui_inputbox_information_bar_height - 1;
- gui_lock_double_buffer();
- if(MMI_multiline_inputbox.infobar_redraw_callback)
- {
- MMI_multiline_inputbox.infobar_redraw_callback(x1,y1,x2,y2);
- }
- else
- {
- #if(!((UI_ENABLE_FRAME_SKIPPING) && (ENABLE_MULTILINE_INPUTBOX_FRAME_SKIPPING)))
- if (!(MMI_multiline_inputbox.flags & UI_MULTI_LINE_INPUT_BOX_INCLUDE_INFO_AREA) || redraw_on_input_method_change)
- #endif
- wgui_input_information_background(x1, y1, x2, y2);
- wgui_multiline_inputbox_show_current_input_method(x1,y1,x2,y2);
- wgui_redraw_remaining_characters_display();
- }
- gui_unlock_double_buffer();
- gui_BLT_double_buffer(x1, y1, x2, y2);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_redraw_input_information_background
- * DESCRIPTION
- * redrwa input information background
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_redraw_input_information_background(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S32 x1 = wgui_inputbox_information_bar_x;
- S32 y1 = wgui_inputbox_information_bar_y;
- S32 x2 = wgui_inputbox_information_bar_x + wgui_inputbox_information_bar_width - 1;
- S32 y2 = wgui_inputbox_information_bar_y + wgui_inputbox_information_bar_height - 1;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gui_lock_double_buffer();
- wgui_input_information_background(x1, y1, x2, y2);
- wgui_show_input_mode(MMI_current_input_mode, wgui_inputbox_information_icon);
- gui_unlock_double_buffer();
- gui_BLT_double_buffer(x1, y1, x2, y2);
- }
- /* Back and clear key handling */
- void (*wgui_inputbox_RSK_function) (void) = NULL;
- U8 wgui_inputbox_RSK_label_clear = 0;
- /* store label string of RSK of input box */
- UI_string_type wgui_inputbox_RSK_label_string;
- /* store label icon of RSK key */
- PU8 wgui_inputbox_RSK_label_icon;
- /* flag used to check decimal input in multline input box */
- U8 wgui_multiline_inputbox_decimal_flag = 0;
- /* flag used to store decimal input mode flag */
- U8 wgui_multiline_inputbox_decimal_input_mode_flag = 0;
- void wgui_inputbox_handle_multitap_input_complete(S32 type);
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_inputbox_right_softkey_down
- * DESCRIPTION
- * handle RSK down key of input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_inputbox_right_softkey_down(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- //MTK Terry for Firefly_856 #228 229
- //Need to be reviewed
- //to disable the multitap timer in multiline inputbox for INPUT_TYPE_PHONE_NUMBER
- wgui_inputbox_handle_multitap_input_complete(WGUI_INPUTBOX_EDIT_MULTITAP_ANY);
- //to disable the multitap timer
- //(1)press multitap key 1
- //(2)before timer out, press clear key or RSK to clear current hilighlighted char
- disable_active_multitap();
- /* MTK end */
- if (wgui_multiline_inputbox_decimal_input_mode_flag)
- {
- if (wgui_multiline_inputbox_decimal_flag)
- {
- UI_buffer_type p = MMI_multiline_inputbox.cursor_p;
- UI_character_type c;
- if (p != MMI_multiline_inputbox.text)
- {
- UI_STRING_GET_PREVIOUS_CHARACTER(p, c);
- if (c == (UI_character_type) '.')
- {
- wgui_multiline_inputbox_decimal_flag = 0;
- }
- }
- }
- if (gui_multi_line_input_box_get_text_length(&MMI_multiline_inputbox) > 0)
- {
- multiline_inputbox_delete_character();
- }
- }
- else
- {
- if (gui_multi_line_input_box_get_text_length(&MMI_multiline_inputbox) > 0)
- {
- multiline_inputbox_delete_character();
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_inputbox_right_softkey_up
- * DESCRIPTION
- * handle RSK up key of input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_inputbox_right_softkey_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (wgui_inputbox_RSK_function != NULL)
- {
- wgui_inputbox_RSK_function();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_register_inputbox_handle_right_softkey_up
- * DESCRIPTION
- * register RSK function handler of input box key
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_register_inputbox_handle_right_softkey_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- set_right_softkey_function(wgui_handle_inputbox_right_softkey_up, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_register_inputbox_handle_clear_key_up
- * DESCRIPTION
- * register RSK function handler of input box key
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_register_inputbox_handle_clear_key_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetKeyHandler(wgui_handle_inputbox_right_softkey_up, KEY_CLEAR, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_inputbox_right_softkey_long_press
- * DESCRIPTION
- * handle right soft key long press of multiline input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_inputbox_right_softkey_long_press(void)
- {
- #if defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__)
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (MMI_multiline_inputbox.flags & UI_MULTI_LINE_WCSS_INPUT_BOX_ENABLE)
- {
- return;
- }
- #endif /* defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__) */
- multiline_inputbox_delete_all_characters();
- if (wgui_multiline_inputbox_decimal_input_mode_flag)
- {
- wgui_multiline_inputbox_decimal_flag = 0;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_inputbox_input
- * DESCRIPTION
- * handle input box input
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_inputbox_input(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gui_multi_line_input_box_get_text_length(&MMI_multiline_inputbox) > 0)
- {
- #if defined(__MMI_WITH_C_KEY__)
- if (wgui_inputbox_RSK_label_clear == 0)
- {
- if (wgui_inputbox_not_empty_callback != NULL)
- {
- wgui_inputbox_not_empty_callback();
- }
- wgui_inputbox_RSK_label_clear = 1;
- SetKeyHandler(wgui_handle_inputbox_right_softkey_down, KEY_CLEAR, KEY_EVENT_DOWN);
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_UP);
- SetKeyHandler(wgui_handle_inputbox_right_softkey_long_press, KEY_CLEAR, KEY_EVENT_LONG_PRESS);
- }
- #else /* defined(__MMI_WITH_C_KEY__) */
- if (wgui_inputbox_RSK_label_clear == 0)
- {
- set_right_softkey_label((UI_string_type) get_string(WGUI_CATEGORY_CLEAR_STRING_ID));
- set_right_softkey_icon(NULL);
- if (wgui_inputbox_not_empty_callback != NULL)
- {
- wgui_inputbox_not_empty_callback();
- }
- redraw_right_softkey();
- register_right_softkey_handler();
- wgui_inputbox_RSK_label_clear = 1;
- set_right_softkey_function(UI_dummy_function, KEY_EVENT_UP);
- set_right_softkey_function(wgui_handle_inputbox_right_softkey_down, KEY_EVENT_DOWN);
- }
- #endif /* defined(__MMI_WITH_C_KEY__) */
- }
- else
- {
- #if defined(__MMI_WITH_C_KEY__)
- if (wgui_inputbox_RSK_label_clear == 1)
- {
- wgui_inputbox_RSK_label_clear = 0;
- if (wgui_inputbox_empty_callback != NULL)
- {
- wgui_inputbox_empty_callback();
- }
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_DOWN);
- SetKeyHandler(wgui_register_inputbox_handle_clear_key_up, KEY_CLEAR, KEY_EVENT_UP);
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_LONG_PRESS);
- }
- #else /* defined(__MMI_WITH_C_KEY__) */
- if (wgui_inputbox_RSK_label_clear == 1)
- {
- set_right_softkey_label(wgui_inputbox_RSK_label_string);
- set_right_softkey_icon(wgui_inputbox_RSK_label_icon);
- if (wgui_inputbox_empty_callback != NULL)
- {
- wgui_inputbox_empty_callback();
- }
- redraw_right_softkey();
- register_right_softkey_handler();
- wgui_inputbox_RSK_label_clear = 0;
- set_right_softkey_function(wgui_register_inputbox_handle_right_softkey_up, KEY_EVENT_UP);
- set_right_softkey_function(UI_dummy_function, KEY_EVENT_DOWN);
- }
- #endif /* defined(__MMI_WITH_C_KEY__) */
- }
- #if(0)
- if(pixtel_UI_multi_line_input_box_test_first_position(&MMI_multiline_inputbox))
- { if(wgui_inputbox_RSK_label_clear==1)
- { set_right_softkey_label(wgui_inputbox_RSK_label_string);
- set_right_softkey_icon(wgui_inputbox_RSK_label_icon);
- redraw_right_softkey();
- wgui_inputbox_RSK_label_clear=0;
- set_right_softkey_function(wgui_register_inputbox_handle_right_softkey_up,KEY_EVENT_UP);
- set_right_softkey_function(UI_dummy_function,KEY_EVENT_DOWN);
- }
- }
- #endif /* (0) */
- if (MMI_multiline_inputbox.flags & UI_MULTI_LINE_INPUT_BOX_PLUS_CHARACTER_HANDLING)
- {
- if (MMI_multiline_inputbox.text[0] == '+')
- {
- MMI_multiline_inputbox.available_length = (wgui_inputbox_buffer_size + 1) * ENCODING_LENGTH;
- }
- else
- {
- MMI_multiline_inputbox.available_length = wgui_inputbox_buffer_size * ENCODING_LENGTH;
- }
- }
- if (wgui_inputbox_information_flag)
- {
- wgui_redraw_remaining_characters_display();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_inputbox_navigate
- * DESCRIPTION
- * handle input box navigation
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_inputbox_navigate(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gui_multi_line_input_box_test_first_position(&MMI_multiline_inputbox))
- {
- if (wgui_inputbox_RSK_label_clear == 1)
- {
- set_right_softkey_label(wgui_inputbox_RSK_label_string);
- set_right_softkey_icon(wgui_inputbox_RSK_label_icon);
- redraw_right_softkey();
- wgui_inputbox_RSK_label_clear = 0;
- set_right_softkey_function(wgui_handle_inputbox_right_softkey_up, KEY_EVENT_UP);
- set_right_softkey_function(UI_dummy_function, KEY_EVENT_DOWN);
- }
- }
- else
- {
- if (wgui_inputbox_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();
- wgui_inputbox_RSK_label_clear = 1;
- set_right_softkey_function(UI_dummy_function, KEY_EVENT_UP);
- set_right_softkey_function(wgui_handle_inputbox_right_softkey_down, KEY_EVENT_DOWN);
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_get_inputbox_information_icon
- * DESCRIPTION
- * chaneg input mode of input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- //Pixte - Gurinder 03/05/04 Code Divided Into A Seprate Function for Code Resuability.
- //MTK Elvis modify for stacked character---thai
- void wgui_get_inputbox_information_icon(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /* PMT RAKESH START 20061006 */
- #if defined (__MMI_LANG_MARATHI__)
- U16 name_marathi[] = {C_MA, C_RA, DV_AA, C_TTHA, DV_II, 0x0};
- #endif
- /* PMT RAKESH END 20061006 */
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- switch (MMI_current_input_mode)
- {
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC:
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC:
- case INPUT_MODE_123:
- #if defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC_NO_NUMERIC:
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC_NO_NUMERIC:
- case INPUT_MODE_123_SYMBOLS:
- #endif /* defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__) */
- #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 END 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_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_SWEDISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH:
- case INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH:
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- case INPUT_MODE_MULTITAP_HEBREW:
- #endif
- #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_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__) */
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #if defined(__MMI_T9__) || defined(__MMI_CSTAR__) || defined(__MMI_ITAP__) || defined(__MMI_KA__) //KP Jerry add "__MMI_CSTAR__" on 2007-4-6
- //KP Jerry modify on 2007-4-17 start
- #if defined(__MMI_LANG_TR_CHINESE__) //KP Jerry add on 2007-4-17
- case INPUT_MODE_TR_MULTITAP_BOPOMO:
- wgui_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_BPMF_IMG);
- break;
- case INPUT_MODE_TR_BOPOMO:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_BPMF_IMG);
- break;
- case INPUT_MODE_TR_STROKE:
- wgui_inputbox_information_icon = get_image(WGUI_IME_TR_STROKE_IMG);
- break;
- #endif //KP Jerry add on 2007-4-17
- #if defined(__MMI_LANG_SM_CHINESE__) //KP Jerry add on 2007-4-17
- case INPUT_MODE_SM_MULTITAP_PINYIN:
- wgui_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_PINYIN_IMG);
- break;
- case INPUT_MODE_SM_PINYIN:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_PINYIN_IMG);
- break;
- case INPUT_MODE_SM_STROKE:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SM_STROKE_IMG);
- break;
- #endif //KP Jerry add on 2007-4-17
- //KP Jerry modify on 2007-4-17 end
- case INPUT_MODE_SMART_UPPERCASE_ABC:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_MODE_SMART_LOWERCASE_ABC:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- /* PMT RAKESH START 20061006 */
- #if defined(__MMI_LANG_MARATHI__)
- case INPUT_MODE_MULTITAP_MARATHI:
- inputmode_string = (UI_string_type) input_mode_marathi_string_array;
- break;
- #endif /* defined(__MMI_LANG_MARATHI__) */
- /* PMT RAKESH END 20061006 */
- #if defined (__MMI_T9_THAI__) || defined(__MMI_CSTAR_THAI__) //KP Jerry add "__MMI_CSTAR_THAI__" on 2007-4-6
- case INPUT_MODE_SMART_THAI:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined (__MMI_T9_THAI__) || defined(__MMI_CSTAR_THAI__) */ //KP Jerry add "__MMI_CSTAR_THAI__" on 2007-4-6
- #if defined (__MMI_T9_ARABIC__) || defined(__MMI_CSTAR_ARABIC__) //KP Jerry add "__MMI_CSTAR_ARABIC__" on 2007-4-6
- case INPUT_MODE_SMART_ARABIC:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined (__MMI_T9_ARABIC__) || defined(__MMI_CSTAR_ARABIC__) */ //KP Jerry add "__MMI_CSTAR_ARABIC__" on 2007-4-6
- #if defined(__MMI_T9_GREEK__) || defined(__MMI_CSTAR_GREEK__) //KP Jerry add "__MMI_CSTAR_GREEK__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_GREEK:
- case INPUT_MODE_SMART_LOWERCASE_GREEK:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_GREEK__) || defined(__MMI_CSTAR_GREEK__) */ //KP Jerry add "__MMI_CSTAR_GREEK__" on 2007-4-6
- #if defined (__MMI_T9_HEBREW__) || defined(__MMI_CSTAR_HEBREW__) //KP Jerry add "__MMI_CSTAR_HEBREW__" on 2007-4-6
- case INPUT_MODE_SMART_HEBREW:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined (__MMI_T9_HEBREW__) || defined(__MMI_CSTAR_HEBREW__) */ //KP Jerry add "__MMI_CSTAR_HEBREW__" on 2007-4-6
- #if defined (__MMI_T9_HINDI__) || defined(__MMI_CSTAR_HINDI__) //KP Jerry add "__MMI_CSTAR_HINDI__" on 2007-4-6
- case INPUT_MODE_SMART_HINDI:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined (__MMI_T9_HINDI__) || defined(__MMI_CSTAR_HINDI__) */ //KP Jerry add "__MMI_CSTAR_HINDI__" on 2007-4-6
- #if defined(__MMI_T9_SPANISH__) || defined(__MMI_CSTAR_SPANISH__) //KP Jerry add "__MMI_CSTAR_SPANISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_SPANISH:
- case INPUT_MODE_SMART_LOWERCASE_SPANISH:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_SPANISH__) || defined(__MMI_CSTAR_SPANISH__) */ //KP Jerry add "__MMI_CSTAR_SPANISH__" on 2007-4-6
- #if defined(__MMI_T9_DANISH__) || defined(__MMI_CSTAR_DANISH__) //KP Jerry add "__MMI_CSTAR_DANISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_DANISH:
- case INPUT_MODE_SMART_LOWERCASE_DANISH:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_DANISH__) || defined(__MMI_CSTAR_DANISH__) */ //KP Jerry add "__MMI_CSTAR_DANISH__" on 2007-4-6
- #if defined(__MMI_T9_POLISH__) || defined(__MMI_CSTAR_POLISH__) //KP Jerry add "__MMI_CSTAR_POLISH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_POLISH:
- case INPUT_MODE_SMART_LOWERCASE_POLISH:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_POLISH__) || defined(__MMI_CSTAR_POLISH__) */ //KP Jerry add "__MMI_CSTAR_POLISH__" on 2007-4-6
- #if defined(__MMI_T9_FRENCH__) || defined(__MMI_CSTAR_FRENCH__) //KP Jerry add "__MMI_CSTAR_FRENCH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_FRENCH:
- case INPUT_MODE_SMART_LOWERCASE_FRENCH:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_FRENCH__) || defined(__MMI_CSTAR_FRENCH__) */ //KP Jerry add "__MMI_CSTAR_FRENCH__" on 2007-4-17
- #if defined(__MMI_T9_GERMAN__) || defined(__MMI_CSTAR_GERMAN__) //KP Jerry add "__MMI_CSTAR_GERMAN__" on 2007-4-17
- case INPUT_MODE_SMART_UPPERCASE_GERMAN:
- case INPUT_MODE_SMART_LOWERCASE_GERMAN:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_GERMAN__) || defined(__MMI_CSTAR_GERMAN__) */ //KP Jerry add "__MMI_CSTAR_GERMAN__" on 2007-4-17
- #if defined(__MMI_T9_ITALIAN__) || defined(__MMI_CSTAR_ITALIAN__) //KP Jerry add "__MMI_CSTAR_ITALIAN__" on 2007-4-17
- case INPUT_MODE_SMART_UPPERCASE_ITALIAN:
- case INPUT_MODE_SMART_LOWERCASE_ITALIAN:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_ITALIAN__) || defined(__MMI_CSTAR_ITALIAN__) */ //KP Jerry add "__MMI_CSTAR_ITALIAN__" on 2007-4-17
- #if defined(__MMI_T9_RUSSIAN__) || defined(__MMI_CSTAR_RUSSIAN__) //KP Jerry add "__MMI_CSTAR_RUSSIAN__" on 2007-4-17
- case INPUT_MODE_SMART_UPPERCASE_RUSSIAN:
- case INPUT_MODE_SMART_LOWERCASE_RUSSIAN:
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_RUSSIAN__) || defined(__MMI_CSTAR_RUSSIAN__) */ //KP Jerry add "__MMI_CSTAR_RUSSIAN__" on 2007-4-17