JMMSComposeUI.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:366k
源码类别:
MTK
开发平台:
C/C++
- STR_ID_JMMS_EDIT_TEXT_COLOR,
- GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- &g_custom_color_RGB_list[0],
- &g_custom_color_RGB_list[1],
- &g_custom_color_RGB_list[2],
- /* MAUI_00018451 Start */
- &g_slider_info,
- /* MAUI_00018451 End */
- gui_buffer);
- SetLeftSoftkeyFunction(mmi_jmms_save_txt_custom_color, KEY_EVENT_UP);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_save_txt_custom_color
- * DESCRIPTION
- * fn to save customized color.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_save_txt_custom_color(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_text_custom_color_RGB = 0;
- g_text_custom_color_RGB |= 0x00000064;
- g_text_custom_color_RGB |=
- ((((U32) g_custom_color_RGB_list[0]) << 24) | (((U32) g_custom_color_RGB_list[1]) << 16) |
- (((U32) g_custom_color_RGB_list[2]) << 8));
- g_custom_var_change = 1;
- GoBackHistory();
- }
- /* SMIL Settings */
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_edit_content_smil_settings
- * DESCRIPTION
- * Entry function when user press edit content->SETTINGS->smil settings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_edit_content_smil_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U16 str_item_list[MAX_SUB_MENUS]; /* Stores the strings id of submenus returned */
- U16 num_item; /* Stores no of children in the submenu */
- U16 disp_Attribute; /* Stores display attribue */
- U8 *gui_buffer; /* Buffer holding history data */
- U16 parent_id;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_SMIL_SETTINGS, NULL, mmi_jmms_entry_edit_content_smil_settings, NULL);
- parent_id = MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL;
- SetParentHandler(parent_id);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_SMIL_SETTINGS);
- num_item = GetNumOfChild(parent_id);
- disp_Attribute = GetDispAttributeOfItem(parent_id);
- GetSequenceStringIds(parent_id, str_item_list);
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- ShowCategory52Screen(
- STR_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL,
- GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- num_item,
- str_item_list,
- (PU16) gIndexIconsImageList,
- NULL,
- 0,
- 0,
- gui_buffer);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_pre_entry_text_timing_settings
- * DESCRIPTION
- * pre entry fn to enter image media timing screen for text.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_pre_entry_text_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time, duration;
- U8 duration_flag;
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_jmms_context->compose_context->media_type = MEDIA_TEXT;
- g_custom_var_change = 0;
- /*Dilip 13th sept */
- if(g_jmms_context->compose_context->curr_slide_info.text_ID < 1)
- {
- DisplayPopup((PU8) GetString(STR_ID_JMMS_TEXT_NOT_INSERTED), IMG_GLOBAL_WARNING, 1, JMMS_POPUP_TIME, WARNING_TONE);
- return;
- }
- /* DIlip 13th sept*/
- err_code = mmi_jmms_get_media_time(
- &start_time,
- &duration,
- g_jmms_context->compose_context->curr_slide_info.text_ID,
- g_jmms_context->compose_context->curr_page_index);
- if (err_code == JMMS_COMP_OK)
- {
- gui_itoa(
- (S32) start_time,
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer,
- 10);
- duration_flag =
- g_jmms_context->compose_context->duration[g_jmms_context->compose_context->curr_page_index - 1].txt_dur_max_set;
- if (duration_flag == 0 && duration!=0)
- {
- g_jmms_context->jmms_inline_items.smil_settings_items.duration_select = 1;
- gui_itoa(
- (S32) duration,
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- }
- else
- {
- if(g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time)
- {
- gui_itoa(
- ((S32) g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time - start_time),
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- }
- else
- {
- gui_itoa(
- ((S32) g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time),
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- }
- g_jmms_context->jmms_inline_items.smil_settings_items.duration_select = 0;
- }
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_done_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_temp_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- mmi_jmms_entry_smil_settings_media_timing();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_pre_entry_image_timing_settings
- * DESCRIPTION
- * pre entry fn to enter image media timing screen for image.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_pre_entry_image_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time, duration;
- U8 duration_flag;
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_jmms_context->compose_context->media_type = MEDIA_IMAGE;
- g_custom_var_change = 0;
- /*Dilip 13th sept */
- if(g_jmms_context->compose_context->curr_slide_info.image_ID < 1)
- {
- DisplayPopup((PU8) GetString(STR_ID_JMMS_IMAGE_NOT_INSERTED), IMG_GLOBAL_WARNING, 1, JMMS_POPUP_TIME, WARNING_TONE);
- return;
- }
- /* DIlip 13th sept*/
- else
- {
- err_code = mmi_jmms_get_media_time(
- &start_time,
- &duration,
- g_jmms_context->compose_context->curr_slide_info.image_ID,
- g_jmms_context->compose_context->curr_page_index);
- if (err_code == JMMS_COMP_OK)
- {
- gui_itoa(
- (S32) start_time,
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer,
- 10);
- duration_flag =
- g_jmms_context->compose_context->duration[g_jmms_context->compose_context->curr_page_index - 1].img_dur_max_set;
- if (duration_flag == 0 && duration!=0)
- {
- g_jmms_context->jmms_inline_items.smil_settings_items.duration_select = 1;
- gui_itoa(
- (S32) duration,
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- }
- else
- {
- if(g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time)
- {
- gui_itoa(
- ((S32) g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time - start_time),
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- }
- else
- {
- gui_itoa(
- ((S32) g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time),
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- }
- g_jmms_context->jmms_inline_items.smil_settings_items.duration_select = 0;
- }
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_done_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_temp_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- mmi_jmms_entry_smil_settings_media_timing();
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_pre_entry_audio_timing_settings
- * DESCRIPTION
- * pre entry fn to enter image media timing screen for audio.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_pre_entry_audio_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time, duration;
- U8 duration_flag;
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_jmms_context->compose_context->media_type = MEDIA_AUDIO;
- g_custom_var_change = 0;
- /*Dilip 13th sept */
- if(g_jmms_context->compose_context->curr_slide_info.audio_ID < 1)
- {
- DisplayPopup((PU8) GetString(STR_ID_JMMS_AUDIO_NOT_INSERTED), IMG_GLOBAL_WARNING, 1, JMMS_POPUP_TIME, WARNING_TONE);
- return;
- }
- /* DIlip 13th sept*/
- else
- {
- err_code = mmi_jmms_get_media_time(
- &start_time,
- &duration,
- g_jmms_context->compose_context->curr_slide_info.audio_ID,
- g_jmms_context->compose_context->curr_page_index);
- if (err_code == JMMS_COMP_OK)
- {
- gui_itoa(
- (S32) start_time,
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer,
- 10);
- duration_flag =
- g_jmms_context->compose_context->duration[g_jmms_context->compose_context->curr_page_index - 1].
- audio_dur_max_set;
- if (duration_flag == 0 && duration!=0)
- {
- g_jmms_context->jmms_inline_items.smil_settings_items.duration_select = 1;
- gui_itoa(
- (S32) duration,
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- }
- else
- {
- U32 temp_duration = g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time;
- if ((U8) mmi_jmms_compose_settings_best_page_duration() == (U8) E_ON && temp_duration!=0)
- {
- temp_duration = duration;
- }
- if(temp_duration)
- {
- gui_itoa(
- (S32) (temp_duration - start_time),
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- }
- else
- {
- gui_itoa(
- (S32) temp_duration,
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- }
- g_jmms_context->jmms_inline_items.smil_settings_items.duration_select = 0;
- }
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_done_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_temp_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- mmi_jmms_entry_smil_settings_media_timing();
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_pre_entry_video_timing_settings
- * DESCRIPTION
- * pre entry fn to enter image media timing screen for video.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_pre_entry_video_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time, duration;
- U8 duration_flag;
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_jmms_context->compose_context->media_type = MEDIA_VIDEO;
- g_custom_var_change = 0;
- /*Dilip 13th sept */
- if(g_jmms_context->compose_context->curr_slide_info.video_ID < 1)
- {
- DisplayPopup((PU8) GetString(STR_ID_JMMS_VIDEO_NOT_INSERTED), IMG_GLOBAL_WARNING, 1, JMMS_POPUP_TIME, WARNING_TONE);
- return;
- }
- /* DIlip 13th sept*/
- else
- {
- err_code = mmi_jmms_get_media_time(
- &start_time,
- &duration,
- g_jmms_context->compose_context->curr_slide_info.video_ID,
- g_jmms_context->compose_context->curr_page_index);
- if (err_code == JMMS_COMP_OK)
- {
- gui_itoa(
- (S32) start_time,
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer,
- 10);
- duration_flag =
- g_jmms_context->compose_context->duration[g_jmms_context->compose_context->curr_page_index - 1].
- video_dur_max_set;
- if (duration_flag == 0 && duration!=0)
- {
- gui_itoa(
- (S32) duration,
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- g_jmms_context->jmms_inline_items.smil_settings_items.duration_select = 1;
- }
- else
- {
- U32 temp_duration = g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time;
- if ((U8) mmi_jmms_compose_settings_best_page_duration() == (U8) E_ON && temp_duration!=0)
- {
- temp_duration = duration;
- }
- if(temp_duration)
- {
- gui_itoa(
- (S32) (temp_duration - start_time),
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- }
- else
- {
- gui_itoa(
- (S32) temp_duration,
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,
- 10);
- }
- g_jmms_context->jmms_inline_items.smil_settings_items.duration_select = 0;
- }
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_done_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_temp_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- mmi_jmms_entry_smil_settings_media_timing();
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_smil_settings_media_timing
- * DESCRIPTION
- * Entry function when user press edit content->SETTINGS->smil settings->media timings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_smil_settings_media_timing(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *gui_buffer;
- U8 *input_buffer;
- U16 input_buffer_size;
- InlineItem smil_settings_inline_edit_list[4];
- MMI_ID_TYPE item_icons[] =
- {
- IMG_GLOBAL_L1,
- 0,
- IMG_GLOBAL_L2,
- 0,
- };
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(SCR_ID_JMMS_SMIL_SETTINGS_TEXT_TIMINGS, mmi_jmms_exit_smil_settings_media_timing, NULL, NULL);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_SMIL_SETTINGS_TEXT_TIMINGS);
- input_buffer = GetCurrNInputBuffer(SCR_ID_JMMS_SMIL_SETTINGS_TEXT_TIMINGS, &input_buffer_size);
- InitializeCategory57Screen();
- mmi_jmms_fill_media_timing_inline_edit_struct((void*)smil_settings_inline_edit_list);
- if (input_buffer != NULL) /* added for inline edit history */
- {
- SetCategory57Data(smil_settings_inline_edit_list, 4, input_buffer); /* sets the data */
- }
- if (GetInlineDoneFlag(gui_buffer) == 0)
- {
- if (g_custom_var_change == 1)
- {
- SetInlineDoneFlag(gui_buffer);
- }
- }
- ShowCategory57Screen(
- STR_ID_JMMS_EDIT_CONTENT_EDIT_MEDIA_TIME,
- GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
- STR_GLOBAL_EDIT,
- IMG_GLOBAL_OK,
- STR_GLOBAL_DONE,
- IMG_GLOBAL_BACK,
- 4,
- (PU16) item_icons,
- smil_settings_inline_edit_list,
- 0,
- gui_buffer);
- switch (g_jmms_context->compose_context->media_type)
- {
- case MEDIA_TEXT:
- SetCategory57RightSoftkeyFunctions(mmi_jmms_confirm_save_text_timing_settings, GoBackHistory);
- break;
- case MEDIA_IMAGE:
- SetCategory57RightSoftkeyFunctions(mmi_jmms_confirm_save_image_timing_settings, GoBackHistory);
- break;
- case MEDIA_AUDIO:
- SetCategory57RightSoftkeyFunctions(mmi_jmms_confirm_save_audio_timing_settings, GoBackHistory);
- break;
- case MEDIA_VIDEO:
- SetCategory57RightSoftkeyFunctions(mmi_jmms_confirm_save_video_timing_settings, GoBackHistory);
- break;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_exit_smil_settings_media_timing
- * DESCRIPTION
- * Exit function when user press edit content->SETTINGS->smil settings->media timing.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_exit_smil_settings_media_timing(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- history scr; /* Variable to hold the history data */
- S16 history_data = 0;
- U16 size;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- CloseCategory57Screen();
- scr.scrnID = SCR_ID_JMMS_SMIL_SETTINGS_TEXT_TIMINGS;
- scr.entryFuncPtr = mmi_jmms_entry_smil_settings_media_timing;
- pfnUnicodeStrcpy((S8*) scr.inputBuffer, (S8*) & history_data);
- GetCategory57History(scr.guiBuffer);
- size = (U16) GetCategory57DataSize(); /* added for inline edit history */
- GetCategory57Data((U8*) scr.inputBuffer); /* added for inline edit history */
- AddNHistory(scr, size);
- if (g_jmms_context->jmms_inline_lists != NULL)
- {
- jdd_MemFree(g_jmms_context->jmms_inline_lists);
- g_jmms_context->jmms_inline_lists = NULL;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_fill_media_timing_inline_edit_struct
- * DESCRIPTION
- * this fn will fill the inline struct of smil media timings settings
- * PARAMETERS
- * inline_edit_p [IN/OUT]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_fill_media_timing_inline_edit_struct(void *inline_edit_p)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- InlineItem *inline_struct_p = (InlineItem*) inline_edit_p;
- U8 item_offset = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (g_jmms_context->jmms_inline_lists == NULL)
- {
- g_jmms_context->jmms_inline_lists =
- (jmms_common_inline_lists_struct*) jdd_MemAlloc(sizeof(jmms_common_inline_lists_struct), 1);
- if (g_jmms_context->jmms_inline_lists == NULL)
- {
- DisplayPopup((PU8) GetString(STR_ID_JMMS_OUT_OF_MEMORY), IMG_GLOBAL_ERROR, 1, JMMS_POPUP_TIME, ERROR_TONE);
- return;
- }
- }
- g_jmms_context->jmms_inline_lists->on_off_list[0] = (S8*) GetString(STR_ID_JMMS_MAXIMUM);
- g_jmms_context->jmms_inline_lists->on_off_list[1] = (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_CUSTOM);
- SetInlineItemActivation(&inline_struct_p[item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
- SetInlineItemCaption(&inline_struct_p[item_offset], (PU8) GetString(STR_ID_JMMS_SMIL_SETTINGS_START_TIME));
- SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
- SetInlineItemTextEdit(
- &inline_struct_p[item_offset],
- (PU8) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer,
- MAX_JMMS_SLIDE_TIME_DIGITS + 1,
- INPUT_TYPE_NUMERIC);
- SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
- SetInlineItemCaption(&inline_struct_p[item_offset], (PU8) GetString(STR_ID_JMMS_DURATION));
- SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
- SetInlineItemSelect(
- &inline_struct_p[item_offset],
- 2,
- (U8 **) g_jmms_context->jmms_inline_lists->on_off_list,
- (S32*) & (g_jmms_context->jmms_inline_items.smil_settings_items.duration_select) /* CurrSelect */ );
- RegisterInlineSelectHighlightHandler(&inline_struct_p[item_offset], mmi_jmms_inline_media_timings_hilite_handler);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_pre_entry_media_duration
- * DESCRIPTION
- * fn to be called before entry media duration screen
- * PARAMETERS
- * index [IN]
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_pre_entry_media_duration(void)
- {
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_temp_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_done_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- mmi_jmms_entry_media_duration();
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_inline_media_timings_hilite_handler
- * DESCRIPTION
- * fn to be called when duration is highlited in media time settings.
- * PARAMETERS
- * index [IN]
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_inline_media_timings_hilite_handler(S32 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (index == 1)
- {
- ChangeLeftSoftkey(STR_GLOBAL_EDIT, IMG_GLOBAL_OK);
- SetCategory57LeftSoftkeyFunction(mmi_jmms_pre_entry_media_duration);
- }
- else
- {
- ChangeLeftSoftkey(0, 0);
- ClearKeyHandler(KEY_LSK, KEY_EVENT_UP);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_media_duration
- * DESCRIPTION
- * entry fn for custom media duration screen.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_media_duration(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *gui_buffer;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(SCR_ID_JMMS_SMIL_SETTINGS_MEDIA_TIMINGS_DURATION, NULL, mmi_jmms_entry_media_duration, NULL);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_SMIL_SETTINGS_MEDIA_TIMINGS_DURATION);
- ShowCategory5Screen(
- STR_ID_JMMS_DURATION,
- GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- INPUT_TYPE_NUMERIC,
- g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_temp_buffer,
- MAX_JMMS_MEDIA_DURATION_DIGITS + 1,
- gui_buffer);
- SetLeftSoftkeyFunction(mmi_jmms_save_custom_media_duration, KEY_EVENT_UP);
- SetCategory5RightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_save_custom_media_duration
- * DESCRIPTION
- * fn to change the value change in custom duartion.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_save_custom_media_duration(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_custom_var_change = 1;
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_done_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_temp_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- GoBackHistory();
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_confirm_save_text_timing_settings
- * DESCRIPTION
- * fn to show the confirmation popup when user press done on text timings settings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_confirm_save_text_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- start_time =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer);
- if (g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time &&
- start_time >= g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time)
- {
- DisplayPopup(
- (PU8) GetString(STR_ID_JMMS_SLIDE_TIME_EXCEED),
- IMG_GLOBAL_WARNING,
- 1,
- JMMS_POPUP_TIME,
- WARNING_TONE);
- }
- else
- {
- DisplayConfirm(
- STR_GLOBAL_YES,
- IMG_GLOBAL_YES,
- STR_GLOBAL_NO,
- IMG_GLOBAL_NO,
- get_string(STR_GLOBAL_SAVE),
- IMG_GLOBAL_QUESTION,
- WARNING_TONE);
- SetLeftSoftkeyFunction(mmi_jmms_save_text_timing_settings, KEY_EVENT_UP);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- DeleteUptoScrID(SCR_ID_JMMS_EDIT_CONTENT_SMIL_SETTINGS);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_save_text_timing_settings
- * DESCRIPTION
- * fn to be called when user press yes on text settings confirmation.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_save_text_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time, duration;
- U8 max_set;
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_temp_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- start_time =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer);
- if (g_jmms_context->jmms_inline_items.smil_settings_items.duration_select == 0)
- {
- duration = 0;
- max_set = 1;
- }
- else
- {
- duration =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.
- media_duration_edit_buffer);
- max_set = 0;
- }
- err_code = mmi_jmms_set_media_time(
- start_time,
- duration,
- g_jmms_context->compose_context->curr_slide_info.text_ID,
- g_jmms_context->compose_context->curr_page_index);
- if (err_code == JMMS_COMP_OK)
- {
- g_jmms_context->compose_context->duration[g_jmms_context->compose_context->curr_page_index - 1].txt_dur_max_set =
- max_set;
- DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JMMS_POPUP_TIME, SUCCESS_TONE);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_confirm_save_image_timing_settings
- * DESCRIPTION
- * fn to show the confirmation popup when user press done on image timings settings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_confirm_save_image_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- start_time =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer);
- if (g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time &&
- start_time >= g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time)
- {
- DisplayPopup(
- (PU8) GetString(STR_ID_JMMS_SLIDE_TIME_EXCEED),
- IMG_GLOBAL_WARNING,
- 1,
- JMMS_POPUP_TIME,
- WARNING_TONE);
- }
- else
- {
- DisplayConfirm(
- STR_GLOBAL_YES,
- IMG_GLOBAL_YES,
- STR_GLOBAL_NO,
- IMG_GLOBAL_NO,
- get_string(STR_GLOBAL_SAVE),
- IMG_GLOBAL_QUESTION,
- WARNING_TONE);
- SetLeftSoftkeyFunction(mmi_jmms_save_image_timing_settings, KEY_EVENT_UP);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- DeleteUptoScrID(SCR_ID_JMMS_EDIT_CONTENT_SMIL_SETTINGS);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_save_image_timing_settings
- * DESCRIPTION
- * fn to be called when user press yes on image timings settings
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_save_image_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time, duration;
- U8 max_set;
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_done_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- start_time =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer);
- if (g_jmms_context->jmms_inline_items.smil_settings_items.duration_select == 0)
- {
- duration = 0;
- max_set = 1;
- }
- else
- {
- duration =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.
- media_duration_edit_buffer);
- max_set = 0;
- }
- err_code = mmi_jmms_set_media_time(
- start_time,
- duration,
- g_jmms_context->compose_context->curr_slide_info.image_ID,
- g_jmms_context->compose_context->curr_page_index);
- if (err_code == JMMS_COMP_OK)
- {
- g_jmms_context->compose_context->duration[g_jmms_context->compose_context->curr_page_index - 1].img_dur_max_set =
- max_set;
- DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JMMS_POPUP_TIME, SUCCESS_TONE);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_confirm_save_audio_timing_settings
- * DESCRIPTION
- * fn to show the confirmation popup when user press done on audio timings settings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_confirm_save_audio_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- start_time =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer);
- if (g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time &&
- start_time >= g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time)
- {
- DisplayPopup(
- (PU8) GetString(STR_ID_JMMS_SLIDE_TIME_EXCEED),
- IMG_GLOBAL_WARNING,
- 1,
- JMMS_POPUP_TIME,
- WARNING_TONE);
- }
- else
- {
- DisplayConfirm(
- STR_GLOBAL_YES,
- IMG_GLOBAL_YES,
- STR_GLOBAL_NO,
- IMG_GLOBAL_NO,
- get_string(STR_GLOBAL_SAVE),
- IMG_GLOBAL_QUESTION,
- WARNING_TONE);
- SetLeftSoftkeyFunction(mmi_jmms_save_audio_timing_settings, KEY_EVENT_UP);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- DeleteUptoScrID(SCR_ID_JMMS_EDIT_CONTENT_SMIL_SETTINGS);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_save_audio_timing_settings
- * DESCRIPTION
- * fn to be called when user press yes on audio timings settings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_save_audio_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time, duration;
- U8 max_set;
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_done_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- start_time =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer);
- if (g_jmms_context->jmms_inline_items.smil_settings_items.duration_select == 0)
- {
- duration = 0;
- max_set = 1;
- }
- else
- {
- duration =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.
- media_duration_edit_buffer);
- max_set = 0;
- }
- err_code = mmi_jmms_set_media_time(
- start_time,
- duration,
- g_jmms_context->compose_context->curr_slide_info.audio_ID,
- g_jmms_context->compose_context->curr_page_index);
- if (err_code == JMMS_COMP_OK)
- {
- g_jmms_context->compose_context->duration[g_jmms_context->compose_context->curr_page_index - 1].audio_dur_max_set =
- max_set;
- DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JMMS_POPUP_TIME, SUCCESS_TONE);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_confirm_save_video_timing_settings
- * DESCRIPTION
- * fn to show the confirmation popup when user press done on video timings settings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_confirm_save_video_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- start_time =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer);
- if (g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time &&
- start_time >= g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time)
- {
- DisplayPopup(
- (PU8) GetString(STR_ID_JMMS_SLIDE_TIME_EXCEED),
- IMG_GLOBAL_WARNING,
- 1,
- JMMS_POPUP_TIME,
- WARNING_TONE);
- }
- else
- {
- DisplayConfirm(
- STR_GLOBAL_YES,
- IMG_GLOBAL_YES,
- STR_GLOBAL_NO,
- IMG_GLOBAL_NO,
- get_string(STR_GLOBAL_SAVE),
- IMG_GLOBAL_QUESTION,
- WARNING_TONE);
- SetLeftSoftkeyFunction(mmi_jmms_save_video_timing_settings, KEY_EVENT_UP);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- DeleteUptoScrID(SCR_ID_JMMS_EDIT_CONTENT_SMIL_SETTINGS);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_save_video_timing_settings
- * DESCRIPTION
- * fn to be called when user press yes on video settings confirmation.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_save_video_timing_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 start_time, duration;
- U8 max_set;
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memcpy(g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_buffer , g_jmms_context->jmms_inline_items.smil_settings_items.media_duration_edit_done_buffer,((MAX_JMMS_MEDIA_DURATION_DIGITS + 1) *ENCODING_LENGTH));
- start_time =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer);
- if (g_jmms_context->jmms_inline_items.smil_settings_items.duration_select == 0)
- {
- duration = 0;
- max_set = 1;
- }
- else
- {
- duration =
- (U32) gui_atoi((UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.
- media_duration_edit_buffer);
- max_set = 0;
- }
- err_code = mmi_jmms_set_media_time(
- start_time,
- duration,
- g_jmms_context->compose_context->curr_slide_info.video_ID,
- g_jmms_context->compose_context->curr_page_index);
- if (err_code == JMMS_COMP_OK)
- {
- g_jmms_context->compose_context->duration[g_jmms_context->compose_context->curr_page_index - 1].video_dur_max_set =
- max_set;
- DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JMMS_POPUP_TIME, SUCCESS_TONE);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_smil_bg_color_settings
- * DESCRIPTION
- * entry fn for BG color smil settings
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_smil_bg_color_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *gui_buffer;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(SCR_ID_JMMS_SMIL_SETTINGS_BG_COLOR, NULL, mmi_jmms_entry_smil_bg_color_settings, NULL);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_SMIL_SETTINGS_BG_COLOR);
- RegisterHighlightHandler(mmi_jmms_bg_color_highlight_hdlr);
- for (count = 0;
- g_jmms_context->compose_context->mms_bg_color != g_jmms_color_RGB_list[count] &&
- count < MAX_JMMS_COLOR_NUM - 1; count++);
- if (count == MAX_JMMS_COLOR_NUM - 1)
- {
- g_jmms_context->jmms_inline_items.text_settings_items.color_selected = MAX_JMMS_COLOR_NUM - 1;
- }
- else
- {
- g_jmms_context->jmms_inline_items.text_settings_items.color_selected = count;
- /* MAUI_00018544 Start */
- g_bg_custom_color_RGB = 0x00000064;
- /* MAUI_00018544 End */
- }
- g_jmms_context->jmms_inline_items.text_settings_items.color_list[0] =
- (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_COLOR1);
- g_jmms_context->jmms_inline_items.text_settings_items.color_list[1] =
- (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_COLOR2);
- g_jmms_context->jmms_inline_items.text_settings_items.color_list[2] =
- (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_COLOR3);
- g_jmms_context->jmms_inline_items.text_settings_items.color_list[3] =
- (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_COLOR4);
- g_jmms_context->jmms_inline_items.text_settings_items.color_list[4] =
- (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_COLOR5);
- g_jmms_context->jmms_inline_items.text_settings_items.color_list[5] =
- (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_CUSTOM);
- ShowCategory53Screen(
- STR_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_BGCOLOR,
- GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- (S32) MAX_JMMS_COLOR_NUM,
- (U8 **) g_jmms_context->jmms_inline_items.text_settings_items.color_list,
- (U16*) gIndexIconsImageList,
- NULL,
- 0,
- g_jmms_context->jmms_inline_items.text_settings_items.color_selected,
- gui_buffer);
- SetLeftSoftkeyFunction(mmi_jmms_select_bg_color, KEY_EVENT_UP);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_bg_color_highlight_hdlr
- * DESCRIPTION
- * highlight handler for Bg color screen.
- * PARAMETERS
- * index [IN]
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_bg_color_highlight_hdlr(S32 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_jmms_context->curr_scr_hilite_index = index;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_select_bg_color
- * DESCRIPTION
- * fn to be called when bg color is selected
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_select_bg_color(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U32 bg_color;
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (g_jmms_context->curr_scr_hilite_index >= MAX_JMMS_COLOR_NUM - 1)
- {
- g_custom_color_RGB_list[0] = (U8) ((0xFF000000 & g_bg_custom_color_RGB) >> 24);
- g_custom_color_RGB_list[1] = (U8) ((0x00FF0000 & g_bg_custom_color_RGB) >> 16);
- g_custom_color_RGB_list[2] = (U8) ((0x0000FF00 & g_bg_custom_color_RGB) >> 8);
- mmi_jmms_entry_bg_custom_color();
- }
- else
- {
- bg_color = g_jmms_color_RGB_list[g_jmms_context->curr_scr_hilite_index];
- err_code = mmi_jmms_set_bg_color(bg_color);
- if (err_code == JMMS_COMP_OK)
- {
- g_jmms_context->compose_context->mms_bg_color = bg_color;
- mmi_jmms_set_region_list();
- DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JMMS_POPUP_TIME, SUCCESS_TONE);
- }
- DeleteUptoScrID(SCR_ID_JMMS_EDIT_CONTENT);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_bg_custom_color
- * DESCRIPTION
- * entry fn for background custom color screen.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_bg_custom_color(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *gui_buffer;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(SCR_ID_JMMS_CUSTOM_COLOR, NULL, mmi_jmms_entry_bg_custom_color, NULL);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_CUSTOM_COLOR);
- /* MAUI_00018451 Start */
- if (gui_buffer == NULL)
- {
- g_slider_info = MMI_CAT91_COLOR_SLIDER_RED_COLOR;
- }
- /* MAUI_00018451 End */
- ShowCategory91Screen(
- STR_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_BGCOLOR,
- GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- &g_custom_color_RGB_list[0],
- &g_custom_color_RGB_list[1],
- &g_custom_color_RGB_list[2],
- /* MAUI_00018451 Start */
- &g_slider_info,
- /* MAUI_00018451 End */
- gui_buffer);
- SetLeftSoftkeyFunction(mmi_jmms_save_smil_bg_custom_color, KEY_EVENT_UP);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_save_smil_bg_custom_color
- * DESCRIPTION
- * fn to save background customized color.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_save_smil_bg_custom_color(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_bg_custom_color_RGB &= 0x000000FF;
- g_bg_custom_color_RGB |=
- ((((U32) g_custom_color_RGB_list[0]) << 24) | (((U32) g_custom_color_RGB_list[1]) << 16) |
- (((U32) g_custom_color_RGB_list[2]) << 8));
- err_code = mmi_jmms_set_bg_color(g_bg_custom_color_RGB);
- if (err_code == JMMS_COMP_OK)
- {
- g_jmms_context->compose_context->mms_bg_color = g_bg_custom_color_RGB;
- mmi_jmms_set_region_list();
- DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JMMS_POPUP_TIME, SUCCESS_TONE);
- }
- DeleteUptoScrID(SCR_ID_JMMS_EDIT_CONTENT);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_pre_entry_edit_content_slide_time
- * DESCRIPTION
- * pre entry fn for slide duration screen.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_pre_entry_edit_content_slide_time(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /*
- * if(g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time==0)
- * {
- * g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time=mmi_jmms_compose_settings_default_slide_time();
- * }
- */
- gui_itoa(
- (S32) g_jmms_context->compose_context->curr_slide_info.slide_prop.slide_time,
- (UI_string_type) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer,
- 10);
- mmi_jmms_entry_edit_content_slide_time();
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_edit_content_slide_time
- * DESCRIPTION
- * entry fn for slide duration screen.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_edit_content_slide_time(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *gui_buffer;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_SLIDE_TIME, NULL, mmi_jmms_entry_edit_content_slide_time, NULL);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_SLIDE_TIME);
- ShowCategory5Screen(
- STR_ID_JMMS_EDIT_SLIDE_TIME,
- GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- INPUT_TYPE_NUMERIC,
- g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer,
- MAX_JMMS_MEDIA_DURATION_DIGITS + 1,
- gui_buffer);
- SetLeftSoftkeyFunction(mmi_jmms_save_edit_content_slide_timing, KEY_EVENT_UP);
- SetCategory5RightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_save_edit_content_slide_timing
- * DESCRIPTION
- * fn save the slide timings when user press ok on slide timings settings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_save_edit_content_slide_timing(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- U32 slide_time;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if(pfnUnicodeStrncmp
- ((S8*) g_jmms_context->jmms_inline_items.smil_settings_items.slide_time_edit_buffer, "