wgui_inline_edit.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:887k
源码类别:
MTK
开发平台:
C/C++
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- #if(UI_BLINKING_CURSOR_SUPPORT)
- StopMyTimer(BLINKING_CURSOR);
- #endif
- wgui_inline_edit_arrow_key_flag = CATEGORY57_NO_KEY_FLAG;
- gui_set_fixed_list_menu_current_theme(&MMI_fixed_list_menu);
- current_wgui_inline_item = NULL;
- wgui_n_inline_items = 0;
- wgui_inline_item_highlighted_index = -1;
- wgui_inline_list_menu_changed = 0;
- wgui_inline_list_menu_disable_done = 0;
- wgui_inline_edit_DONE_function = NULL;
- wgui_inline_edit_BACK_function = NULL;
- complete_inline_item_edit = UI_dummy_function;
- category_inline_edit_menuitem_flags();
- clear_inline_item_keys();
- wgui_text_menuitem_reset_scrolling();
- reset_pop_up_descriptions();
- redraw_current_inline_item = UI_dummy_function;
- #ifdef __MMI_TOUCH_SCREEN__
- wgui_current_inline_item_pen_function = UI_dummy_inline_item_pen_function;
- #endif
- ClearHighlightHandler();
- reset_softkeys();
- reset_menu_shortcut_handler();
- reset_fixed_list();
- ExitCategoryFunction = MMI_dummy_function;
- RedrawCategoryFunction = MMI_dummy_function;
- GetCategoryHistory = dummy_get_history;
- GetCategoryHistorySize = dummy_get_history_size;
- inline_edit_current_highlight_handler = MMI_dummy_highlight_handler;
- MMI_fixed_icontext_menuitem.text_font = cat57_f1;
- MMI_fixed_text_menuitem.text_font = cat57_f2;
- #ifdef __MMI_UI_LIST_HIGHLIGHT_EFFECTS__
- gui_unblock_list_effect();
- #endif
- #ifdef __MMI_UI_TRANSPARENT_EFFECT__
- enable_fixed_icontext_menuitem_transparent_effect();
- #endif
- inline_item_changed_handler = NULL;
- }
- /*****************************************************************************
- * FUNCTION
- * Category157ChangeItemText
- * DESCRIPTION
- *
- * PARAMETERS
- * index [IN]
- * text [?]
- * RETURNS
- * void
- *****************************************************************************/
- void Category157ChangeItemText(S32 index, U8 *text)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- MMI_fixed_icontext_menuitems[index].item_text = (UI_string_type) text;
- }
- /*****************************************************************************
- * FUNCTION
- * Category157ChangeItemIcon
- * DESCRIPTION
- *
- * PARAMETERS
- * index [IN]
- * image_ID [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void Category157ChangeItemIcon(S32 index, U16 image_ID)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- MMI_fixed_icontext_menuitems[index].item_icon = (PU8) get_image(image_ID);
- }
- /*****************************************************************************
- * FUNCTION
- * GetCategory157DataSize
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- *
- *****************************************************************************/
- S32 GetCategory157DataSize(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- return (wgui_get_inline_data_size());
- }
- /*****************************************************************************
- * FUNCTION
- * GetCategory157Data
- * DESCRIPTION
- *
- * PARAMETERS
- * data [?]
- * RETURNS
- *
- *****************************************************************************/
- U8 *GetCategory157Data(U8 *data)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- return (wgui_get_inline_data(data));
- }
- /*****************************************************************************
- * FUNCTION
- * SetCategory157Data
- * DESCRIPTION
- *
- * PARAMETERS
- * list_of_items [?]
- * number_of_items [IN]
- * data [?]
- * RETURNS
- * void
- *****************************************************************************/
- void SetCategory157Data(InlineItem *list_of_items, S32 number_of_items, U8 *data)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_set_inline_data(list_of_items, number_of_items, data);
- }
- #if defined(__MMI_INSCREEN_MULTILINE_TEXTBOX__)
- /******************************************************************************************/
- /******************************************************************************************/
- /******************************************************************************************/
- U8 inline_multi_line_edit_changed = 0;
- UI_string_type inscreen_text_box_title;
- U8 inscreen_multi_line_change_flag = 0;
- extern void GoBackHistory(void);
- /*****************************************************************************
- * FUNCTION
- * SetInlineItemMultiLineEdit
- * DESCRIPTION
- *
- * PARAMETERS
- * item [?]
- * buffer [?]
- * title [?]
- * buffer_size [IN]
- * input_type [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void SetInlineItemMultiLineEdit(InlineItem *item, U8 *buffer, U8 *title, S32 buffer_size, S16 input_type)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- wgui_inline_item_text_edit *i;
- UI_buffer_type mask_buffer;
- S16 t = input_type & INPUT_TYPE_MASK;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- inscreen_text_box_title = (UI_string_type) title;
- if (n_inline_text_edit_items >= MAX_INLINE_TEXT_EDIT_ITEMS)
- {
- return;
- }
- item->item = (void*)&wgui_inline_text_edit_items[n_inline_text_edit_items];
- item->flags = INLINE_ITEM_TYPE_MULTI_LINE_EDIT;
- mask_buffer = inline_text_edit_mask_buffers[n_inline_text_edit_items];
- n_inline_text_edit_items++;
- i = (wgui_inline_item_text_edit*) item->item;
- i->max_lines = 0;
- i->title = 0;
- i->title_icon = 0;
- i->buffer = buffer;
- i->buffer_size = buffer_size;
- i->flags = 0;
- i->input_type = input_type;
- item->text_p = i->buffer;
- item->handler = handle_inline_multi_line_edit;
- i->edit_complete_callback = UI_dummy_edit_complete_handler;
- i->custom_setup_function = NULL;
- i->validation_callback = UI_dummy_validation_function;
- if ((t == INPUT_TYPE_NUMERIC_PASSWORD) || (t == INPUT_TYPE_ALPHANUMERIC_PASSWORD) ||
- (t == INPUT_TYPE_SAT_NUMERIC_PASSWORD))
- {
- inline_edit_prepare_mask_buffer(buffer, mask_buffer);
- i->mask_buffer = mask_buffer;
- item->text_p = mask_buffer;
- }
- i->UCS2_count = -1;
- MMI_multi_line_inputbox_present = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * SetInlineMultiLineEditCustomFunction
- * DESCRIPTION
- *
- * PARAMETERS
- * item [?]
- * f [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void SetInlineMultiLineEditCustomFunction(InlineItem *item, void (*f) (void))
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- wgui_inline_item_text_edit *i = (wgui_inline_item_text_edit*) item->item;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- i->custom_setup_function = f;
- }
- /*****************************************************************************
- * FUNCTION
- * handle_inline_multi_line_edit
- * DESCRIPTION
- *
- * PARAMETERS
- * x [IN]
- * y [IN]
- * width [IN]
- * height [IN]
- * key_code [IN]
- * key_event [IN]
- * text_p [IN]
- * item [?]
- * flags [IN]
- * history_buffer [?]
- * RETURNS
- * void
- *****************************************************************************/
- void handle_inline_multi_line_edit(
- S32 x,
- S32 y,
- S32 width,
- S32 height,
- S32 key_code,
- S32 key_event,
- U8 **text_p,
- void *item,
- U32 flags,
- U8 *history_buffer)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S32 input_type;
- wgui_inline_item_text_edit *i = (wgui_inline_item_text_edit*) item;
- S32 inputbox_x = x;
- S32 inputbox_y = y;
- S32 inputbox_width = width + 2;
- #if !defined(__MMI_TOUCH_SCREEN__)
- S32 inputbox_height = MMI_content_height - (MMI_fixed_list_menu.n_items) * MMI_ICONTEXT_MENUITEM_HEIGHT - INFORMATION_BAR_HEIGHT - 2; /* Height Changed According to Menu Item Number. */
- #else
- S32 inputbox_height = MMI_content_height - MMI_MULTITAP_HEIGHT - INFORMATION_BAR_HEIGHT - 7; /* Height Changed According to Menu Item Number. */
- #endif
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- MMI_multi_line_inputbox_present = 1;
- wgui_current_inline_item_type = INLINE_ITEM_TYPE_MULTI_LINE_EDIT; /* Should Be Present. */
- UI_UNUSED_PARAMETER(key_code);
- UI_UNUSED_PARAMETER(key_event);
- UI_UNUSED_PARAMETER(flags);
- gdi_layer_lock_frame_buffer();
- wgui_text_menuitem_reset_scrolling();
- if (i->flags & INLINE_ITEM_CHANGED)
- {
- inline_multi_line_edit_changed = 1;
- }
- else
- {
- inline_multi_line_edit_changed = 0;
- }
- wgui_current_inline_item_type = INLINE_ITEM_TYPE_MULTI_LINE_EDIT;
- current_wgui_inline_text_edit_item = i;
- current_wgui_inline_text_edit_text_p = text_p;
- input_type = i->input_type;
- if (!(flags & INLINE_ITEM_OPEN))
- {
- gui_strcpy((UI_string_type) wgui_inline_full_screen_text_edit_buffer, (UI_string_type) i->buffer);
- history_buffer = NULL;
- }
- i->flags &= ~INLINE_ITEM_OPEN;
- register_hide_multitap(category5_hide_multitap);
- wgui_inputbox_validation_callback = i->validation_callback;
- wgui_multiline_setup_inputbox(
- inputbox_x,
- inputbox_y,
- inputbox_width,
- inputbox_height,
- wgui_inline_full_screen_text_edit_buffer,
- i->buffer_size,
- INLINE_MULTI_LINE_EDIT_HISTORY_ID,
- inline_text_edit_RSK_label_string,
- inline_text_edit_RSK_label_icon,
- (S16) input_type,
- history_buffer,
- 1);
- #ifdef __MMI_WALLPAPER_ON_BOTTOM__
- MMI_multiline_inputbox.flags |= UI_MULTI_LINE_INPUT_BOX_TRANSPARENT_BACKGROUND;
- dm_get_scr_bg_image(
- &inline_edit_scr_bg_ID,
- &inline_edit_scr_bg_filename,
- &inline_edit_scr_bg_x,
- &inline_edit_scr_bg_y,
- &inline_edit_scr_bg_opacity);
- dm_set_scr_bg_image(inline_edit_scr_bg_ID, inline_edit_scr_bg_filename, inline_edit_scr_bg_x, inline_edit_scr_bg_y, current_MMI_theme->bg_opacity_low); /* 100605 editor opacity Calvin */
- #endif /* __MMI_WALLPAPER_ON_BOTTOM__ */
- #if defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- set_left_softkey_label((UI_string_type) get_string(STR_GLOBAL_OPTIONS));
- set_left_softkey_icon(NULL);
- SetLeftSoftkeyFunction(EntryInLineMultilineEditorOption, KEY_EVENT_UP);
- #endif /* defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- redraw_right_softkey();
- redraw_left_softkey();
- register_left_softkey_handler();
- register_right_softkey_handler();
- register_multiline_inputbox_input_callback(wgui_inline_edit_handle_multiline_inputbox_input);
- wgui_inputbox_RSK_function = wgui_inline_edit_BACK_function;
- redraw_current_inline_item = show_multiline_inputbox;
- if (i->custom_setup_function != NULL)
- {
- i->custom_setup_function();
- }
- gdi_layer_unlock_frame_buffer();
- show_multiline_inputbox();
- complete_inline_item_edit = handle_inline_multi_line_edit_complete;
- }
- /*****************************************************************************
- * FUNCTION
- * handle_inline_multi_line_edit_complete
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void handle_inline_multi_line_edit_complete(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S32 input_type;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- handle_inline_full_screen_edit_close();
- input_type = current_wgui_inline_text_edit_item->input_type & INPUT_TYPE_MASK;
- current_wgui_inline_item->flags &= ~INLINE_ITEM_OPEN;
- if (inline_full_screen_edit_changed)
- {
- wgui_inline_list_menu_changed = 1;
- }
- current_wgui_inline_text_edit_item->UCS2_count = MMI_multiline_inputbox.UCS2_count;
- gui_strcpy(
- (UI_string_type) current_wgui_inline_text_edit_item->buffer,
- (UI_string_type) wgui_inline_full_screen_text_edit_buffer);
- if ((input_type == INPUT_TYPE_NUMERIC_PASSWORD) || (input_type == INPUT_TYPE_ALPHANUMERIC_PASSWORD) ||
- (input_type == INPUT_TYPE_SAT_NUMERIC_PASSWORD))
- {
- inline_edit_prepare_mask_buffer(
- current_wgui_inline_text_edit_item->buffer,
- current_wgui_inline_text_edit_item->mask_buffer);
- *current_wgui_inline_text_edit_text_p = current_wgui_inline_text_edit_item->mask_buffer;
- }
- else
- {
- *current_wgui_inline_text_edit_text_p = current_wgui_inline_text_edit_item->buffer;
- }
- reset_softkeys();
- reset_multitaps();
- /* W06.05 Temp Solution Do not draw fixed list in category57 because of virtual keyboard */
- #if !defined(__MMI_TOUCH_SCREEN__)
- wgui_close_inputbox();
- #endif
- clear_left_softkey();
- clear_right_softkey();
- register_left_softkey_handler();
- register_right_softkey_handler();
- wgui_inline_item_handled = 0;
- current_wgui_inline_text_edit_item->edit_complete_callback(
- current_wgui_inline_text_edit_item->buffer,
- current_wgui_inline_text_edit_item->buffer_size);
- inline_edit_current_highlight_handler(wgui_inline_item_highlighted_index);
- redraw_current_inline_item = UI_dummy_function;
- wgui_inputbox_UCS2_count_function = NULL;
- wgui_inputbox_not_empty_callback = NULL;
- wgui_inputbox_empty_callback = NULL;
- wgui_inputbox_validation_callback = NULL;
- inline_full_screen_edit_changed = 0;
- complete_inline_item_edit = UI_dummy_function;
- current_wgui_inline_text_edit_item->input_type = MMI_current_input_type;
- StopMyTimer(BLINKING_CURSOR);
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_show_inline_inscreen_multi_line_edit
- * DESCRIPTION
- *
- * PARAMETERS
- * x1 [IN]
- * y1 [IN]
- * width [IN]
- * height [IN]
- * item [?]
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_show_inline_inscreen_multi_line_edit(S32 x1, S32 y1, S32 width, S32 height, wgui_inline_item *item)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U16 input_type;
- wgui_inline_item_text_edit *i = (wgui_inline_item_text_edit*) item->item;
- S32 inputbox_x = x1;
- S32 inputbox_y = y1;
- S32 inputbox_width = width;
- #if(INSCREEN_MUTLILINE_TITLE_ENABLE)
- #if !defined(__MMI_TOUCH_SCREEN__)
- S32 inputbox_height =
- MMI_content_height - (MMI_fixed_list_menu.n_items) * MMI_ICONTEXT_MENUITEM_HEIGHT - 2 - INFORMATION_BAR_HEIGHT;
- #else /* !defined(__MMI_TOUCH_SCREEN__) */
- S32 inputbox_height = MMI_content_height - MMI_MULTITAP_HEIGHT - 7 - INFORMATION_BAR_HEIGHT;
- #endif /* !defined(__MMI_TOUCH_SCREEN__) */
- #else /* (INSCREEN_MUTLILINE_TITLE_ENABLE) */
- #if !defined(__MMI_TOUCH_SCREEN__)
- S32 inputbox_height = MMI_content_height - (MMI_fixed_list_menu.n_items) * MMI_ICONTEXT_MENUITEM_HEIGHT - 2;
- #else
- S32 inputbox_height = MMI_content_height - MMI_MULTITAP_HEIGHT - 7;
- #endif
- #endif /* (INSCREEN_MUTLILINE_TITLE_ENABLE) */
- S32 fh;
- S32 l;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- input_type = i->input_type;
- wgui_set_default_input_type(&input_type);
- if (flag_use_current_input_type)
- {
- input_type = MMI_current_input_type;
- }
- switch (input_type & INPUT_TYPE_MASK)
- {
- case INPUT_TYPE_NUMERIC_CHANGEABLE:
- MMI_current_input_mode = 2;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_NUMERIC:
- MMI_current_input_mode = 2;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_DECIMAL_NUMERIC:
- MMI_current_input_mode = 2;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_KEYPAD_NUMERIC:
- MMI_current_input_mode = 2;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE:
- MMI_current_input_mode = 0;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE:
- MMI_current_input_mode = 1;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #ifdef __MMI_WCSS_INPUT_FORMAT_SUPPORT__
- case INPUT_TYPE_ALPHABATIC_UPPERCASE:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_ABC_NO_NUMERIC;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHABATIC_LOWERCASE:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_ABC_NO_NUMERIC;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_NUMERIC_SYMBOL:
- MMI_current_input_mode = INPUT_MODE_123_SYMBOLS;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* __MMI_WCSS_INPUT_FORMAT_SUPPORT__ */
- case INPUT_TYPE_ALPHANUMERIC_SENTENCECASE:
- MMI_current_input_mode = 1;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_NUMERIC_PASSWORD:
- MMI_current_input_mode = 2;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_SAT_NUMERIC_PASSWORD:
- MMI_current_input_mode = 2;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_PASSWORD:
- MMI_current_input_mode = 1;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_PHONE_NUMBER:
- MMI_current_input_mode = 2;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #if defined (__MMI_MULTITAP_THAI__)
- case INPUT_TYPE_ALPHANUMERIC_MULTITAP_THAI:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_THAI;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined (__MMI_MULTITAP_THAI__) */
- #if defined(__MMI_MULTITAP_SPANISH__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SPANISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_SPANISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SPANISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_SPANISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_DANISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_DANISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_DANISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_DANISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_POLISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_POLISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_POLISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_POLISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_FRENCH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_FRENCH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_FRENCH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_FRENCH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_GERMAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_GERMAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_GERMAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_GERMAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_ITALIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_ITALIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_RUSSIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_RUSSIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_BULGARIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_BULGARIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_TURKISH__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_TURKISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_TURKISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_TURKISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_TURKISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_PORTUGUESE:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_PORTUGUESE:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_INDONESIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_INDONESIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_MULTITAP_CZECH__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_CZECH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_CZECH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_CZECH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_CZECH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_MULTITAP_MALAY__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_MALAY:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_MALAY;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_MALAY:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_MALAY;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_VIETNAMESE:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_VIETNAMESE:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_MULTITAP_FINNISH__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_FINNISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_FINNISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_FINNISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_FINNISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_FINNISH__) */
- #if defined(__MMI_MULTITAP_HUNGARIAN__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_HUNGARIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_HUNGARIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- case INPUT_TYPE_ALPHANUMERIC_HEBREW:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_HEBREW;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_HEBREW__) */
- #if defined(__MMI_MULTITAP_SLOVAK__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SLOVAK:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SLOVAK:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_SLOVAK__) */
- #if defined(__MMI_MULTITAP_DUTCH__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_DUTCH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_DUTCH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_DUTCH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_DUTCH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_DUTCH__) */
- #if defined(__MMI_MULTITAP_ARABIC__)
- case INPUT_TYPE_ALPHANUMERIC_ARABIC:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_ARABIC;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_ARABIC__) */
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_NORWEGIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_NORWEGIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- #if defined(__MMI_MULTITAP_SWEDISH__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SWEDISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SWEDISH:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_CROATIAN__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_CROATIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_CROATIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_ROMANIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_ROMANIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SLOVENIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SLOVENIAN:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_MULTITAP_GREEK__)
- case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_GREEK:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_GREEK;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_GREEK:
- MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_GREEK;
- wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
- break;
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- #if defined(__MMI_T9__) || defined(__MMI_ITAP__)|| defined(__MMI_CSTAR__) //KP Jerry add "__MMI_CSTAR__" on 2007-3-8
- case INPUT_TYPE_TR_MULTITAP_BOPOMO:
- MMI_current_input_mode = INPUT_MODE_TR_MULTITAP_BOPOMO;
- wgui_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_BPMF_IMG);
- break;
- case INPUT_TYPE_SM_MULTITAP_PINYIN:
- MMI_current_input_mode = INPUT_MODE_SM_MULTITAP_PINYIN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_PINYIN_IMG);
- break;
- case INPUT_TYPE_TR_BOPOMO:
- MMI_current_input_mode = INPUT_MODE_TR_BOPOMO;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_BPMF_IMG);
- break;
- case INPUT_TYPE_SM_PINYIN:
- MMI_current_input_mode = INPUT_MODE_SM_PINYIN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_PINYIN_IMG);
- break;
- case INPUT_TYPE_TR_STROKE:
- MMI_current_input_mode = INPUT_MODE_TR_STROKE;
- wgui_inputbox_information_icon = get_image(WGUI_IME_TR_STROKE_IMG);
- break;
- case INPUT_TYPE_SM_STROKE:
- MMI_current_input_mode = INPUT_MODE_SM_STROKE;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SM_STROKE_IMG);
- break;
- case INPUT_TYPE_SMART_UPPERCASE_ABC:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ABC;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_ABC:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ABC;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #if defined(__MMI_T9_THAI__) || defined(__MMI_CSTAR_THAI__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_THAI:
- MMI_current_input_mode = INPUT_MODE_SMART_THAI;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_THAI__) || defined(__MMI_CSTAR_THAI__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_SPANISH__) || defined(__MMI_CSTAR_SPANISH__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_SPANISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SPANISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_SPANISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SPANISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_SPANISH__) || defined(__MMI_CSTAR_SPANISH__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_DANISH__) || defined(__MMI_CSTAR_DANISH__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_DANISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_DANISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_DANISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_DANISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_DANISH__) || defined(__MMI_CSTAR_DANISH__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_POLISH__) || defined(__MMI_CSTAR_POLISH__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_POLISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_POLISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_POLISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_POLISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_POLISH__) || defined(__MMI_CSTAR_POLISH__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_FRENCH__) || defined(__MMI_CSTAR_FRENCH__)
- case INPUT_TYPE_SMART_UPPERCASE_FRENCH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_FRENCH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_FRENCH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_FRENCH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_FRENCH__) || defined(__MMI_CSTAR_FRENCH__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_GERMAN__) || defined(__MMI_CSTAR_GERMAN__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_GERMAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_GERMAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_GERMAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_GERMAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_GERMAN__) || defined(__MMI_CSTAR_GERMAN__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_ITALIAN__) || defined(__MMI_CSTAR_ITALIAN__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_ITALIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ITALIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_ITALIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ITALIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_ITALIAN__) || defined(__MMI_CSTAR_ITALIAN__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_VIETNAMESE__) || defined(__MMI_CSTAR_VIETNAMESE__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_VIETNAMESE:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_VIETNAMESE;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_VIETNAMESE:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_VIETNAMESE;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_VIETNAMESE__) || defined(__MMI_CSTAR_VIETNAMESE__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_INDONESIAN__) || defined(__MMI_CSTAR_INDONESIAN__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_INDONESIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_INDONESIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_INDONESIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_INDONESIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_INDONESIAN__) || defined(__MMI_CSTAR_INDONESIAN__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_CSTAR_PORTUGUESE__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_PORTUGUESE:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_PORTUGUESE;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_PORTUGUESE:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_PORTUGUESE;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_CSTAR_PORTUGUESE__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_CZECH__) || defined(__MMI_CSTAR_CZECH__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_CZECH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_CZECH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_CZECH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_CZECH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_CZECH__) || defined(__MMI_CSTAR_CZECH__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_TURKISH__) || defined(__MMI_CSTAR_TURKISH__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_TURKISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_TURKISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_TURKISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_TURKISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_TURKISH__) || defined(__MMI_CSTAR_TURKISH__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_FINNISH__) || defined(__MMI_CSTAR_FINNISH__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_FINNISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_FINNISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_FINNISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_FINNISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_FINNISH__) || defined(__MMI_CSTAR_FINNISH__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_HUNGARIAN__) || defined(__MMI_CSTAR_HUNGARIAN__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_HUNGARIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_HUNGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_HUNGARIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_HUNGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- #endif /* defined(__MMI_T9_HUNGARIAN__) || defined(__MMI_CSTAR_HUNGARIAN__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_ARABIC__) || defined(__MMI_CSTAR_ARABIC__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_ARABIC:
- MMI_current_input_mode = INPUT_MODE_SMART_ARABIC;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_ARABIC__) || defined(__MMI_CSTAR_ARABIC__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_GREEK__) || defined(__MMI_CSTAR_GREEK__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_GREEK:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_GREEK;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_GREEK:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_GREEK;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_GREEK__) || defined(__MMI_CSTAR_GREEK__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_HEBREW__) || defined(__MMI_CSTAR_HEBREW__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_HEBREW:
- MMI_current_input_mode = INPUT_MODE_SMART_HEBREW;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_HEBREW__) || defined(__MMI_CSTAR_HEBREW__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_HINDI__) || defined(__MMI_CSTAR_HINDI__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_HINDI:
- MMI_current_input_mode = INPUT_MODE_SMART_HINDI;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_HINDI__) || defined(__MMI_CSTAR_HINDI__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_CSTAR_NORWEGIAN__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_NORWEGIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_NORWEGIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_NORWEGIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_NORWEGIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_CSTAR_NORWEGIAN__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_DUTCH__) || defined(__MMI_CSTAR_DUTCH__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_DUTCH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_DUTCH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_DUTCH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_DUTCH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_DUTCH__) || defined(__MMI_CSTAR_DUTCH__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_BULGARIAN__) || defined(__MMI_CSTAR_BULGARIAN__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_BULGARIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_BULGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_BULGARIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_BULGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_BULGARIAN__) || defined(__MMI_CSTAR_BULGARIAN__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_CSTAR_SLOVENIAN__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_SLOVENIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SLOVENIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_SLOVENIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SLOVENIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_CSTAR_SLOVENIAN__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_SWEDISH__) || defined(__MMI_CSTAR_SWEDISH__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_SWEDISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SWEDISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_SWEDISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SWEDISH;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_SWEDISH__) || defined(__MMI_CSTAR_SWEDISH__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_CROATIAN__) || defined(__MMI_CSTAR_CROATIAN__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_CROATIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_CROATIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_CROATIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_CROATIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_CROATIAN__) || defined(__MMI_CSTAR_CROATIAN__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_MALAY__) || defined(__MMI_CSTAR_MALAY__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_MALAY:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_MALAY;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_MALAY:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_MALAY;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_MALAY__) || defined(__MMI_CSTAR_MALAY__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_SLOVAK__) || defined(__MMI_CSTAR_SLOVAK__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_SLOVAK:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SLOVAK;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_SLOVAK:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SLOVAK;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_SLOVAK__) || defined(__MMI_CSTAR_SLOVAK__) */ //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- #if defined(__MMI_T9_ROMANIAN__) || defined(__MMI_CSTAR_ROMANIAN__) //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
- case INPUT_TYPE_SMART_UPPERCASE_ROMANIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ROMANIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_ROMANIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ROMANIAN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
- break;
- #endif /* defined(__MMI_T9_ROMANIAN__) */
- /* PMT END LANGUAGE 20060104 */
- #elif defined(__MMI_ZI__)
- case INPUT_TYPE_TR_MULTITAP_BOPOMO:
- MMI_current_input_mode = INPUT_MODE_TR_MULTITAP_BOPOMO;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_BPMF_LOGO);
- break;
- case INPUT_TYPE_SM_MULTITAP_PINYIN:
- MMI_current_input_mode = INPUT_MODE_SM_MULTITAP_PINYIN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO);
- break;
- case INPUT_TYPE_TR_BOPOMO:
- MMI_current_input_mode = INPUT_MODE_TR_BOPOMO;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_BPMF_LOGO);
- break;
- case INPUT_TYPE_SM_PINYIN:
- MMI_current_input_mode = INPUT_MODE_SM_PINYIN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO);
- break;
- case INPUT_TYPE_TR_STROKE:
- MMI_current_input_mode = INPUT_MODE_TR_STROKE;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_TR_STROKE_LOGO);
- break;
- case INPUT_TYPE_SM_STROKE:
- MMI_current_input_mode = INPUT_MODE_SM_STROKE;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_SM_STROKE_LOGO);
- break;
- case INPUT_TYPE_SMART_UPPERCASE_ABC:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ABC;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_ABC:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ABC;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_THAI:
- MMI_current_input_mode = INPUT_MODE_SMART_THAI;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #if defined (__MMI_ZI_HEBREW__)
- case INPUT_TYPE_SMART_HEBREW:
- MMI_current_input_mode = INPUT_MODE_SMART_HEBREW;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined (__MMI_ZI_HEBREW__) */
- #if defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__)
- case INPUT_TYPE_SMART_UPPERCASE_SPANISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SPANISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_SPANISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SPANISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__) */
- #if defined(__MMI_ZI_DANISH__)
- case INPUT_TYPE_SMART_UPPERCASE_DANISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_DANISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_DANISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_DANISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_DANISH__) */
- #if defined(__MMI_ZI_POLISH__)
- case INPUT_TYPE_SMART_UPPERCASE_POLISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_POLISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_POLISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_POLISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_POLISH__) */
- #if defined(__MMI_ZI_NORWEGIAN__)
- case INPUT_TYPE_SMART_UPPERCASE_NORWEGIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_NORWEGIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_NORWEGIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_NORWEGIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_NORWEGIAN__) */
- #if defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__)
- case INPUT_TYPE_SMART_UPPERCASE_FRENCH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_FRENCH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_FRENCH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_FRENCH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__) */
- #if defined(__MMI_ZI_GERMAN__)
- case INPUT_TYPE_SMART_UPPERCASE_GERMAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_GERMAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_GERMAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_GERMAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_GERMAN__) */
- #if defined(__MMI_ZI_ITALIAN__)
- case INPUT_TYPE_SMART_UPPERCASE_ITALIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ITALIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_ITALIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ITALIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_ITALIAN__) */
- #if defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__)
- case INPUT_TYPE_SMART_UPPERCASE_RUSSIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_RUSSIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_RUSSIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_RUSSIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) */
- #if defined(__MMI_ZI_BULGARIAN__)
- case INPUT_TYPE_SMART_UPPERCASE_BULGARIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_BULGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_BULGARIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_BULGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_BULGARIAN__) */
- #if defined(__MMI_ZI_TURKISH__)
- case INPUT_TYPE_SMART_UPPERCASE_TURKISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_TURKISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_TURKISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_TURKISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_TURKISH__) */
- #if defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__)
- case INPUT_TYPE_SMART_UPPERCASE_PORTUGUESE:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_PORTUGUESE;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_PORTUGUESE:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_PORTUGUESE;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__) */
- #if defined(__MMI_ZI_INDONESIAN__)
- case INPUT_TYPE_SMART_UPPERCASE_INDONESIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_INDONESIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_INDONESIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_INDONESIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_INDONESIAN__) */
- #if defined(__MMI_ZI_MALAY__)
- case INPUT_TYPE_SMART_UPPERCASE_MALAY:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_MALAY;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_MALAY:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_MALAY;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_MALAY__) */
- #if defined(__MMI_ZI_VIETNAMESE__)
- case INPUT_TYPE_SMART_UPPERCASE_VIETNAMESE:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_VIETNAMESE;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_VIETNAMESE:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_VIETNAMESE;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_VIETNAMESE__) */
- #if defined(__MMI_ZI_SLOVAK__)
- case INPUT_TYPE_SMART_UPPERCASE_SLOVAK:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SLOVAK;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_SLOVAK:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SLOVAK;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_SLOVAK__) */
- #if defined(__MMI_ZI_DUTCH__)
- case INPUT_TYPE_SMART_UPPERCASE_DUTCH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_DUTCH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_DUTCH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_DUTCH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_DUTCH__) */
- #if defined(__MMI_ZI_SWEDISH__)
- case INPUT_TYPE_SMART_UPPERCASE_SWEDISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SWEDISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_SWEDISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SWEDISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_SWEDISH__) */
- #if defined(__MMI_ZI_CROATIAN__)
- case INPUT_TYPE_SMART_UPPERCASE_CROATIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_CROATIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_CROATIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_CROATIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_CROATIAN__) */
- #if defined(__MMI_ZI_ROMANIAN__)
- case INPUT_TYPE_SMART_UPPERCASE_ROMANIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ROMANIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_ROMANIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ROMANIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_ROMANIAN__) */
- #if defined(__MMI_ZI_SLOVENIAN__)
- case INPUT_TYPE_SMART_UPPERCASE_SLOVENIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SLOVENIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_SLOVENIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SLOVENIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_SLOVENIAN__) */
- #if defined(__MMI_ZI_GREEK__)
- case INPUT_TYPE_SMART_UPPERCASE_GREEK:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_GREEK;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_GREEK:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_GREEK;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_GREEK__) */
- #if defined(__MMI_ZI_FINNISH__)
- case INPUT_TYPE_SMART_UPPERCASE_FINNISH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_FINNISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_FINNISH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_FINNISH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_FINNISH__) */
- #if defined(__MMI_ZI_CZECH__)
- case INPUT_TYPE_SMART_UPPERCASE_CZECH:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_CZECH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_CZECH:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_CZECH;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_CZECH__) */
- #if defined(__MMI_ZI_HUNGARIAN__)
- case INPUT_TYPE_SMART_UPPERCASE_HUNGARIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_HUNGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- case INPUT_TYPE_SMART_LOWERCASE_HUNGARIAN:
- MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_HUNGARIAN;
- wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
- break;
- #endif /* defined(__MMI_ZI_HUNGARIAN__) */
- #elif defined(__MMI_KA__)
- case INPUT_TYPE_SM_PINYIN:
- MMI_current_input_mode = INPUT_MODE_SM_PINYIN;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SMART_PINYIN_IMG);
- break;
- case INPUT_TYPE_SM_STROKE:
- MMI_current_input_mode = INPUT_MODE_SM_STROKE;
- wgui_inputbox_information_icon = get_image(WGUI_IME_SM_STROKE_IMG);
- break;
- #endif
- /* MTK end */
- default:
- MMI_current_input_mode = 2;
- break;
- }
- MMI_current_input_type = input_type;
- flag_use_current_input_type = TRUE;
- // End Yogesh 20040812 */
- if (!(item->flags & INLINE_ITEM_OPEN))
- {
- gui_strcpy((UI_string_type) wgui_inline_full_screen_text_edit_buffer, (UI_string_type) i->buffer);
- }
- l = gui_strlen((UI_string_type) wgui_inline_full_screen_text_edit_buffer);
- create_multiline_inputbox_set_buffer((UI_string_type) wgui_inline_full_screen_text_edit_buffer, l, l, 0);
- gui_set_font(MMI_multiline_inputbox.text_font);
- fh = gui_get_character_height();
- inputbox_height = (inputbox_height / (fh + 1)) * (fh + 1);
- #if(INSCREEN_MUTLILINE_TITLE_ENABLE)
- move_multiline_inputbox(inputbox_x, inputbox_y + INFORMATION_BAR_HEIGHT + 2);
- resize_multiline_inputbox(inputbox_width, inputbox_height + 4);
- wgui_inputbox_information_flag = 1;
- wgui_inputbox_information_bar_height = INFORMATION_BAR_HEIGHT;
- wgui_setup_input_information(
- inputbox_x + 2,
- inputbox_y + 1,
- inputbox_width - 5,
- wgui_inputbox_information_bar_height);
- #else /* (INSCREEN_MUTLILINE_TITLE_ENABLE) */
- {
- S32 t_height = 0;
- move_multiline_inputbox(inputbox_x, inputbox_y);
- t_height = (fh + 1) - (INFORMATION_BAR_HEIGHT + 2);
- resize_multiline_inputbox(inputbox_width, inputbox_height + 4 - t_height);
- }
- #endif /* (INSCREEN_MUTLILINE_TITLE_ENABLE) */
- MMI_multiline_inputbox.flags |=
- (UI_MULTI_LINE_INPUT_BOX_DISABLE_CURSOR_DRAW | UI_MULTI_LINE_INPUT_BOX_VIEW_MODE |
- UI_MULTI_LINE_INPUT_BOX_DISABLE_SCROLLBAR);
- show_multiline_inputbox();
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_display_inscreen_text_box_input_method
- * DESCRIPTION
- *
- * PARAMETERS
- * x1 [IN]
- * y1 [IN]
- * x2 [IN]
- * y2 [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_display_inscreen_text_box_input_method(S32 x1, S32 y1, S32 x2, S32 y2)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S32 swidth, sheight, w;
- UI_string_type inputmode_string = (UI_string_type) "";
- stFontAttribute *f = &MMI_small_font;
- color c = *current_MMI_theme->shortcut_indicator_text_color;
- UI_filled_area *bg = current_MMI_theme->shortcut_indicator_background_filler;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- switch (MMI_current_input_mode)
- {
- case 0:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_ABC_STRING_ID);
- break;
- case 1:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_abc_STRING_ID);
- break;
- case 2:
- inputmode_string = (UI_string_type) get_string(WGUI_CATEGORY_123_STRING_ID);
- break;
- }
- gui_set_font(f);
- gui_measure_string(inputmode_string, &swidth, &sheight);
- w = swidth + 6;
- if (w > UI_device_width)
- {
- w = UI_device_width;
- }
- x1 = x2 - w;
- x2 = x2;
- bg->flags &= ~UI_FILLED_AREA_BORDER;
- gdi_layer_set_clip(x1 + 2, y1 + 2, x2 - 2, y2 - 2);
- gui_draw_filled_area(x1, y1, x2, y2, bg);
- gui_set_text_color(c);
- if (r2lMMIFlag)
- {
- gui_move_text_cursor(x1 + 3 + swidth, y1 + ((y2 - y1 - sheight) >> 1));
- }
- else
- {
- gui_move_text_cursor(x1 + 3, y1 + ((y2 - y1 - sheight) >> 1));
- }
- gui_set_line_height(sheight);
- gui_print_text(inputmode_string);
- gdi_layer_blt_previous(x1, y1, x2, y2);
- }
- /*****************************************************************************
- * FUNCTION
- * inline_multiline_edit_complete
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void inline_multiline_edit_complete(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- inline_multiline_complete = 1;
- if (MMI_multi_line_inputbox_present)
- {
- handle_inline_multi_line_edit_complete();
- }
- MMI_multi_line_inputbox_present = 0;
- }
- extern void wgui_redraw_input_information_background(void);
- /*****************************************************************************
- * FUNCTION
- * gui_draw_inscreen_multi_line_input_box_title
- * DESCRIPTION
- *
- * PARAMETERS
- * x1 [IN]
- * y1 [IN]
- * x2 [IN]
- * y2 [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void gui_draw_inscreen_multi_line_input_box_title(S32 x1, S32 y1, S32 x2, S32 y2)
- {
- #if(INSCREEN_MULTILINE_SHOW_TITLE)
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (wgui_inputbox_information_flag)
- {
- wgui_redraw_input_information_background();
- }
- #else /* (INSCREEN_MULTILINE_SHOW_TITLE) */
- if (wgui_inputbox_information_flag)
- {
- wgui_redraw_input_information_bar();
- }
- #endif /* (INSCREEN_MULTILINE_SHOW_TITLE) */
- }
- /*****************************************************************************
- * FUNCTION
- * gui_break_inline_caption
- * DESCRIPTION
- *
- * PARAMETERS
- * buffer [?]
- * charater_length [?]
- * RETURNS
- * void
- *****************************************************************************/
- void gui_break_inline_caption(U8 *buffer, U8 *charater_length)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- UI_buffer_type current_text_p = buffer;
- S32 current_line_width = 0, menu_item_width;
- S32 menu_string_width = gui_get_string_width((UI_string_type) buffer);
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- menu_item_width = MMI_content_width - 20;
- if (menu_string_width > menu_item_width)
- {
- UI_character_type current_character = 0;
- S32 character_width, character_height;
- S8 text_gap = current_UI_theme->single_line_input_box_theme->text_gap;
- U8 current_line_character_counter = 0;
- while (current_line_width <= menu_item_width)
- {
- UI_STRING_GET_NEXT_CHARACTER(current_text_p, current_character);
- gui_measure_character(current_character, &character_width, &character_height);
- if (UI_STRING_END_OF_STRING_CHARACTER(current_character))
- {
- break;
- }
- current_line_width += character_width + text_gap;
- current_line_character_counter++;
- }
- *charater_length = current_line_character_counter;
- }
- else
- {
- *charater_length = 0;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * wgui_show_inline_multi_line_rd_only
- * DESCRIPTION
- *
- * PARAMETERS
- * x1 [IN]
- * y1 [IN]
- * width [IN]
- * height [IN]
- * item [?]
- * RETURNS
- * void
- *****************************************************************************/
- void wgui_show_inline_multi_line_rd_only(S32 x1, S32 y1, S32 width, S32 height, wgui_inline_item *item)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- wgui_inline_item_text_edit *i = (wgui_inline_item_text_edit*) item->item;
- S32 l;
- S32 inputbox_x = x1;
- S32 inputbox_y = y1;
- S32 inputbox_width = width;
- S32 inputbox_height = height * i->max_lines;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (wgui_current_inline_item_type == INLINE_ITEM_TYPE_FULL_SCREEN_EDIT)
- {
- return;
- }
- l = gui_strlen((UI_string_type) i->buffer);
- create_multiline_inputbox_set_buffer((UI_string_type) i->buffer, l, l, 0);
- move_multiline_inputbox(inputbox_x, inputbox_y);
- MMI_multiline_inputbox.flags |=
- (UI_MULTI_LINE_INPUT_BOX_DISABLE_CURSOR_DRAW | UI_MULTI_LINE_INPUT_BOX_VIEW_MODE |
- UI_MULTI_LINE_INPUT_BOX_DISABLE_SCROLLBAR);
- resize_multiline_inputbox(inputbox_width, inputbox_height);
- show_multiline_inputbox();
- }
- /*****************************************************************************
- * FUNCTION
- * SetInlineMultiLineRdOnly
- * DESCRIPTION
- *
- * PARAMETERS
- * item [?]
- * buffer [?]
- * buffer_size [IN]
- * input_type [IN]
- * max_lines [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void SetInlineMultiLineRdOnly(InlineItem *item, U8 *buffer, S32 buffer_size, U16 input_type, U8 max_lines) /* input_type :- Other items are hilightable or not. */
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- wgui_inline_item_text_edit *i;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (n_inline_text_edit_items >= MAX_INLINE_TEXT_EDIT_ITEMS)
- {
- return;
- }
- item->item = (void*)&wgui_inline_text_edit_items[n_inline_text_edit_items];
- item->flags = INLINE_ITEM_TYPE_MULTI_LINE_RD_ONLY;
- MMI_multiline_inputbox.flags |= UI_MULTI_LINE_INPUT_BOX_VIEW_MODE;
- n_inline_text_edit_items++;
- i = (wgui_inline_item_text_edit*) item->item;
- i->max_lines = max_lines;
- i->title = 0;
- i->title_icon = 0;
- i->buffer = buffer;
- i->buffer_size = buffer_size;
- i->flags = 0;
- i->input_type = input_type;
- item->text_p = i->buffer;
- item->handler = handle_inline_multi_line_rd_only;
- i->edit_complete_callback = NULL;
- i->custom_setup_function = NULL;
- i->validation_callback = NULL;
- i->UCS2_count = -1;
- MMI_multi_line_inputbox_present = 2;
- }
- /*****************************************************************************
- * FUNCTION
- * menu_item_inline_multiline_box
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- *
- *****************************************************************************/
- S32 menu_item_inline_multiline_box()
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if ((wgui_inline_items[MMI_fixed_list_menu.n_items - 1].flags & 0xff) == INLINE_ITEM_TYPE_MULTI_LINE_RD_ONLY)
- {
- return 1;
- }
- else
- {
- return 0;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * redraw_multiline_rd_only
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void redraw_multiline_rd_only(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- register_multiline_inputbox_viewer_keys();
- show_multiline_inputbox();
- }
- /*****************************************************************************
- * FUNCTION
- * handle_multi_line_rd_only_close
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void handle_multi_line_rd_only_close(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- reset_multiline_inputbox_vertical_scroll();
- reset_multiline_inputbox();
- }
- /*****************************************************************************
- * FUNCTION
- * inscreen_multi_line_input_box_changed
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- *
- *****************************************************************************/
- S32 inscreen_multi_line_input_box_changed()
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- return inscreen_multi_line_change_flag;
- }
- /*****************************************************************************
- * FUNCTION
- * set_inscreen_multi_line_input_box_changed
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void set_inscreen_multi_line_input_box_changed()
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- inscreen_multi_line_change_flag = 1;
- }
- /*****************************************************************************
- * FUNCTION
- * reset_inscreen_multi_line_input_box_changed
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void reset_inscreen_multi_line_input_box_changed()
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- inscreen_multi_line_change_flag = 0;
- }
- /*****************************************************************************
- * FUNCTION
- * SetInlineListMenuChanged
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SetInlineListMenuChanged(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- set_wgui_inline_list_menu_changed();
- }
- /*****************************************************************************
- * FUNCTION
- * GetInlineListMenuChanged
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- *
- *****************************************************************************/
- S32 GetInlineListMenuChanged(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- return wgui_inline_list_menu_changed;
- }
- /*****************************************************************************
- * FUNCTION
- * handle_inline_multi_line_rd_only
- * DESCRIPTION
- *
- * PARAMETERS
- * x [IN]
- * y [IN]
- * width [IN]
- * height [IN]
- * key_code [IN]
- * key_event [IN]
- * text_p [IN]
- * item [?]
- * flags [IN]
- * history_buffer [?]
- * RETURNS
- * void
- *****************************************************************************/
- void handle_inline_multi_line_rd_only(
- S32 x,
- S32 y,
- S32 width,
- S32 height,
- S32 key_code,
- S32 key_event,
- U8 **text_p,
- void *item,
- U32 flags,
- U8 *history_buffer)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- wgui_inline_item_text_edit *i = (wgui_inline_item_text_edit*) item;
- S32 l = 0;
- S32 inputbox_x = x;
- S32 inputbox_y = y;
- S32 inputbox_width = width;
- S32 inputbox_height = height * (i->max_lines);
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wgui_current_inline_item_type = INLINE_ITEM_TYPE_MULTI_LINE_RD_ONLY;
- l = gui_strlen((UI_string_type) i->buffer);
- if (history_buffer == NULL || inscreen_multi_line_input_box_changed())
- {
- create_multiline_inputbox_set_buffer((UI_string_type) i->buffer, l, l, 0);
- reset_inscreen_multi_line_input_box_changed();
- }
- else
- {
- create_multiline_inputbox_set_buffer_no_text_reset((UI_string_type) i->buffer, l, l, 0);
- }
- move_multiline_inputbox(inputbox_x, inputbox_y);
- MMI_multiline_inputbox.flags |=
- (UI_MULTI_LINE_INPUT_BOX_AUTO_VERTICAL_SCROLL | UI_MULTI_LINE_INPUT_BOX_VIEW_MODE |
- UI_MULTI_LINE_INPUT_BOX_DISABLE_SCROLLBAR | UI_MULTI_LINE_INPUT_BOX_INSIDE_INLINE_MENU
- /* |UI_MULTI_LINE_INPUT_BOX_DISABLE_CURSOR_DRAW */ );
- resize_multiline_inputbox(inputbox_width, inputbox_height);
- register_multiline_inputbox_viewer_keys();
- show_multiline_inputbox();
- redraw_current_inline_item = redraw_multiline_rd_only;
- complete_inline_item_edit = handle_multi_line_rd_only_close;
- }
- #ifdef __MMI_TOUCH_SCREEN__
- /*****************************************************************************
- * FUNCTION
- * UI_dummy_inline_item_pen_function
- * DESCRIPTION
- *
- * PARAMETERS
- * pen_event [IN]
- * x [IN]
- * y [IN]
- * item_event [?]
- * RETURNS
- *
- *****************************************************************************/
- BOOL UI_dummy_inline_item_pen_function(
- mmi_pen_event_type_enum pen_event,
- S16 x,
- S16 y,
- gui_inline_item_pen_enum *item_event)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- UI_UNUSED_PARAMETER(pen_event);
- UI_UNUSED_PARAMETER(x);
- UI_UNUSED_PARAMETER(y);
- *item_event = GUI_INLINE_ITEM_PEN_NONE;
- return MMI_FALSE;
- }
- /*****************************************************************************
- * FUNCTION
- * gui_inline_handle_pen_event_by_item
- * DESCRIPTION
- *
- * PARAMETERS
- * m [?]
- * pen_event [IN]
- * x [IN]
- * y [IN]
- * inline_event [?]
- * RETURNS
- *
- *****************************************************************************/
- static BOOL gui_inline_handle_pen_event_by_item(
- fixed_list_menu *m,
- mmi_pen_event_type_enum pen_event,
- S16 x,
- S16 y,
- gui_inline_pen_enum *inline_event)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- gui_inline_item_pen_enum item_event;
- BOOL ret;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- UI_UNUSED_PARAMETER(m);
- *inline_event = GUI_INLINE_PEN_NONE;
- ret = wgui_current_inline_item_pen_function(pen_event, x, y, &item_event);
- if (ret)
- {
- if (item_event == GUI_INLINE_ITEM_PEN_NEED_REDRAW_MENU)
- {
- *inline_event = GUI_INLINE_PEN_NEED_REDRAW;
- }
- else if (item_event == GUI_INLINE_ITEM_PEN_NEED_REDRAW_ITEM)
- {
- redraw_current_inline_item();
- }
- else if (item_event == GUI_INLINE_ITEM_PEN_SELECTED)
- {
- *inline_event = GUI_INLINE_PEN_ITEM_SELECTED;
- }
- }
- return ret;
- }
- #ifdef __MMI_EDITOR_PEN_VK_UNFOLD__
- extern BOOL gPenEditorHideToTray;
- #endif
- /*****************************************************************************
- * FUNCTION
- * gui_inline_scroll_by_pen
- * DESCRIPTION
- *
- * PARAMETERS
- * m [?]
- * x [IN]
- * y [IN]
- * first_displayed [IN]
- * inline_event [?]
- * RETURNS
- * void
- *****************************************************************************/
- static void gui_inline_scroll_by_pen(
- fixed_list_menu *m,
- S16 x,
- S16 y,
- S32 first_displayed,
- gui_inline_pen_enum *inline_event)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S32 last_displayed;
- S32 iwidth, iheight;
- S32 total_height, i;
- MMI_BOOL history_stored;
- U8 gui_buffer[MAX_GUI_BUFFER];
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (first_displayed == m->first_displayed_item)
- {
- *inline_event = GUI_INLINE_PEN_NONE;
- return;
- }
- /*
- * Sometimes the inline editor is scrolled (m->first_displayed is changed) but
- * the highlighted item (m->highlighted_item) stays unchanged.
- *
- * In this case, we should keep the context of inline item unchanged
- * (e.g. editor cursor & input method), and we put the information in gui_buffer[].
- *
- * Reference: wgui_get_inline_history(), wgui_inline_edit_get_current_item_history(),
- * and wgui_current_history_buffer.
- */
- history_stored = MMI_TRUE;
- switch (wgui_current_inline_item_type)
- {
- case INLINE_ITEM_TYPE_TEXT_EDIT:
- inline_text_edit_get_history(gui_buffer, MMI_current_input_type);
- break;
- case INLINE_ITEM_TYPE_DATE:
- inline_date_edit_get_history(gui_buffer);
- break;
- case INLINE_ITEM_TYPE_TIME:
- inline_time_edit_get_history(gui_buffer);
- break;
- case INLINE_ITEM_TYPE_TIME_PERIOD:
- inline_time_period_edit_get_history(gui_buffer);
- break;
- case INLINE_ITEM_TYPE_IP4_EDIT:
- inline_IP4_edit_get_history(gui_buffer);
- break;
- case INLINE_ITEM_TYPE_DOW_SELECT:
- inline_DOW_select_get_history(gui_buffer);
- break;
- case INLINE_ITEM_TYPE_MULTI_LINE_EDIT:
- inline_multi_line_edit_get_history(gui_buffer, MMI_current_input_type);
- break;
- default:
- history_stored = MMI_FALSE;
- }
- /* Finalize current editing. */
- complete_inline_item_edit();
- /*
- * Note that m->first_displayed_item might be changed inside m->item_highlighted()
- * (which is typically wgui_inline_edit_default_list_highlight_handler())
- * if INLINE_ITEM_FOLLOW_DOWN or INLINE_ITEM_FOLLOW_UP is set on the highlighed item.
- *
- * inline item handler is invoked from handle_inline_item_location() (typically from gui_show_fixed_list_menu())
- */
- *inline_event = GUI_INLINE_PEN_NONE;
- /* Scroll down */
- if (first_displayed > m->highlighted_item)
- {
- m->flags |= UI_LIST_MENU_FIRST_SHIFT_HIGHLIGHTED_ITEM;
- inline_fixed_list_goto_item(first_displayed, MMI_FALSE);
- m->flags &= ~UI_LIST_MENU_FIRST_SHIFT_HIGHLIGHTED_ITEM;
- }
- else
- {
- /* Compute last_displayed */
- last_displayed = m->n_items - 1;
- total_height = 0;
- for (i = first_displayed; i < m->n_items; i++)
- {
- m->item_measure_function(m->items[i], m->common_item_data, &iwidth, &iheight);
- total_height += iheight;
- if (total_height > m->height + 1)
- {
- last_displayed = i - 1;
- break;
- }
- }
- /* Scroll up */
- if (last_displayed < m->highlighted_item)
- {
- m->flags |= UI_LIST_MENU_LAST_SHIFT_HIGHLIGHTED_ITEM;
- inline_fixed_list_goto_item(last_displayed, MMI_TRUE);
- m->flags &= ~UI_LIST_MENU_LAST_SHIFT_HIGHLIGHTED_ITEM;
- }
- else
- {
- S32 old_first_displayed;
- old_first_displayed = m->first_displayed_item;
- if (history_stored)
- {
- /*
- * Restore the context of the original highlighted item.
- *
- * Ex: Assume it is an inline text edit, we need to setup history
- * buffer here; otherwise the virtual keyboard type is reset,
- * and the list menu height might be changed.
- *
- * However, the current code logic assumes that menu height should
- * stay unchanged after m->item_highlighted().
- */
- wgui_current_history_buffer = gui_buffer;
- }
- m->item_unhighlighted(m->highlighted_item);
- m->first_displayed_item = first_displayed;
- m->last_displayed_item = last_displayed;
- m->item_highlighted(m->highlighted_item);
- /*
- * m->item_highlighted() might change m->first_displayed_item again if
- * a. INLINE_ITEM_FOLLOW_DOWN and INLINE_ITEM_FOLLOW_UP is set to highlighted item.
- * b. m->first_displayed_item is incremented to display inline caption item
- *
- * Usually we can test the scenario in MMI Todo screen.
- */
- if (m->first_displayed_item == old_first_displayed)
- {
- /*
- * In this case, m->first_displayed_item != first_displayed
- * because there are other "restrictions" that set
- * m->first_displayed_item to the original value.
- *
- * It happens in many inline editor screens in MMI.
- */
- if (first_displayed < m->first_displayed_item)
- {
- /*
- * In this case, we want to scroll up the menu but fail to do so.
- *
- * For example, the last displayed item is currently highlighted, and
- * the item before the last displayed item is an inline caption.
- * If we scroll up by one item, The inline caption is highlighted although
- * it cannot be highlighted, and then highlight is set to the next
- * inline item, which is the original highlighted one.
- * As a result, the inline editor is not scrolled at all.
- *
- * In order to solve this, we scroll "one" more inline item up.
- */
- m->flags |= UI_LIST_MENU_LAST_SHIFT_HIGHLIGHTED_ITEM;
- inline_fixed_list_goto_item(last_displayed - 1, MMI_TRUE);
- m->flags &= ~UI_LIST_MENU_LAST_SHIFT_HIGHLIGHTED_ITEM;
- }
- else
- {
- /* Similar to previous case */
- m->flags |= UI_LIST_MENU_FIRST_SHIFT_HIGHLIGHTED_ITEM;
- inline_fixed_list_goto_item(first_displayed + 1, MMI_FALSE);
- m->flags &= ~UI_LIST_MENU_FIRST_SHIFT_HIGHLIGHTED_ITEM;
- }
- }
- else
- {
- gui_lock_double_buffer();
- #ifdef __MMI_EDITOR_PEN_VK_UNFOLD__
- if(MMI_virtual_keyboard.lang_type == GUI_VIRTUAL_KEYBOARD_TRAY)
- {
- gPenEditorHideToTray = MMI_TRUE;
- }
- #endif
- redraw_fixed_list();
- #ifdef __MMI_EDITOR_PEN_VK_UNFOLD__
- if(gPenEditorHideToTray)
- {
- gPenEditorHideToTray = MMI_FALSE;
- }
- #endif
- redraw_current_inline_item();
- /*
- * Redraw virtual keyboard.
- * There is a small gap (e.g. 2 pixels) between fixed list and virtual keyboard
- * and some inline item draw outside the list, we need to clear the gap by
- * redrawing virtual keyboard.
- */
- if (GUI_VIRTUAL_KEYBOARD_EMPTY_TRAY != MMI_virtual_keyboard.lang_type)
- {
- mmi_pen_editor_clear_and_show_virtual_keyboard_area();
- }
- gui_unlock_double_buffer();
- gui_BLT_double_buffer(0, 0, UI_device_width - 1, UI_device_height - 1);
- }
- if (history_stored)
- {
- /* Failsafe step because 'gui_buffer' is local variable.
- and it's lifecyle is inside the current function */
- wgui_current_history_buffer = NULL;
- }
- }
- }
- /* Because we do not always follow the value of 'first_displayed',
- we need to adjust scrollbar again. */
- gui_vertical_scrollbar_reconfigure_pen_value(&m->vbar, x, y);
- }
- /*****************************************************************************
- * FUNCTION
- * gui_inline_translate_pen_event
- * DESCRIPTION
- *
- * PARAMETERS
- * m [?]
- * pen_event [IN]
- * x [IN]
- * y [IN]
- * inline_event [?]
- * RETURNS
- *
- *****************************************************************************/
- BOOL gui_inline_translate_pen_event(
- fixed_list_menu *m,
- mmi_pen_event_type_enum pen_event,
- S16 x,
- S16 y,
- gui_inline_pen_enum *inline_event)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- BOOL ret = MMI_TRUE;
- gui_scrollbar_pen_enum scrollbar_event;
- gui_pen_event_param_struct scrollbar_param;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- *inline_event = GUI_INLINE_PEN_NONE;
- if (pen_event == MMI_PEN_EVENT_DOWN)
- {
- wgui_inline_pen_down_item_index = -1;
- if (PEN_CHECK_BOUND(x, y, m->x, m->y, m->width, m->height))
- {
- if (wgui_current_inline_item_type == INLINE_ITEM_TYPE_FULL_SCREEN_EDIT)
- {
- /* Redirect pen events to editor */
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_FULLSCREEN_EDITOR;
- /* Handled by editor */
- }
- else if (!(m->flags & UI_LIST_MENU_DISABLE_SCROLLBAR) &&
- gui_vertical_scrollbar_translate_pen_event(
- &m->vbar,
- pen_event,
- x,
- y,
- &scrollbar_event,
- &scrollbar_param))
- {
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_SCROLLBAR;
- if (scrollbar_event == GUI_SCROLLBAR_PEN_JUMP_TO_I)
- {
- gui_inline_scroll_by_pen(m, x, y, scrollbar_param._u.i, inline_event);
- }
- }
- else
- {
- S32 item_index;
- BOOL is_pen_inside_menu;
- is_pen_inside_menu = gui_fixed_list_menu_translate_pen_position(m, y, &item_index);
- wgui_inline_pen_down_item_index = item_index;
- #ifdef __MMI_INSCREEN_MULTILINE_TEXTBOX__
- /* Special case: inline multiline is larger than its corresponding menu item */
- if (!is_pen_inside_menu &&
- item_index == m->n_items - 1 &&
- (wgui_inline_items[item_index].flags & 0xff) == INLINE_ITEM_TYPE_MULTI_LINE_EDIT ||
- (wgui_inline_items[item_index].flags & 0xff) == INLINE_ITEM_TYPE_MULTI_LINE_RD_ONLY)
- {
- is_pen_inside_menu = MMI_TRUE;
- }
- #endif /* __MMI_INSCREEN_MULTILINE_TEXTBOX__ */
- if (!is_pen_inside_menu)
- {
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_NONE;
- }
- else if (item_index != m->highlighted_item)
- {
- if ((wgui_inline_items[item_index].flags & 0xff) == INLINE_ITEM_TYPE_CAPTION &&
- item_index == MMI_fixed_list_menu.n_items - 1)
- {
- /* Clicking on the last item that is inline caption. We should not switch to it; otherwise, it goes to the first item */
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_NONE;
- }
- else if ((wgui_inline_items[item_index].flags & 0xff) == INLINE_ITEM_TYPE_CAPTION &&
- item_index == MMI_fixed_list_menu.n_items - 2 &&
- (wgui_inline_items[item_index + 1].flags & INLINE_ITEM_DISABLED))
- {
- /* The last item is disabled. Clicking on the inline caption before it */
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_NONE;
- }
- else if (!(wgui_inline_items[item_index].flags & INLINE_ITEM_DISABLED))
- {
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_SWITCH_ITEM;
- }
- else
- {
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_NONE;
- }
- }
- else
- {
- /*
- * Because the inline item (e.g. horizontal select) might be smaller than the menu item
- * * the pen handler might return MMI_FALSE.
- * *
- * * Note: It can be extended to handle SetInlineItemActivation() (for fullscreen editor),
- * * but we do not handle it deliberately.
- */
- if (gui_inline_handle_pen_event_by_item(m, pen_event, x, y, inline_event))
- {
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_CURRENT_ITEM;
- }
- else
- {
- /*
- * After long press animation, invoke left softkey handler.
- * * Tricky: it only apply to certain inline item types.
- */
- S32 type = wgui_inline_items[wgui_inline_item_highlighted_index].flags & 0xff;
- if (type == INLINE_ITEM_TYPE_FULL_SCREEN_EDIT ||
- type == INLINE_ITEM_TYPE_DISPLAY_ONLY ||
- type == INLINE_ITEM_IMAGE_TEXT_TYPE || type == INLINE_ITEM_TYPE_MULTI_LINE_RD_ONLY)
- {
- gui_wait_longpress_enum w;
- w = gui_pen_wait_longpress(MMI_PEN_EVENT_DOWN, x, y);
- if (w == GUI_WAIT_LONGPRESS_INVALID)
- {
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_NONE;
- }
- else
- {
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_WAIT_LONGPRESS;
- }
- }
- else
- {
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_NONE;
- }
- }
- }
- }
- }
- else
- {
- ret = MMI_FALSE;
- }
- }
- else
- {
- if (wgui_inline_pen_handler_type == WGUI_INLINE_PEN_HANDLER_SCROLLBAR)
- {
- gui_vertical_scrollbar_translate_pen_event(&m->vbar, pen_event, x, y, &scrollbar_event, &scrollbar_param);
- if (scrollbar_event == GUI_SCROLLBAR_PEN_JUMP_TO_I)
- {
- gui_inline_scroll_by_pen(m, x, y, scrollbar_param._u.i, inline_event);
- }
- }
- else if (wgui_inline_pen_handler_type == WGUI_INLINE_PEN_HANDLER_WAIT_LONGPRESS)
- {
- gui_wait_longpress_enum w;
- w = gui_pen_wait_longpress(pen_event, x, y);
- if (w == GUI_WAIT_LONGPRESS_INVALID)
- {
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_NONE;
- }
- else if (w == GUI_WAIT_LONGPRESS_READY)
- {
- *inline_event = GUI_INLINE_PEN_ITEM_SELECTED;
- /* ignore subsequent pen events */
- wgui_inline_pen_handler_type = WGUI_INLINE_PEN_HANDLER_NONE;
- }
- }
- else if (wgui_inline_pen_handler_type == WGUI_INLINE_PEN_HANDLER_CURRENT_ITEM)
- {
- gui_inline_handle_pen_event_by_item(m, pen_event, x, y, inline_event);
- }
- else if (wgui_inline_pen_handler_type == WGUI_INLINE_PEN_HANDLER_FULLSCREEN_EDITOR)
- {
- /* Handled by editor */
- }
- else if (wgui_inline_pen_handler_type == WGUI_INLINE_PEN_HANDLER_SWITCH_ITEM)
- {
- if (pen_event == MMI_PEN_EVENT_UP)
- {
- S32 item_index;
- gui_fixed_list_menu_translate_pen_position(m, y, &item_index);
- if (item_index == wgui_inline_pen_down_item_index)
- {
- complete_inline_item_edit(); /* Finalize current editing */
- /* Automatically select the next item if it's inline caption item */
- inline_fixed_list_goto_item(item_index, MMI_FALSE);
- }
- }
- }
- else if (wgui_inline_pen_handler_type == WGUI_INLINE_PEN_HANDLER_NONE)
- {
- /* Do nothing */
- }
- }
- return ret;
- }
- #endif /* __MMI_TOUCH_SCREEN__ */
- /*****************************************************************************
- * FUNCTION
- * ShowCommonCategoryInlineEdit
- * DESCRIPTION
- *
- * PARAMETERS
- * title [IN]
- * title_icon [IN]
- * left_softkey [IN]
- * left_softkey_icon [IN]
- * right_softkey [IN]
- * right_softkey_icon [IN]
- * number_of_items [IN]
- * list_of_icons [?]
- * list_of_items [?]
- * highlighted_item [IN]
- * history_buffer [?]
- * highlight_handler [IN]
- * unhighlight_handler [IN]
- * history_id [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void ShowCommonCategoryInlineEdit(
- UI_string_type title,
- U16 title_icon,
- U16 left_softkey,
- U16 left_softkey_icon,
- U16 right_softkey,
- U16 right_softkey_icon,
- S32 number_of_items,
- U16 *list_of_icons,
- InlineItem *list_of_items,
- S32 highlighted_item,
- U8 *history_buffer,
- void (*highlight_handler) (S32 item_index),
- void (*unhighlight_handler) (S32 item_index),
- U16 history_id)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 h_flag;
- S32 i;
- U16 inline_item_index = 0;
- UI_fixed_icontext_menuitem_theme *saved_themedata1 = current_fixed_icontext_menuitem_theme;
- UI_fixed_list_menu_theme *saved_themedata2 = current_fixed_list_menu_theme;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* Backup font */
- cat57_f1 = MMI_fixed_icontext_menuitem.text_font;
- cat57_f2 = MMI_fixed_text_menuitem.text_font;
- #ifdef __MMI_UI_LIST_HIGHLIGHT_EFFECTS__
- gui_block_list_effect();
- #endif
- MMI_menu_shortcut_number = -1;
- clear_category_screen_key_handlers();
- change_left_softkey(left_softkey, left_softkey_icon);
- change_right_softkey(right_softkey, right_softkey_icon);
- clear_left_softkey();
- clear_right_softkey();
- register_left_softkey_handler();
- register_right_softkey_handler();
- register_default_hide_softkeys();
- MMI_title_string = title;
- MMI_title_icon = (PU8) get_image(title_icon);
- current_fixed_icontext_menuitem_theme = &wgui_inline_fixed_icontext_menuitem_theme;
- current_fixed_list_menu_theme = &wgui_inline_fixed_list_menu_theme;
- gui_set_fixed_list_menu_current_theme(&MMI_fixed_list_menu);
- create_fixed_icontext_menuitems();
- associate_fixed_icontext_list();
- #ifdef __MMI_TOUCH_SCREEN__
- /* Avoid menu position shifted when it is resized for differet virtual keyboard layout */
- MMI_fixed_list_menu.flags |= UI_LIST_MENU_ALIGN_TO_TOP;
- #endif /* __MMI_TOUCH_SCREEN__ */
- #ifdef __MMI_UI_INLINE_EDIT_DEFAULT_TEXT_EFFECT__
- temp_inline_edit_normal_filler.border_color = current_fixed_icontext_menuitem_theme->focussed_filler->c;
- MMI_fixed_icontext_menuitem.selected_filler = &temp_inline_edit_normal_filler;
- #endif /* __MMI_UI_INLINE_EDIT_DEFAULT_TEXT_EFFECT__ */
- #ifdef __MMI_UI_TRANSPARENT_EFFECT__
- disable_fixed_icontext_menuitem_transparent_effect();
- #endif
- if (list_of_icons == NULL)
- {
- /* without icons */
- for (i = 0; (i < number_of_items) && (i < MAX_INLINE_ITEMS); i++)
- {
- wgui_inline_items[i] = list_of_items[i];
- add_fixed_icontext_item((UI_string_type) wgui_inline_items[i].text_p, NULL);
- /* 112905 user inline select Start */
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_USER_DEFINED_SELECT)
- {
- MMI_fixed_icontext_menuitems[i].ext_flags |= UI_MENUITEM_EXT_DISABLE_FOCUSSED_TEXT_DISPLAY;
- }
- /* 112905 user inline select End */
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_DOW_SELECT)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_COLOR_SELECT)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- if (wgui_inline_items[i].flags & INLINE_ITEM_DISABLE_HIGHLIGHT)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_DISABLE_BACKGROUND_ALWAYS;
- }
- if ((wgui_inline_items[i].flags & INLINE_ITEM_BOUNDARY_MASK) == INLINE_ITEM_BOUNDARY_ALWAYS)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_IMAGE_TEXT_TYPE)
- {
- if (wgui_inline_items[i].show_img_flag == TRUE)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_ATTACH_IMAGE)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- if (wgui_inline_items[i].flags & INLINE_ITEM_DOTTED_UNDERLINE)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_DOTTED_UNDERLINE;
- }
- if (((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_MULTI_LINE_RD_ONLY) ||
- ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_MULTI_LINE_EDIT))
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_TIME_PERIOD)
- {
- MMI_fixed_icontext_menuitems[i].ext_flags |= UI_MENUITEM_EXT_DISABLE_FOCUSSED_TEXT_DISPLAY;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_SELECT)
- {
- if (wgui_inline_items[i].show_img_flag == TRUE)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- /* flags must be enabled in all the cases so that inline select item will have
- similar behaviour in each case. */
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_DISABLE_BACKGROUND_ALWAYS;
- MMI_fixed_icontext_menuitems[i].ext_flags |= UI_MENUITEM_EXT_DISABLE_FOCUSSED_TEXT_DISPLAY;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_COLOR_SELECT)
- {
- if (wgui_inline_items[i].show_img_flag == TRUE)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_DISABLE_BACKGROUND_ALWAYS;
- MMI_fixed_icontext_menuitems[i].ext_flags |= UI_MENUITEM_EXT_DISABLE_FOCUSSED_TEXT_DISPLAY;
- }
- #ifdef __MMI_UI_INLINE_EDIT_DEFAULT_TEXT_EFFECT__
- if ((((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_TEXT_EDIT)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_FULL_SCREEN_EDIT)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_DATE)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_SELECT)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_TIME)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_TIME_PERIOD)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_DOW_SELECT)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_IP4_EDIT)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_COLOR_SELECT))
- && (IsInlineItemDefaultTextEnable()))
- {
- MMI_fixed_icontext_menuitems[i].ext_flags |= UI_MENUITEM_EXT_SHOW_IN_ROUNDED_RECT;
- }
- #endif /* __MMI_UI_INLINE_EDIT_DEFAULT_TEXT_EFFECT__ */
- }
- }
- else
- {
- /* with icons */
- for (i = 0; (i < number_of_items) && (i < MAX_INLINE_ITEMS); i++)
- {
- wgui_inline_items[i] = list_of_items[i];
- wgui_inline_items[i].side_img = get_image(list_of_icons[i]);
- add_fixed_icontext_item(
- (UI_string_type) wgui_inline_items[i].text_p,
- wgui_get_list_menu_icon_if_not_empty(inline_item_index, list_of_icons[i]));
- if (wgui_inline_items[i].side_img != NULL)
- {
- inline_item_index++;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_USER_DEFINED_SELECT)
- {
- MMI_fixed_icontext_menuitems[i].ext_flags |= UI_MENUITEM_EXT_DISABLE_FOCUSSED_TEXT_DISPLAY;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_DOW_SELECT)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_COLOR_SELECT)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- if (wgui_inline_items[i].flags & INLINE_ITEM_DISABLE_HIGHLIGHT)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_DISABLE_BACKGROUND_ALWAYS;
- }
- if ((wgui_inline_items[i].flags & INLINE_ITEM_BOUNDARY_MASK) == INLINE_ITEM_BOUNDARY_ALWAYS)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- if (((wgui_inline_items[i].flags & INLINE_ITEM_LEFT_ALIGN) == INLINE_ITEM_LEFT_ALIGN) &&
- ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_CAPTION) &&
- (get_image(list_of_icons[i]) == NULL))
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_DISABLE_ICON;
- }
- if (wgui_inline_items[i].flags & INLINE_ITEM_DOTTED_UNDERLINE)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_DOTTED_UNDERLINE;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_IMAGE_TEXT_TYPE)
- {
- if (wgui_inline_items[i].show_img_flag == TRUE)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_ATTACH_IMAGE)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- if (((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_MULTI_LINE_RD_ONLY) ||
- ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_MULTI_LINE_EDIT))
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_TIME_PERIOD)
- {
- MMI_fixed_icontext_menuitems[i].ext_flags |= UI_MENUITEM_EXT_DISABLE_FOCUSSED_TEXT_DISPLAY;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_SELECT)
- {
- if (wgui_inline_items[i].show_img_flag == TRUE)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- /* flags must be enabled in all the cases so that inline select item will have
- similar behaviour in each case. */
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_DISABLE_BACKGROUND_ALWAYS;
- MMI_fixed_icontext_menuitems[i].ext_flags |= UI_MENUITEM_EXT_DISABLE_FOCUSSED_TEXT_DISPLAY;
- }
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_COLOR_SELECT)
- {
- if (wgui_inline_items[i].show_img_flag == TRUE)
- {
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_INLINE_EDIT_OBJECT;
- }
- MMI_fixed_icontext_menuitems[i].flags |= UI_MENUITEM_DISABLE_BACKGROUND_ALWAYS;
- MMI_fixed_icontext_menuitems[i].ext_flags |= UI_MENUITEM_EXT_DISABLE_FOCUSSED_TEXT_DISPLAY;
- }
- #ifdef __MMI_UI_INLINE_EDIT_DEFAULT_TEXT_EFFECT__
- if ((((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_TEXT_EDIT)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_FULL_SCREEN_EDIT)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_DATE)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_SELECT)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_TIME)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_TIME_PERIOD)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_DOW_SELECT)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_IP4_EDIT)
- || ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_COLOR_SELECT))
- && (IsInlineItemDefaultTextEnable()))
- {
- MMI_fixed_icontext_menuitems[i].ext_flags |= UI_MENUITEM_EXT_SHOW_IN_ROUNDED_RECT;
- }
- #endif /* __MMI_UI_INLINE_EDIT_DEFAULT_TEXT_EFFECT__ */
- }
- }
- wgui_setup_inline_edit_themes();
- wgui_n_inline_items = number_of_items;
- register_inline_fixed_list_keys();
- resize_fixed_icontext_menuitems(0, MMI_MENUITEM_HEIGHT);
- if (list_of_icons == NULL)
- {
- set_fixed_icontext_positions(2, 0, 1, 0);
- }
- else
- {
- set_fixed_icontext_positions(MMI_INLINE_EDIT_MENUITEM_HEIGHT + 2, 0, 1, 0);
- }
- /* Inline screens use Pop up description components to get x,y,width,height */
- #if(UI_ENABLE_POP_UP_DESCRIPTIONS)
- gui_display_pop_up_description = handle_inline_item_location;
- #ifdef __MMI_UI_HINTS_IN_MENUITEM__
- gui_get_current_pop_up_description_string = UI_dummy_get_current_pop_up_description_string;
- #endif
- #endif /* (UI_ENABLE_POP_UP_DESCRIPTIONS) */
- register_fixed_list_highlight_handler(highlight_handler);
- register_fixed_list_unhighlight_handler(unhighlight_handler);
- inline_edit_current_highlight_handler = highlight_handler;
- /* Override default font */
- MMI_fixed_icontext_menuitem.text_font = &MMI_medium_font;
- MMI_fixed_text_menuitem.text_font = &MMI_medium_font;
- MMI_disable_title_shortcut_display = 1;
- MMI_current_menu_type = LIST_MENU;
- h_flag = set_list_menu_category_history(history_id, history_buffer);
- if (h_flag)
- {
- U32 *flags;
- S32 s = sizeof(list_menu_category_history);
- s = (s + 3) / 4;
- s *= 4;
- flags = (U32*) (history_buffer + s);
- wgui_inline_list_menu_changed = (U8) * flags;
- wgui_current_history_buffer = (U8*) (history_buffer + s + sizeof(U32));
- fixed_list_goto_item_no_redraw(MMI_fixed_list_menu.highlighted_item);
- #if defined(__MMI_INSCREEN_MULTILINE_TEXTBOX__)
- for (i = 0; (i < number_of_items) && (i < MAX_INLINE_ITEMS); i++)
- {
- if ((wgui_inline_items[i].flags & 0xff) == INLINE_ITEM_TYPE_MULTI_LINE_EDIT)
- {
- wgui_inline_items[i].flags |= INLINE_ITEM_OPEN;
- }
- }
- #endif /* defined(__MMI_INSCREEN_MULTILINE_TEXTBOX__) */
- }
- else
- {
- wgui_current_history_buffer = NULL;
- inline_image_text_edit_flag = 0;
- fixed_list_goto_item_no_redraw(highlighted_item);
- }
- current_fixed_icontext_menuitem_theme = saved_themedata1;
- current_fixed_list_menu_theme = saved_themedata2;
- }
- /*****************************************************************************
- * FUNCTION
- * RegisterInlineItemChangedNotification
- * DESCRIPTION
- * Register inline item changed notification callback
- * PARAMETERS
- * callback [IN] Callback function to application
- * RETURNS
- * void
- *****************************************************************************/
- void RegisterInlineItemChangedNotification(void (*callback) (U16 index))
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- inline_item_changed_handler = callback;
- }
- /*****************************************************************************
- * FUNCTION
- * ResetInlineItemChangedNotification
- * DESCRIPTION
- * Reset inline item changed notification callback
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void ResetInlineItemChangedNotification(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- inline_item_changed_handler = NULL;
- }
- #endif /* defined(__MMI_INSCREEN_MULTILINE_TEXTBOX__) */
- #ifdef __MMI_UI_INLINE_EDIT_DEFAULT_TEXT_EFFECT__
- /*****************************************************************************
- * FUNCTION
- * inline_item_default_text_show_background
- * DESCRIPTION
- * show the background of the inline menu item in case of
- * default text effect.
- * PARAMETERS
- * x1 [IN] Start x position
- * y1 [IN] Start y position
- * x2 [IN] End x position
- * y2 [IN] End y position
- * RETURNS
- * void
- *****************************************************************************/
- void inline_item_default_text_show_background(S32 x1, S32 y1, S32 x2, S32 y2)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gdi_layer_push_clip();
- gui_set_clip(x1, y1, x2, y2);
- gui_draw_filled_area(x1, y1, x2, y2, &temp_inline_edit_normal_filler);
- gui_pop_clip();
- }
- /*****************************************************************************
- * FUNCTION
- * inline_text_edit_show_background
- * DESCRIPTION
- * show the border of the inline text edit menu item with 3D
- * effect.
- * PARAMETERS
- * b [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void inline_text_edit_show_background(single_line_input_box *b)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S32 x1, y1, x2, y2;
- color border_color1, border_color2;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- border_color1 = gui_blend_two_color(b->normal_filler->c, gui_color(255, 255, 255), 60, 100 - 60);
- border_color2 = gui_blend_two_color(b->normal_filler->c, gui_color(0, 0, 0), 75, 100 - 75);
- gdi_layer_reset_clip();
- x1 = b->x - 2;
- y1 = b->y - 2;
- x2 = b->x + b->width + 1;
- y2 = b->y + b->height + 1;
- /* draw the whitish rectangle */
- gui_draw_rectangle(x1, y1, x2 - 1, y2 - 1, border_color1);
- /* draw the top left dark border */
- gui_draw_horizontal_line(x1 + 1, x2 - 2, y1 + 1, border_color2);
- gui_draw_vertical_line(y1 + 1, y2 - 2, x1 + 1, border_color2);
- /* draw the bottom right highlight color border */
- gui_draw_horizontal_line(x1 + 1, x2, y2, b->normal_filler->c);
- gui_draw_vertical_line(y1 + 1, y2, x2, b->normal_filler->c);
- }
- #endif /* __MMI_UI_INLINE_EDIT_DEFAULT_TEXT_EFFECT__ */
- /*****************************************************************************
- * FUNCTION
- * wgui_inline_edit_get_current_item_history
- * DESCRIPTION
- *
- * PARAMETERS
- * history_buffer [?]
- * RETURNS
- *
- *****************************************************************************/
- U8 *wgui_inline_edit_get_current_item_history(U8 *history_buffer)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- switch (wgui_current_inline_item_type)
- {
- case INLINE_ITEM_TYPE_TEXT_EDIT:
- inline_text_edit_get_history((U8*) (history_buffer), MMI_current_input_type);
- break;
- case INLINE_ITEM_TYPE_FULL_SCREEN_EDIT:
- inline_full_screen_edit_get_history((U8*) (history_buffer), MMI_current_input_type);
- break;
- case INLINE_ITEM_TYPE_DATE:
- inline_date_edit_get_history((U8*) (history_buffer));
- break;
- case INLINE_ITEM_TYPE_TIME:
- inline_time_edit_get_history((U8*) (history_buffer));
- break;
- case INLINE_ITEM_TYPE_TIME_PERIOD:
- inline_time_period_edit_get_history((U8*) (history_buffer));
- break;
- case INLINE_ITEM_TYPE_IP4_EDIT:
- inline_IP4_edit_get_history((U8*) (history_buffer));
- break;
- case INLINE_ITEM_TYPE_DOW_SELECT:
- inline_DOW_select_get_history((U8*) (history_buffer));
- break;
- case INLINE_ITEM_TYPE_MULTI_LINE_EDIT:
- inline_multi_line_edit_get_history((U8*) (history_buffer), MMI_current_input_type);
- break;
- }
- wgui_current_history_buffer = history_buffer;
- return (history_buffer);
- }