JMMSComposeUI.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:366k
源码类别:
MTK
开发平台:
C/C++
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2002
- *
- *****************************************************************************/
- /*****************************************************************************
- *
- * Filename:
- * ---------
- * mms_compose.C
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- *
- *
- * Author:
- * -------
- * -------
- *
- *============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *============================================================================
- ****************************************************************************/
- #include "MMI_features.h"
- #if (defined (JATAAYU_SUPPORT) && defined(MMS_SUPPORT))
- /* Include: MMI header file */
- #include "stdC.h"
- #include "L4Dr1.h"
- #include "PixtelDataTypes.h"
- #include "JMMSCompose.h"
- #include "JMMSResEnum.h"
- #include "JMMSExdcl.h"
- #include "Globaldefs.h"
- #include "GlobalMenuItems.h"
- #include "GlobalConstants.h"
- #include "EventsGprot.h"
- #include "HistoryGprot.h"
- #include "CommonScreens.h"
- #include "wgui_categories.h"
- #include "SettingProfile.h"
- #include "wgui_categories_PE.h"
- #include "wgui_categories_inputsenum.h"
- #include "wgui_categories_inputs.h"
- #include "wgui_categories_MMS.h"
- #include "wgui.h"
- #include "MessagesResourceData.h"
- #include "JMMSView.h"
- #include "JMMSInbox.h"
- #include "FileManagerGProt.h"
- #ifdef __MMI_FILE_MANAGER__
- #include "FileMgr.h"
- #endif
- #include "JMMSCoreAPI.h"
- #include "ddlbase.h"
- #include "JMMSGdcl.h"
- #include "jcutils.h"
- #include "ddlutils.h"
- #include "ddl.h"
- #include "jdi_MMSErr.h"
- #include "jcerror.h"
- #include "ddl.h"
- #include "FileSystemDef.h"
- #include "FileManagerDef.h"
- #include "FileSystemGProt.h"
- #include "fs_type.h"
- #include "fs_func.h"
- #include "fs_errcode.h"
- #include "FileMgr.h"
- #include "jdd_memapi.h"
- #include "JMMSGprot.h"
- #include "ToDoListDef.h"
- #include "FontRes.h"
- #include "vCard.h"
- #include "PhoneBookDef.h"
- #include "PhoneBookGprot.h"
- #include "PhoneBookTypes.h"
- #include "MainMenuDef.h"
- #include "NVRAMEnum.h"
- #include "NVRAMProt.h"
- #include "jMMSDRMHandler.h"
- #include "DebugInitDef.h"
- /* PMT VIKAS START 20060502 */
- #if defined(__MMI_AUDIO_PLAYER__) || defined (_MMI_VIDEO_PLAYER__)
- #include "PixtelDataTypes.h" /* dependent headers for AudioPlayerProt.h" */
- #include "mdi_datatype.h" /* dependent headers for AudioPlayerProt.h" */
- #endif /* defined(__MMI_AUDIO_PLAYER__) || defined (_MMI_VIDEO_PLAYER__) */
- #if defined(__MMI_AUDIO_PLAYER__)
- #include "AudioPlayerProt.h"
- #endif
- #ifdef __MMI_VIDEO_PLAYER__
- #include "mdi_video.h"
- #include "jdd_videoapi.h"
- /* PMT VIKAS END 20060502 */
- #endif /* __MMI_VIDEO_PLAYER__ */
- #include "wgui_categories_multimedia.h"
- #include "JMMSMessageSettingsUtils.h"
- #include "jdd_fileapi.h"
- #include "lcd_sw_rnd.h"
- #include "custom_wap_config.h"
- #ifdef __MMI_UNIFIED_MESSAGE__
- #include "JMMSUMHandling.h"
- #endif
- #include "CallManagementGprot.h"
- /* Include: PS header file */
- /* ... Add More PS header */
- extern MMI_ALERT_TYPE GetMtCallAlertTypeEnum(void);
- static FuncPtr g_add_media_hdlr;
- MMI_BOOL is_add_media_as_drm;
- /* IMPORTANT - If you add an entry in this table, increemnt MAX_NON_ATTACH_FILE_TYPE count as well */
- #define MAX_NON_ATTACH_FILE_TYPE 5
- const fmgr_filter_struct g_jmms_non_attach_filter[MAX_NON_ATTACH_FILE_TYPE] =
- {
- {FMGR_TYPE_EMS, "EMS"},
- {FMGR_TYPE_ANM, "ANM"},
- {FMGR_TYPE_DCF, "DCF"},
- {FMGR_TYPE_DM, "DM"},
- {FMGR_TYPE_SVG, "SVG"}
- };
- extern const fmgr_filter_struct fmgr_filter[FMGR_MAX_FILTER_COUNT];
- /*****************************************************************************
- * Define
- *****************************************************************************/
- /*****************************************************************************
- * Typedef
- *****************************************************************************/
- /*****************************************************************************
- * Local static Variable
- *****************************************************************************/
- /*****************************************************************************
- * Local Function
- *****************************************************************************/
- /* PMT VIKAS START 20060502 */
- static void mmi_jmms_video_idle_preview_in_composer(
- S8 *filename,
- S32 x_frame,
- S32 y_frame,
- S32 width_frame,
- S32 height_frame);
- static void mmi_jmms_image_idle_preview_in_composer(S8 *filename, S32 img_x, S32 img_y, S32 img_width, S32 img_height);
- /* PMT VIKAS END 20060502 */
- /*****************************************************************************
- * Global Variable
- *****************************************************************************/
- static U8 g_custom_color_RGB_list[3];
- static U32 g_text_custom_color_RGB = 0x00000064; /* to save the color customized by user. */
- static U32 g_bg_custom_color_RGB = 0x00000064; /* to save the color customized by user. */
- static U8 g_custom_var_change = 0;
- /* MAUI_00018451 Start */
- static mmi_cat91_color_slider_enum g_slider_info = MMI_CAT91_COLOR_SLIDER_RED_COLOR;
- /* MAUI_00018451 End */
- /* PMT VIKAS START 20060502 */
- U8 *g_media_buffer_p = NULL;
- /* PMT VIKAS END 20060502 */
- extern BOOL r2lMMIFlag; /* Right-to-left languages (e.g. Arabic) */
- /*****************************************************************************
- * Global Function
- *****************************************************************************/
- extern mdi_result mdi_audio_get_duration(void *file_name, U32 *time_p); // compiler warning removal
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_compose_init
- * DESCRIPTION
- * Initialization function of MMS compose.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_compose_init(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT, mmi_jmms_highlight_attachment_insert);
- SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_DELETE, mmi_jmms_highlight_attachment_delete);
- SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_ATTACHMENT, mmi_jmms_highlight_attachment_attachment);
- #ifdef __MMI_VCARD__
- SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_VCARD, mmi_jmms_highlight_attachment_vcard);
- #endif
- SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_VCALENDAR, mmi_jmms_highlight_attachment_vcalendar);
- #ifdef __MMI_VCARD__
- SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT_VCARD_FILEMGR, mmi_jmms_highlight_attachment_vcard_fm);
- SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT_VCARD_PHB, mmi_jmms_highlight_attachment_vcard_phb);
- SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT_MY_VCARD, mmi_jmms_highlight_attachment_my_vcard);
- #endif /* __MMI_VCARD__ */
- #ifdef __MMI_TODOLIST__
- SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT_VCALENDAR_TODO_LIST, mmi_jmms_highlight_attachment_vcal_todolist);
- #endif
- SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT_VCALENDAR_FILEMGR, mmi_jmms_highlight_attachment_vcal_fm);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INPUT_METHOD, mmi_jmms_highlight_edit_content_ip_method);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT, mmi_jmms_highlight_edit_content_insert);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_DELETE, mmi_jmms_highlight_edit_content_delete);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_REPLACE, mmi_jmms_highlight_edit_content_replace);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_PLAY_AUDIO, mmi_jmms_highlight_edit_content_play_audio);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_PLAY_VIDEO, mmi_jmms_highlight_edit_content_play_video);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_GOTO, mmi_jmms_highlight_edit_content_goto);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS, mmi_jmms_highlight_edit_content_settings);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_PREVIEW, mmi_jmms_highlight_edit_content_preview);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_OPTION_DONE, mmi_jmms_highlight_edit_content_done);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT_IMAGE, mmi_jmms_highlight_edit_content_insert_image);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT_AUDIO, mmi_jmms_highlight_edit_content_insert_audio);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT_VIDEO, mmi_jmms_highlight_edit_content_insert_video);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT_SLIDE, mmi_jmms_highlight_edit_content_insert_slide);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT_CONTACT, mmi_jmms_highlight_edit_content_insert_contact);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_DELETE_IMAGE, mmi_jmms_highlight_edit_content_delete_image);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_DELETE_AUDIO, mmi_jmms_highlight_edit_content_delete_audio);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_DELETE_VIDEO, mmi_jmms_highlight_edit_content_delete_video);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_DELETE_SLIDE, mmi_jmms_highlight_edit_content_delete_slide);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_IMAGE, mmi_jmms_highlight_edit_content_replace_image);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_AUDIO, mmi_jmms_highlight_edit_content_replace_audio);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_VIDEO, mmi_jmms_highlight_edit_content_replace_video);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_GOTO_NEXT, mmi_jmms_highlight_edit_content_goto_next);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_GOTO_PREVIOUS, mmi_jmms_highlight_edit_content_goto_previous);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_GOTO_SLIDE_LIST, mmi_jmms_highlight_edit_content_goto_slide_list);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SLIDE_TIME, mmi_jmms_highlight_edit_content_slide_time);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT, mmi_jmms_highlight_edit_content_text_settings);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL, mmi_jmms_highlight_edit_content_smil_settings);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_TEXT_TIME, mmi_jmms_highlight_smil_settings_text_timings);
- SetHiliteHandler(
- MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_IMAGE_TIME,
- mmi_jmms_highlight_smil_settings_image_timings);
- SetHiliteHandler(
- MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_AUDIO_TIME,
- mmi_jmms_highlight_smil_settings_audio_timings);
- SetHiliteHandler(
- MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_VIDEO_TIME,
- mmi_jmms_highlight_smil_settings_video_timings);
- SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_BGCOLOR, mmi_jmms_highlight_smil_settings_bg_color);
- #ifdef __MMI_UNIFIED_MESSAGE__
- mmi_um_jmms_set_folder_list_callback_function(mmi_um_jmms_dummy_folder_list_callback);
- #endif
- //#ifdef __MMI_MMS_SIGNATURE__
- mmi_jmms_reset_fw_flag_of_inbox();
- //#endif
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_attachment_insert
- * DESCRIPTION
- * highlight fn for menu option attachment->insert
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_attachment_insert(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_attachment_insert, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_attachment_insert, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_attachment_insert, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_attachment_delete
- * DESCRIPTION
- * highlight fn for menu option attachment->delete
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_attachment_delete(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_delete_attachment, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_edit_content_delete_attachment, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_edit_content_delete_attachment, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_attachment_attachment
- * DESCRIPTION
- * highlight fn for menu option attachment->insert->attachment
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_attachment_attachment(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_attachment, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_attachment, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_attachment, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_attachment_vcard
- * DESCRIPTION
- * highlight fn for menu option attachment->insert->vcard
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_attachment_vcard(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_attachment_insert_vcard, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_attachment_insert_vcard, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_attachment_insert_vcard, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_attachment_vcalendar
- * DESCRIPTION
- * highlight fn for menu option attachment->insert->vcalendar
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_attachment_vcalendar(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_attachment_insert_vcalender, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_attachment_insert_vcalender, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_attachment_insert_vcalender, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- #ifdef __MMI_VCARD__
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_attachment_vcard_fm
- * DESCRIPTION
- * highlight fn for menu option attachment->insert->vcard->file manager
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_attachment_vcard_fm(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_vcard, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_vcard, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_vcard, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_attachment_vcard_phb
- * DESCRIPTION
- * highlight fn for menu option attachment->insert->vacrd->phonebook
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_attachment_vcard_phb(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_insert_vcard_phb, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_insert_vcard_phb, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_insert_vcard_phb, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_attachment_my_vcard
- * DESCRIPTION
- * highlight fn for menu option attachment->insert->my vcard
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_attachment_my_vcard(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_insert_my_vcard, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_insert_my_vcard, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_insert_my_vcard, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- #endif /* __MMI_VCARD__ */
- #ifdef __MMI_TODOLIST__
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_attachment_vcal_todolist
- * DESCRIPTION
- * highlight fn for menu option attachment->insert->vaclendar->to do list
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_attachment_vcal_todolist(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_insert_vclndr_tdl, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_insert_vclndr_tdl, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_insert_vclndr_tdl, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- #endif /* __MMI_TODOLIST__ */
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_attachment_vcal_fm
- * DESCRIPTION
- * highlight fn for menu option attachment->insert->vcalendar->file manager
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_attachment_vcal_fm(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_vcalander, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_vcalander, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_vcalander, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_ip_method
- * DESCRIPTION
- * highlight fn for menu option edit content->input method
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_ip_method(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetInputMethodAndDoneCaptionIcon(GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID));
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(EntryInputMethodScreen, KEY_EVENT_UP);
- SetKeyHandler(EntryInputMethodScreen, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(EntryInputMethodScreen, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- RegisterInputMethodScreenCloseFunction(mmi_jmms_compose_go_back_history_ip_method);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_insert
- * DESCRIPTION
- * highlight fn for menu option edit content->insert
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_insert(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_insert, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_edit_content_insert, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_edit_content_insert, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_delete
- * DESCRIPTION
- * highlight fn for menu option edit content->delete
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_delete(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_delete, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_edit_content_delete, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_edit_content_delete, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_replace
- * DESCRIPTION
- * highlight fn for menu option edit content->replace
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_replace(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_replace, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_edit_content_replace, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_edit_content_replace, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_play_audio
- * DESCRIPTION
- * highlight fn for menu option edit content->play audio
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_play_audio(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_compose_play_audio, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_compose_play_audio, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_compose_play_audio, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_play_video
- * DESCRIPTION
- * highlight fn for menu option edit content->play video
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_play_video(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_compose_play_video, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_compose_play_video, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_compose_play_video, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_goto
- * DESCRIPTION
- * highlight fn for menu option edit content->goto
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_goto(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_goto, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_edit_content_goto, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_edit_content_goto, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_settings
- * DESCRIPTION
- * highlight fn for menu option edit content->settings
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_settings, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_edit_content_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_edit_content_settings, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_preview
- * DESCRIPTION
- * highlight fn for menu option edit content->preview
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_preview(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_pre_entry_mms_preview, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_pre_entry_mms_preview, KEY_WAP, KEY_EVENT_DOWN);
- /* MAUI_00018463 Start */
- // SetKeyHandler(mmi_jmms_pre_entry_mms_preview, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- /* MAUI_00018463 End */
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_done
- * DESCRIPTION
- * highlight fn for menu option edit content->done
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_done(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_pre_entry_mms_edit_content_done, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_pre_entry_mms_edit_content_done, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_pre_entry_mms_edit_content_done, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_pre_entry_mms_edit_content_done
- * DESCRIPTION
- * to go back to write mms screen
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_pre_entry_mms_edit_content_done(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_jmms_context->g_write_mms_right_soft_key = STR_GLOBAL_DONE;
- GoBackToHistory(SCR_ID_JMMS_WRITE_MMS);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_insert_image
- * DESCRIPTION
- * highlight fn for menu option edit content->insert->image
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_insert_image(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_image, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_image, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_image, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_insert_audio
- * DESCRIPTION
- * highlight fn for menu option edit content->insert->audio
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_insert_audio(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_audio, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_audio, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_audio, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_insert_video
- * DESCRIPTION
- * highlight fn for menu option edit content->insert->video
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_insert_video(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_video, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_video, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_filemgr_insert_video, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_insert_slide
- * DESCRIPTION
- * highlight fn for menu option edit content->insert->slide
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_insert_slide(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_edit_content_insert_slide, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_edit_content_insert_slide, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_edit_content_insert_slide, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_insert_contact
- * DESCRIPTION
- * highlight fn for menu option edit content->insert->contact
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_insert_contact(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_insert_phb_contact, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_insert_phb_contact, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_insert_phb_contact, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_delete_image
- * DESCRIPTION
- * highlight fn for menu option edit content->delete->image
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_delete_image(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_edit_content_delete_image, KEY_EVENT_UP);
- SetKeyHandler(NULL, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_delete_audio
- * DESCRIPTION
- * highlight fn for menu option edit content->delete->audio
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_delete_audio(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_edit_content_delete_audio, KEY_EVENT_UP);
- SetKeyHandler(NULL, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_delete_video
- * DESCRIPTION
- * highlight fn for menu option edit content->delete->video
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_delete_video(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_edit_content_delete_video, KEY_EVENT_UP);
- SetKeyHandler(NULL, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_delete_slide
- * DESCRIPTION
- * highlight fn for menu option edit content->delete->slide
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_delete_slide(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_edit_content_delete_slide, KEY_EVENT_UP);
- SetKeyHandler(NULL, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_replace_image
- * DESCRIPTION
- * highlight fn for menu option edit content->replace->image
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_replace_image(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_replace_image, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_replace_image, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_replace_image, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_replace_audio
- * DESCRIPTION
- * highlight fn for menu option edit content->replace->audio
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_replace_audio(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_replace_audio, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_replace_audio, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_replace_audio, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_replace_video
- * DESCRIPTION
- * highlight fn for menu option edit content->replace->video
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_replace_video(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_replace_video, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_replace_video, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_replace_video, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_goto_next
- * DESCRIPTION
- * highlight fn for menu option edit content->goto->next slide
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_goto_next(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_edit_content_next_slide, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_edit_content_next_slide, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_edit_content_next_slide, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_goto_previous
- * DESCRIPTION
- * highlight fn for menu option edit content->goto->previous slide
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_goto_previous(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_edit_content_prev_slide, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_edit_content_prev_slide, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_edit_content_prev_slide, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_goto_slide_list
- * DESCRIPTION
- * highlight fn for menu option edit content->goto->slide list
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_goto_slide_list(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_goto_slide_list, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_goto_slide_list, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_goto_slide_list, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_slide_time
- * DESCRIPTION
- * highlight fn for menu option edit content->slide time settings
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_slide_time(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_pre_entry_edit_content_slide_time, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_pre_entry_edit_content_slide_time, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_text_settings
- * DESCRIPTION
- * highlight fn for menu option edit content->text settings
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_text_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_pre_entry_edit_content_text_settings, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_pre_entry_edit_content_text_settings, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_pre_entry_edit_content_text_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_edit_content_smil_settings
- * DESCRIPTION
- * highlight fn for menu option edit content->smil settings
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_edit_content_smil_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_smil_settings, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_edit_content_smil_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_edit_content_smil_settings, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_smil_settings_text_timings
- * DESCRIPTION
- * highlight fn for menu option edit content->smil settings->text timings
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_smil_settings_text_timings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_pre_entry_text_timing_settings, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_pre_entry_text_timing_settings, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_pre_entry_text_timing_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_smil_settings_image_timings
- * DESCRIPTION
- * highlight fn for menu option edit content->smil settings->image timings
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_smil_settings_image_timings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_pre_entry_image_timing_settings, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_pre_entry_image_timing_settings, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_pre_entry_image_timing_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_smil_settings_audio_timings
- * DESCRIPTION
- * highlight fn for menu option edit content->smil settings->audio timings
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_smil_settings_audio_timings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_pre_entry_audio_timing_settings, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_pre_entry_audio_timing_settings, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_pre_entry_audio_timing_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_smil_settings_video_timings
- * DESCRIPTION
- * highlight fn for menu option edit content->smil settings->video timings
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_smil_settings_video_timings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_pre_entry_video_timing_settings, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_pre_entry_video_timing_settings, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_pre_entry_video_timing_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_highlight_smil_settings_bg_color
- * DESCRIPTION
- * highlight fn for menu option edit content->smil settings->back ground color
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_highlight_smil_settings_bg_color(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
- ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_jmms_entry_smil_bg_color_settings, KEY_EVENT_UP);
- SetKeyHandler(mmi_jmms_entry_smil_bg_color_settings, KEY_WAP, KEY_EVENT_DOWN);
- SetKeyHandler(mmi_jmms_entry_smil_bg_color_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_attachment_options
- * DESCRIPTION
- * Entry function when user want to edit attachments.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_attachment_options(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 */
- /*----------------------------------------------------------------*/
- /* Himanshu Fix MAUI_00228900 START */
- if(g_jmms_context && g_jmms_context->compose_context)
- {
- g_jmms_context->compose_context->from_jmms_app = 0;
- }
- /* Himanshu Fix MAUI_00228900 END */
- #ifdef __DRM_SUPPORT__
- if (mmi_jmms_is_drm_fwd_lock_media_in_mms(g_jmms_context->msg_handle, E_TRUE) == E_TRUE)
- {
- return;
- }
- #endif
- EntryNewScreen(SCR_ID_JMMS_ATTACHMENT_OPTIONS, NULL, mmi_jmms_entry_attachment_options, NULL);
- parent_id = MENU_ID_JMMS_ATTACHMENT_OPTIONS;
- SetParentHandler(parent_id);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_ATTACHMENT_OPTIONS);
- if (g_jmms_context->num_attachments > 0)
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_ATTACHMENT_DELETE);
- }
- else
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_ATTACHMENT_DELETE);
- }
- disp_Attribute = GetDispAttributeOfItem(parent_id);
- num_item = GetNumOfChild_Ext(parent_id);
- GetSequenceStringIds_Ext(parent_id, str_item_list);
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- ShowCategory52Screen(
- STR_GLOBAL_OPTIONS,
- 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(GoBacktoWriteMMS, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_attachment_insert
- * DESCRIPTION
- * Entry function when user want to insert attachments.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_attachment_insert(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 */
- /*----------------------------------------------------------------*/
- /* MAUI_00228376 Start */
- if(g_jmms_context->num_attachments >= JMMS_MAX_ATTACHMENTS_LIMIT)
- {
- DisplayPopup((PU8) GetString(STR_ID_MAX_ATTACHMENT_LIMIT),IMG_GLOBAL_ERROR, 1, JMMS_POPUP_TIME, ERROR_TONE);
- return;
- }
- /* MAUI_00228376 End */
- //#if (!defined (__MMI_VCARD__) && !defined (__MMI_VCALENDAR__))
- // mmi_jmms_entry_filemgr_insert_attachment();
- //#else /* (!defined (__MMI_VCARD__) && !defined (__MMI_VCALENDAR__)) */
- EntryNewScreen(SCR_ID_JMMS_ATTACHMENT_INSERT, NULL, mmi_jmms_entry_attachment_insert, NULL);
- parent_id = MENU_ID_JMMS_ATTACHMENT_INSERT;
- SetParentHandler(parent_id);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_ATTACHMENT_INSERT);
- num_item = GetNumOfChild(parent_id);
- disp_Attribute = GetDispAttributeOfItem(parent_id);
- GetSequenceStringIds(parent_id, str_item_list);
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- ShowCategory52Screen(
- STR_GLOBAL_OPTIONS,
- 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);
- //#endif /* (!defined (__MMI_VCARD__) && !defined (__MMI_VCALENDAR__)) */
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_attachment_insert_vcard
- * DESCRIPTION
- * Entry function when user want to insert Vcard.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_attachment_insert_vcard(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_ATTACHMENT_VCARD, NULL, mmi_jmms_entry_attachment_insert_vcard, NULL);
- parent_id = MENU_ID_JMMS_ATTACHMENT_VCARD;
- SetParentHandler(parent_id);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_ATTACHMENT_VCARD);
- num_item = GetNumOfChild(parent_id);
- disp_Attribute = GetDispAttributeOfItem(parent_id);
- GetSequenceStringIds(parent_id, str_item_list);
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- ShowCategory52Screen(
- STR_GLOBAL_OPTIONS,
- 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_entry_attachment_insert_vcalender
- * DESCRIPTION
- * Entry function when user want to insert vcalendar.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_attachment_insert_vcalender(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_ATTACHMENT_VCALENDAR, NULL, mmi_jmms_entry_attachment_insert_vcalender, NULL);
- parent_id = MENU_ID_JMMS_ATTACHMENT_VCALENDAR;
- SetParentHandler(parent_id);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_ATTACHMENT_VCALENDAR);
- num_item = GetNumOfChild(parent_id);
- disp_Attribute = GetDispAttributeOfItem(parent_id);
- GetSequenceStringIds(parent_id, str_item_list);
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- ShowCategory52Screen(
- STR_GLOBAL_OPTIONS,
- 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_show_edit_content_option
- * DESCRIPTION
- * Entry function for edit content options
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_show_edit_content_option(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (mmi_jmms_exit_curr_slide() == JMMS_COMP_POPUP_OK)
- {
- history *temphistory_p;
- temphistory_p = (history*) jdd_MemAlloc(sizeof(history), 1);
- if (temphistory_p == NULL)
- {
- DisplayPopup((PU8) GetString(STR_ID_JMMS_OUT_OF_MEMORY), IMG_GLOBAL_ERROR, 1, JMMS_POPUP_TIME, ERROR_TONE);
- }
- else
- {
- memset(temphistory_p, 0, sizeof(history));
- temphistory_p->scrnID = SCR_ID_JMMS_EDIT_CONTENT_OPTIONS;
- temphistory_p->entryFuncPtr = mmi_jmms_entry_edit_content_option;
- AddHistory(*temphistory_p);
- jdd_MemFree(temphistory_p);
- }
- }
- else
- {
- mmi_jmms_entry_edit_content_option();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_edit_content_option
- * DESCRIPTION
- * Entry function for edit content options
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_edit_content_option(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;
- U8 total_media_count = 0;
- U8 page_count;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_OPTIONS, NULL, mmi_jmms_entry_edit_content_option, NULL);
- parent_id = MENU_ID_JMMS_EDIT_CONTENT_OPTIONS;
- SetParentHandler(parent_id);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_OPTIONS);
- disp_Attribute = GetDispAttributeOfItem(parent_id);
- if (g_jmms_context->compose_context->curr_slide_info.audio_ID == 0)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_PLAY_AUDIO);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_PLAY_AUDIO);
- }
- if (g_jmms_context->compose_context->curr_slide_info.video_ID == 0)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_PLAY_VIDEO);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_PLAY_VIDEO);
- }
- mmi_jmms_jdi_get_total_pages(g_jmms_context->msg_handle, &page_count);
- if (page_count <= 1)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO);
- }
- /* to count total medias present in a slide. */
- if (g_jmms_context->compose_context->curr_slide_info.image_ID != 0)
- {
- total_media_count++;
- }
- if (g_jmms_context->compose_context->curr_slide_info.audio_ID != 0)
- {
- total_media_count++;
- }
- if (g_jmms_context->compose_context->curr_slide_info.video_ID != 0)
- {
- total_media_count++;
- }
- if (total_media_count == 0)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE);
- }
- if (total_media_count == 0 && page_count <= 1)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE);
- }
- num_item = GetNumOfChild_Ext(parent_id);
- GetSequenceStringIds_Ext(parent_id, str_item_list);
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- ShowCategory52Screen(
- STR_GLOBAL_OPTIONS,
- 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_entry_edit_content_insert
- * DESCRIPTION
- * Entry function when user press edit content->insert.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_edit_content_insert(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_INSERT, NULL, mmi_jmms_entry_edit_content_insert, NULL);
- parent_id = MENU_ID_JMMS_EDIT_CONTENT_INSERT;
- SetParentHandler(parent_id);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_INSERT);
- num_item = GetNumOfChild(parent_id);
- disp_Attribute = GetDispAttributeOfItem(parent_id);
- GetSequenceStringIds(parent_id, str_item_list);
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- ShowCategory52Screen(
- STR_GLOBAL_OPTIONS,
- 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_entry_edit_content_delete
- * DESCRIPTION
- * Entry function when user press edit content->delete.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_edit_content_delete(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;
- U8 page_count;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_DELETE, NULL, mmi_jmms_entry_edit_content_delete, NULL);
- parent_id = MENU_ID_JMMS_EDIT_CONTENT_DELETE;
- SetParentHandler(parent_id);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_DELETE);
- disp_Attribute = GetDispAttributeOfItem(parent_id);
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- if (g_jmms_context->compose_context->curr_slide_info.image_ID == 0)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_IMAGE);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_IMAGE);
- }
- if (g_jmms_context->compose_context->curr_slide_info.audio_ID == 0)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_AUDIO);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_AUDIO);
- }
- if (g_jmms_context->compose_context->curr_slide_info.video_ID == 0)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_VIDEO);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_VIDEO);
- }
- mmi_jmms_jdi_get_total_pages(g_jmms_context->msg_handle, &page_count);
- if (page_count <= 1)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_SLIDE);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_SLIDE);
- }
- num_item = GetNumOfChild_Ext(parent_id);
- GetSequenceStringIds_Ext(parent_id, str_item_list);
- ShowCategory52Screen(
- STR_GLOBAL_OPTIONS,
- 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_entry_edit_content_replace
- * DESCRIPTION
- * Entry function when user press edit content->replace.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_edit_content_replace(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_REPLACE, NULL, mmi_jmms_entry_edit_content_replace, NULL);
- parent_id = MENU_ID_JMMS_EDIT_CONTENT_REPLACE;
- SetParentHandler(parent_id);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_REPLACE);
- disp_Attribute = GetDispAttributeOfItem(parent_id);
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- if (g_jmms_context->compose_context->curr_slide_info.image_ID == 0)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_IMAGE);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_IMAGE);
- }
- if (g_jmms_context->compose_context->curr_slide_info.audio_ID == 0)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_AUDIO);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_AUDIO);
- }
- if (g_jmms_context->compose_context->curr_slide_info.video_ID == 0)
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_VIDEO);
- }
- else
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_VIDEO);
- }
- num_item = GetNumOfChild_Ext(parent_id);
- GetSequenceStringIds_Ext(parent_id, str_item_list);
- ShowCategory52Screen(
- STR_GLOBAL_OPTIONS,
- 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_entry_edit_content_goto
- * DESCRIPTION
- * Entry function when user press edit content->goto.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_edit_content_goto(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;
- U8 page_count;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- mmi_jmms_jdi_get_total_pages(g_jmms_context->msg_handle, &page_count);
- EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_GOTO, NULL, mmi_jmms_entry_edit_content_goto, NULL);
- parent_id = MENU_ID_JMMS_EDIT_CONTENT_GOTO;
- SetParentHandler(parent_id);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_GOTO);
- num_item = GetNumOfChild(parent_id);
- disp_Attribute = GetDispAttributeOfItem(parent_id);
- GetSequenceStringIds(parent_id, str_item_list);
- RegisterHighlightHandler(ExecuteCurrHiliteHandler);
- if (g_jmms_context->compose_context->curr_page_index > 1)
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO_PREVIOUS);
- }
- else
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO_PREVIOUS);
- }
- if (page_count > g_jmms_context->compose_context->curr_page_index)
- {
- mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO_NEXT);
- }
- else
- {
- mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO_NEXT);
- }
- num_item = GetNumOfChild_Ext(parent_id);
- GetSequenceStringIds_Ext(parent_id, str_item_list);
- ShowCategory52Screen(
- STR_ID_JMMS_SLIDE_LIST,
- 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_entry_edit_content_settings
- * DESCRIPTION
- * Entry function when user press edit content->SETTINGS.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_edit_content_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 */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s ", "mmi_jmms_entry_edit_content_settings"));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d", "Compose context Values: Text Size of compose context is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.size));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d", "Compose context Values: Italic Selection of compose context is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.italic));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d", "Compose context Values: Bold Selection of compose context is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.bold));
- EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_SETTINGS, NULL, mmi_jmms_entry_edit_content_settings, NULL);
- parent_id = MENU_ID_JMMS_EDIT_CONTENT_SETTINGS;
- SetParentHandler(parent_id);
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_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,
- 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_edit_content_text_settings
- * DESCRIPTION
- * pre Entry function when user press edit content->SETTINGS->text settings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_pre_entry_edit_content_text_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s ", "mmi_jmms_pre_entry_edit_content_text_settings "));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "Previous Set Values: Text Size of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.size, g_jmms_context->jmms_inline_items.text_settings_items.size_selected));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "Previous Set Values: Italic Selection of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.italic, g_jmms_context->jmms_inline_items.text_settings_items.italic_selected));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "Previous Set Values: Bold Selection of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.bold, g_jmms_context->jmms_inline_items.text_settings_items.bold_selected));
- if (g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.size == SMALL_FONT)
- {
- g_jmms_context->jmms_inline_items.text_settings_items.size_selected = SIZE_SMALL;
- }
- else if (g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.size == LARGE_FONT)
- {
- g_jmms_context->jmms_inline_items.text_settings_items.size_selected = SIZE_LARGE;
- }
- else
- {
- g_jmms_context->jmms_inline_items.text_settings_items.size_selected = SIZE_NORMAL;
- }
- g_jmms_context->jmms_inline_items.text_settings_items.italic_selected =
- g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.italic;
- g_jmms_context->jmms_inline_items.text_settings_items.bold_selected =
- g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.bold;
- for (count = 0;
- g_jmms_context->compose_context->curr_slide_info.slide_prop.text_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;
- g_text_custom_color_RGB = g_jmms_context->compose_context->curr_slide_info.slide_prop.text_color; /* sanjeev added */
- }
- else
- {
- g_jmms_context->jmms_inline_items.text_settings_items.color_selected = count;
- g_text_custom_color_RGB = 100; /* sanjeev added */
- }
- g_custom_var_change = 0;
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "After Set Values: Text Size of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.size, g_jmms_context->jmms_inline_items.text_settings_items.size_selected));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "After Set Values: Italic Selection of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.italic, g_jmms_context->jmms_inline_items.text_settings_items.italic_selected));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "After Set Values: Bold Selection of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.bold, g_jmms_context->jmms_inline_items.text_settings_items.bold_selected));
- mmi_jmms_entry_edit_content_text_settings();
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_edit_content_text_settings
- * DESCRIPTION
- * Entry function when user press edit content->SETTINGS->text settings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_edit_content_text_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *gui_buffer;
- U8 *input_buffer;
- U16 input_buffer_size;
- U16 parent_id;
- U16 num_item; /* Stores no of children in the submenu */
- InlineItem text_settings_inline_edit_list[8];
- MMI_ID_TYPE item_icons[] =
- {
- IMG_GLOBAL_L1,
- 0,
- IMG_GLOBAL_L2,
- 0,
- IMG_GLOBAL_L3,
- 0,
- IMG_GLOBAL_L4,
- 0,
- };
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_TEXT_SETTINGS, mmi_mms_exit_text_settings, NULL, NULL);
- parent_id = MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT;
- gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_TEXT_SETTINGS);
- input_buffer = GetCurrNInputBuffer(SCR_ID_JMMS_EDIT_CONTENT_TEXT_SETTINGS, &input_buffer_size);
- SetParentHandler(parent_id);
- num_item = GetNumOfChild(parent_id);
- InitializeCategory57Screen();
- mmi_jmms_fill_txt_setting_inline_edit_struct((void*)text_settings_inline_edit_list);
- if (input_buffer != NULL) /* added for inline edit history */
- {
- SetCategory57Data(text_settings_inline_edit_list, num_item, 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_SETTINGS_TEXT,
- GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
- STR_GLOBAL_EDIT,
- IMG_GLOBAL_OK,
- STR_GLOBAL_DONE,
- IMG_GLOBAL_BACK,
- num_item * 2,
- (PU16) item_icons,
- text_settings_inline_edit_list,
- 0,
- gui_buffer);
- SetCategory57RightSoftkeyFunctions(mmi_jmms_confirm_save_txt_settings, GoBackHistory);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_mms_exit_text_settings
- * DESCRIPTION
- * Exit function when user press edit content->SETTINGS.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_mms_exit_text_settings(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_EDIT_CONTENT_TEXT_SETTINGS;
- scr.entryFuncPtr = mmi_jmms_entry_edit_content_text_settings;
- 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_txt_setting_inline_edit_struct
- * DESCRIPTION
- * this fn will fill the inline struct of text settings
- * PARAMETERS
- * inline_edit_p [OUT]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_fill_txt_setting_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[1] = (S8*) GetString(STR_GLOBAL_ON);
- g_jmms_context->jmms_inline_lists->on_off_list[0] = (S8*) GetString(STR_GLOBAL_OFF);
- g_jmms_context->jmms_inline_items.text_settings_items.size_list[0] =
- (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_SIZE_SMALL);
- g_jmms_context->jmms_inline_items.text_settings_items.size_list[1] =
- (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_SIZE_MEDIUM);
- g_jmms_context->jmms_inline_items.text_settings_items.size_list[2] =
- (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_SIZE_LARGE);
- 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);
- SetInlineItemActivation(&inline_struct_p[item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
- SetInlineItemCaption(
- &inline_struct_p[item_offset],
- (PU8) (U8*) GetString(STR_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT_SIZE));
- SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
- SetInlineItemSelect(
- &inline_struct_p[item_offset],
- 3,
- (U8 **) g_jmms_context->jmms_inline_items.text_settings_items.size_list,
- (S32*) & (g_jmms_context->jmms_inline_items.text_settings_items.size_selected) /* CurrSelect */ );
- SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
- SetInlineItemCaption(
- &inline_struct_p[item_offset],
- (PU8) (U8*) GetString(STR_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT_ITALIC));
- 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.text_settings_items.italic_selected) /* CurrSelect */ );
- SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
- SetInlineItemCaption(
- &inline_struct_p[item_offset],
- (PU8) (U8*) GetString(STR_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT_BOLD));
- 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.text_settings_items.bold_selected) /* CurrSelect */ );
- SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
- SetInlineItemCaption(
- &inline_struct_p[item_offset],
- (PU8) (U8*) GetString(STR_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT_COLOR));
- SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
- SetInlineItemSelect(
- &inline_struct_p[item_offset],
- MAX_JMMS_COLOR_NUM,
- (U8 **) g_jmms_context->jmms_inline_items.text_settings_items.color_list,
- (S32*) & (g_jmms_context->jmms_inline_items.text_settings_items.color_selected) /* CurrSelect */ );
- RegisterInlineSelectHighlightHandler(&inline_struct_p[item_offset], mmi_jmms_inline_text_color_hilite_handler);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_confirm_save_txt_settings
- * DESCRIPTION
- * fn shown confirmation popup when user press done on text settings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_confirm_save_txt_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- 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_txt_settings, KEY_EVENT_UP);
- SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
- DeleteUptoScrID(SCR_ID_JMMS_EDIT_CONTENT_SETTINGS);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_save_txt_settings
- * DESCRIPTION
- * fn to be called when user press yes on text settings.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_save_txt_settings(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
- slide_prop_struct curr_slide_prop;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memcpy(&curr_slide_prop, &g_jmms_context->compose_context->curr_slide_info.slide_prop, sizeof(slide_prop_struct));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s ", "mmi_jmms_save_txt_settings"));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "Previous Save Values: Text Size of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.size, g_jmms_context->jmms_inline_items.text_settings_items.size_selected));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "Previous Save Values: Italic Selection of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.italic, g_jmms_context->jmms_inline_items.text_settings_items.italic_selected));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "Previous Save Values: Bold Selection of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.bold, g_jmms_context->jmms_inline_items.text_settings_items.bold_selected));
- if (g_jmms_context->jmms_inline_items.text_settings_items.size_selected == SIZE_SMALL)
- {
- curr_slide_prop.text_font.size = SMALL_FONT;
- }
- else if (g_jmms_context->jmms_inline_items.text_settings_items.size_selected == SIZE_LARGE)
- {
- curr_slide_prop.text_font.size = LARGE_FONT;
- }
- else
- {
- curr_slide_prop.text_font.size = MEDIUM_FONT;
- }
- curr_slide_prop.text_font.italic = g_jmms_context->jmms_inline_items.text_settings_items.italic_selected;
- curr_slide_prop.text_font.bold = g_jmms_context->jmms_inline_items.text_settings_items.bold_selected;
- if (g_jmms_context->jmms_inline_items.text_settings_items.color_selected < MAX_JMMS_COLOR_NUM - 1)
- {
- curr_slide_prop.text_color =
- g_jmms_color_RGB_list[g_jmms_context->jmms_inline_items.text_settings_items.color_selected];
- }
- else
- {
- curr_slide_prop.text_color = g_text_custom_color_RGB;
- }
- if (g_jmms_context->compose_context->curr_slide_info.text_ID != 0)
- {
- err_code = mmi_jmms_set_text_attributes(
- g_jmms_context->compose_context->curr_slide_info.text_ID,
- g_jmms_context->compose_context->curr_page_index,
- &curr_slide_prop);
- if (err_code == JMMS_COMP_OK)
- {
- memcpy(
- &g_jmms_context->compose_context->curr_slide_info.slide_prop,
- &curr_slide_prop,
- sizeof(slide_prop_struct));
- DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JMMS_POPUP_TIME, SUCCESS_TONE);
- }
- }
- else
- {
- memcpy(
- &g_jmms_context->compose_context->curr_slide_info.slide_prop,
- &curr_slide_prop,
- sizeof(slide_prop_struct));
- DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JMMS_POPUP_TIME, SUCCESS_TONE);
- }
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "After Save Values: Text Size of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.size, g_jmms_context->jmms_inline_items.text_settings_items.size_selected));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "After Save Values: Italic Selection of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.italic, g_jmms_context->jmms_inline_items.text_settings_items.italic_selected));
- PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s %d %d", "After Save Values: Bold Selection of compose context and inline item is: ", g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.bold, g_jmms_context->jmms_inline_items.text_settings_items.bold_selected));
- DeleteUptoScrID(SCR_ID_JMMS_EDIT_CONTENT);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_inline_text_color_hilite_handler
- * DESCRIPTION
- * fn to be called when color is highlited in text settings.
- * PARAMETERS
- * index [IN]
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_inline_text_color_hilite_handler(S32 index)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (index == MAX_JMMS_COLOR_NUM - 1)
- {
- ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
- SetCategory57LeftSoftkeyFunction(mmi_jmms_entry_txt_custom_color);
- }
- else
- {
- ChangeLeftSoftkey(0, 0);
- ClearKeyHandler(KEY_LSK, KEY_EVENT_UP);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_jmms_entry_txt_custom_color
- * DESCRIPTION
- * entry fn for custom color screen.
- * PARAMETERS
- * void
- * a(?) [IN/OUT] Nil(?)
- * b(?) [IN] Nil(?)
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_jmms_entry_txt_custom_color(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *gui_buffer;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(SCR_ID_JMMS_CUSTOM_COLOR, NULL, mmi_jmms_entry_txt_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 */
- g_custom_color_RGB_list[0] = (U8) ((0xFF000000 & g_text_custom_color_RGB) >> 24);
- g_custom_color_RGB_list[1] = (U8) ((0x00FF0000 & g_text_custom_color_RGB) >> 16);
- g_custom_color_RGB_list[2] = (U8) ((0x0000FF00 & g_text_custom_color_RGB) >> 8);
- ShowCategory91Screen(