wgui_categories_inputs.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:1705k
源码类别:
MTK
开发平台:
C/C++
- tmp_flags &= ~UI_MULTI_LINE_INPUT_BOX_STATE_MULTITAP;
- //barcode
- if (MMI_multiline_inputbox.hilite_cb == NULL)
- {
- tmp_flags &= ~UI_MULTI_LINE_INPUT_BOX_WORD_HIGHLIGHT;
- }
- /* MTK end */
- for (i = 0; i < sizeof(U32); i++)
- {
- memcpy((U8*) (&h->flags) + i, (U8*) (&tmp_flags) + i, 1);
- }
- /* Calvin end */
- h->UCS2_count = (S16) MMI_multiline_inputbox.UCS2_count;
- #if defined(__MMI_TOUCH_SCREEN__)
- /* W05.41 Do not Strore Virtual Keyboard into History when View Mode */
- if (!(MMI_multiline_inputbox.flags & UI_MULTI_LINE_INPUT_BOX_VIEW_MODE))
- {
- if (GUI_VIRTUAL_KEYBOARD_MAX_LANG == mmi_pen_editor_history_vk_lang_type())
- {
- h->vk_lang_type = MMI_virtual_keyboard.lang_type;
- }
- else
- {
- h->vk_lang_type = mmi_pen_editor_history_vk_lang_type();
- }
- }
- else
- {
- h->vk_lang_type = GUI_VIRTUAL_KEYBOARD_EMPTY_TRAY;
- }
- #endif /* defined(__MMI_TOUCH_SCREEN__) */
- h->state = (S8) - 1; /* MTK 2004-02-13 Wilson, Initialize history buffer state */
- }
- }
- /* MTK 2004-02-13 Wilson, Set and Get state of multiine inputbox history buffer */
- /*****************************************************************************
- * FUNCTION
- * set_multiline_inputbox_category_history_state
- * DESCRIPTION
- * Sets the state of history data for state list
- * PARAMETERS
- * history_ID [IN] Is the ID used by category screens
- * history_buffer [IN] Is the buffer into which history data is written
- * state [IN] Is the state to be set to state list
- * RETURNS
- * void
- *****************************************************************************/
- void set_multiline_inputbox_category_history_state(U16 history_ID, U8 *history_buffer, S8 state)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (history_buffer != NULL)
- {
- multiline_inputbox_category_history *h = (multiline_inputbox_category_history*) history_buffer;
- h->state = state;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * get_multiline_inputbox_category_history_state
- * DESCRIPTION
- * Gets the state of history data for state list
- * PARAMETERS
- * history_ID [IN] Is the ID used by category screens
- * history_buffer [IN] Is the buffer into which history data is written
- * state(?) [IN] Is the state to be set to state list
- * RETURNS
- * void
- *****************************************************************************/
- S8 get_multiline_inputbox_category_history_state(U16 history_ID, U8 *history_buffer)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (history_buffer != NULL)
- {
- multiline_inputbox_category_history *h = (multiline_inputbox_category_history*) history_buffer;
- return h->state;
- }
- return (S8) - 1;
- }
- /* MTK END */
- /* Start Dialer Input Boxs */
- extern stFontAttribute wgui_dialer_box_f1;
- extern stFontAttribute wgui_dialer_box_f2;
- /* struxcture handle star key input in dialer box */
- multitap_input wgui_dialer_box_star_key_handler;
- #if(ENABLE_DIALER_ZERO_KEY_MULTITAP)
- multitap_input wgui_dialer_box_zero_key_handler;
- #endif
- U8 wgui_dialer_box_active_multitap = WGUI_DIALER_BOX_ACTIVE_MULTITAP_NONE;
- #if(ENABLE_DIALER_ZERO_KEY_MULTITAP)
- UI_character_type wgui_dialer_box_star_key_string[] = { '*', 'p', 'w', ' ' };
- /* MTK Elvis for multitap zero Key */
- #ifdef __MMI_MULTITAP_KEY_0__
- UI_character_type wgui_dialer_box_zero_key_string[] = { '+', 'p', 'w', ' ' };
- #else
- UI_character_type wgui_dialer_box_zero_key_string[] = { '0', '+', ' ' };
- #endif
- /* MTK end */
- #else /* (ENABLE_DIALER_ZERO_KEY_MULTITAP) */
- UI_character_type wgui_dialer_box_star_key_string[] = { '*', '+', 'p', 'w', ' ' };
- #endif /* (ENABLE_DIALER_ZERO_KEY_MULTITAP) */
- /*----------------------------------------------------------------------------
- Function: wgui_dialer_inputbox_RSK_function
- Description: Function pointer store the address of RSK function handler
- Input Parameters: void
- Output Parameters: none
- Returns: none
- ----------------------------------------------------------------------------*/
- void (*wgui_dialer_inputbox_RSK_function) (void) = NULL;
- U8 wgui_dialer_inputbox_RSK_label_clear = 0;
- /* store the string of RSK of dialer input box */
- UI_string_type wgui_dialer_inputbox_RSK_label_string;
- /* store the icon of RSK of dialer input box */
- PU8 wgui_dialer_inputbox_RSK_label_icon;
- /* used to keep tarck of decimal input in dialer input box */
- U8 wgui_dialer_inputbox_decimal_flag = 0;
- /* used to chekc if decimal input is enable for dialer box or not */
- U8 wgui_dialer_inputbox_decimal_input_mode_flag = 0;
- #if(0)
- /* Dependent on the width of the Input box.
- Values must be changed from platform to platform */
- void dialer_input_box_change_callback(void)
- { s32 text_length=pixtel_UI_dialer_input_box_get_text_length(&MMI_dialer_inputbox);
- UI_font_type f=MMI_dialer_inputbox.text_font;
- if(f==&wgui_dialer_box_f1)
- { if(text_length>18) MMI_dialer_inputbox.text_font=(&wgui_dialer_box_f2);
- }
- else if(f==&wgui_dialer_box_f2)
- { if(text_length<=18) MMI_dialer_inputbox.text_font=(&wgui_dialer_box_f1);
- else if(text_length>30) MMI_dialer_inputbox.text_font=(&wgui_dialer_box_f3);
- }
- else if(f==&wgui_dialer_box_f3)
- { if(text_length<=30) MMI_dialer_inputbox.text_font=(&wgui_dialer_box_f2);
- }
- }
- #endif /* (0) */
- /*****************************************************************************
- * FUNCTION
- * dialer_input_box_change_callback
- * DESCRIPTION
- * change callback funtion of dialer input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void dialer_input_box_change_callback(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /* MTK Elvis to change the font size while the dialer box is too small to insert chars */
- S32 text_width = 0, text_height = 0, i = 0, j = 0;
- static S32 max_char_height_in_dialer_box = 0;
- UI_buffer_type b_text;
- S32 text_length;
- UI_character_type ch;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- MMI_dialer_inputbox.text_font = (&wgui_dialer_box_f1);
- gui_lock_double_buffer();
- MMI_dialer_inputbox.flags |= UI_DIALER_INPUT_BOX_DISABLE_DRAW;
- gui_show_dialer_input_box(&MMI_dialer_inputbox);
- MMI_dialer_inputbox.flags &= ~UI_DIALER_INPUT_BOX_DISABLE_DRAW;
- gui_unlock_double_buffer();
- /* f=MMI_dialer_inputbox.text_font; */
- gui_measure_string((UI_string_type) MMI_dialer_inputbox.text, &text_width, &text_height);
- text_length = gui_dialer_input_box_get_text_length(&MMI_dialer_inputbox);
- b_text = MMI_dialer_inputbox.text;
- if (max_char_height_in_dialer_box < text_height)
- {
- max_char_height_in_dialer_box = text_height;
- }
- text_width = 0;
- for (i = 0; i < text_length; i++)
- {
- UI_STRING_GET_NEXT_CHARACTER(b_text, ch);
- text_width += gui_get_character_width(ch);
- text_width += MMI_dialer_inputbox.text_gap;
- if (text_width + 1 > MMI_dialer_inputbox.width)
- {
- if (max_char_height_in_dialer_box > 0)
- {
- if (++j >= ((MMI_dialer_inputbox.height / (max_char_height_in_dialer_box + 1))))
- {
- MMI_dialer_inputbox.text_font = (&wgui_dialer_box_f2);
- break;
- }
- else
- {
- text_width = gui_get_character_width(ch);
- text_width += MMI_dialer_inputbox.text_gap;
- }
- }
- }
- }
- }
- void dialer_inputbox_complete_multitap_star_key(void);
- #if(ENABLE_DIALER_ZERO_KEY_MULTITAP)
- void dialer_inputbox_complete_multitap_zero_key(void);
- #endif
- /*****************************************************************************
- * FUNCTION
- * dialer_inputbox_handle_multitap_complete
- * DESCRIPTION
- *
- * PARAMETERS
- * type [IN]
- * RETURNS
- * void
- *****************************************************************************/
- extern void MMI_key_0_down(void);
- extern void MMI_key_0_up(void);
- extern pBOOL isInCall(void);
- void dialer_inputbox_handle_multitap_complete(S32 type)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (wgui_dialer_box_active_multitap != WGUI_DIALER_BOX_ACTIVE_MULTITAP_NONE)
- {
- switch (wgui_dialer_box_active_multitap)
- {
- case WGUI_DIALER_BOX_ACTIVE_MULTITAP_STAR_KEY:
- if (type == WGUI_DIALER_BOX_ACTIVE_MULTITAP_STAR_KEY)
- {
- return;
- }
- if (MMI_dialer_inputbox.flags & UI_DIALER_INPUT_BOX_STATE_MULTITAP)
- {
- gui_cancel_timer(dialer_inputbox_complete_multitap_star_key);
- gui_multitap_input_complete(&wgui_dialer_box_star_key_handler);
- }
- break;
- #if(ENABLE_DIALER_ZERO_KEY_MULTITAP)
- case WGUI_DIALER_BOX_ACTIVE_MULTITAP_ZERO_KEY:
- if (type == WGUI_DIALER_BOX_ACTIVE_MULTITAP_ZERO_KEY)
- {
- return;
- }
- if (MMI_dialer_inputbox.flags & UI_DIALER_INPUT_BOX_STATE_MULTITAP)
- {
- gui_cancel_timer(dialer_inputbox_complete_multitap_zero_key);
- gui_multitap_input_complete(&wgui_dialer_box_zero_key_handler);
- /* MTK Elvis to store the zero key hander for idleScreenDigitHandler.... */
- if (isInCall())
- {
- wgui_key_handlers[KEY_0][KEY_EVENT_DOWN] = storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_DOWN];
- wgui_key_handlers[KEY_0][KEY_EVENT_UP] = storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_UP];
- }
- else
- {
- SetKeyHandler(storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_DOWN], KEY_0, KEY_EVENT_DOWN);
- SetKeyHandler(storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_UP], KEY_0, KEY_EVENT_UP);
- }
- /* SetKeyHandler(MMI_key_0_down,KEY_0,KEY_EVENT_DOWN); */
- }
- break;
- #endif /* (ENABLE_DIALER_ZERO_KEY_MULTITAP) */
- }
- wgui_dialer_box_active_multitap = WGUI_DIALER_BOX_ACTIVE_MULTITAP_NONE;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * dialer_inputbox_handle_key_down
- * DESCRIPTION
- * Function handles a key down wvwnt of dialer input box
- * PARAMETERS
- * k [IN]
- * S32(?) [IN] MMI_key_code_type :- Key code
- * RETURNS
- * void
- *****************************************************************************/
- void dialer_inputbox_handle_key_down(MMI_key_code_type k)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- dialer_inputbox_handle_multitap_complete(WGUI_DIALER_BOX_ACTIVE_MULTITAP_ANY);
- dialer_inputbox_direct_input((UI_character_type) ('0' + k));
- }
- /*****************************************************************************
- * FUNCTION
- * dialer_inputbox_complete_multitap_star_key
- * DESCRIPTION
- * Function handles a multitap star key down input and draw the dialer input box
- * PARAMETERS
- * void
- * noen(?) [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void dialer_inputbox_complete_multitap_star_key(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gui_multitap_input_complete(&wgui_dialer_box_star_key_handler);
- mmi_idle_star_key_disable_long_press(); /* special handler for star key pressed in touch screen dial pad */
- }
- /*****************************************************************************
- * FUNCTION
- * dialer_inputbox_handle_multitap_star_key_down
- * DESCRIPTION
- * Function handles a multitap star key down input of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void dialer_inputbox_handle_multitap_star_key_down(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- dialer_inputbox_handle_multitap_complete(WGUI_DIALER_BOX_ACTIVE_MULTITAP_STAR_KEY);
- wgui_dialer_box_active_multitap = WGUI_DIALER_BOX_ACTIVE_MULTITAP_STAR_KEY;
- gui_change_multitap_input_state(&wgui_dialer_box_star_key_handler);
- if (MMI_dialer_inputbox.text_length <= 2)
- {
- gui_start_timer(MMI_MULTITAP_TIMEOUT, dialer_inputbox_complete_multitap_star_key);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * dialer_inputbox_handle_multitap_star_key_up
- * DESCRIPTION
- * Function handles a multitap star key up input of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void dialer_inputbox_handle_multitap_star_key_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gui_start_timer(MMI_MULTITAP_TIMEOUT, dialer_inputbox_complete_multitap_star_key);
- }
- #if(ENABLE_DIALER_ZERO_KEY_MULTITAP)
- /*****************************************************************************
- * FUNCTION
- * dialer_inputbox_complete_multitap_zero_key
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void dialer_inputbox_complete_multitap_zero_key(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gui_multitap_input_complete(&wgui_dialer_box_zero_key_handler);
- #ifdef __MMI_MULTITAP_KEY_0__
- /* MTK Elvis to store the zero key hander for idleScreenDigitHandler.... */
- if (isInCall())
- {
- wgui_key_handlers[KEY_0][KEY_EVENT_DOWN] = storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_DOWN];
- wgui_key_handlers[KEY_0][KEY_EVENT_UP] = storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_UP];
- }
- else
- {
- SetKeyHandler(storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_DOWN], KEY_0, KEY_EVENT_DOWN);
- SetKeyHandler(storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_UP], KEY_0, KEY_EVENT_UP);
- }
- /* MTK end */
- #endif /* __MMI_MULTITAP_KEY_0__ */
- }
- /*****************************************************************************
- * FUNCTION
- * dialer_inputbox_handle_multitap_zero_key_down
- * DESCRIPTION
- * Function handles a zero key down input of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void dialer_inputbox_handle_multitap_zero_key_down(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- dialer_inputbox_handle_multitap_complete(WGUI_DIALER_BOX_ACTIVE_MULTITAP_ZERO_KEY);
- wgui_dialer_box_active_multitap = WGUI_DIALER_BOX_ACTIVE_MULTITAP_ZERO_KEY;
- gui_change_multitap_input_state(&wgui_dialer_box_zero_key_handler);
- if (MMI_dialer_inputbox.text_length <= 2)
- {
- gui_start_timer(MMI_MULTITAP_TIMEOUT, dialer_inputbox_complete_multitap_zero_key);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * dialer_inputbox_handle_multitap_zero_key_up
- * DESCRIPTION
- * Function handles a zero key up input of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void dialer_inputbox_handle_multitap_zero_key_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- #ifdef __MMI_MULTITAP_KEY_0__
- gui_start_timer(MMI_MULTITAP_TIMEOUT + 400, dialer_inputbox_complete_multitap_zero_key);
- #else
- gui_start_timer(MMI_MULTITAP_TIMEOUT, dialer_inputbox_complete_multitap_zero_key);
- #endif
- /* MTK Terry for Cannon_plus #3504 */
- if (storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_UP])
- {
- (*storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_UP]) ();
- }
- /* MTK end */
- }
- #endif /* (ENABLE_DIALER_ZERO_KEY_MULTITAP) */
- /*****************************************************************************
- * FUNCTION
- * dialer_inputbox_handle_zero_key_long_press
- * DESCRIPTION
- * Function handles a zero key long press input of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void dialer_inputbox_handle_zero_key_long_press(void)
- {
- #if(ENABLE_DIALER_ZERO_KEY_MULTITAP)
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetKeyHandler(dialer_inputbox_handle_multitap_zero_key_down, KEY_0, KEY_REPEAT);
- #else /* (ENABLE_DIALER_ZERO_KEY_MULTITAP) */
- SetKeyHandler(UI_dummy_function, KEY_0, KEY_REPEAT);
- #endif /* (ENABLE_DIALER_ZERO_KEY_MULTITAP) */
- dialer_inputbox_delete_character();
- /* MTK added by JL 031112, for multitap key register */
- #if(ENABLE_DIALER_ZERO_KEY_MULTITAP)
- dialer_inputbox_handle_multitap_zero_key_down();
- /* MTK Elvis to store the zero key hander for idleScreenDigitHandler.... */
- if (isInCall())
- {
- storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_DOWN] = wgui_key_handlers[KEY_0][KEY_EVENT_DOWN];
- storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_UP] = wgui_key_handlers[KEY_0][KEY_EVENT_UP];
- wgui_key_handlers[KEY_0][KEY_EVENT_DOWN] = dialer_inputbox_handle_multitap_zero_key_down;
- wgui_key_handlers[KEY_0][KEY_EVENT_UP] = dialer_inputbox_handle_multitap_zero_key_up;
- }
- else
- {
- storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_DOWN] = currKeyFuncPtrs[KEY_0][KEY_EVENT_DOWN];
- storeZeroKeyFuncPtrs[KEY_0][KEY_EVENT_UP] = currKeyFuncPtrs[KEY_0][KEY_EVENT_UP];
- SetKeyHandler(dialer_inputbox_handle_multitap_zero_key_down, KEY_0, KEY_EVENT_DOWN);
- SetKeyHandler(dialer_inputbox_handle_multitap_zero_key_up, KEY_0, KEY_EVENT_UP);
- }
- /* MTK end */
- #endif /* (ENABLE_DIALER_ZERO_KEY_MULTITAP) */
- /* MTK end */
- }
- /*****************************************************************************
- * FUNCTION
- * dialer_inputbox_handle_hash_key_down
- * DESCRIPTION
- * Function handles a hash key down input of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void dialer_inputbox_handle_hash_key_down(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- dialer_inputbox_handle_multitap_complete(WGUI_DIALER_BOX_ACTIVE_MULTITAP_ANY);
- dialer_inputbox_direct_input((UI_character_type) '#');
- }
- /*****************************************************************************
- * FUNCTION
- * dialer_inputbox_handle_star_key_down
- * DESCRIPTION
- * Function handles a start key down input of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void dialer_inputbox_handle_star_key_down(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- dialer_inputbox_handle_multitap_complete(WGUI_DIALER_BOX_ACTIVE_MULTITAP_ANY);
- dialer_inputbox_direct_input((UI_character_type) '*');
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_dialer_inputbox_right_softkey_down
- * DESCRIPTION
- * Function handles a RSK key down input of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_dialer_inputbox_right_softkey_down(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* MTK Elvis to complete the active multitap key */
- dialer_inputbox_handle_multitap_complete(WGUI_DIALER_BOX_ACTIVE_MULTITAP_ANY);
- /* MTK end */
- dialer_inputbox_delete_character();
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_dialer_inputbox_right_softkey_up
- * DESCRIPTION
- * Function handles a RSK key up input of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_dialer_inputbox_right_softkey_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /* MTK Terry for reentry issue */
- #if defined(__MMI_WITH_C_KEY__)
- static U8 executing = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (1 == executing)
- {
- return;
- }
- executing = 1;
- #endif /* defined(__MMI_WITH_C_KEY__) */
- #ifdef __MMI_MULTITAP_KEY_0__
- if (wgui_dialer_box_active_multitap == WGUI_DIALER_BOX_ACTIVE_MULTITAP_ZERO_KEY)
- {
- gui_cancel_timer(dialer_inputbox_complete_multitap_zero_key);
- }
- #else /* __MMI_MULTITAP_KEY_0__ */
- if (wgui_dialer_box_active_multitap == WGUI_DIALER_BOX_ACTIVE_MULTITAP_STAR_KEY)
- {
- gui_cancel_timer(dialer_inputbox_complete_multitap_star_key);
- }
- #endif /* __MMI_MULTITAP_KEY_0__ */
- if (wgui_dialer_inputbox_RSK_function != NULL)
- {
- wgui_dialer_inputbox_RSK_function();
- }
- #if defined(__MMI_WITH_C_KEY__)
- executing = 0;
- #endif
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_register_dialer_inputbox_handle_right_softkey_up
- * DESCRIPTION
- * register RSK function of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_register_dialer_inputbox_handle_right_softkey_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- set_right_softkey_function(wgui_handle_dialer_inputbox_right_softkey_up, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_register_dialer_inputbox_handle_clear_key_up
- * DESCRIPTION
- * register RSK function of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_register_dialer_inputbox_handle_clear_key_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetKeyHandler(wgui_handle_dialer_inputbox_right_softkey_up, KEY_CLEAR, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_dialer_inputbox_input
- * DESCRIPTION
- * handle dialer input box set RSK function of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_dialer_inputbox_input(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gui_dialer_input_box_get_text_length(&MMI_dialer_inputbox) > 0)
- {
- #if defined(__MMI_WITH_C_KEY__)
- if (wgui_dialer_inputbox_RSK_label_clear == 0)
- {
- if (wgui_inputbox_not_empty_callback != NULL)
- {
- wgui_inputbox_not_empty_callback();
- }
- wgui_dialer_inputbox_RSK_label_clear = 1;
- SetKeyHandler(wgui_handle_dialer_inputbox_right_softkey_down, KEY_CLEAR, KEY_EVENT_DOWN);
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_UP);
- SetKeyHandler(wgui_handle_dialer_inputbox_right_softkey_long_press, KEY_CLEAR, KEY_EVENT_LONG_PRESS);
- }
- #else /* defined(__MMI_WITH_C_KEY__) */
- if (wgui_dialer_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();
- wgui_dialer_inputbox_RSK_label_clear = 1;
- set_right_softkey_function(UI_dummy_function, KEY_EVENT_UP);
- set_right_softkey_function(wgui_handle_dialer_inputbox_right_softkey_down, KEY_EVENT_DOWN);
- #ifdef __MMI_TOUCH_DIAL_SCREEN__
- //SetRightSoftkeyFunction(TouchDialerClearKey,KEY_LONG_PRESS);
- #endif /* __MMI_TOUCH_DIAL_SCREEN__ */
- }
- #endif /* defined(__MMI_WITH_C_KEY__) */
- }
- else
- {
- #if defined(__MMI_WITH_C_KEY__)
- if (wgui_dialer_inputbox_RSK_label_clear == 1)
- {
- if (wgui_inputbox_empty_callback != NULL)
- {
- wgui_inputbox_empty_callback();
- }
- wgui_dialer_inputbox_RSK_label_clear = 0;
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_DOWN);
- SetKeyHandler(wgui_handle_dialer_inputbox_right_softkey_up, KEY_CLEAR, KEY_EVENT_UP);
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_LONG_PRESS);
- wgui_handle_dialer_inputbox_right_softkey_up();
- }
- #else /* defined(__MMI_WITH_C_KEY__) */
- if (wgui_dialer_inputbox_RSK_label_clear == 1)
- {
- #if(DISABLE_DIALER_BACK_KEY)
- set_right_softkey_function(wgui_handle_dialer_inputbox_right_softkey_up, KEY_EVENT_UP);
- if (wgui_inputbox_empty_callback != NULL)
- {
- wgui_inputbox_empty_callback();
- }
- wgui_dialer_inputbox_RSK_label_clear = 0;
- #else /* (DISABLE_DIALER_BACK_KEY) */
- set_right_softkey_label(wgui_dialer_inputbox_RSK_label_string);
- set_right_softkey_icon(wgui_dialer_inputbox_RSK_label_icon);
- if (wgui_inputbox_empty_callback != NULL)
- {
- wgui_inputbox_empty_callback();
- }
- redraw_right_softkey();
- wgui_dialer_inputbox_RSK_label_clear = 0;
- set_right_softkey_function(wgui_register_dialer_inputbox_handle_right_softkey_up, KEY_EVENT_UP);
- set_right_softkey_function(UI_dummy_function, KEY_EVENT_DOWN);
- #endif /* (DISABLE_DIALER_BACK_KEY) */
- }
- #endif /* defined(__MMI_WITH_C_KEY__) */
- }
- }
- /*****************************************************************************
- * FUNCTION
- * register_dialer_inputbox_dialer_keys
- * DESCRIPTION
- * register key handlers of dialer box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void register_dialer_inputbox_dialer_keys(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- register_dialer_inputbox_keys();
- change_multitap_mode(INPUT_MODE_123);
- clear_multitap_key_handlers();
- register_MMI_key_input_handler();
- register_key_down_handler(dialer_inputbox_handle_key_down);
- register_keyboard_input_handler(dialer_inputbox_numeric_keyboard_input_handler);
- #ifdef __MMI_MULTITAP_KEY_0__
- SetKeyHandler(dialer_inputbox_handle_star_key_down, KEY_STAR, KEY_EVENT_DOWN);
- #else /* __MMI_MULTITAP_KEY_0__ */
- SetKeyHandler(dialer_inputbox_handle_multitap_star_key_down, KEY_STAR, KEY_EVENT_DOWN);
- SetKeyHandler(dialer_inputbox_handle_multitap_star_key_up, KEY_STAR, KEY_EVENT_UP);
- #endif /* __MMI_MULTITAP_KEY_0__ */
- SetKeyHandler(dialer_inputbox_handle_hash_key_down, KEY_POUND, KEY_EVENT_DOWN);
- #if(ENABLE_DIALER_ZERO_KEY_MULTITAP)
- #ifdef __MMI_MULTITAP_KEY_0__
- SetKeyHandler(dialer_inputbox_handle_zero_key_long_press, KEY_0, KEY_EVENT_LONG_PRESS);
- #else /* __MMI_MULTITAP_KEY_0__ */
- SetKeyHandler(dialer_inputbox_handle_multitap_zero_key_down, KEY_0, KEY_EVENT_DOWN);
- SetKeyHandler(dialer_inputbox_handle_multitap_zero_key_up, KEY_0, KEY_EVENT_UP);
- #endif /* __MMI_MULTITAP_KEY_0__ */
- #endif /* (ENABLE_DIALER_ZERO_KEY_MULTITAP) */
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_dialer_validation_callback
- * DESCRIPTION
- * validation function of dialer box
- * PARAMETERS
- * text [IN] Text of dialer input box
- * cursor [IN]
- * text_length [IN] Text length
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_dialer_validation_callback(UI_buffer_type text, UI_buffer_type cursor, S32 text_length)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (wgui_inputbox_validation_callback != NULL)
- {
- wgui_inputbox_validation_callback(text, cursor, text_length);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_dialer_inputbox_right_softkey_long_press
- * DESCRIPTION
- * function handle long press of RSK
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_dialer_inputbox_right_softkey_long_press(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- dialer_inputbox_delete_all_characters();
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_dialer_inputbox_set_border
- * DESCRIPTION
- * add border for dialer inputbox
- * PARAMETERS
- * is_border_existing [IN]
- * border_color [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_dialer_inputbox_set_border(MMI_BOOL is_border_existing, color border_color)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (is_border_existing) /* draw a single border on dialer inputbox */
- {
- MMI_dialer_inputbox.flags |= UI_DIALER_INPUT_BOX_SHOW_BORDER;
- }
- else
- {
- MMI_dialer_inputbox.flags &= ~UI_DIALER_INPUT_BOX_SHOW_BORDER;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_setup_dialer_inputbox
- * DESCRIPTION
- * create dialer input box
- * PARAMETERS
- * x [IN] Start x position of dialer input box
- * y [IN] Start y position of dialer input box
- * width [IN] Width of dilaer input box
- * height [IN] Height of dialer input box
- * buffer [IN] Text buffer of dialer input box
- * buffer_size [IN] Buffer size
- * category_screen_ID [IN] Category screen iD
- * RSK_label [IN] RSK label
- * RSK_icon [IN] RSK icon
- * history_buffer [IN] History buffer
- * flags [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_setup_dialer_inputbox(
- S32 x,
- S32 y,
- S32 width,
- S32 height,
- U8 *buffer,
- S32 buffer_size,
- U16 category_screen_ID,
- UI_string_type RSK_label,
- PU8 RSK_icon,
- U8 *history_buffer,
- U32 flags)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S32 l;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- UI_UNUSED_PARAMETER(flags);
- #ifndef __MMI_MULTITAP_KEY_0__
- gui_create_multitap_input(
- &wgui_dialer_box_star_key_handler,
- 0,
- 0,
- 0,
- 0,
- (UI_string_type) wgui_dialer_box_star_key_string);
- gui_set_multitap_input_callbacks(
- &wgui_dialer_box_star_key_handler,
- dialer_inputbox_multitap_input,
- dialer_inputbox_multitap_input_complete);
- #endif /* __MMI_MULTITAP_KEY_0__ */
- #if(ENABLE_DIALER_ZERO_KEY_MULTITAP)
- gui_create_multitap_input(
- &wgui_dialer_box_zero_key_handler,
- 0,
- 0,
- 0,
- 0,
- (UI_string_type) wgui_dialer_box_zero_key_string);
- gui_set_multitap_input_callbacks(
- &wgui_dialer_box_zero_key_handler,
- dialer_inputbox_multitap_input,
- dialer_inputbox_multitap_input_complete);
- #endif /* (ENABLE_DIALER_ZERO_KEY_MULTITAP) */
- l = gui_strlen((UI_string_type) buffer);
- create_dialer_inputbox_set_buffer((UI_string_type) buffer, buffer_size, l, l);
- MMI_dialer_inputbox.text_font = &wgui_dialer_box_f2;
- MMI_dialer_inputbox.flags |= UI_DIALER_INPUT_BOX_CHARACTER_QUEUE;
- #if(ENABLE_DIALER_PLUS_CHARACTER_HANDLING)
- MMI_dialer_inputbox.flags |= UI_DIALER_INPUT_BOX_PLUS_CHARACTER_HANDLING;
- #endif
- register_dialer_inputbox_keys();
- move_dialer_inputbox(x, y);
- resize_dialer_inputbox(width, height);
- MMI_dialer_inputbox.text_font = (&wgui_dialer_box_f1);
- MMI_dialer_inputbox.change_callback = dialer_input_box_change_callback;
- set_dialer_inputbox_mask(0);
- register_dialer_inputbox_dialer_keys();
- /* This is done to choose the right font size, if the buffer contains valid data */
- dialer_input_box_change_callback();
- dialer_input_box_change_callback();
- MMI_current_input_mode = INPUT_MODE_123;
- register_dialer_inputbox_input_callback(wgui_handle_dialer_inputbox_input);
- /* Leo start 20050805, add dialer inputbox history */
- set_dialer_inputbox_category_history(category_screen_ID, history_buffer);
- /* Leo end 20050805 */
- wgui_dialer_inputbox_RSK_label_icon = RSK_icon;
- wgui_dialer_inputbox_RSK_label_string = RSK_label;
- #if defined(__MMI_WITH_C_KEY__)
- SetKeyHandler(wgui_handle_dialer_inputbox_right_softkey_long_press, KEY_CLEAR, KEY_LONG_PRESS);
- set_right_softkey_function(wgui_handle_dialer_inputbox_right_softkey_up, KEY_EVENT_UP);
- #else /* defined(__MMI_WITH_C_KEY__) */
- set_right_softkey_function(wgui_handle_dialer_inputbox_right_softkey_long_press, KEY_LONG_PRESS);
- #endif /* defined(__MMI_WITH_C_KEY__) */
- wgui_handle_dialer_inputbox_input();
- if (gui_dialer_input_box_get_text_length(&MMI_dialer_inputbox) <= 0)
- {
- #if defined(__MMI_WITH_C_KEY__)
- SetKeyHandler(wgui_handle_dialer_inputbox_right_softkey_up, KEY_CLEAR, KEY_EVENT_UP);
- if (wgui_inputbox_empty_callback != NULL)
- {
- wgui_inputbox_empty_callback();
- }
- #else /* defined(__MMI_WITH_C_KEY__) */
- set_right_softkey_function(wgui_handle_dialer_inputbox_right_softkey_up, KEY_EVENT_UP);
- if (wgui_inputbox_empty_callback != NULL)
- {
- wgui_inputbox_empty_callback();
- }
- #endif /* defined(__MMI_WITH_C_KEY__) */
- }
- else if (wgui_inputbox_not_empty_callback != NULL)
- {
- wgui_inputbox_not_empty_callback();
- }
- MMI_dialer_inputbox.validation_callback = wgui_dialer_validation_callback;
- MMI_dialer_inputbox.validation_callback(
- MMI_dialer_inputbox.text,
- MMI_dialer_inputbox.current_text_p,
- (MMI_dialer_inputbox.text_length >> 1) - 1);
- #if defined(__MMI_TOUCH_SCREEN__)
- SetLeftSoftkeyAlwaysKeyUpByPen();
- SetRightSoftkeyAlwaysKeyUpByPen();
- #ifdef __MMI_WGUI_CSK_ENABLE__
- SetCenterSoftkeyAlwaysKeyUpByPen();
- #endif
- #endif /* defined(__MMI_TOUCH_SCREEN__) */
- }
- /*****************************************************************************
- * FUNCTION
- * close_dialer_inputbox
- * DESCRIPTION
- * close dialer input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void close_dialer_inputbox(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_inputbox_not_empty_callback = NULL;
- wgui_inputbox_empty_callback = NULL;
- wgui_inputbox_validation_callback = NULL;
- wgui_dialer_inputbox_RSK_function = NULL;
- wgui_dialer_inputbox_RSK_label_clear = 0;
- reset_dialer_inputbox();
- #ifndef __MMI_MULTITAP_KEY_0__
- gui_cancel_timer(dialer_inputbox_complete_multitap_star_key);
- #endif
- }
- /* Multitap handling for phone number input mode */
- #define WGUI_INPUTBOX_MULTITAP_NONE 0
- #define WGUI_INPUTBOX_EDIT_MULTITAP_STAR 1
- #define WGUI_INPUTBOX_EDIT_MULTITAP_ANY 2
- #define WGUI_INPUTBOX_EDIT_MULTITAP_ZERO 3
- U8 wgui_inputbox_active_multitap = WGUI_INPUTBOX_MULTITAP_NONE;
- UI_character_type wgui_inputbox_phone_number_star_key_string_for_SIM_number[] = { '*', '+', ' ' };
- UI_character_type wgui_inputbox_phone_number_zero_key_string_for_SIM_number[] = { '+', ' ' };
- UI_character_type wgui_inputbox_phone_number_star_key_string[] = { '*', '+', 'p', 'w', ' ' };
- multitap_input wgui_inputbox_multitap_star_key;
- UI_character_type wgui_inputbox_phone_number_zero_key_string[] = { '+', 'p', 'w', ' ' };
- multitap_input wgui_inputbox_multitap_zero_key;
- /* flag used to check if english input mpde is on /off */
- U8 MMI_english_input_mode_flag = 0;
- /* byte MMI_allow_only_english_input_modes=0; */
- /* flag used to store current input mode */
- U8 MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_ABC;
- /* used to store current input type */
- S16 MMI_current_input_type = 0;
- /* MTK Terry for 0x81 encoding support for Phone Book */
- S16 MMI_current_input_ext_type = 0;
- pBOOL flag_use_current_input_type = FALSE;
- //MTK Elvis it is not used, so remove it
- //S16 MMI_saved_input_type=0;
- //MTK end
- /* MTK Elvis for prefered input method */
- #if defined(__MMI_PREFER_INPUT_METHOD__)
- S16 MMI_prefered_input_type = INPUT_TYPE_TR_BOPOMO;
- #endif
- /* MTK end */
- /*----------------------------------------------------------------------------
- Function: inputbox_change_mode
- Description: a function pointer store the address of function whcih handle
- input box change mode
- Input parameters : none
- Output Parameters: none
- Returns: none
- ----------------------------------------------------------------------------*/
- void (*inputbox_change_mode) (void);
- /*****************************************************************************
- * FUNCTION
- * set_MMI_current_input_type
- * DESCRIPTION
- * set mmi current input mode
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- /* MTK Elvis modify for stacked character---thai */
- void set_MMI_current_input_type(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- switch (MMI_current_input_mode)
- {
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE;
- break;
- case INPUT_MODE_123:
- MMI_current_input_type = INPUT_TYPE_NUMERIC_CHANGEABLE;
- break;
- #if defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC_NO_NUMERIC:
- MMI_current_input_type = INPUT_TYPE_ALPHABATIC_UPPERCASE;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC_NO_NUMERIC:
- MMI_current_input_type = INPUT_TYPE_ALPHABATIC_LOWERCASE;
- break;
- case INPUT_MODE_123_SYMBOLS:
- MMI_current_input_type = INPUT_TYPE_NUMERIC_SYMBOL;
- break;
- #endif /* defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__) */
- #if defined(__MMI_MULTITAP_THAI__)
- case INPUT_MODE_MULTITAP_THAI:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_MULTITAP_THAI;
- break;
- #endif /* defined(__MMI_MULTITAP_THAI__) */
- #if defined(__MMI_MULTITAP_SPANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SPANISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SPANISH;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SPANISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SPANISH;
- break;
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_DANISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_DANISH;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_DANISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_DANISH;
- break;
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_POLISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_POLISH;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_POLISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_POLISH;
- break;
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_FRENCH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_FRENCH;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_FRENCH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_FRENCH;
- break;
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_GERMAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_GERMAN;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_GERMAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_GERMAN;
- break;
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_ITALIAN;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_ITALIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_RUSSIAN;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_RUSSIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_BULGARIAN;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_BULGARIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_TURKISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_TURKISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_TURKISH;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_TURKISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_TURKISH;
- break;
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- case INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_PORTUGUESE;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_PORTUGUESE;
- break;
- #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */
- #if defined(__MMI_MULTITAP_HINDI__)
- case INPUT_MODE_MULTITAP_HINDI:
- MMI_current_input_type = INPUT_TYPE_MULTITAP_HINDI;
- break;
- #endif /* defined(__MMI_MULTITAP_HINDI__) */
- /* PMT RAKESH START 20061006 */
- #if defined(__MMI_MULTITAP_MARATHI__)
- case INPUT_MODE_MULTITAP_MARATHI:
- MMI_current_input_type = INPUT_TYPE_MULTITAP_MARATHI;
- break;
- #endif /* defined(__MMI_MULTITAP_MARATHI__) */
- /* PMT RAKESH END 20061006 */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_INDONESIAN;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_INDONESIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_MULTITAP_CZECH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_CZECH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_CZECH;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_CZECH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_CZECH;
- break;
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_MULTITAP_MALAY__)
- case INPUT_MODE_MULTITAP_UPPERCASE_MALAY:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_MALAY;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_MALAY:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_MALAY;
- break;
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- case INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_VIETNAMESE;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_VIETNAMESE;
- break;
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_MULTITAP_FINNISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_FINNISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_FINNISH;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_FINNISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_FINNISH;
- break;
- #endif /* defined(__MMI_MULTITAP_FINNISH__) */
- #if defined(__MMI_MULTITAP_HUNGARIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_HUNGARIAN;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_HUNGARIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- case INPUT_MODE_MULTITAP_HEBREW:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_HEBREW;
- break;
- #endif /* defined(__MMI_MULTITAP_HEBREW__) */
- #if defined(__MMI_MULTITAP_SLOVAK__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SLOVAK;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SLOVAK;
- break;
- #endif /* defined(__MMI_MULTITAP_SLOVAK__) */
- #if defined(__MMI_MULTITAP_DUTCH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_DUTCH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_DUTCH;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_DUTCH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_DUTCH;
- break;
- #endif /* defined(__MMI_MULTITAP_DUTCH__) */
- #if defined(__MMI_MULTITAP_ARABIC__)
- case INPUT_MODE_MULTITAP_ARABIC:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_ARABIC;
- break;
- #endif /* defined(__MMI_MULTITAP_ARABIC__) */
- //PMT START PERSIAN
- #if defined(__MMI_MULTITAP_PERSIAN__)
- case INPUT_MODE_MULTITAP_PERSIAN:
- MMI_current_input_type=INPUT_TYPE_ALPHANUMERIC_PERSIAN;
- break;
- #endif
- //PMT END PERSIAN
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_NORWEGIAN;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_NORWEGIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- #if defined(__MMI_MULTITAP_SWEDISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SWEDISH;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SWEDISH;
- break;
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_CROATIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_CROATIAN;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_CROATIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_ROMANIAN;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_ROMANIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SLOVENIAN;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SLOVENIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_MULTITAP_GREEK__)
- case INPUT_MODE_MULTITAP_UPPERCASE_GREEK:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_UPPERCASE_GREEK;
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_GREEK:
- MMI_current_input_type = INPUT_TYPE_ALPHANUMERIC_LOWERCASE_GREEK;
- break;
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- #if defined(__MMI_T9__) || defined(__MMI_ZI__) || defined(__MMI_KA__) || defined(__MMI_ITAP__)|| defined(__MMI_CSTAR__) //KP Jerry add "__MMI_CSTAR__" on 2007-3-8
- //KP Jerry modify on 2007-4-18 start
- #ifdef __MMI_LANG_TR_CHINESE__ //KP Jerry add on 2007-4-17
- case INPUT_MODE_TR_MULTITAP_BOPOMO:
- MMI_current_input_type = INPUT_TYPE_TR_MULTITAP_BOPOMO;
- break;
- case INPUT_MODE_TR_BOPOMO:
- MMI_current_input_type = INPUT_TYPE_TR_BOPOMO;
- break;
- case INPUT_MODE_TR_STROKE:
- MMI_current_input_type = INPUT_TYPE_TR_STROKE;
- break;
- #endif/*__MMI_LANG_TR_CHINESE__*/ //KP Jerry add on 2007-4-17
- #ifdef __MMI_LANG_SM_CHINESE__ //KP Jerry add on 2007-4-17
- case INPUT_MODE_SM_MULTITAP_PINYIN:
- MMI_current_input_type = INPUT_TYPE_SM_MULTITAP_PINYIN;
- break;
- case INPUT_MODE_SM_PINYIN:
- MMI_current_input_type = INPUT_TYPE_SM_PINYIN;
- break;
- case INPUT_MODE_SM_STROKE:
- MMI_current_input_type = INPUT_TYPE_SM_STROKE;
- break;
- #endif/*__MMI_LANG_SM_CHINESE__*/ //KP Jerry add on 2007-4-17
- //KP Jerry modify on 2007-4-18 end
- case INPUT_MODE_SMART_UPPERCASE_ABC:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_ABC;
- break;
- case INPUT_MODE_SMART_LOWERCASE_ABC:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_ABC;
- break;
- #ifdef __MMI_LANG_THAI__ //KP Jerry add on 2007-4-17
- case INPUT_MODE_SMART_THAI:
- MMI_current_input_type = INPUT_TYPE_SMART_THAI;
- break;
- #endif //KP Jerry add on 2007-4-17
- /* MTK Elvis for R2L characters */
- #ifdef __MMI_LANG_ARABIC__ //KP Jerry add on 2007-4-17
- case INPUT_MODE_SMART_ARABIC:
- MMI_current_input_type = INPUT_TYPE_SMART_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:
- MMI_current_input_type = INPUT_TYPE_SMART_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:
- MMI_current_input_type = INPUT_TYPE_SMART_HINDI;
- 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:
- MMI_current_input_type = INPUT_TYPE_SMART_HEBREW;
- break;
- #endif //KP Jerry add on 2007-4-17
- #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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_SPANISH;
- break;
- case INPUT_MODE_SMART_LOWERCASE_SPANISH:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_SPANISH;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_DANISH;
- break;
- case INPUT_MODE_SMART_LOWERCASE_DANISH:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_DANISH;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_POLISH;
- break;
- case INPUT_MODE_SMART_LOWERCASE_POLISH:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_POLISH;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_FRENCH;
- break;
- case INPUT_MODE_SMART_LOWERCASE_FRENCH:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_FRENCH;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_GERMAN;
- break;
- case INPUT_MODE_SMART_LOWERCASE_GERMAN:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_GERMAN;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_ITALIAN;
- break;
- case INPUT_MODE_SMART_LOWERCASE_ITALIAN:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_ITALIAN;
- 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_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-6
- case INPUT_MODE_SMART_UPPERCASE_RUSSIAN:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_RUSSIAN;
- break;
- case INPUT_MODE_SMART_LOWERCASE_RUSSIAN:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_RUSSIAN;
- 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-6
- #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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_BULGARIAN;
- break;
- case INPUT_MODE_SMART_LOWERCASE_BULGARIAN:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_BULGARIAN;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_TURKISH;
- break;
- case INPUT_MODE_SMART_LOWERCASE_TURKISH:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_TURKISH;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_PORTUGUESE;
- break;
- case INPUT_MODE_SMART_LOWERCASE_PORTUGUESE:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_PORTUGUESE;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_INDONESIAN;
- break;
- case INPUT_MODE_SMART_LOWERCASE_INDONESIAN:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_INDONESIAN;
- 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_ZI_CZECH__) || defined(__MMI_T9_CZECH__) || defined(__MMI_CSTAR_CZECH__) //KP Jerry add "__MMI_CSTAR_CZECH__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_CZECH:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_CZECH;
- break;
- case INPUT_MODE_SMART_LOWERCASE_CZECH:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_CZECH;
- break;
- #endif /* defined(__MMI_ZI_CZECH__) || defined(__MMI_T9_CZECH__) || defined(__MMI_CSTAR_CZECH__) */ //KP Jerry add "__MMI_CSTAR_CZECH__" on 2007-4-6
- #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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_MALAY;
- break;
- case INPUT_MODE_SMART_LOWERCASE_MALAY:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_MALAY;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_VIETNAMESE;
- break;
- case INPUT_MODE_SMART_LOWERCASE_VIETNAMESE:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_VIETNAMESE;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_FINNISH;
- break;
- case INPUT_MODE_SMART_LOWERCASE_FINNISH:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_FINNISH;
- 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_ZI_HUNGARIAN__) || defined(__MMI_T9_HUNGARIAN__) || defined(__MMI_CSTAR_HUNGARIAN__) //KP Jerry add "__MMI_CSTAR_HUNGARIAN__" on 2007-4-6
- case INPUT_MODE_SMART_UPPERCASE_HUNGARIAN:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_HUNGARIAN;
- break;
- case INPUT_MODE_SMART_LOWERCASE_HUNGARIAN:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_HUNGARIAN;
- break;
- #endif /* defined(__MMI_ZI_HUNGARIAN__) || defined(__MMI_T9_HUNGARIAN__) || defined(__MMI_CSTAR_HUNGARIAN__) */ //KP Jerry add "__MMI_CSTAR_HUNGARIAN__" on 2007-4-6
- #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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_SLOVAK;
- break;
- case INPUT_MODE_SMART_LOWERCASE_SLOVAK:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_SLOVAK;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_DUTCH;
- break;
- case INPUT_MODE_SMART_LOWERCASE_DUTCH:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_DUTCH;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_NORWEGIAN;
- break;
- case INPUT_MODE_SMART_LOWERCASE_NORWEGIAN:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_NORWEGIAN;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_SWEDISH;
- break;
- case INPUT_MODE_SMART_LOWERCASE_SWEDISH:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_SWEDISH;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_CROATIAN;
- break;
- case INPUT_MODE_SMART_LOWERCASE_CROATIAN:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_CROATIAN;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_ROMANIAN;
- break;
- case INPUT_MODE_SMART_LOWERCASE_ROMANIAN:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_ROMANIAN;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_SLOVENIAN;
- break;
- case INPUT_MODE_SMART_LOWERCASE_SLOVENIAN:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_SLOVENIAN;
- 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_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:
- MMI_current_input_type = INPUT_TYPE_SMART_UPPERCASE_GREEK;
- break;
- case INPUT_MODE_SMART_LOWERCASE_GREEK:
- MMI_current_input_type = INPUT_TYPE_SMART_LOWERCASE_GREEK;
- break;
- #endif /* defined(__MMI_T9_GREEK__) || defined(__MMI_ZI_GREEK__) || defined(__MMI_CSTAR_GREEK__) */ //KP Jerry add "__MMI_CSTAR_GREEK__" on 2007-4-6
- #endif /* defined(__MMI_T9__) || defined(__MMI_ZI__) || defined(__MMI_CSTAR__) || defined(__MMI_KA__) || defined(__MMI_ITAP__) */ //KP Jerry add "__MMI_CSTAR__" on 2007-4-17
- /* MTK Elvis to add some APIs for Qsearch */
- //KP Jerry modify on 2007-4-18 start
- #ifdef __MMI_LANG_TR_CHINESE__ //KP Jerry add on 2007-4-17
- case INPUT_MODE_MMI_MULTITAP_BPMF:
- MMI_current_input_type = INPUT_TYPE_MMI_MULTITAP_BPMF;
- break;
- case INPUT_MODE_MMI_TR_STROKE:
- MMI_current_input_type = INPUT_TYPE_MMI_TR_STROKE;
- break;
- #endif/*__MMI_LANG_TR_CHINESE__*/ //KP Jerry add on 2007-4-17
- #ifdef __MMI_LANG_SM_CHINESE__ //KP Jerry add on 2007-4-17
- case INPUT_MODE_MMI_MULTITAP_PINYIN:
- MMI_current_input_type = INPUT_TYPE_MMI_MULTITAP_PINYIN;
- break;
- case INPUT_MODE_MMI_SM_STROKE:
- MMI_current_input_type = INPUT_TYPE_MMI_SM_STROKE;
- break;
- #endif/*__MMI_LANG_SM_CHINESE__*/ //KP Jerry add on 2007-4-17
- //KP Jerry modify on 2007-4-18 end
- case INPUT_MODE_MMI_NUMERIC:
- MMI_current_input_type = INPUT_TYPE_MMI_NUMERIC;
- break;
- case INPUT_MODE_MMI_LOWERCASE_ABC:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_ABC;
- break;
- #if defined(__MMI_MULTITAP_SPANISH__)
- case INPUT_MODE_MMI_LOWERCASE_SPANISH:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_SPANISH;
- break;
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- case INPUT_MODE_MMI_LOWERCASE_DANISH:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_DANISH;
- break;
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- case INPUT_MODE_MMI_LOWERCASE_POLISH:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_POLISH;
- break;
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- case INPUT_MODE_MMI_LOWERCASE_FRENCH:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_FRENCH;
- break;
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- case INPUT_MODE_MMI_LOWERCASE_GERMAN:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_GERMAN;
- break;
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- case INPUT_MODE_MMI_LOWERCASE_ITALIAN:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_ITALIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- case INPUT_MODE_MMI_LOWERCASE_RUSSIAN:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_RUSSIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- case INPUT_MODE_MMI_LOWERCASE_BULGARIAN:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_BULGARIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_TURKISH__)
- case INPUT_MODE_MMI_LOWERCASE_TURKISH:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_TURKISH;
- break;
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- case INPUT_MODE_MMI_LOWERCASE_PORTUGUESE:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_PORTUGUESE;
- break;
- #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- case INPUT_MODE_MMI_LOWERCASE_INDONESIAN:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_INDONESIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_MULTITAP_CZECH__)
- case INPUT_MODE_MMI_LOWERCASE_CZECH:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_CZECH;
- break;
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_MULTITAP_MALAY__)
- case INPUT_MODE_MMI_LOWERCASE_MALAY:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_MALAY;
- break;
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- case INPUT_MODE_MMI_LOWERCASE_VIETNAMESE:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_VIETNAMESE;
- break;
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_MULTITAP_FINNISH__)
- case INPUT_MODE_MMI_LOWERCASE_FINNISH:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_FINNISH;
- break;
- #endif /* defined(__MMI_MULTITAP_FINNISH__) */
- #if defined(__MMI_MULTITAP_HUNGARIAN__)
- case INPUT_MODE_MMI_LOWERCASE_HUNGARIAN:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_HUNGARIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */
- #if defined(__MMI_MULTITAP_SWEDISH__)
- case INPUT_MODE_MMI_LOWERCASE_SWEDISH:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_SWEDISH;
- break;
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- case INPUT_MODE_MMI_MULTITAP_HEBREW:
- MMI_current_input_type = INPUT_TYPE_MMI_MULTITAP_HEBREW;
- break;
- #endif /* defined(__MMI_MULTITAP_HEBREW__) */
- #if defined(__MMI_MULTITAP_SLOVAK__)
- case INPUT_MODE_MMI_LOWERCASE_SLOVAK:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_SLOVAK;
- break;
- #endif /* defined(__MMI_MULTITAP_SLOVAK__) */
- #if defined(__MMI_MULTITAP_DUTCH__)
- case INPUT_MODE_MMI_LOWERCASE_DUTCH:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_DUTCH;
- break;
- #endif /* defined(__MMI_MULTITAP_DUTCH__) */
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- case INPUT_MODE_MMI_LOWERCASE_NORWEGIAN:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_NORWEGIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- #if defined(__MMI_MULTITAP_ARABIC__)
- case INPUT_MODE_MMI_MULTITAP_ARABIC:
- MMI_current_input_type = INPUT_TYPE_MMI_MULTITAP_ARABIC;
- break;
- #endif /* defined(__MMI_MULTITAP_ARABIC__) */
- //PMT START PERSIAN
- #if defined(__MMI_MULTITAP_PERSIAN__)
- case INPUT_MODE_MMI_MULTITAP_PERSIAN:
- MMI_current_input_type = INPUT_TYPE_MMI_MULTITAP_PERSIAN;
- break;
- #endif
- //PMT END PERSIAN
- #if defined(__MMI_MULTITAP_CROATIAN__)
- case INPUT_MODE_MMI_LOWERCASE_CROATIAN:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_CROATIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- case INPUT_MODE_MMI_LOWERCASE_ROMANIAN:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_ROMANIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- case INPUT_MODE_MMI_LOWERCASE_SLOVENIAN:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_SLOVENIAN;
- break;
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_MULTITAP_GREEK__)
- case INPUT_MODE_MMI_LOWERCASE_GREEK:
- MMI_current_input_type = INPUT_TYPE_MMI_LOWERCASE_GREEK;
- break;
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- }
- /* MTK Elvis for R2L characters */
- #ifdef __MMI_BIDI_ALG__
- //PMT START PERSIAN
- if (MMI_current_input_type == INPUT_TYPE_SMART_ARABIC || MMI_current_input_type == INPUT_TYPE_SMART_HEBREW || MMI_current_input_type == INPUT_TYPE_SMART_PERSIAN)
- //PMT END PERSIAN
- {
- MMI_bidi_input_type = BIDI_R;
- }
- else
- {
- MMI_bidi_input_type = BIDI_L;
- }
- #endif /* __MMI_BIDI_ALG__ */
- /* MTK end */
- }
- /*****************************************************************************
- * FUNCTION
- * RegisterInputBoxValidationFunction
- * DESCRIPTION
- * register input box validation function
- * PARAMETERS
- * f [IN] )(U8*,U8*,S32) function pointer
- * RETURNS
- * void
- *****************************************************************************/
- void RegisterInputBoxValidationFunction(void (*f) (U8 *, U8 *, S32))
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_inputbox_validation_callback = f;
- }
- /*****************************************************************************
- * FUNCTION
- * RegisterInputBoxNotEmptyFunction
- * DESCRIPTION
- * register input box validation function
- * PARAMETERS
- * f [IN] )(void) function pointer
- * RETURNS
- * void
- *****************************************************************************/
- void RegisterInputBoxNotEmptyFunction(void (*f) (void))
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_inputbox_not_empty_callback = f;
- }
- /*****************************************************************************
- * FUNCTION
- * RegisterInputBoxEmptyFunction
- * DESCRIPTION
- * register input box validation function
- * PARAMETERS
- * f [IN] )(void) function pointer
- * RETURNS
- * void
- *****************************************************************************/
- void RegisterInputBoxEmptyFunction(void (*f) (void))
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_inputbox_empty_callback = f;
- }
- S32(*wgui_inputbox_GSM_ext_count_function) (void) = NULL;
- S32(*wgui_inputbox_UCS2_count_function) (void) = NULL;
- /*****************************************************************************
- * FUNCTION
- * GetInputBoxUCS2Count
- * DESCRIPTION
- * Returns the number of UCS2 characters present
- * in the current inputbox buffer
- * PARAMETERS
- * void
- * RETURNS
- * Number of UCS2 characters
- *****************************************************************************/
- S32 GetInputBoxUCS2Count(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (wgui_inputbox_UCS2_count_function != NULL)
- {
- return (wgui_inputbox_UCS2_count_function());
- }
- else
- {
- return (0);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * GetInputBoxExtendedGSMCount
- * DESCRIPTION
- * Returns the number of GSM extended characters present
- * in the current inputbox buffer.
- * PARAMETERS
- * void
- * RETURNS
- * Number of GSM extended characters
- *****************************************************************************/
- S32 GetInputBoxExtendedGSMCount(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (wgui_inputbox_GSM_ext_count_function != NULL)
- {
- return (wgui_inputbox_GSM_ext_count_function());
- }
- else
- {
- return (0);
- }
- }
- /* Common functions for single line input box screens */
- /* Clear / back key handling */
- /*----------------------------------------------------------------------------
- Function: wgui_singleline_inputbox_RSK_function
- Description: a function pointer store the address of function
- whch handle single input box rsk key
- Input parameters : none
- Output Parameters: none
- Returns: none
- ----------------------------------------------------------------------------*/
- void (*wgui_singleline_inputbox_RSK_function) (void) = UI_dummy_function;
- /* MTK Elvis for QSearch */
- void (*wgui_singleline_inputbox_LSK_function) (void) = UI_dummy_function;
- /* store rsk key string of single input box */
- UI_string_type wgui_singleline_inputbox_LSK_label_string;
- /* store rsk key icon of single input box */
- PU8 wgui_singleline_inputbox_LSK_label_icon;
- U8 wgui_singleline_inputbox_RSK_label_clear = 0;
- /* store rsk key string of single input box */
- UI_string_type wgui_singleline_inputbox_RSK_label_string;
- /* store rsk key icon of single input box */
- PU8 wgui_singleline_inputbox_RSK_label_icon;
- /* store flag of decimal input of single input box */
- U8 wgui_singleline_inputbox_decimal_flag = 0;
- /* store flag of decimal input of mode single input box */
- U8 wgui_singleline_inputbox_decimal_input_mode_flag = 0;
- /* store buffer size of single input box */
- S32 wgui_singleline_inputbox_buffer_size = 0;
- /* MTK end */
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_singleline_inputbox_right_softkey_down
- * DESCRIPTION
- * handle single line input box RSK down key
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- /* MTK ELvis 20040104 */
- extern void PbookListSearchEntryReq(void);
- extern U8 inPinyinSearchScreen;
- void refresh_search_list(U8 *name);
- extern S32(*cat200_search_function) (U8 *);
- void wgui_handle_singleline_inputbox_right_softkey_down(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (wgui_singleline_inputbox_decimal_input_mode_flag)
- {
- if (wgui_singleline_inputbox_decimal_flag)
- {
- UI_buffer_type p = MMI_singleline_inputbox.current_text_p;
- UI_character_type c;
- if (p != MMI_singleline_inputbox.text)
- {
- UI_STRING_GET_PREVIOUS_CHARACTER(p, c);
- if (c == (UI_character_type) '.')
- {
- wgui_singleline_inputbox_decimal_flag = 0;
- }
- }
- }
- if (gui_single_line_input_box_get_text_length(&MMI_singleline_inputbox) > 0)
- {
- singleline_inputbox_delete_character();
- }
- }
- else
- {
- if (gui_single_line_input_box_get_text_length(&MMI_singleline_inputbox) > 0)
- {
- singleline_inputbox_delete_character();
- /* MTK Elvis 20040527--if the text buffer length is zero, it's not required to call this function to redraw screen */
- if (cat200_search_function)
- {
- refresh_search_list(MMI_singleline_inputbox.text);
- }
- /* MTK end */
- #ifdef __MMI_PINYIN_SEARCH__
- if (inPinyinSearchScreen)
- {
- PbookListSearchEntryReq();
- }
- #endif /* __MMI_PINYIN_SEARCH__ */
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_singleline_inputbox_right_softkey_up
- * DESCRIPTION
- * handle single line input box RSK up key
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_singleline_inputbox_right_softkey_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (wgui_singleline_inputbox_RSK_function != NULL)
- {
- wgui_singleline_inputbox_RSK_function();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_register_singleline_inputbox_handle_right_softkey_up
- * DESCRIPTION
- * register a function handler of RSK up key of single input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_register_singleline_inputbox_handle_right_softkey_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- set_right_softkey_function(wgui_handle_singleline_inputbox_right_softkey_up, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_register_singleline_inputbox_handle_clear_key_up
- * DESCRIPTION
- * register a function handler of RSK up key of single input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_register_singleline_inputbox_handle_clear_key_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetKeyHandler(wgui_handle_singleline_inputbox_right_softkey_up, KEY_CLEAR, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_singleline_inputbox_right_softkey_long_press
- * DESCRIPTION
- * handle long press of RSK of single input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_singleline_inputbox_right_softkey_long_press(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- singleline_inputbox_delete_all_characters();
- if (wgui_singleline_inputbox_decimal_input_mode_flag)
- {
- wgui_singleline_inputbox_decimal_flag = 0;
- }
- /* MTK Terry 20041111--if the text buffer length is zero, it's required to call this function to redraw screen */
- if (cat200_search_function)
- {
- refresh_search_list(MMI_singleline_inputbox.text);
- }
- /* MTK end */
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_singleline_inputbox_input
- * DESCRIPTION
- * handle input of single line input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_singleline_inputbox_input(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gui_single_line_input_box_get_text_length(&MMI_singleline_inputbox) > 0)
- {
- #if defined(__MMI_WITH_C_KEY__)
- if (wgui_singleline_inputbox_RSK_label_clear == 0)
- {
- if (wgui_inputbox_not_empty_callback != NULL)
- {
- wgui_inputbox_not_empty_callback();
- }
- wgui_singleline_inputbox_RSK_label_clear = 1;
- SetKeyHandler(wgui_handle_singleline_inputbox_right_softkey_down, KEY_CLEAR, KEY_EVENT_DOWN);
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_UP);
- SetKeyHandler(wgui_handle_singleline_inputbox_right_softkey_long_press, KEY_CLEAR, KEY_EVENT_LONG_PRESS);
- }
- #else /* defined(__MMI_WITH_C_KEY__) */
- if (wgui_singleline_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();
- wgui_singleline_inputbox_RSK_label_clear = 1;
- set_right_softkey_function(UI_dummy_function, KEY_EVENT_UP);
- set_right_softkey_function(wgui_handle_singleline_inputbox_right_softkey_down, KEY_EVENT_DOWN);
- }
- #endif /* defined(__MMI_WITH_C_KEY__) */
- }
- else
- {
- #if defined(__MMI_WITH_C_KEY__)
- if (wgui_singleline_inputbox_RSK_label_clear == 1)
- {
- if (wgui_inputbox_empty_callback != NULL)
- {
- wgui_inputbox_empty_callback();
- }
- wgui_singleline_inputbox_RSK_label_clear = 0;
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_DOWN);
- /* MTK Terry Temp solution for C key in Enter Pin */
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_UP);
- SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_LONG_PRESS);
- }
- #else /* defined(__MMI_WITH_C_KEY__) */
- if (wgui_singleline_inputbox_RSK_label_clear == 1)
- {
- set_right_softkey_label(wgui_singleline_inputbox_RSK_label_string);
- set_right_softkey_icon(wgui_singleline_inputbox_RSK_label_icon);
- if (wgui_inputbox_empty_callback != NULL)
- {
- wgui_inputbox_empty_callback();
- }
- redraw_right_softkey();
- wgui_singleline_inputbox_RSK_label_clear = 0;
- set_right_softkey_function(wgui_register_singleline_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_single_line_input_box_test_first_position(&MMI_singleline_inputbox))
- {
- if(wgui_singleline_inputbox_RSK_label_clear==1)
- {
- set_right_softkey_label(wgui_singleline_inputbox_RSK_label_string);
- set_right_softkey_icon(wgui_singleline_inputbox_RSK_label_icon);
- redraw_right_softkey();
- wgui_singleline_inputbox_RSK_label_clear=0;
- set_right_softkey_function(wgui_register_singleline_inputbox_handle_right_softkey_up,KEY_EVENT_UP);
- set_right_softkey_function(UI_dummy_function,KEY_EVENT_DOWN);
- }
- }
- #endif /* (0) */
- if (MMI_singleline_inputbox.flags & UI_SINGLE_LINE_INPUT_BOX_PLUS_CHARACTER_HANDLING)
- {
- if (MMI_singleline_inputbox.text[0] == '+')
- {
- MMI_singleline_inputbox.available_length = (wgui_singleline_inputbox_buffer_size + 1) * ENCODING_LENGTH;
- }
- else
- {
- MMI_singleline_inputbox.available_length = wgui_singleline_inputbox_buffer_size * ENCODING_LENGTH;
- }
- }
- //MTK Elvis 20040517 to turn on this
- //Draw Information Bar If Enable - Gurinder - 23/4/2004
- if (wgui_inputbox_information_flag)
- {
- wgui_redraw_singleline_input_information_bar();
- }
- /* MTK end */
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_handle_singleline_inputbox_navigate
- * DESCRIPTION
- * handle navigation of single line input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_handle_singleline_inputbox_navigate(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gui_single_line_input_box_test_first_position(&MMI_singleline_inputbox) ||
- (gui_single_line_input_box_get_text_length(&MMI_singleline_inputbox) <= 0))
- {
- if (wgui_singleline_inputbox_RSK_label_clear == 1)
- {
- set_right_softkey_label(wgui_singleline_inputbox_RSK_label_string);
- set_right_softkey_icon(wgui_singleline_inputbox_RSK_label_icon);
- redraw_right_softkey();
- wgui_singleline_inputbox_RSK_label_clear = 0;
- set_right_softkey_function(wgui_handle_singleline_inputbox_right_softkey_up, KEY_EVENT_UP);
- set_right_softkey_function(UI_dummy_function, KEY_EVENT_DOWN);
- }
- }
- else
- {
- if (wgui_singleline_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_singleline_inputbox_RSK_label_clear = 1;
- set_right_softkey_function(UI_dummy_function, KEY_EVENT_UP);
- set_right_softkey_function(wgui_handle_singleline_inputbox_right_softkey_down, KEY_EVENT_DOWN);
- }
- }
- }
- /* Multitap handling for phone number input mode */
- /*----------------------------------------------------------------------------
- Function: wgui_singleline_inputbox_phone_number_input_complete_multitap_star_key
- Description: handle multital star key of phone number input box
- Input parameters : none
- Output Parameters: none
- Returns: none
- ----------------------------------------------------------------------------*/
- void wgui_singleline_inputbox_phone_number_input_complete_multitap_star_key(void);
- /*----------------------------------------------------------------------------
- Function: wgui_singleline_inputbox_phone_number_input_complete_multitap_zero_key
- Description: handle multitap zero key of phone number input box
- Input parameters : none
- Output Parameters: none
- Returns: none
- ----------------------------------------------------------------------------*/
- void wgui_singleline_inputbox_phone_number_input_complete_multitap_zero_key(void);
- /*****************************************************************************
- * FUNCTION
- * wgui_singleline_inputbox_handle_multitap_input_complete
- * DESCRIPTION
- * handle multitap input complete of single line input box
- * PARAMETERS
- * type [IN] Type of multitap select
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_singleline_inputbox_handle_multitap_input_complete(S32 type)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (wgui_inputbox_active_multitap == WGUI_INPUTBOX_MULTITAP_NONE)
- {
- return;
- }
- switch (wgui_inputbox_active_multitap)
- {
- case WGUI_INPUTBOX_EDIT_MULTITAP_STAR:
- if (type == WGUI_INPUTBOX_EDIT_MULTITAP_STAR)
- {
- return;
- }
- if (MMI_singleline_inputbox.flags & UI_SINGLE_LINE_INPUT_BOX_STATE_MULTITAP)
- {
- gui_cancel_timer(wgui_singleline_inputbox_phone_number_input_complete_multitap_star_key);
- gui_multitap_input_complete(&wgui_inputbox_multitap_star_key);
- }
- break;
- #ifdef __MMI_MULTITAP_KEY_0__
- case WGUI_INPUTBOX_EDIT_MULTITAP_ZERO:
- if (type == WGUI_INPUTBOX_EDIT_MULTITAP_ZERO)
- {
- return;
- }
- if (MMI_singleline_inputbox.flags & UI_SINGLE_LINE_INPUT_BOX_STATE_MULTITAP)
- {
- gui_cancel_timer(wgui_singleline_inputbox_phone_number_input_complete_multitap_zero_key);
- gui_multitap_input_complete(&wgui_inputbox_multitap_zero_key);
- }
- break;
- #endif /* __MMI_MULTITAP_KEY_0__ */
- }
- wgui_inputbox_active_multitap = WGUI_INPUTBOX_MULTITAP_NONE;
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_singleline_inputbox_phone_number_input_complete_multitap_star_key
- * DESCRIPTION
- * handle multitap input complete of single line phone number input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_singleline_inputbox_phone_number_input_complete_multitap_star_key(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gui_multitap_input_complete(&wgui_inputbox_multitap_star_key);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_singleline_inputbox_phone_number_input_handle_multitap_star_key_down
- * DESCRIPTION
- * handle multitap input complete of single line phone numebr start keyx
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_singleline_inputbox_phone_number_input_handle_multitap_star_key_down(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_singleline_inputbox_handle_multitap_input_complete(WGUI_INPUTBOX_EDIT_MULTITAP_STAR);
- wgui_inputbox_active_multitap = WGUI_INPUTBOX_EDIT_MULTITAP_STAR;
- gui_change_multitap_input_state(&wgui_inputbox_multitap_star_key);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_singleline_inputbox_phone_number_input_handle_multitap_star_key_up
- * DESCRIPTION
- * handle multitap input complete of single line phone numebr start key up
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_singleline_inputbox_phone_number_input_handle_multitap_star_key_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gui_start_timer(MMI_MULTITAP_TIMEOUT, wgui_singleline_inputbox_phone_number_input_complete_multitap_star_key);
- }
- #ifdef __MMI_MULTITAP_KEY_0__
- /*****************************************************************************
- * FUNCTION
- * wgui_singleline_inputbox_phone_number_input_complete_multitap_zero_key
- * DESCRIPTION
- * handle multitap input complete of single line phone numebr zero key
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_singleline_inputbox_phone_number_input_complete_multitap_zero_key(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gui_multitap_input_complete(&wgui_inputbox_multitap_zero_key);
- SetKeyHandler(MMI_key_0_down, KEY_0, KEY_EVENT_DOWN);
- SetKeyHandler(MMI_key_0_down, KEY_0, KEY_REPEAT);
- SetKeyHandler(MMI_key_0_up, KEY_0, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_singleline_inputbox_phone_number_input_handle_multitap_zero_key_down
- * DESCRIPTION
- * handle multitap input complete of single line phone numebr zero key down
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_singleline_inputbox_phone_number_input_handle_multitap_zero_key_down(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_singleline_inputbox_handle_multitap_input_complete(WGUI_INPUTBOX_EDIT_MULTITAP_ZERO);
- wgui_inputbox_active_multitap = WGUI_INPUTBOX_EDIT_MULTITAP_ZERO;
- gui_change_multitap_input_state(&wgui_inputbox_multitap_zero_key);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_singleline_inputbox_phone_number_input_handle_multitap_zero_key_up
- * DESCRIPTION
- * handle multitap input complete of single line phone numebr zero key up
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_singleline_inputbox_phone_number_input_handle_multitap_zero_key_up(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gui_start_timer(MMI_MULTITAP_TIMEOUT + 400, wgui_singleline_inputbox_phone_number_input_complete_multitap_zero_key);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_singleline_inputbox_phone_number_input_handle_zero_key_long_press
- * DESCRIPTION
- * handle long press zero key on phone number input box
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_singleline_inputbox_phone_number_input_handle_zero_key_long_press(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetKeyHandler(UI_dummy_function, KEY_0, KEY_REPEAT);
- singleline_inputbox_delete_character();