ThemeConverterUI.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:194k
源码类别:
MTK
开发平台:
C/C++
- if (!strncmp((PS8) attr_p[attrCount], "font", strlen("font")))
- {
- drop_down_control_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- drop_down_control_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- drop_down_control_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- drop_down_control_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- drop_down_control_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- drop_down_control_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- drop_down_control_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- drop_down_control_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.drop_down_control_font = (stFontAttribute*) & drop_down_control_font;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_dialer_ip_box_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for dialer input box screen
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_dialer_ip_box_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- dialer_inputbox_background_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- dialer_inputbox_background_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- dialer_inputbox_background_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- dialer_inputbox_background_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- dialer_inputbox_background_filler.flags = atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.dialer_inputbox_background_filler = (UI_filled_area*)&dialer_inputbox_background_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- dialer_inputbox_normal_text_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- dialer_inputbox_normal_text_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- dialer_inputbox_normal_text_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- dialer_inputbox_normal_text_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.dialer_inputbox_normal_text_color = (color*) & dialer_inputbox_normal_text_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selection_col", strlen("selection_col")))
- {
- dialer_inputbox_selector_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- dialer_inputbox_selector_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- dialer_inputbox_selector_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- dialer_inputbox_selector_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.dialer_inputbox_selector_color = (color*) & dialer_inputbox_selector_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "sel_txt_col", strlen("sel_txt_col")))
- {
- dialer_inputbox_selected_text_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- dialer_inputbox_selected_text_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- dialer_inputbox_selected_text_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- dialer_inputbox_selected_text_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.dialer_inputbox_selected_text_color = (color*) & dialer_inputbox_selected_text_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "cursor_col", strlen("cursor_col")))
- {
- dialer_inputbox_cursor_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- dialer_inputbox_cursor_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- dialer_inputbox_cursor_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- dialer_inputbox_cursor_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.dialer_inputbox_cursor_color = (color*) & dialer_inputbox_cursor_color_DLT;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_inline_edit_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for inline edit screen
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_inline_edit_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "focussed_bk_col", strlen("focussed_bk_col")))
- {
- inline_edit_focussed_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_edit_focussed_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_edit_focussed_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_edit_focussed_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "focussed_bk_imgoffset", strlen("focussed_bk_imgoffset")))
- {
- inline_edit_focussed_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- inline_edit_focussed_filler.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_edit_focussed_filler.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_edit_focussed_filler.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_edit_focussed_filler.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "sel_bk_col", strlen("sel_bk_col")))
- {
- inline_edit_focussed_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_edit_focussed_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_edit_focussed_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_edit_focussed_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "focussed_flag", strlen("focussed_flag")))
- {
- inline_edit_focussed_filler.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.inline_edit_focussed_filler = (UI_filled_area*)&inline_edit_focussed_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "focussed_txt_col", strlen("focussed_txt_col")))
- {
- inline_edit_focussed_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_edit_focussed_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_edit_focussed_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_edit_focussed_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inline_edit_focussed_text_color = (color*) & inline_edit_focussed_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selection_col", strlen("selection_col")))
- {
- inline_edit_selector_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_edit_selector_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_edit_selector_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_edit_selector_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inline_edit_selector_color = (color*) & inline_edit_selector_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "sel_txt_col", strlen("sel_txt_col")))
- {
- inline_edit_selected_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_edit_selected_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_edit_selected_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_edit_selected_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inline_edit_selected_text_color = (color*) & inline_edit_selected_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "cursor_col", strlen("cursor_col")))
- {
- inline_edit_cursor_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_edit_cursor_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_edit_cursor_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_edit_cursor_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inline_edit_cursor_color = (color*) & inline_edit_cursor_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "unfocussed_bk_col", strlen("unfocussed_bk_col")))
- {
- inline_edit_unfocussed_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_edit_unfocussed_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_edit_unfocussed_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_edit_unfocussed_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "unfocussed_bk_imgoffset", strlen("unfocussed_bk_imgoffset")))
- {
- inline_edit_unfocussed_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "unfocussed_flag", strlen("unfocussed_flag")))
- {
- inline_edit_unfocussed_filler.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.inline_edit_unfocussed_filler = (UI_filled_area*)&inline_edit_unfocussed_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "unfocussed_txt_col", strlen("unfocussed_txt_col")))
- {
- inline_edit_unfocussed_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_edit_unfocussed_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_edit_unfocussed_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_edit_unfocussed_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inline_edit_unfocussed_text_color = (color*) & inline_edit_unfocussed_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "noboundary_bk_col", strlen("noboundary_bk_col")))
- {
- inline_edit_noboundary_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_edit_noboundary_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_edit_noboundary_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_edit_noboundary_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "noboundary_bk_imgoffset", strlen("noboundary_bk_imgoffset")))
- {
- inline_edit_noboundary_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "noboundary_flag", strlen("noboundary_flag")))
- {
- inline_edit_noboundary_filler.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.inline_edit_noboundary_filler = (UI_filled_area*)&inline_edit_noboundary_filler;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_progress_scr_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for progress screen position
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_progress_scr_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- progress_screen_background_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- progress_screen_background_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- progress_screen_background_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- progress_screen_background_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- progress_screen_background_filler.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- progress_screen_background_filler.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- progress_screen_background_filler.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- progress_screen_background_filler.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- progress_screen_background_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- progress_screen_background_filler.flags = atoi((PS8) attr_p[attrCount + 1]);
- }
- attrCount += 2;
- }
- g_tc_theme_DLT.progress_screen_background_filler = (UI_filled_area*)&progress_screen_background_filler;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_deviceinfo_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * Gives the information about the device structurewhich is downloading the theme
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- extern U16 mmi_check_theme_file_lcd_dimension_compatibiltiy(U32 lcd_width, U32 lcd_height);
- void mmi_tc_deviceinfo_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 nmodel = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset(g_tc_deviceInfo.model_ID, 0, sizeof(g_tc_deviceInfo.model_ID));
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "model_ID", strlen("model_ID")))
- {
- if (nmodel < MAX_PHONE_MODELS)
- {
- strncpy((PS8) g_tc_deviceInfo.model_ID[nmodel], (PS8) attr_p[attrCount + 1], MAX_MODEL_ID_LEN);
- ++nmodel;
- }
- }
- if (!strncmp((PS8) attr_p[attrCount], "am", strlen("am")))
- {
- if (nmodel < MAX_PHONE_MODELS)
- {
- strncpy((PS8) g_tc_deviceInfo.model_ID[nmodel], (PS8) attr_p[attrCount + 1], MAX_MODEL_ID_LEN);
- ++nmodel;
- }
- }
- if (!strncmp((PS8) attr_p[attrCount], "lcdwidth", strlen("lcdwidth")))
- {
- g_tc_deviceInfo.lcdwidth = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "lcdht", strlen("lcdht")))
- {
- g_tc_deviceInfo.lcdht = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "tctver", strlen("tctver")))
- {
- g_tc_newTheme=1;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_main_menu_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for main menu screen
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_main_menu_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- main_menu_background_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- main_menu_background_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- main_menu_background_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- main_menu_background_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- main_menu_background_filler_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]); /* |000|4096; */
- g_tc_theme_DLT.main_menu_background_filler = (UI_filled_area*)&main_menu_background_filler_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "bk_image_offset", strlen("bk_image_offset")))
- {
- main_menu_background_filler_DLT.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "list_txt_col", strlen("list_txt_col")))
- {
- list_main_menu_normal_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- list_main_menu_normal_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- list_main_menu_normal_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- list_main_menu_normal_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.list_main_menu_normal_text_color = (color*) & list_main_menu_normal_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "list_sel_txt_col", strlen("list_sel_txt_col")))
- {
- list_main_menu_selected_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- list_main_menu_selected_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- list_main_menu_selected_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- list_main_menu_selected_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.list_main_menu_selected_text_color = (color*) & list_main_menu_selected_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "matrix_sel_txt_col", strlen("matrix_sel_txt_col")))
- {
- matrix_main_menu_selected_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- matrix_main_menu_selected_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- matrix_main_menu_selected_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- matrix_main_menu_selected_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.matrix_main_menu_selected_text_color = (color*) & matrix_main_menu_selected_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "matrix_txt_col", strlen("matrix_txt_col")))
- {
- matrix_main_menu_normal_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- matrix_main_menu_normal_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- matrix_main_menu_normal_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- matrix_main_menu_normal_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.matrix_main_menu_normal_text_color = (color*) & matrix_main_menu_normal_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "circ_sel_txt_col", strlen("circ_sel_txt_col")))
- {
- circular_main_menu_selected_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- circular_main_menu_selected_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- circular_main_menu_selected_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- circular_main_menu_selected_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.circular_main_menu_selected_text_color = (color*) & circular_main_menu_selected_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "circ_txt_col", strlen("circ_txt_col")))
- {
- circular_main_menu_normal_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- circular_main_menu_normal_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- circular_main_menu_normal_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- circular_main_menu_normal_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.circular_main_menu_normal_text_color = (color*) & circular_main_menu_normal_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "list_mm_font", strlen("list_mm_font")))
- {
- list_main_menu_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- list_main_menu_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- list_main_menu_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- list_main_menu_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- list_main_menu_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- list_main_menu_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- list_main_menu_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- list_main_menu_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.list_main_menu_font = (stFontAttribute*) & list_main_menu_font;
- }
- if (!strncmp((PS8) attr_p[attrCount], "matrix_mm_font", strlen("matrix_mm_font")))
- {
- matrix_main_menu_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- matrix_main_menu_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- matrix_main_menu_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- matrix_main_menu_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- matrix_main_menu_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- matrix_main_menu_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- matrix_main_menu_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- matrix_main_menu_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.matrix_main_menu_font = (stFontAttribute*) & matrix_main_menu_font;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_tones_list_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * Function for handling the downloaded audio file
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_tones_list_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- char audio_file_name[25];
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (!strncmp((PS8) attr_p[attrCount], "name", strlen("name")))
- {
- /* if(!strncmp((PS8)attr_p[attrCount+1],"inc_call",strlen("inc_call")))
- { */
- U32 offset = 0, size = 0;
- strcpy(audio_file_name, (PS8) attr_p[attrCount + 1]);
- offset = (U32) atoi((PS8) attr_p[attrCount + 3]);
- size = (U32) atoi((PS8) attr_p[attrCount + 5]);
- if ((strstr(audio_file_name, ".wav") != NULL) || (strstr(audio_file_name, ".WAV") != NULL))
- {
- g_tc_audiothmfileformat = THEME_AUDIO;
- }
- else if ((strstr(audio_file_name, ".mid") != NULL) || (strstr(audio_file_name, ".MID") != NULL))
- {
- g_tc_audiothmfileformat = THEME_MIDI;
- }
- else if ((strstr(audio_file_name, ".mp3") != NULL) || (strstr(audio_file_name, ".MP3") != NULL))
- {
- g_tc_audiothmfileformat = THEME_MP3;
- }
- mmi_tm_handle_audio(offset, size);
- /* } */
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_setting_pin_scr_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for setting PIN screen handler
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_setting_pin_scr_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- PIN_screen_background_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- PIN_screen_background_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- PIN_screen_background_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- PIN_screen_background_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- PIN_screen_background_filler_DLT.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- PIN_screen_background_filler_DLT.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- PIN_screen_background_filler_DLT.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- PIN_screen_background_filler_DLT.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- PIN_screen_background_filler_DLT.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- PIN_screen_background_filler_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- attrCount += 2;
- }
- g_tc_theme_DLT.PIN_screen_background_filler = (UI_filled_area*)&PIN_screen_background_filler_DLT;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_setimagehandler
- * DESCRIPTION
- * (U16 ImageID)
- * sets the image using the image ID provided
- * PARAMETERS
- * ImageID [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_setimagehandler(U16 ImageID)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_nw_scr_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for network screen
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_nw_scr_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- network_screen_background_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- network_screen_background_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- network_screen_background_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- network_screen_background_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- network_screen_background_filler.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- network_screen_background_filler.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- network_screen_background_filler.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- network_screen_background_filler.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- network_screen_background_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- network_screen_background_filler.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- attrCount += 2;
- }
- g_tc_theme_DLT.network_screen_background_filler = (UI_filled_area*)&network_screen_background_filler;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_buttonbar_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for buttonbar
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_buttonbar_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- button_bar_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- button_bar_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- button_bar_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- button_bar_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.button_bar_color = (color*) & button_bar_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "font", strlen("font")))
- {
- butt_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- butt_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- butt_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- butt_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- butt_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- butt_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- butt_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- butt_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.button_font = (stFontAttribute*) & butt_font;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_popup_scr_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for popup_scr
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_popup_scr_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- popup_screen_background_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- popup_screen_background_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- popup_screen_background_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- popup_screen_background_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.popup_screen_background_color = (color*) & popup_screen_background_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- popup_screen_border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- popup_screen_border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- popup_screen_border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- popup_screen_border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.popup_screen_border_color = (color*) & popup_screen_border_color;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_aphorism_scr_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for aphorism_scr
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_aphorism_scr_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- aphorism_screen_background_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- aphorism_screen_background_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- aphorism_screen_background_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- aphorism_screen_background_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- aphorism_screen_background_filler.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- aphorism_screen_background_filler.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- aphorism_screen_background_filler.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- aphorism_screen_background_filler.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- aphorism_screen_background_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- attrCount += 2;
- }
- g_tc_theme_DLT.aphorism_screen_background_filler = (UI_filled_area*)&aphorism_screen_background_filler;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_popup_description_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for popup_description
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_popup_description_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- popup_description_background_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- popup_description_background_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- popup_description_background_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- popup_description_background_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- popup_description_background_filler.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- popup_description_background_filler.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- popup_description_background_filler.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- popup_description_background_filler.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- popup_description_background_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- popup_description_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- popup_description_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- popup_description_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- popup_description_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.popup_description_text_color = (color*) & popup_description_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- popup_description_background_filler.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.popup_description_background_filler = (UI_filled_area*)&popup_description_background_filler;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_virtual_kb_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for virtual_kb
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_virtual_kb_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- virtual_keyboard_key_down_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- virtual_keyboard_key_down_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- virtual_keyboard_key_down_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- virtual_keyboard_key_down_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- virtual_keyboard_key_down_filler.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- virtual_keyboard_key_down_filler.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- virtual_keyboard_key_down_filler.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- virtual_keyboard_key_down_filler.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- virtual_keyboard_key_down_filler.flags = atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.virtual_keyboard_key_down_filler = (UI_filled_area*)&virtual_keyboard_key_down_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- virtual_keyboard_key_down_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "key_up_txt_col", strlen("key_up_txt_col")))
- {
- virtual_keyboard_key_up_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- virtual_keyboard_key_up_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- virtual_keyboard_key_up_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- virtual_keyboard_key_up_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.virtual_keyboard_key_up_text_color = (color*) & virtual_keyboard_key_up_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "key_down_txt_col", strlen("key_down_txt_col")))
- {
- virtual_keyboard_key_down_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- virtual_keyboard_key_down_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- virtual_keyboard_key_down_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- virtual_keyboard_key_down_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.virtual_keyboard_key_down_text_color = (color*) & virtual_keyboard_key_down_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "font", strlen("font")))
- {
- virtual_keyboard_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- virtual_keyboard_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- virtual_keyboard_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- virtual_keyboard_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- virtual_keyboard_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- virtual_keyboard_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- virtual_keyboard_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- virtual_keyboard_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.virtual_keyboard_font = (stFontAttribute*) & virtual_keyboard_font;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_format_ipbox_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for format_ipbox
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_format_ipbox_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "normal_bk_col", strlen("normal_bk_col")))
- {
- formatted_inputbox_normal_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- formatted_inputbox_normal_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- formatted_inputbox_normal_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- formatted_inputbox_normal_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "normal_flag", strlen("normal_flag")))
- {
- formatted_inputbox_normal_filler.flags = atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.formatted_inputbox_normal_filler = (UI_filled_area*)&formatted_inputbox_normal_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "normal_txt_col", strlen("normal_txt_col")))
- {
- formatted_inputbox_normal_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- formatted_inputbox_normal_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- formatted_inputbox_normal_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- formatted_inputbox_normal_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "selected_bk_col", strlen("selected_bk_col")))
- {
- formatted_inputbox_selected_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- formatted_inputbox_selected_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- formatted_inputbox_selected_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- formatted_inputbox_selected_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "selected_flag", strlen("selected_flag")))
- {
- formatted_inputbox_selected_filler.flags = atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.formatted_inputbox_selected_filler = (UI_filled_area*)&formatted_inputbox_selected_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "sel_txt_col", strlen("sel_txt_col")))
- {
- formatted_inputbox_selected_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- formatted_inputbox_selected_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- formatted_inputbox_selected_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- formatted_inputbox_selected_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.formatted_inputbox_selected_text_color = (color*) & formatted_inputbox_selected_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "cursor_col", strlen("cursor_col")))
- {
- formatted_inputbox_cursor_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- formatted_inputbox_cursor_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- formatted_inputbox_cursor_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- formatted_inputbox_cursor_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.formatted_inputbox_cursor_color = (color*) & formatted_inputbox_cursor_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selection_col", strlen("selection_col")))
- {
- formatted_inputbox_selector_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- formatted_inputbox_selector_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- formatted_inputbox_selector_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- formatted_inputbox_selector_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.formatted_inputbox_selector_color = (color*) & formatted_inputbox_selector_color;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_general_bkgrnd_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for general_bkgrnd
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_general_bkgrnd_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- general_background_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- general_background_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- general_background_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- general_background_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- general_background_filler.flags = atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- general_background_filler.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- general_background_filler.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- general_background_filler.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- general_background_filler.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- general_background_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- attrCount += 2;
- }
- g_tc_theme_DLT.general_background_filler = (UI_filled_area*)&general_background_filler;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_infobar_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for infobar
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_infobar_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- information_bar_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- information_bar_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- information_bar_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- information_bar_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.information_bar_color = (color*) & information_bar_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "ipmethod_txt_col", strlen("ipmethod_txt_col")))
- {
- input_method_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- input_method_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- input_method_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- input_method_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.input_method_text_color = (color*) & input_method_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "remaining_len_txt_col", strlen("remaining_len_txt_col")))
- {
- remaining_length_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- remaining_length_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- remaining_length_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- remaining_length_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.remaining_length_text_color = (color*) & remaining_length_text_color;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_list_menu_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for list_menu
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_list_menu_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- list_background_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- list_background_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- list_background_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- list_background_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "bk_img_offset", strlen("bk_img_offset")))
- {
- list_background_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- list_background_filler.flags = atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.list_background_filler = (UI_filled_area*)&list_background_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "normal_item_col", strlen("normal_item_col")))
- {
- list_normal_item_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- list_normal_item_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- list_normal_item_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- list_normal_item_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.list_normal_item_filler = (UI_filled_area*)&list_normal_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "normal_item_img_offset", strlen("normal_item_img_offset")))
- {
- //resolve the types for normal item img offset & bk_img_offset
- list_normal_item_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- g_tc_theme_DLT.list_normal_item_filler = (UI_filled_area*)&list_normal_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "normal_txt_col", strlen("normal_txt_col")))
- {
- list_normal_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- list_normal_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- list_normal_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- list_normal_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.list_normal_text_color = (color*) & list_normal_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selected_item_col", strlen("selected_item_col")))
- {
- list_selected_item_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- list_selected_item_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- list_selected_item_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- list_selected_item_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.list_selected_item_filler = (UI_filled_area*)&list_selected_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selected_item_img_offset", strlen("selected_item_img_offset")))
- {
- /* resolve the types for normal item img offset & bk_img_offset */
- list_selected_item_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- g_tc_theme_DLT.list_selected_item_filler = (UI_filled_area*)&list_selected_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selected_txt_col", strlen("selected_txt_col")))
- {
- list_selected_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- list_selected_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- list_selected_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- list_selected_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.list_selected_text_color = (color*) & list_selected_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "list_font", strlen("list_font")))
- {
- list_menu_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- list_menu_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- list_menu_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- list_menu_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- list_menu_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- list_menu_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- list_menu_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- list_menu_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.list_menu_font = (stFontAttribute*) & list_menu_font;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_matrix_menu_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for matrix_menu
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_matrix_menu_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- matrix_background_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- matrix_background_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- matrix_background_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- matrix_background_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "bk_img_offset", strlen("bk_img_offset")))
- {
- matrix_background_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- matrix_background_filler.flags = atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.matrix_background_filler = (UI_filled_area*)&matrix_background_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "normal_item_col", strlen("normal_item_col")))
- {
- matrix_normal_item_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- matrix_normal_item_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- matrix_normal_item_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- matrix_normal_item_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.matrix_normal_item_filler = (UI_filled_area*)&matrix_normal_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "normal_item_img_offset", strlen("normal_item_img_offset")))
- {
- matrix_normal_item_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- g_tc_theme_DLT.matrix_normal_item_filler = (UI_filled_area*)&matrix_normal_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "normal_txt_col", strlen("normal_txt_col")))
- {
- matrix_normal_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- matrix_normal_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- matrix_normal_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- matrix_normal_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.matrix_normal_text_color = (color*) & matrix_normal_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selected_item_col", strlen("selected_item_col")))
- {
- matrix_selected_item_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- matrix_selected_item_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- matrix_selected_item_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- matrix_selected_item_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.matrix_selected_item_filler = (UI_filled_area*)&matrix_selected_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selected_item_img_offset", strlen("selected_item_img_offset")))
- {
- matrix_selected_item_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- g_tc_theme_DLT.matrix_selected_item_filler = (UI_filled_area*)&matrix_selected_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selected_txt_col", strlen("selected_txt_col")))
- {
- matrix_selected_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- matrix_selected_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- matrix_selected_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- matrix_selected_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.matrix_selected_text_color = (color*) & matrix_selected_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "matrix_font", strlen("matrix_font")))
- {
- matrix_menu_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- matrix_menu_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- matrix_menu_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- matrix_menu_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- matrix_menu_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- matrix_menu_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- matrix_menu_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- matrix_menu_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.matrix_menu_font = (stFontAttribute*) & matrix_menu_font;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_menubar_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for menubar
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_menubar_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "index_bk_col", strlen("index_bk_col")))
- {
- menubar_index_background_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- menubar_index_background_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- menubar_index_background_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- menubar_index_background_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.menubar_index_background_color = (color*) & menubar_index_background_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "indexfont", strlen("indexfont")))
- {
- menu_bar_index_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- menu_bar_index_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- menu_bar_index_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- menu_bar_index_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- menu_bar_index_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- menu_bar_index_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- menu_bar_index_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- menu_bar_index_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.menu_bar_index_font = (stFontAttribute*) & menu_bar_index_font;
- }
- if (!strncmp((PS8) attr_p[attrCount], "item_bk_col", strlen("item_bk_col")))
- {
- menubar_item_background_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- menubar_item_background_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- menubar_item_background_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- menubar_item_background_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.menubar_item_background_color = (color*) & menubar_item_background_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "itemfont", strlen("itemfont")))
- {
- menu_bar_item_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- menu_bar_item_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- menu_bar_item_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- menu_bar_item_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- menu_bar_item_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- menu_bar_item_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- menu_bar_item_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- menu_bar_item_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.menu_bar_item_font = (stFontAttribute*) & menu_bar_item_font;
- }
- if (!strncmp((PS8) attr_p[attrCount], "index_txt_col", strlen("index_txt_col")))
- {
- menubar_index_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- menubar_index_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- menubar_index_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- menubar_index_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.menubar_index_text_color = (color*) & menubar_index_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "item_txt_col", strlen("item_txt_col")))
- {
- menubar_item_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- menubar_item_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- menubar_item_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- menubar_item_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.menubar_item_text_color = (color*) & menubar_item_text_color;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_statusbar_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for statusbar
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_statusbar_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- statusbar0_background_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- statusbar0_background_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- statusbar0_background_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- statusbar0_background_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- attrCount += 2;
- }
- g_tc_theme_DLT.statusbar0_background_color = (color*) & statusbar0_background_color;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_shortcut_ind_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for shortcut_ind
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_shortcut_ind_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- shortcut_indicator_background_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- shortcut_indicator_background_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- shortcut_indicator_background_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- shortcut_indicator_background_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.shortcut_indicator_background_filler =
- (UI_filled_area*)&shortcut_indicator_background_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- shortcut_indicator_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- shortcut_indicator_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- shortcut_indicator_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- shortcut_indicator_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.shortcut_indicator_text_color = (color*) & shortcut_indicator_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "cursor_col", strlen("cursor_col")))
- {
- shortcut_indicator_cursor_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- shortcut_indicator_cursor_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- shortcut_indicator_cursor_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- shortcut_indicator_cursor_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.shortcut_indicator_cursor_color = (color*) & shortcut_indicator_cursor_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "font", strlen("font")))
- {
- shortcut_indicator_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- shortcut_indicator_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- shortcut_indicator_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- shortcut_indicator_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- shortcut_indicator_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- shortcut_indicator_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- shortcut_indicator_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- shortcut_indicator_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.shortcut_indicator_font = (stFontAttribute*) & shortcut_indicator_font;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_ip_box_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for ip_box
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_ip_box_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- inputbox_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inputbox_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inputbox_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inputbox_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- inputbox_filler_DLT.flags = atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.inputbox_filler = (UI_filled_area*)&inputbox_filler_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- inputbox_normal_text_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inputbox_normal_text_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inputbox_normal_text_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inputbox_normal_text_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inputbox_normal_text_color = (color*) & inputbox_normal_text_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selection_col", strlen("selection_col")))
- {
- inputbox_selector_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inputbox_selector_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inputbox_selector_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inputbox_selector_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inputbox_selector_color = (color*) & inputbox_selector_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "sel_txt_col", strlen("sel_txt_col")))
- {
- inputbox_selected_text_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inputbox_selected_text_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inputbox_selected_text_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inputbox_selected_text_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inputbox_selected_text_color = (color*) & inputbox_selected_text_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "cursor_col", strlen("cursor_col")))
- {
- inputbox_cursor_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inputbox_cursor_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inputbox_cursor_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inputbox_cursor_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inputbox_cursor_color = (color*) & inputbox_cursor_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- inputbox_filler_DLT.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "font", strlen("font")))
- {
- inputbox_font.bold = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 4);
- inputbox_font.italic = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 4, 4);
- inputbox_font.underline = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 4);
- inputbox_font.size = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 12, 4);
- inputbox_font.color = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 4);
- inputbox_font.type = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 20, 4);
- inputbox_font.oblique = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 4);
- inputbox_font.smallCaps = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 28, 4);
- g_tc_theme_DLT.inputbox_font = (stFontAttribute*) & inputbox_font;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_pin_ip_box_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for pin_ip_box
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_pin_ip_box_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- PIN_inputbox_background_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- PIN_inputbox_background_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- PIN_inputbox_background_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- PIN_inputbox_background_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "border_col", strlen("border_col")))
- {
- PIN_inputbox_background_filler_DLT.border_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- PIN_inputbox_background_filler_DLT.border_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- PIN_inputbox_background_filler_DLT.border_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- PIN_inputbox_background_filler_DLT.border_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "cursor_col", strlen("cursor_col")))
- {
- PIN_inputbox_cursor_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- PIN_inputbox_cursor_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- PIN_inputbox_cursor_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- PIN_inputbox_cursor_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.PIN_inputbox_cursor_color = (color*) & PIN_inputbox_cursor_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "txt_col", strlen("txt_col")))
- {
- PIN_inputbox_normal_text_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- PIN_inputbox_normal_text_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- PIN_inputbox_normal_text_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- PIN_inputbox_normal_text_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.PIN_inputbox_normal_text_color = (color*) & PIN_inputbox_normal_text_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selection_col", strlen("selection_col")))
- {
- PIN_inputbox_selector_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- PIN_inputbox_selector_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- PIN_inputbox_selector_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- PIN_inputbox_selector_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.PIN_inputbox_selector_color = (color*) & PIN_inputbox_selector_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "sel_txt_col", strlen("sel_txt_col")))
- {
- PIN_inputbox_selected_text_color_DLT.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- PIN_inputbox_selected_text_color_DLT.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- PIN_inputbox_selected_text_color_DLT.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- PIN_inputbox_selected_text_color_DLT.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.PIN_inputbox_selected_text_color = (color*) & PIN_inputbox_selected_text_color_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "img_offset", strlen("img_offset")))
- {
- PIN_inputbox_background_filler_DLT.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- PIN_inputbox_background_filler_DLT.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.PIN_inputbox_background_filler = (UI_filled_area*)&PIN_inputbox_background_filler_DLT;
- }
- attrCount += 2;
- }
- }
- extern U16 mmi_check_theme_file_version_compatibility(FLOAT theme_version);
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_device_theme_ver_info
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for device_theme
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_device_theme_ver_info(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "name", strlen("name")))
- {
- g_tc_themeInfo.name_p = attr_p[attrCount + 1];
- }
- if (!strncmp((PS8) attr_p[attrCount], "version", strlen("version")))
- {
- g_tc_themeInfo.version = (FLOAT) atoi((PS8) attr_p[attrCount + 1]);
- }
- attrCount += 2;
- }
- if (g_tm_checkThemeVersion)
- {
- xml_free_parse(&g_tc_parser);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_inline_list_menu_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * fill the MMI theme structure for inline_list_menu
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_inline_list_menu_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- U8 type = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- inline_list_background_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_list_background_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_list_background_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_list_background_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- }
- if (!strncmp((PS8) attr_p[attrCount], "type", strlen("type")))
- {
- type = (U32) atoi((PS8) attr_p[attrCount + 1]);
- }
- if (!strncmp((PS8) attr_p[attrCount], "bk_imgoffset", strlen("bk_imgoffset")))
- {
- inline_list_background_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- }
- if (!strncmp((PS8) attr_p[attrCount], "flag", strlen("flag")))
- {
- inline_list_background_filler.flags = (U32) atoi((PS8) attr_p[attrCount + 1]);
- g_tc_theme_DLT.inline_list_background_filler = (UI_filled_area*)&inline_list_background_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "normal_item_col", strlen("normal_item_col")))
- {
- inline_list_normal_item_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_list_normal_item_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_list_normal_item_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_list_normal_item_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inline_list_normal_item_filler = (UI_filled_area*)&inline_list_normal_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "normal_item_imgoffset", strlen("normal_item_imgoffset")))
- {
- inline_list_normal_item_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- g_tc_theme_DLT.inline_list_normal_item_filler = (UI_filled_area*)&inline_list_normal_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "normal_txt_col", strlen("normal_txt_col")))
- {
- inline_list_normal_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_list_normal_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_list_normal_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_list_normal_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inline_list_normal_text_color = (color*) & inline_list_normal_text_color;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selected_item_col", strlen("selected_item_col")))
- {
- inline_list_selected_item_filler.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_list_selected_item_filler.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_list_selected_item_filler.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_list_selected_item_filler.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inline_list_selected_item_filler = (UI_filled_area*)&inline_list_selected_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selected_item_imgoffset", strlen("selected_item_imgoffset")))
- {
- inline_list_selected_item_filler.b = mmi_tm_create_non_imageid_image((U32) atoi((PS8) attr_p[attrCount + 1]), type);
- g_tc_theme_DLT.inline_list_selected_item_filler = (UI_filled_area*)&inline_list_selected_item_filler;
- }
- if (!strncmp((PS8) attr_p[attrCount], "selected_txt_col", strlen("selected_txt_col")))
- {
- inline_list_selected_text_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- inline_list_selected_text_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- inline_list_selected_text_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- inline_list_selected_text_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.inline_list_selected_text_color = (color*) & inline_list_selected_text_color;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_font_col_tag_handler
- * DESCRIPTION
- * (U8** attr_p)
- * Handles the font color list
- * PARAMETERS
- * attr_p [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_tc_font_col_tag_handler(U8 **attr_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 attrCount = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- while (attr_p[attrCount])
- {
- if (!strncmp((PS8) attr_p[attrCount], "calc", strlen("calc")))
- {
- calculator_theme_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- calculator_theme_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- calculator_theme_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- calculator_theme_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.calculator_color = (color*) & calculator_theme_color;
- }
- #ifdef __OLD_DLT_THEME_FILE_SUPPORT__
- if(!g_tc_newTheme)
- {
- if (!strncmp((PS8) attr_p[attrCount], "idle_scr_date_txt", strlen("idle_scr_date_txt")))
- {
- idle_scr_date_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_date_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_date_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_date_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_date_color = (color*) & idle_scr_date_color_DLT;
- }
- else if (!strncmp((PS8) attr_p[attrCount], "idle_scr_time_txt", strlen("idle_scr_time_txt")))
- {
- idle_scr_time_color_DLT.r = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 0, 8);
- idle_scr_time_color_DLT.g = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 8, 8);
- idle_scr_time_color_DLT.b = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 16, 8);
- idle_scr_time_color_DLT.alpha = mmi_tc_extract_no_of_bits((PU8) attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.idle_scr_time_color = (color*) & idle_scr_time_color_DLT;
- }
- }
- #endif /* __OLD_DLT_THEME_FILE_SUPPORT__ */
- if (!strncmp((PS8) attr_p[attrCount], "bk_col", strlen("bk_col")))
- {
- alarm_background_filler_DLT.c.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- alarm_background_filler_DLT.c.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- alarm_background_filler_DLT.c.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- alarm_background_filler_DLT.c.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.alarm_background_filler = (UI_filled_area*)&alarm_background_filler_DLT;
- }
- if (!strncmp((PS8) attr_p[attrCount], "alarm_txt", strlen("alarm_txt")))
- {
- alarm_text_theme_color.r = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 0, 8);
- alarm_text_theme_color.g = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 8, 8);
- alarm_text_theme_color.b = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 16, 8);
- alarm_text_theme_color.alpha = mmi_tc_extract_no_of_bits(attr_p[attrCount + 1], 24, 8);
- g_tc_theme_DLT.alarm_text_color = (color*) & alarm_text_theme_color;
- }
- attrCount += 2;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_tc_convert_theme_file_to_mmi_theme
- * DESCRIPTION
- * (MMI_theme** theme, U32 file_handle)
- * fills the MMI theme structure by parsing the downloaded theme file
- * PARAMETERS
- * theme [IN]
- * file_handle [IN]
- * RETURNS
- * true if successfully converted otherwise false
- *****************************************************************************/
- extern MMI_theme theme_Default;
- BOOL mmi_tc_convert_theme_file_to_mmi_theme(MMI_theme **theme, U32 file_handle)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memcpy(g_tc_theme_converter_p, &theme_Default, sizeof(MMI_theme));
- if (xml_new_parser(&g_tc_parser) == -1)
- {
- return FALSE;
- }
- xml_register_element_handler(&g_tc_parser, mmi_tc_my_xml_elem_start_hdlr, mmi_tc_my_xml_elem_end_hdlr);
- g_tc_parser.pos = THEME_FILE_SIZE_HEADER + THEME_CHECKSUM_HEADER_SIZE;
- xml_parse_file_from_offset(&g_tc_parser, file_handle);
- xml_close_parser_offset(&g_tc_parser);
- *theme = &g_tc_theme_DLT;
- return TRUE;
- }
- #endif /* __MMI_DOWNLOADABLE_THEMES_SUPPORT__ */ /* MMI theme downloadable support */