JMMSComposeUI.c
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:366k
源码类别:

MTK

开发平台:

C/C++

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2002
  8. *
  9. *****************************************************************************/
  10. /*****************************************************************************
  11.  *
  12.  * Filename:
  13.  * ---------
  14.  * mms_compose.C
  15.  *
  16.  * Project:
  17.  * --------
  18.  *   MAUI
  19.  *
  20.  * Description:
  21.  * ------------
  22.  *   
  23.  *
  24.  * Author:
  25.  * -------
  26.  * -------
  27.  *
  28.  *============================================================================
  29.  *             HISTORY
  30.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  31.  *------------------------------------------------------------------------------
  32.  * removed!
  33.  * removed!
  34.  * removed!
  35.  *
  36.  * removed!
  37.  * removed!
  38.  * removed!
  39.  *
  40.  * removed!
  41.  * removed!
  42.  * removed!
  43.  *
  44.  * removed!
  45.  * removed!
  46.  * removed!
  47.  *
  48.  * removed!
  49.  * removed!
  50.  * removed!
  51.  *
  52.  * removed!
  53.  * removed!
  54.  * removed!
  55.  *
  56.  * removed!
  57.  * removed!
  58.  * removed!
  59.  *
  60.  * removed!
  61.  * removed!
  62.  * removed!
  63.  *
  64.  * removed!
  65.  * removed!
  66.  * removed!
  67.  *
  68.  * removed!
  69.  * removed!
  70.  * removed!
  71.  *
  72.  * removed!
  73.  * removed!
  74.  * removed!
  75.  *
  76.  * removed!
  77.  * removed!
  78.  * removed!
  79.  *
  80.  * removed!
  81.  * removed!
  82.  * removed!
  83.  *
  84.  * removed!
  85.  * removed!
  86.  * removed!
  87.  *
  88.  * removed!
  89.  * removed!
  90.  * removed!
  91.  *
  92.  * removed!
  93.  * removed!
  94.  * removed!
  95.  *
  96.  * removed!
  97.  * removed!
  98.  * removed!
  99.  *
  100.  * removed!
  101.  * removed!
  102.  * removed!
  103.  *
  104.  * removed!
  105.  * removed!
  106.  * removed!
  107.  *
  108.  * removed!
  109.  * removed!
  110.  * removed!
  111.  *
  112.  * removed!
  113.  * removed!
  114.  * removed!
  115.  *
  116.  * removed!
  117.  * removed!
  118.  * removed!
  119.  *
  120.  * removed!
  121.  * removed!
  122.  * removed!
  123.  *
  124.  * removed!
  125.  * removed!
  126.  * removed!
  127.  *
  128.  * removed!
  129.  * removed!
  130.  * removed!
  131.  *
  132.  * removed!
  133.  * removed!
  134.  * removed!
  135.  *
  136.  * removed!
  137.  * removed!
  138.  * removed!
  139.  *
  140.  * removed!
  141.  * removed!
  142.  * removed!
  143.  *
  144.  * removed!
  145.  * removed!
  146.  * removed!
  147.  *
  148.  * removed!
  149.  * removed!
  150.  * removed!
  151.  *
  152.  * removed!
  153.  * removed!
  154.  * removed!
  155.  *
  156.  * removed!
  157.  * removed!
  158.  * removed!
  159.  *
  160.  * removed!
  161.  * removed!
  162.  * removed!
  163.  *
  164.  * removed!
  165.  * removed!
  166.  * removed!
  167.  *
  168.  * removed!
  169.  * removed!
  170.  * removed!
  171.  *
  172.  * removed!
  173.  * removed!
  174.  * removed!
  175.  *
  176.  * removed!
  177.  * removed!
  178.  * removed!
  179.  *
  180.  * removed!
  181.  * removed!
  182.  * removed!
  183.  *
  184.  * removed!
  185.  * removed!
  186.  * removed!
  187.  *
  188.  * removed!
  189.  * removed!
  190.  * removed!
  191.  *
  192.  * removed!
  193.  * removed!
  194.  * removed!
  195.  *
  196.  * removed!
  197.  * removed!
  198.  * removed!
  199.  *
  200.  * removed!
  201.  * removed!
  202.  * removed!
  203.  *
  204.  * removed!
  205.  * removed!
  206.  * removed!
  207.  *
  208.  * removed!
  209.  * removed!
  210.  * removed!
  211.  *
  212.  * removed!
  213.  * removed!
  214.  * removed!
  215.  *
  216.  * removed!
  217.  * removed!
  218.  * removed!
  219.  *
  220.  * removed!
  221.  * removed!
  222.  * removed!
  223.  *
  224.  * removed!
  225.  * removed!
  226.  * removed!
  227.  *
  228.  * removed!
  229.  * removed!
  230.  * removed!
  231.  *
  232.  * removed!
  233.  * removed!
  234.  * removed!
  235.  *
  236.  * removed!
  237.  * removed!
  238.  * removed!
  239.  *
  240.  * removed!
  241.  * removed!
  242.  * removed!
  243.  *
  244.  * removed!
  245.  * removed!
  246.  * removed!
  247.  *
  248.  * removed!
  249.  * removed!
  250.  * removed!
  251.  *
  252.  * removed!
  253.  * removed!
  254.  * removed!
  255.  *
  256.  * removed!
  257.  * removed!
  258.  * removed!
  259.  *
  260.  * removed!
  261.  * removed!
  262.  * removed!
  263.  *
  264.  * removed!
  265.  * removed!
  266.  * removed!
  267.  *
  268.  * removed!
  269.  * removed!
  270.  * removed!
  271.  *
  272.  * removed!
  273.  * removed!
  274.  * removed!
  275.  *
  276.  * removed!
  277.  * removed!
  278.  * removed!
  279.  *
  280.  * removed!
  281.  * removed!
  282.  * removed!
  283.  *
  284.  * removed!
  285.  * removed!
  286.  * removed!
  287.  *
  288.  * removed!
  289.  * removed!
  290.  * removed!
  291.  *
  292.  * removed!
  293.  * removed!
  294.  * removed!
  295.  *
  296.  * removed!
  297.  * removed!
  298.  * removed!
  299.  * removed!
  300.  *
  301.  * removed!
  302.  * removed!
  303.  * removed!
  304.  *
  305.  * removed!
  306.  * removed!
  307.  * removed!
  308.  *
  309.  *------------------------------------------------------------------------------
  310.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  311.  *============================================================================
  312.  ****************************************************************************/
  313. #include "MMI_features.h"
  314. #if (defined (JATAAYU_SUPPORT) && defined(MMS_SUPPORT))
  315. /*  Include: MMI header file */
  316. #include "stdC.h"
  317. #include "L4Dr1.h"
  318. #include "PixtelDataTypes.h"
  319. #include "JMMSCompose.h"
  320. #include "JMMSResEnum.h"
  321. #include "JMMSExdcl.h"
  322. #include "Globaldefs.h"
  323. #include "GlobalMenuItems.h"
  324. #include "GlobalConstants.h"
  325. #include "EventsGprot.h"
  326. #include "HistoryGprot.h"
  327. #include "CommonScreens.h"
  328. #include "wgui_categories.h"
  329. #include "SettingProfile.h"
  330. #include "wgui_categories_PE.h"
  331. #include "wgui_categories_inputsenum.h"
  332. #include "wgui_categories_inputs.h"
  333. #include "wgui_categories_MMS.h"
  334. #include "wgui.h"
  335. #include "MessagesResourceData.h"
  336. #include "JMMSView.h"
  337. #include "JMMSInbox.h"
  338. #include "FileManagerGProt.h"
  339. #ifdef __MMI_FILE_MANAGER__
  340. #include "FileMgr.h"
  341. #endif 
  342. #include "JMMSCoreAPI.h"
  343. #include "ddlbase.h"
  344. #include "JMMSGdcl.h"
  345. #include "jcutils.h"
  346. #include "ddlutils.h"
  347. #include "ddl.h"
  348. #include "jdi_MMSErr.h"
  349. #include "jcerror.h"
  350. #include "ddl.h"
  351. #include "FileSystemDef.h"
  352. #include "FileManagerDef.h"
  353. #include "FileSystemGProt.h"
  354. #include "fs_type.h"
  355. #include "fs_func.h"
  356. #include "fs_errcode.h"
  357. #include "FileMgr.h"
  358. #include "jdd_memapi.h"
  359. #include "JMMSGprot.h"
  360. #include "ToDoListDef.h"
  361. #include "FontRes.h"
  362. #include "vCard.h"
  363. #include "PhoneBookDef.h"
  364. #include "PhoneBookGprot.h"
  365. #include "PhoneBookTypes.h"
  366. #include "MainMenuDef.h"
  367. #include "NVRAMEnum.h"
  368. #include "NVRAMProt.h"
  369. #include "jMMSDRMHandler.h"
  370. #include "DebugInitDef.h"
  371. /* PMT VIKAS START 20060502 */
  372. #if defined(__MMI_AUDIO_PLAYER__) || defined (_MMI_VIDEO_PLAYER__)
  373. #include "PixtelDataTypes.h"    /* dependent headers for AudioPlayerProt.h" */
  374. #include "mdi_datatype.h"       /* dependent headers for AudioPlayerProt.h" */
  375. #endif /* defined(__MMI_AUDIO_PLAYER__) || defined (_MMI_VIDEO_PLAYER__) */ 
  376. #if defined(__MMI_AUDIO_PLAYER__)
  377. #include "AudioPlayerProt.h"
  378. #endif 
  379. #ifdef __MMI_VIDEO_PLAYER__
  380. #include "mdi_video.h"
  381. #include "jdd_videoapi.h"
  382. /* PMT VIKAS END 20060502 */
  383. #endif /* __MMI_VIDEO_PLAYER__ */ 
  384. #include "wgui_categories_multimedia.h"
  385. #include "JMMSMessageSettingsUtils.h"
  386. #include "jdd_fileapi.h"
  387. #include  "lcd_sw_rnd.h"
  388. #include "custom_wap_config.h"
  389. #ifdef __MMI_UNIFIED_MESSAGE__
  390. #include "JMMSUMHandling.h"
  391. #endif 
  392. #include "CallManagementGprot.h"
  393. /*  Include: PS header file */
  394. /* ... Add More PS header */
  395. extern MMI_ALERT_TYPE GetMtCallAlertTypeEnum(void);
  396. static FuncPtr g_add_media_hdlr;
  397. MMI_BOOL is_add_media_as_drm;
  398. /* IMPORTANT - If you add an entry in this table, increemnt MAX_NON_ATTACH_FILE_TYPE count as well */
  399. #define MAX_NON_ATTACH_FILE_TYPE    5
  400. const fmgr_filter_struct g_jmms_non_attach_filter[MAX_NON_ATTACH_FILE_TYPE] = 
  401. {
  402.     {FMGR_TYPE_EMS, "EMS"},
  403.     {FMGR_TYPE_ANM, "ANM"},
  404.     {FMGR_TYPE_DCF, "DCF"},
  405.     {FMGR_TYPE_DM,  "DM"},
  406.     {FMGR_TYPE_SVG, "SVG"}
  407. };
  408. extern const fmgr_filter_struct fmgr_filter[FMGR_MAX_FILTER_COUNT];
  409. /***************************************************************************** 
  410. * Define
  411. *****************************************************************************/
  412. /***************************************************************************** 
  413. * Typedef 
  414. *****************************************************************************/
  415. /***************************************************************************** 
  416. * Local static Variable
  417. *****************************************************************************/
  418. /***************************************************************************** 
  419. * Local Function
  420. *****************************************************************************/
  421. /* PMT VIKAS START 20060502 */
  422. static void mmi_jmms_video_idle_preview_in_composer(
  423.                 S8 *filename,
  424.                 S32 x_frame,
  425.                 S32 y_frame,
  426.                 S32 width_frame,
  427.                 S32 height_frame);
  428. static void mmi_jmms_image_idle_preview_in_composer(S8 *filename, S32 img_x, S32 img_y, S32 img_width, S32 img_height);
  429. /* PMT VIKAS END 20060502 */
  430. /***************************************************************************** 
  431. * Global Variable
  432. *****************************************************************************/
  433. static U8 g_custom_color_RGB_list[3];
  434. static U32 g_text_custom_color_RGB = 0x00000064;    /* to save the color customized by user. */
  435. static U32 g_bg_custom_color_RGB = 0x00000064;      /* to save the color customized by user. */
  436. static U8 g_custom_var_change = 0;
  437. /* MAUI_00018451 Start */
  438. static mmi_cat91_color_slider_enum g_slider_info = MMI_CAT91_COLOR_SLIDER_RED_COLOR;
  439. /* MAUI_00018451 End */
  440. /* PMT VIKAS START 20060502 */
  441. U8 *g_media_buffer_p = NULL;
  442. /* PMT VIKAS END 20060502 */
  443. extern BOOL r2lMMIFlag; /* Right-to-left languages (e.g. Arabic) */
  444. /***************************************************************************** 
  445. * Global Function
  446. *****************************************************************************/
  447. extern mdi_result mdi_audio_get_duration(void *file_name, U32 *time_p);  // compiler warning removal
  448. /*****************************************************************************
  449.  * FUNCTION
  450.  *  mmi_jmms_compose_init
  451.  * DESCRIPTION
  452.  *  Initialization function of MMS compose.
  453.  * PARAMETERS
  454.  *  void
  455.  *  a(?)        [IN/OUT]        Nil(?)
  456.  *  b(?)        [IN]            Nil(?)
  457.  * RETURNS
  458.  *  void
  459.  *****************************************************************************/
  460. void mmi_jmms_compose_init(void)
  461. {
  462.     /*----------------------------------------------------------------*/
  463.     /* Local Variables                                                */
  464.     /*----------------------------------------------------------------*/
  465.     /*----------------------------------------------------------------*/
  466.     /* Code Body                                                      */
  467.     /*----------------------------------------------------------------*/
  468.     SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT, mmi_jmms_highlight_attachment_insert);
  469.     SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_DELETE, mmi_jmms_highlight_attachment_delete);
  470.     SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_ATTACHMENT, mmi_jmms_highlight_attachment_attachment);
  471. #ifdef __MMI_VCARD__
  472.     SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_VCARD, mmi_jmms_highlight_attachment_vcard);
  473. #endif
  474.     SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_VCALENDAR, mmi_jmms_highlight_attachment_vcalendar);
  475. #ifdef __MMI_VCARD__
  476.     SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT_VCARD_FILEMGR, mmi_jmms_highlight_attachment_vcard_fm);
  477.     SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT_VCARD_PHB, mmi_jmms_highlight_attachment_vcard_phb);
  478.     SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT_MY_VCARD, mmi_jmms_highlight_attachment_my_vcard);
  479. #endif /* __MMI_VCARD__ */ 
  480. #ifdef __MMI_TODOLIST__
  481.     SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT_VCALENDAR_TODO_LIST, mmi_jmms_highlight_attachment_vcal_todolist);
  482. #endif
  483.     SetHiliteHandler(MENU_ID_JMMS_ATTACHMENT_INSERT_VCALENDAR_FILEMGR, mmi_jmms_highlight_attachment_vcal_fm);
  484.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INPUT_METHOD, mmi_jmms_highlight_edit_content_ip_method);
  485.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT, mmi_jmms_highlight_edit_content_insert);
  486.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_DELETE, mmi_jmms_highlight_edit_content_delete);
  487.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_REPLACE, mmi_jmms_highlight_edit_content_replace);
  488.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_PLAY_AUDIO, mmi_jmms_highlight_edit_content_play_audio);
  489.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_PLAY_VIDEO, mmi_jmms_highlight_edit_content_play_video);
  490.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_GOTO, mmi_jmms_highlight_edit_content_goto);
  491.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS, mmi_jmms_highlight_edit_content_settings);
  492.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_PREVIEW, mmi_jmms_highlight_edit_content_preview);
  493.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_OPTION_DONE, mmi_jmms_highlight_edit_content_done);
  494.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT_IMAGE, mmi_jmms_highlight_edit_content_insert_image);
  495.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT_AUDIO, mmi_jmms_highlight_edit_content_insert_audio);
  496.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT_VIDEO, mmi_jmms_highlight_edit_content_insert_video);
  497.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT_SLIDE, mmi_jmms_highlight_edit_content_insert_slide);
  498.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_INSERT_CONTACT, mmi_jmms_highlight_edit_content_insert_contact);
  499.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_DELETE_IMAGE, mmi_jmms_highlight_edit_content_delete_image);
  500.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_DELETE_AUDIO, mmi_jmms_highlight_edit_content_delete_audio);
  501.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_DELETE_VIDEO, mmi_jmms_highlight_edit_content_delete_video);
  502.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_DELETE_SLIDE, mmi_jmms_highlight_edit_content_delete_slide);
  503.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_IMAGE, mmi_jmms_highlight_edit_content_replace_image);
  504.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_AUDIO, mmi_jmms_highlight_edit_content_replace_audio);
  505.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_VIDEO, mmi_jmms_highlight_edit_content_replace_video);
  506.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_GOTO_NEXT, mmi_jmms_highlight_edit_content_goto_next);
  507.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_GOTO_PREVIOUS, mmi_jmms_highlight_edit_content_goto_previous);
  508.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_GOTO_SLIDE_LIST, mmi_jmms_highlight_edit_content_goto_slide_list);
  509.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SLIDE_TIME, mmi_jmms_highlight_edit_content_slide_time);
  510.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT, mmi_jmms_highlight_edit_content_text_settings);
  511.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL, mmi_jmms_highlight_edit_content_smil_settings);
  512.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_TEXT_TIME, mmi_jmms_highlight_smil_settings_text_timings);
  513.     SetHiliteHandler(
  514.         MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_IMAGE_TIME,
  515.         mmi_jmms_highlight_smil_settings_image_timings);
  516.     SetHiliteHandler(
  517.         MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_AUDIO_TIME,
  518.         mmi_jmms_highlight_smil_settings_audio_timings);
  519.     SetHiliteHandler(
  520.         MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_VIDEO_TIME,
  521.         mmi_jmms_highlight_smil_settings_video_timings);
  522.     SetHiliteHandler(MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_SMIL_BGCOLOR, mmi_jmms_highlight_smil_settings_bg_color);
  523. #ifdef __MMI_UNIFIED_MESSAGE__
  524.     mmi_um_jmms_set_folder_list_callback_function(mmi_um_jmms_dummy_folder_list_callback);
  525. #endif
  526. //#ifdef __MMI_MMS_SIGNATURE__
  527.     mmi_jmms_reset_fw_flag_of_inbox();
  528. //#endif         
  529. }
  530. /*****************************************************************************
  531.  * FUNCTION
  532.  *  mmi_jmms_highlight_attachment_insert
  533.  * DESCRIPTION
  534.  *  highlight fn for menu option attachment->insert
  535.  * PARAMETERS
  536.  *  void
  537.  *  a(?)        [IN/OUT]        Nil(?)
  538.  *  b(?)        [IN]            Nil(?)
  539.  * RETURNS
  540.  *  void
  541.  *****************************************************************************/
  542. void mmi_jmms_highlight_attachment_insert(void)
  543. {
  544.     /*----------------------------------------------------------------*/
  545.     /* Local Variables                                                */
  546.     /*----------------------------------------------------------------*/
  547.     /*----------------------------------------------------------------*/
  548.     /* Code Body                                                      */
  549.     /*----------------------------------------------------------------*/
  550.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  551.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  552.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  553.     SetLeftSoftkeyFunction(mmi_jmms_entry_attachment_insert, KEY_EVENT_UP);
  554.     SetKeyHandler(mmi_jmms_entry_attachment_insert, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  555.     SetKeyHandler(mmi_jmms_entry_attachment_insert, KEY_WAP, KEY_EVENT_DOWN);
  556.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  557. }
  558. /*****************************************************************************
  559.  * FUNCTION
  560.  *  mmi_jmms_highlight_attachment_delete
  561.  * DESCRIPTION
  562.  *  highlight fn for menu option attachment->delete
  563.  * PARAMETERS
  564.  *  void
  565.  *  a(?)        [IN/OUT]        Nil(?)
  566.  *  b(?)        [IN]            Nil(?)
  567.  * RETURNS
  568.  *  void
  569.  *****************************************************************************/
  570. void mmi_jmms_highlight_attachment_delete(void)
  571. {
  572.     /*----------------------------------------------------------------*/
  573.     /* Local Variables                                                */
  574.     /*----------------------------------------------------------------*/
  575.     /*----------------------------------------------------------------*/
  576.     /* Code Body                                                      */
  577.     /*----------------------------------------------------------------*/
  578.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  579.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  580.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  581.     SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_delete_attachment, KEY_EVENT_UP);
  582.     SetKeyHandler(mmi_jmms_entry_edit_content_delete_attachment, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  583.     SetKeyHandler(mmi_jmms_entry_edit_content_delete_attachment, KEY_WAP, KEY_EVENT_DOWN);
  584.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  585. }
  586. /*****************************************************************************
  587.  * FUNCTION
  588.  *  mmi_jmms_highlight_attachment_attachment
  589.  * DESCRIPTION
  590.  *  highlight fn for menu option attachment->insert->attachment
  591.  * PARAMETERS
  592.  *  void
  593.  *  a(?)        [IN/OUT]        Nil(?)
  594.  *  b(?)        [IN]            Nil(?)
  595.  * RETURNS
  596.  *  void
  597.  *****************************************************************************/
  598. void mmi_jmms_highlight_attachment_attachment(void)
  599. {
  600.     /*----------------------------------------------------------------*/
  601.     /* Local Variables                                                */
  602.     /*----------------------------------------------------------------*/
  603.     /*----------------------------------------------------------------*/
  604.     /* Code Body                                                      */
  605.     /*----------------------------------------------------------------*/
  606.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  607.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  608.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  609.     SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_attachment, KEY_EVENT_UP);
  610.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_attachment, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  611.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_attachment, KEY_WAP, KEY_EVENT_DOWN);
  612.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  613. }
  614. /*****************************************************************************
  615.  * FUNCTION
  616.  *  mmi_jmms_highlight_attachment_vcard
  617.  * DESCRIPTION
  618.  *  highlight fn for menu option attachment->insert->vcard
  619.  * PARAMETERS
  620.  *  void
  621.  *  a(?)        [IN/OUT]        Nil(?)
  622.  *  b(?)        [IN]            Nil(?)
  623.  * RETURNS
  624.  *  void
  625.  *****************************************************************************/
  626. void mmi_jmms_highlight_attachment_vcard(void)
  627. {
  628.     /*----------------------------------------------------------------*/
  629.     /* Local Variables                                                */
  630.     /*----------------------------------------------------------------*/
  631.     /*----------------------------------------------------------------*/
  632.     /* Code Body                                                      */
  633.     /*----------------------------------------------------------------*/
  634.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  635.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  636.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  637.     SetLeftSoftkeyFunction(mmi_jmms_entry_attachment_insert_vcard, KEY_EVENT_UP);
  638.     SetKeyHandler(mmi_jmms_entry_attachment_insert_vcard, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  639.     SetKeyHandler(mmi_jmms_entry_attachment_insert_vcard, KEY_WAP, KEY_EVENT_DOWN);
  640.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  641. }
  642. /*****************************************************************************
  643.  * FUNCTION
  644.  *  mmi_jmms_highlight_attachment_vcalendar
  645.  * DESCRIPTION
  646.  *  highlight fn for menu option attachment->insert->vcalendar
  647.  * PARAMETERS
  648.  *  void
  649.  *  a(?)        [IN/OUT]        Nil(?)
  650.  *  b(?)        [IN]            Nil(?)
  651.  * RETURNS
  652.  *  void
  653.  *****************************************************************************/
  654. void mmi_jmms_highlight_attachment_vcalendar(void)
  655. {
  656.     /*----------------------------------------------------------------*/
  657.     /* Local Variables                                                */
  658.     /*----------------------------------------------------------------*/
  659.     /*----------------------------------------------------------------*/
  660.     /* Code Body                                                      */
  661.     /*----------------------------------------------------------------*/
  662.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  663.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  664.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  665.     SetLeftSoftkeyFunction(mmi_jmms_entry_attachment_insert_vcalender, KEY_EVENT_UP);
  666.     SetKeyHandler(mmi_jmms_entry_attachment_insert_vcalender, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  667.     SetKeyHandler(mmi_jmms_entry_attachment_insert_vcalender, KEY_WAP, KEY_EVENT_DOWN);
  668.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  669. }
  670. #ifdef __MMI_VCARD__
  671. /*****************************************************************************
  672.  * FUNCTION
  673.  *  mmi_jmms_highlight_attachment_vcard_fm
  674.  * DESCRIPTION
  675.  *  highlight fn for menu option attachment->insert->vcard->file manager
  676.  * PARAMETERS
  677.  *  void
  678.  *  a(?)        [IN/OUT]        Nil(?)
  679.  *  b(?)        [IN]            Nil(?)
  680.  * RETURNS
  681.  *  void
  682.  *****************************************************************************/
  683. void mmi_jmms_highlight_attachment_vcard_fm(void)
  684. {
  685.     /*----------------------------------------------------------------*/
  686.     /* Local Variables                                                */
  687.     /*----------------------------------------------------------------*/
  688.     /*----------------------------------------------------------------*/
  689.     /* Code Body                                                      */
  690.     /*----------------------------------------------------------------*/
  691.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  692.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  693.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  694.     SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_vcard, KEY_EVENT_UP);
  695.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_vcard, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  696.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_vcard, KEY_WAP, KEY_EVENT_DOWN);
  697.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  698. }
  699. /*****************************************************************************
  700.  * FUNCTION
  701.  *  mmi_jmms_highlight_attachment_vcard_phb
  702.  * DESCRIPTION
  703.  *  highlight fn for menu option attachment->insert->vacrd->phonebook
  704.  * PARAMETERS
  705.  *  void
  706.  *  a(?)        [IN/OUT]        Nil(?)
  707.  *  b(?)        [IN]            Nil(?)
  708.  * RETURNS
  709.  *  void
  710.  *****************************************************************************/
  711. void mmi_jmms_highlight_attachment_vcard_phb(void)
  712. {
  713.     /*----------------------------------------------------------------*/
  714.     /* Local Variables                                                */
  715.     /*----------------------------------------------------------------*/
  716.     /*----------------------------------------------------------------*/
  717.     /* Code Body                                                      */
  718.     /*----------------------------------------------------------------*/
  719.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  720.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  721.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  722.     SetLeftSoftkeyFunction(mmi_jmms_entry_insert_vcard_phb, KEY_EVENT_UP);
  723.     SetKeyHandler(mmi_jmms_entry_insert_vcard_phb, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  724.     SetKeyHandler(mmi_jmms_entry_insert_vcard_phb, KEY_WAP, KEY_EVENT_DOWN);
  725.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  726. }
  727. /*****************************************************************************
  728.  * FUNCTION
  729.  *  mmi_jmms_highlight_attachment_my_vcard
  730.  * DESCRIPTION
  731.  *  highlight fn for menu option attachment->insert->my vcard
  732.  * PARAMETERS
  733.  *  void
  734.  *  a(?)        [IN/OUT]        Nil(?)
  735.  *  b(?)        [IN]            Nil(?)
  736.  * RETURNS
  737.  *  void
  738.  *****************************************************************************/
  739. void mmi_jmms_highlight_attachment_my_vcard(void)
  740. {
  741.     /*----------------------------------------------------------------*/
  742.     /* Local Variables                                                */
  743.     /*----------------------------------------------------------------*/
  744.     /*----------------------------------------------------------------*/
  745.     /* Code Body                                                      */
  746.     /*----------------------------------------------------------------*/
  747.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  748.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  749.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  750.     SetLeftSoftkeyFunction(mmi_jmms_insert_my_vcard, KEY_EVENT_UP);
  751.     SetKeyHandler(mmi_jmms_insert_my_vcard, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  752.     SetKeyHandler(mmi_jmms_insert_my_vcard, KEY_WAP, KEY_EVENT_DOWN);
  753.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  754. }
  755. #endif /* __MMI_VCARD__ */ 
  756. #ifdef __MMI_TODOLIST__
  757. /*****************************************************************************
  758.  * FUNCTION
  759.  *  mmi_jmms_highlight_attachment_vcal_todolist
  760.  * DESCRIPTION
  761.  *  highlight fn for menu option attachment->insert->vaclendar->to do list
  762.  * PARAMETERS
  763.  *  void
  764.  *  a(?)        [IN/OUT]        Nil(?)
  765.  *  b(?)        [IN]            Nil(?)
  766.  * RETURNS
  767.  *  void
  768.  *****************************************************************************/
  769. void mmi_jmms_highlight_attachment_vcal_todolist(void)
  770. {
  771.     /*----------------------------------------------------------------*/
  772.     /* Local Variables                                                */
  773.     /*----------------------------------------------------------------*/
  774.     /*----------------------------------------------------------------*/
  775.     /* Code Body                                                      */
  776.     /*----------------------------------------------------------------*/
  777.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  778.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  779.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  780.     SetLeftSoftkeyFunction(mmi_jmms_entry_insert_vclndr_tdl, KEY_EVENT_UP);
  781.     SetKeyHandler(mmi_jmms_entry_insert_vclndr_tdl, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  782.     SetKeyHandler(mmi_jmms_entry_insert_vclndr_tdl, KEY_WAP, KEY_EVENT_DOWN);
  783.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  784. }
  785. #endif /* __MMI_TODOLIST__ */ 
  786. /*****************************************************************************
  787.  * FUNCTION
  788.  *  mmi_jmms_highlight_attachment_vcal_fm
  789.  * DESCRIPTION
  790.  *  highlight fn for menu option attachment->insert->vcalendar->file manager
  791.  * PARAMETERS
  792.  *  void
  793.  *  a(?)        [IN/OUT]        Nil(?)
  794.  *  b(?)        [IN]            Nil(?)
  795.  * RETURNS
  796.  *  void
  797.  *****************************************************************************/
  798. void mmi_jmms_highlight_attachment_vcal_fm(void)
  799. {
  800.     /*----------------------------------------------------------------*/
  801.     /* Local Variables                                                */
  802.     /*----------------------------------------------------------------*/
  803.     /*----------------------------------------------------------------*/
  804.     /* Code Body                                                      */
  805.     /*----------------------------------------------------------------*/
  806.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  807.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  808.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  809.     SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_vcalander, KEY_EVENT_UP);
  810.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_vcalander, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  811.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_vcalander, KEY_WAP, KEY_EVENT_DOWN);
  812.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  813. }
  814. /*****************************************************************************
  815.  * FUNCTION
  816.  *  mmi_jmms_highlight_edit_content_ip_method
  817.  * DESCRIPTION
  818.  *  highlight fn for menu option edit content->input method
  819.  * PARAMETERS
  820.  *  void
  821.  *  a(?)        [IN/OUT]        Nil(?)
  822.  *  b(?)        [IN]            Nil(?)
  823.  * RETURNS
  824.  *  void
  825.  *****************************************************************************/
  826. void mmi_jmms_highlight_edit_content_ip_method(void)
  827. {
  828.     /*----------------------------------------------------------------*/
  829.     /* Local Variables                                                */
  830.     /*----------------------------------------------------------------*/
  831.     /*----------------------------------------------------------------*/
  832.     /* Code Body                                                      */
  833.     /*----------------------------------------------------------------*/
  834.     SetInputMethodAndDoneCaptionIcon(GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID));
  835.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  836.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  837.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  838.     SetLeftSoftkeyFunction(EntryInputMethodScreen, KEY_EVENT_UP);
  839.     SetKeyHandler(EntryInputMethodScreen, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  840.     SetKeyHandler(EntryInputMethodScreen, KEY_WAP, KEY_EVENT_DOWN);
  841.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  842.     RegisterInputMethodScreenCloseFunction(mmi_jmms_compose_go_back_history_ip_method);
  843. }
  844. /*****************************************************************************
  845.  * FUNCTION
  846.  *  mmi_jmms_highlight_edit_content_insert
  847.  * DESCRIPTION
  848.  *  highlight fn for menu option edit content->insert
  849.  * PARAMETERS
  850.  *  void
  851.  *  a(?)        [IN/OUT]        Nil(?)
  852.  *  b(?)        [IN]            Nil(?)
  853.  * RETURNS
  854.  *  void
  855.  *****************************************************************************/
  856. void mmi_jmms_highlight_edit_content_insert(void)
  857. {
  858.     /*----------------------------------------------------------------*/
  859.     /* Local Variables                                                */
  860.     /*----------------------------------------------------------------*/
  861.     /*----------------------------------------------------------------*/
  862.     /* Code Body                                                      */
  863.     /*----------------------------------------------------------------*/
  864.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  865.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  866.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  867.     SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_insert, KEY_EVENT_UP);
  868.     SetKeyHandler(mmi_jmms_entry_edit_content_insert, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  869.     SetKeyHandler(mmi_jmms_entry_edit_content_insert, KEY_WAP, KEY_EVENT_DOWN);
  870.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  871. }
  872. /*****************************************************************************
  873.  * FUNCTION
  874.  *  mmi_jmms_highlight_edit_content_delete
  875.  * DESCRIPTION
  876.  *  highlight fn for menu option edit content->delete
  877.  * PARAMETERS
  878.  *  void
  879.  *  a(?)        [IN/OUT]        Nil(?)
  880.  *  b(?)        [IN]            Nil(?)
  881.  * RETURNS
  882.  *  void
  883.  *****************************************************************************/
  884. void mmi_jmms_highlight_edit_content_delete(void)
  885. {
  886.     /*----------------------------------------------------------------*/
  887.     /* Local Variables                                                */
  888.     /*----------------------------------------------------------------*/
  889.     /*----------------------------------------------------------------*/
  890.     /* Code Body                                                      */
  891.     /*----------------------------------------------------------------*/
  892.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  893.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  894.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  895.     SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_delete, KEY_EVENT_UP);
  896.     SetKeyHandler(mmi_jmms_entry_edit_content_delete, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  897.     SetKeyHandler(mmi_jmms_entry_edit_content_delete, KEY_WAP, KEY_EVENT_DOWN);
  898.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  899. }
  900. /*****************************************************************************
  901.  * FUNCTION
  902.  *  mmi_jmms_highlight_edit_content_replace
  903.  * DESCRIPTION
  904.  *  highlight fn for menu option edit content->replace
  905.  * PARAMETERS
  906.  *  void
  907.  *  a(?)        [IN/OUT]        Nil(?)
  908.  *  b(?)        [IN]            Nil(?)
  909.  * RETURNS
  910.  *  void
  911.  *****************************************************************************/
  912. void mmi_jmms_highlight_edit_content_replace(void)
  913. {
  914.     /*----------------------------------------------------------------*/
  915.     /* Local Variables                                                */
  916.     /*----------------------------------------------------------------*/
  917.     /*----------------------------------------------------------------*/
  918.     /* Code Body                                                      */
  919.     /*----------------------------------------------------------------*/
  920.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  921.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  922.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  923.     SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_replace, KEY_EVENT_UP);
  924.     SetKeyHandler(mmi_jmms_entry_edit_content_replace, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  925.     SetKeyHandler(mmi_jmms_entry_edit_content_replace, KEY_WAP, KEY_EVENT_DOWN);
  926.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  927. }
  928. /*****************************************************************************
  929.  * FUNCTION
  930.  *  mmi_jmms_highlight_edit_content_play_audio
  931.  * DESCRIPTION
  932.  *  highlight fn for menu option edit content->play audio
  933.  * PARAMETERS
  934.  *  void
  935.  *  a(?)        [IN/OUT]        Nil(?)
  936.  *  b(?)        [IN]            Nil(?)
  937.  * RETURNS
  938.  *  void
  939.  *****************************************************************************/
  940. void mmi_jmms_highlight_edit_content_play_audio(void)
  941. {
  942.     /*----------------------------------------------------------------*/
  943.     /* Local Variables                                                */
  944.     /*----------------------------------------------------------------*/
  945.     /*----------------------------------------------------------------*/
  946.     /* Code Body                                                      */
  947.     /*----------------------------------------------------------------*/
  948.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  949.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  950.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  951.     SetLeftSoftkeyFunction(mmi_jmms_compose_play_audio, KEY_EVENT_UP);
  952.     SetKeyHandler(mmi_jmms_compose_play_audio, KEY_WAP, KEY_EVENT_DOWN);
  953.     SetKeyHandler(mmi_jmms_compose_play_audio, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  954.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  955. }
  956. /*****************************************************************************
  957.  * FUNCTION
  958.  *  mmi_jmms_highlight_edit_content_play_video
  959.  * DESCRIPTION
  960.  *  highlight fn for menu option edit content->play video
  961.  * PARAMETERS
  962.  *  void
  963.  *  a(?)        [IN/OUT]        Nil(?)
  964.  *  b(?)        [IN]            Nil(?)
  965.  * RETURNS
  966.  *  void
  967.  *****************************************************************************/
  968. void mmi_jmms_highlight_edit_content_play_video(void)
  969. {
  970.     /*----------------------------------------------------------------*/
  971.     /* Local Variables                                                */
  972.     /*----------------------------------------------------------------*/
  973.     /*----------------------------------------------------------------*/
  974.     /* Code Body                                                      */
  975.     /*----------------------------------------------------------------*/
  976.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  977.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  978.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  979.     SetLeftSoftkeyFunction(mmi_jmms_compose_play_video, KEY_EVENT_UP);
  980.     SetKeyHandler(mmi_jmms_compose_play_video, KEY_WAP, KEY_EVENT_DOWN);
  981.     SetKeyHandler(mmi_jmms_compose_play_video, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  982.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  983. }
  984. /*****************************************************************************
  985.  * FUNCTION
  986.  *  mmi_jmms_highlight_edit_content_goto
  987.  * DESCRIPTION
  988.  *  highlight fn for menu option edit content->goto
  989.  * PARAMETERS
  990.  *  void
  991.  *  a(?)        [IN/OUT]        Nil(?)
  992.  *  b(?)        [IN]            Nil(?)
  993.  * RETURNS
  994.  *  void
  995.  *****************************************************************************/
  996. void mmi_jmms_highlight_edit_content_goto(void)
  997. {
  998.     /*----------------------------------------------------------------*/
  999.     /* Local Variables                                                */
  1000.     /*----------------------------------------------------------------*/
  1001.     /*----------------------------------------------------------------*/
  1002.     /* Code Body                                                      */
  1003.     /*----------------------------------------------------------------*/
  1004.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1005.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1006.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1007.     SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_goto, KEY_EVENT_UP);
  1008.     SetKeyHandler(mmi_jmms_entry_edit_content_goto, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1009.     SetKeyHandler(mmi_jmms_entry_edit_content_goto, KEY_WAP, KEY_EVENT_DOWN);
  1010.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1011. }
  1012. /*****************************************************************************
  1013.  * FUNCTION
  1014.  *  mmi_jmms_highlight_edit_content_settings
  1015.  * DESCRIPTION
  1016.  *  highlight fn for menu option edit content->settings
  1017.  * PARAMETERS
  1018.  *  void
  1019.  *  a(?)        [IN/OUT]        Nil(?)
  1020.  *  b(?)        [IN]            Nil(?)
  1021.  * RETURNS
  1022.  *  void
  1023.  *****************************************************************************/
  1024. void mmi_jmms_highlight_edit_content_settings(void)
  1025. {
  1026.     /*----------------------------------------------------------------*/
  1027.     /* Local Variables                                                */
  1028.     /*----------------------------------------------------------------*/
  1029.     /*----------------------------------------------------------------*/
  1030.     /* Code Body                                                      */
  1031.     /*----------------------------------------------------------------*/
  1032.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1033.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1034.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1035.     SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_settings, KEY_EVENT_UP);
  1036.     SetKeyHandler(mmi_jmms_entry_edit_content_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1037.     SetKeyHandler(mmi_jmms_entry_edit_content_settings, KEY_WAP, KEY_EVENT_DOWN);
  1038.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1039. }
  1040. /*****************************************************************************
  1041.  * FUNCTION
  1042.  *  mmi_jmms_highlight_edit_content_preview
  1043.  * DESCRIPTION
  1044.  *  highlight fn for menu option edit content->preview
  1045.  * PARAMETERS
  1046.  *  void
  1047.  *  a(?)        [IN/OUT]        Nil(?)
  1048.  *  b(?)        [IN]            Nil(?)
  1049.  * RETURNS
  1050.  *  void
  1051.  *****************************************************************************/
  1052. void mmi_jmms_highlight_edit_content_preview(void)
  1053. {
  1054.     /*----------------------------------------------------------------*/
  1055.     /* Local Variables                                                */
  1056.     /*----------------------------------------------------------------*/
  1057.     /*----------------------------------------------------------------*/
  1058.     /* Code Body                                                      */
  1059.     /*----------------------------------------------------------------*/
  1060.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1061.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1062.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1063.     SetLeftSoftkeyFunction(mmi_jmms_pre_entry_mms_preview, KEY_EVENT_UP);
  1064.     SetKeyHandler(mmi_jmms_pre_entry_mms_preview, KEY_WAP, KEY_EVENT_DOWN);
  1065. /* MAUI_00018463 Start */
  1066.    // SetKeyHandler(mmi_jmms_pre_entry_mms_preview, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1067. /* MAUI_00018463 End */
  1068.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1069. }
  1070. /*****************************************************************************
  1071.  * FUNCTION
  1072.  *  mmi_jmms_highlight_edit_content_done
  1073.  * DESCRIPTION
  1074.  *  highlight fn for menu option edit content->done
  1075.  * PARAMETERS
  1076.  *  void
  1077.  *  a(?)        [IN/OUT]        Nil(?)
  1078.  *  b(?)        [IN]            Nil(?)
  1079.  * RETURNS
  1080.  *  void
  1081.  *****************************************************************************/
  1082. void mmi_jmms_highlight_edit_content_done(void)
  1083. {
  1084.     /*----------------------------------------------------------------*/
  1085.     /* Local Variables                                                */
  1086.     /*----------------------------------------------------------------*/
  1087.     /*----------------------------------------------------------------*/
  1088.     /* Code Body                                                      */
  1089.     /*----------------------------------------------------------------*/
  1090.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1091.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1092.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1093.     SetLeftSoftkeyFunction(mmi_jmms_pre_entry_mms_edit_content_done, KEY_EVENT_UP);
  1094.     SetKeyHandler(mmi_jmms_pre_entry_mms_edit_content_done, KEY_WAP, KEY_EVENT_DOWN);
  1095.     SetKeyHandler(mmi_jmms_pre_entry_mms_edit_content_done, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1096.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1097. }
  1098. /*****************************************************************************
  1099.  * FUNCTION
  1100.  *  mmi_jmms_pre_entry_mms_edit_content_done
  1101.  * DESCRIPTION
  1102.  *  to go back to write mms screen
  1103.  * PARAMETERS
  1104.  *  void
  1105.  *  a(?)        [IN/OUT]        Nil(?)
  1106.  *  b(?)        [IN]            Nil(?)
  1107.  * RETURNS
  1108.  *  void
  1109.  *****************************************************************************/
  1110. void mmi_jmms_pre_entry_mms_edit_content_done(void)
  1111. {
  1112.     /*----------------------------------------------------------------*/
  1113.     /* Local Variables                                                */
  1114.     /*----------------------------------------------------------------*/
  1115.     /*----------------------------------------------------------------*/
  1116.     /* Code Body                                                      */
  1117.     /*----------------------------------------------------------------*/
  1118.     g_jmms_context->g_write_mms_right_soft_key = STR_GLOBAL_DONE;
  1119.     GoBackToHistory(SCR_ID_JMMS_WRITE_MMS);
  1120. }
  1121. /*****************************************************************************
  1122.  * FUNCTION
  1123.  *  mmi_jmms_highlight_edit_content_insert_image
  1124.  * DESCRIPTION
  1125.  *  highlight fn for menu option edit content->insert->image
  1126.  * PARAMETERS
  1127.  *  void
  1128.  *  a(?)        [IN/OUT]        Nil(?)
  1129.  *  b(?)        [IN]            Nil(?)
  1130.  * RETURNS
  1131.  *  void
  1132.  *****************************************************************************/
  1133. void mmi_jmms_highlight_edit_content_insert_image(void)
  1134. {
  1135.     /*----------------------------------------------------------------*/
  1136.     /* Local Variables                                                */
  1137.     /*----------------------------------------------------------------*/
  1138.     /*----------------------------------------------------------------*/
  1139.     /* Code Body                                                      */
  1140.     /*----------------------------------------------------------------*/
  1141.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1142.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1143.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1144.     SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_image, KEY_EVENT_UP);
  1145.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_image, KEY_WAP, KEY_EVENT_DOWN);
  1146.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_image, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1147.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1148. }
  1149. /*****************************************************************************
  1150.  * FUNCTION
  1151.  *  mmi_jmms_highlight_edit_content_insert_audio
  1152.  * DESCRIPTION
  1153.  *  highlight fn for menu option edit content->insert->audio
  1154.  * PARAMETERS
  1155.  *  void
  1156.  *  a(?)        [IN/OUT]        Nil(?)
  1157.  *  b(?)        [IN]            Nil(?)
  1158.  * RETURNS
  1159.  *  void
  1160.  *****************************************************************************/
  1161. void mmi_jmms_highlight_edit_content_insert_audio(void)
  1162. {
  1163.     /*----------------------------------------------------------------*/
  1164.     /* Local Variables                                                */
  1165.     /*----------------------------------------------------------------*/
  1166.     /*----------------------------------------------------------------*/
  1167.     /* Code Body                                                      */
  1168.     /*----------------------------------------------------------------*/
  1169.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1170.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1171.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1172.     SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_audio, KEY_EVENT_UP);
  1173.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_audio, KEY_WAP, KEY_EVENT_DOWN);
  1174.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_audio, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1175.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1176. }
  1177. /*****************************************************************************
  1178.  * FUNCTION
  1179.  *  mmi_jmms_highlight_edit_content_insert_video
  1180.  * DESCRIPTION
  1181.  *  highlight fn for menu option edit content->insert->video
  1182.  * PARAMETERS
  1183.  *  void
  1184.  *  a(?)        [IN/OUT]        Nil(?)
  1185.  *  b(?)        [IN]            Nil(?)
  1186.  * RETURNS
  1187.  *  void
  1188.  *****************************************************************************/
  1189. void mmi_jmms_highlight_edit_content_insert_video(void)
  1190. {
  1191.     /*----------------------------------------------------------------*/
  1192.     /* Local Variables                                                */
  1193.     /*----------------------------------------------------------------*/
  1194.     /*----------------------------------------------------------------*/
  1195.     /* Code Body                                                      */
  1196.     /*----------------------------------------------------------------*/
  1197.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1198.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1199.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1200.     SetLeftSoftkeyFunction(mmi_jmms_entry_filemgr_insert_video, KEY_EVENT_UP);
  1201.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_video, KEY_WAP, KEY_EVENT_DOWN);
  1202.     SetKeyHandler(mmi_jmms_entry_filemgr_insert_video, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1203.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1204. }
  1205. /*****************************************************************************
  1206.  * FUNCTION
  1207.  *  mmi_jmms_highlight_edit_content_insert_slide
  1208.  * DESCRIPTION
  1209.  *  highlight fn for menu option edit content->insert->slide
  1210.  * PARAMETERS
  1211.  *  void
  1212.  *  a(?)        [IN/OUT]        Nil(?)
  1213.  *  b(?)        [IN]            Nil(?)
  1214.  * RETURNS
  1215.  *  void
  1216.  *****************************************************************************/
  1217. void mmi_jmms_highlight_edit_content_insert_slide(void)
  1218. {
  1219.     /*----------------------------------------------------------------*/
  1220.     /* Local Variables                                                */
  1221.     /*----------------------------------------------------------------*/
  1222.     /*----------------------------------------------------------------*/
  1223.     /* Code Body                                                      */
  1224.     /*----------------------------------------------------------------*/
  1225.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1226.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1227.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1228.     SetLeftSoftkeyFunction(mmi_jmms_edit_content_insert_slide, KEY_EVENT_UP);
  1229.     SetKeyHandler(mmi_jmms_edit_content_insert_slide, KEY_WAP, KEY_EVENT_DOWN);
  1230.     SetKeyHandler(mmi_jmms_edit_content_insert_slide, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1231.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1232. }
  1233. /*****************************************************************************
  1234.  * FUNCTION
  1235.  *  mmi_jmms_highlight_edit_content_insert_contact
  1236.  * DESCRIPTION
  1237.  *  highlight fn for menu option edit content->insert->contact
  1238.  * PARAMETERS
  1239.  *  void
  1240.  *  a(?)        [IN/OUT]        Nil(?)
  1241.  *  b(?)        [IN]            Nil(?)
  1242.  * RETURNS
  1243.  *  void
  1244.  *****************************************************************************/
  1245. void mmi_jmms_highlight_edit_content_insert_contact(void)
  1246. {
  1247.     /*----------------------------------------------------------------*/
  1248.     /* Local Variables                                                */
  1249.     /*----------------------------------------------------------------*/
  1250.     /*----------------------------------------------------------------*/
  1251.     /* Code Body                                                      */
  1252.     /*----------------------------------------------------------------*/
  1253.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1254.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1255.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1256.     SetLeftSoftkeyFunction(mmi_jmms_entry_insert_phb_contact, KEY_EVENT_UP);
  1257.     SetKeyHandler(mmi_jmms_entry_insert_phb_contact, KEY_WAP, KEY_EVENT_DOWN);
  1258.     SetKeyHandler(mmi_jmms_entry_insert_phb_contact, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1259.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1260. }
  1261. /*****************************************************************************
  1262.  * FUNCTION
  1263.  *  mmi_jmms_highlight_edit_content_delete_image
  1264.  * DESCRIPTION
  1265.  *  highlight fn for menu option edit content->delete->image
  1266.  * PARAMETERS
  1267.  *  void
  1268.  *  a(?)        [IN/OUT]        Nil(?)
  1269.  *  b(?)        [IN]            Nil(?)
  1270.  * RETURNS
  1271.  *  void
  1272.  *****************************************************************************/
  1273. void mmi_jmms_highlight_edit_content_delete_image(void)
  1274. {
  1275.     /*----------------------------------------------------------------*/
  1276.     /* Local Variables                                                */
  1277.     /*----------------------------------------------------------------*/
  1278.     /*----------------------------------------------------------------*/
  1279.     /* Code Body                                                      */
  1280.     /*----------------------------------------------------------------*/
  1281.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1282.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1283.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1284.     SetLeftSoftkeyFunction(mmi_jmms_edit_content_delete_image, KEY_EVENT_UP);
  1285.     SetKeyHandler(NULL, KEY_WAP, KEY_EVENT_DOWN);
  1286.     SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1287.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1288. }
  1289. /*****************************************************************************
  1290.  * FUNCTION
  1291.  *  mmi_jmms_highlight_edit_content_delete_audio
  1292.  * DESCRIPTION
  1293.  *  highlight fn for menu option edit content->delete->audio
  1294.  * PARAMETERS
  1295.  *  void
  1296.  *  a(?)        [IN/OUT]        Nil(?)
  1297.  *  b(?)        [IN]            Nil(?)
  1298.  * RETURNS
  1299.  *  void
  1300.  *****************************************************************************/
  1301. void mmi_jmms_highlight_edit_content_delete_audio(void)
  1302. {
  1303.     /*----------------------------------------------------------------*/
  1304.     /* Local Variables                                                */
  1305.     /*----------------------------------------------------------------*/
  1306.     /*----------------------------------------------------------------*/
  1307.     /* Code Body                                                      */
  1308.     /*----------------------------------------------------------------*/
  1309.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1310.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1311.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1312.     SetLeftSoftkeyFunction(mmi_jmms_edit_content_delete_audio, KEY_EVENT_UP);
  1313.     SetKeyHandler(NULL, KEY_WAP, KEY_EVENT_DOWN);
  1314.     SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1315.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1316. }
  1317. /*****************************************************************************
  1318.  * FUNCTION
  1319.  *  mmi_jmms_highlight_edit_content_delete_video
  1320.  * DESCRIPTION
  1321.  *  highlight fn for menu option edit content->delete->video
  1322.  * PARAMETERS
  1323.  *  void
  1324.  *  a(?)        [IN/OUT]        Nil(?)
  1325.  *  b(?)        [IN]            Nil(?)
  1326.  * RETURNS
  1327.  *  void
  1328.  *****************************************************************************/
  1329. void mmi_jmms_highlight_edit_content_delete_video(void)
  1330. {
  1331.     /*----------------------------------------------------------------*/
  1332.     /* Local Variables                                                */
  1333.     /*----------------------------------------------------------------*/
  1334.     /*----------------------------------------------------------------*/
  1335.     /* Code Body                                                      */
  1336.     /*----------------------------------------------------------------*/
  1337.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1338.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1339.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1340.     SetLeftSoftkeyFunction(mmi_jmms_edit_content_delete_video, KEY_EVENT_UP);
  1341.     SetKeyHandler(NULL, KEY_WAP, KEY_EVENT_DOWN);
  1342.     SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1343.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1344. }
  1345. /*****************************************************************************
  1346.  * FUNCTION
  1347.  *  mmi_jmms_highlight_edit_content_delete_slide
  1348.  * DESCRIPTION
  1349.  *  highlight fn for menu option edit content->delete->slide
  1350.  * PARAMETERS
  1351.  *  void
  1352.  *  a(?)        [IN/OUT]        Nil(?)
  1353.  *  b(?)        [IN]            Nil(?)
  1354.  * RETURNS
  1355.  *  void
  1356.  *****************************************************************************/
  1357. void mmi_jmms_highlight_edit_content_delete_slide(void)
  1358. {
  1359.     /*----------------------------------------------------------------*/
  1360.     /* Local Variables                                                */
  1361.     /*----------------------------------------------------------------*/
  1362.     /*----------------------------------------------------------------*/
  1363.     /* Code Body                                                      */
  1364.     /*----------------------------------------------------------------*/
  1365.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1366.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1367.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1368.     SetLeftSoftkeyFunction(mmi_jmms_edit_content_delete_slide, KEY_EVENT_UP);
  1369.     SetKeyHandler(NULL, KEY_WAP, KEY_EVENT_DOWN);
  1370.     SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1371.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1372. }
  1373. /*****************************************************************************
  1374.  * FUNCTION
  1375.  *  mmi_jmms_highlight_edit_content_replace_image
  1376.  * DESCRIPTION
  1377.  *  highlight fn for menu option edit content->replace->image
  1378.  * PARAMETERS
  1379.  *  void
  1380.  *  a(?)        [IN/OUT]        Nil(?)
  1381.  *  b(?)        [IN]            Nil(?)
  1382.  * RETURNS
  1383.  *  void
  1384.  *****************************************************************************/
  1385. void mmi_jmms_highlight_edit_content_replace_image(void)
  1386. {
  1387.     /*----------------------------------------------------------------*/
  1388.     /* Local Variables                                                */
  1389.     /*----------------------------------------------------------------*/
  1390.     /*----------------------------------------------------------------*/
  1391.     /* Code Body                                                      */
  1392.     /*----------------------------------------------------------------*/
  1393.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1394.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1395.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1396.     SetLeftSoftkeyFunction(mmi_jmms_entry_replace_image, KEY_EVENT_UP);
  1397.     SetKeyHandler(mmi_jmms_entry_replace_image, KEY_WAP, KEY_EVENT_DOWN);
  1398.     SetKeyHandler(mmi_jmms_entry_replace_image, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1399.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1400. }
  1401. /*****************************************************************************
  1402.  * FUNCTION
  1403.  *  mmi_jmms_highlight_edit_content_replace_audio
  1404.  * DESCRIPTION
  1405.  *  highlight fn for menu option edit content->replace->audio
  1406.  * PARAMETERS
  1407.  *  void
  1408.  *  a(?)        [IN/OUT]        Nil(?)
  1409.  *  b(?)        [IN]            Nil(?)
  1410.  * RETURNS
  1411.  *  void
  1412.  *****************************************************************************/
  1413. void mmi_jmms_highlight_edit_content_replace_audio(void)
  1414. {
  1415.     /*----------------------------------------------------------------*/
  1416.     /* Local Variables                                                */
  1417.     /*----------------------------------------------------------------*/
  1418.     /*----------------------------------------------------------------*/
  1419.     /* Code Body                                                      */
  1420.     /*----------------------------------------------------------------*/
  1421.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1422.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1423.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1424.     SetLeftSoftkeyFunction(mmi_jmms_entry_replace_audio, KEY_EVENT_UP);
  1425.     SetKeyHandler(mmi_jmms_entry_replace_audio, KEY_WAP, KEY_EVENT_DOWN);
  1426.     SetKeyHandler(mmi_jmms_entry_replace_audio, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1427.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1428. }
  1429. /*****************************************************************************
  1430.  * FUNCTION
  1431.  *  mmi_jmms_highlight_edit_content_replace_video
  1432.  * DESCRIPTION
  1433.  *  highlight fn for menu option edit content->replace->video
  1434.  * PARAMETERS
  1435.  *  void
  1436.  *  a(?)        [IN/OUT]        Nil(?)
  1437.  *  b(?)        [IN]            Nil(?)
  1438.  * RETURNS
  1439.  *  void
  1440.  *****************************************************************************/
  1441. void mmi_jmms_highlight_edit_content_replace_video(void)
  1442. {
  1443.     /*----------------------------------------------------------------*/
  1444.     /* Local Variables                                                */
  1445.     /*----------------------------------------------------------------*/
  1446.     /*----------------------------------------------------------------*/
  1447.     /* Code Body                                                      */
  1448.     /*----------------------------------------------------------------*/
  1449.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1450.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1451.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1452.     SetLeftSoftkeyFunction(mmi_jmms_entry_replace_video, KEY_EVENT_UP);
  1453.     SetKeyHandler(mmi_jmms_entry_replace_video, KEY_WAP, KEY_EVENT_DOWN);
  1454.     SetKeyHandler(mmi_jmms_entry_replace_video, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1455.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1456. }
  1457. /*****************************************************************************
  1458.  * FUNCTION
  1459.  *  mmi_jmms_highlight_edit_content_goto_next
  1460.  * DESCRIPTION
  1461.  *  highlight fn for menu option edit content->goto->next slide
  1462.  * PARAMETERS
  1463.  *  void
  1464.  *  a(?)        [IN/OUT]        Nil(?)
  1465.  *  b(?)        [IN]            Nil(?)
  1466.  * RETURNS
  1467.  *  void
  1468.  *****************************************************************************/
  1469. void mmi_jmms_highlight_edit_content_goto_next(void)
  1470. {
  1471.     /*----------------------------------------------------------------*/
  1472.     /* Local Variables                                                */
  1473.     /*----------------------------------------------------------------*/
  1474.     /*----------------------------------------------------------------*/
  1475.     /* Code Body                                                      */
  1476.     /*----------------------------------------------------------------*/
  1477.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1478.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1479.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1480.     SetLeftSoftkeyFunction(mmi_jmms_edit_content_next_slide, KEY_EVENT_UP);
  1481.     SetKeyHandler(mmi_jmms_edit_content_next_slide, KEY_WAP, KEY_EVENT_DOWN);
  1482.     SetKeyHandler(mmi_jmms_edit_content_next_slide, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1483.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1484. }
  1485. /*****************************************************************************
  1486.  * FUNCTION
  1487.  *  mmi_jmms_highlight_edit_content_goto_previous
  1488.  * DESCRIPTION
  1489.  *  highlight fn for menu option edit content->goto->previous slide
  1490.  * PARAMETERS
  1491.  *  void
  1492.  *  a(?)        [IN/OUT]        Nil(?)
  1493.  *  b(?)        [IN]            Nil(?)
  1494.  * RETURNS
  1495.  *  void
  1496.  *****************************************************************************/
  1497. void mmi_jmms_highlight_edit_content_goto_previous(void)
  1498. {
  1499.     /*----------------------------------------------------------------*/
  1500.     /* Local Variables                                                */
  1501.     /*----------------------------------------------------------------*/
  1502.     /*----------------------------------------------------------------*/
  1503.     /* Code Body                                                      */
  1504.     /*----------------------------------------------------------------*/
  1505.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1506.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1507.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1508.     SetLeftSoftkeyFunction(mmi_jmms_edit_content_prev_slide, KEY_EVENT_UP);
  1509.     SetKeyHandler(mmi_jmms_edit_content_prev_slide, KEY_WAP, KEY_EVENT_DOWN);
  1510.     SetKeyHandler(mmi_jmms_edit_content_prev_slide, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1511.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1512. }
  1513. /*****************************************************************************
  1514.  * FUNCTION
  1515.  *  mmi_jmms_highlight_edit_content_goto_slide_list
  1516.  * DESCRIPTION
  1517.  *  highlight fn for menu option edit content->goto->slide list
  1518.  * PARAMETERS
  1519.  *  void
  1520.  *  a(?)        [IN/OUT]        Nil(?)
  1521.  *  b(?)        [IN]            Nil(?)
  1522.  * RETURNS
  1523.  *  void
  1524.  *****************************************************************************/
  1525. void mmi_jmms_highlight_edit_content_goto_slide_list(void)
  1526. {
  1527.     /*----------------------------------------------------------------*/
  1528.     /* Local Variables                                                */
  1529.     /*----------------------------------------------------------------*/
  1530.     /*----------------------------------------------------------------*/
  1531.     /* Code Body                                                      */
  1532.     /*----------------------------------------------------------------*/
  1533.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1534.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1535.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1536.     SetLeftSoftkeyFunction(mmi_jmms_entry_goto_slide_list, KEY_EVENT_UP);
  1537.     SetKeyHandler(mmi_jmms_entry_goto_slide_list, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1538.     SetKeyHandler(mmi_jmms_entry_goto_slide_list, KEY_WAP, KEY_EVENT_DOWN);
  1539.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1540. }
  1541. /*****************************************************************************
  1542.  * FUNCTION
  1543.  *  mmi_jmms_highlight_edit_content_slide_time
  1544.  * DESCRIPTION
  1545.  *  highlight fn for menu option edit content->slide time settings
  1546.  * PARAMETERS
  1547.  *  void
  1548.  *  a(?)        [IN/OUT]        Nil(?)
  1549.  *  b(?)        [IN]            Nil(?)
  1550.  * RETURNS
  1551.  *  void
  1552.  *****************************************************************************/
  1553. void mmi_jmms_highlight_edit_content_slide_time(void)
  1554. {
  1555.     /*----------------------------------------------------------------*/
  1556.     /* Local Variables                                                */
  1557.     /*----------------------------------------------------------------*/
  1558.     /*----------------------------------------------------------------*/
  1559.     /* Code Body                                                      */
  1560.     /*----------------------------------------------------------------*/
  1561.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1562.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1563.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1564.     SetLeftSoftkeyFunction(mmi_jmms_pre_entry_edit_content_slide_time, KEY_EVENT_UP);
  1565.     SetKeyHandler(mmi_jmms_pre_entry_edit_content_slide_time, KEY_WAP, KEY_EVENT_DOWN);
  1566.     SetKeyHandler(NULL, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1567.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1568. }
  1569. /*****************************************************************************
  1570.  * FUNCTION
  1571.  *  mmi_jmms_highlight_edit_content_text_settings
  1572.  * DESCRIPTION
  1573.  *  highlight fn for menu option edit content->text settings
  1574.  * PARAMETERS
  1575.  *  void
  1576.  *  a(?)        [IN/OUT]        Nil(?)
  1577.  *  b(?)        [IN]            Nil(?)
  1578.  * RETURNS
  1579.  *  void
  1580.  *****************************************************************************/
  1581. void mmi_jmms_highlight_edit_content_text_settings(void)
  1582. {
  1583.     /*----------------------------------------------------------------*/
  1584.     /* Local Variables                                                */
  1585.     /*----------------------------------------------------------------*/
  1586.     /*----------------------------------------------------------------*/
  1587.     /* Code Body                                                      */
  1588.     /*----------------------------------------------------------------*/
  1589.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1590.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1591.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1592.     SetLeftSoftkeyFunction(mmi_jmms_pre_entry_edit_content_text_settings, KEY_EVENT_UP);
  1593.     SetKeyHandler(mmi_jmms_pre_entry_edit_content_text_settings, KEY_WAP, KEY_EVENT_DOWN);
  1594.     SetKeyHandler(mmi_jmms_pre_entry_edit_content_text_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1595.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1596. }
  1597. /*****************************************************************************
  1598.  * FUNCTION
  1599.  *  mmi_jmms_highlight_edit_content_smil_settings
  1600.  * DESCRIPTION
  1601.  *  highlight fn for menu option edit content->smil settings
  1602.  * PARAMETERS
  1603.  *  void
  1604.  *  a(?)        [IN/OUT]        Nil(?)
  1605.  *  b(?)        [IN]            Nil(?)
  1606.  * RETURNS
  1607.  *  void
  1608.  *****************************************************************************/
  1609. void mmi_jmms_highlight_edit_content_smil_settings(void)
  1610. {
  1611.     /*----------------------------------------------------------------*/
  1612.     /* Local Variables                                                */
  1613.     /*----------------------------------------------------------------*/
  1614.     /*----------------------------------------------------------------*/
  1615.     /* Code Body                                                      */
  1616.     /*----------------------------------------------------------------*/
  1617.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1618.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1619.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1620.     SetLeftSoftkeyFunction(mmi_jmms_entry_edit_content_smil_settings, KEY_EVENT_UP);
  1621.     SetKeyHandler(mmi_jmms_entry_edit_content_smil_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1622.     SetKeyHandler(mmi_jmms_entry_edit_content_smil_settings, KEY_WAP, KEY_EVENT_DOWN);
  1623.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1624. }
  1625. /*****************************************************************************
  1626.  * FUNCTION
  1627.  *  mmi_jmms_highlight_smil_settings_text_timings
  1628.  * DESCRIPTION
  1629.  *  highlight fn for menu option edit content->smil settings->text timings
  1630.  * PARAMETERS
  1631.  *  void
  1632.  *  a(?)        [IN/OUT]        Nil(?)
  1633.  *  b(?)        [IN]            Nil(?)
  1634.  * RETURNS
  1635.  *  void
  1636.  *****************************************************************************/
  1637. void mmi_jmms_highlight_smil_settings_text_timings(void)
  1638. {
  1639.     /*----------------------------------------------------------------*/
  1640.     /* Local Variables                                                */
  1641.     /*----------------------------------------------------------------*/
  1642.     /*----------------------------------------------------------------*/
  1643.     /* Code Body                                                      */
  1644.     /*----------------------------------------------------------------*/
  1645.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1646.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1647.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1648.     SetLeftSoftkeyFunction(mmi_jmms_pre_entry_text_timing_settings, KEY_EVENT_UP);
  1649.     SetKeyHandler(mmi_jmms_pre_entry_text_timing_settings, KEY_WAP, KEY_EVENT_DOWN);
  1650.     SetKeyHandler(mmi_jmms_pre_entry_text_timing_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1651.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1652. }
  1653. /*****************************************************************************
  1654.  * FUNCTION
  1655.  *  mmi_jmms_highlight_smil_settings_image_timings
  1656.  * DESCRIPTION
  1657.  *  highlight fn for menu option edit content->smil settings->image timings
  1658.  * PARAMETERS
  1659.  *  void
  1660.  *  a(?)        [IN/OUT]        Nil(?)
  1661.  *  b(?)        [IN]            Nil(?)
  1662.  * RETURNS
  1663.  *  void
  1664.  *****************************************************************************/
  1665. void mmi_jmms_highlight_smil_settings_image_timings(void)
  1666. {
  1667.     /*----------------------------------------------------------------*/
  1668.     /* Local Variables                                                */
  1669.     /*----------------------------------------------------------------*/
  1670.     /*----------------------------------------------------------------*/
  1671.     /* Code Body                                                      */
  1672.     /*----------------------------------------------------------------*/
  1673.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1674.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1675.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1676.     SetLeftSoftkeyFunction(mmi_jmms_pre_entry_image_timing_settings, KEY_EVENT_UP);
  1677.     SetKeyHandler(mmi_jmms_pre_entry_image_timing_settings, KEY_WAP, KEY_EVENT_DOWN);
  1678.     SetKeyHandler(mmi_jmms_pre_entry_image_timing_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1679.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1680. }
  1681. /*****************************************************************************
  1682.  * FUNCTION
  1683.  *  mmi_jmms_highlight_smil_settings_audio_timings
  1684.  * DESCRIPTION
  1685.  *  highlight fn for menu option edit content->smil settings->audio timings
  1686.  * PARAMETERS
  1687.  *  void
  1688.  *  a(?)        [IN/OUT]        Nil(?)
  1689.  *  b(?)        [IN]            Nil(?)
  1690.  * RETURNS
  1691.  *  void
  1692.  *****************************************************************************/
  1693. void mmi_jmms_highlight_smil_settings_audio_timings(void)
  1694. {
  1695.     /*----------------------------------------------------------------*/
  1696.     /* Local Variables                                                */
  1697.     /*----------------------------------------------------------------*/
  1698.     /*----------------------------------------------------------------*/
  1699.     /* Code Body                                                      */
  1700.     /*----------------------------------------------------------------*/
  1701.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1702.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1703.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1704.     SetLeftSoftkeyFunction(mmi_jmms_pre_entry_audio_timing_settings, KEY_EVENT_UP);
  1705.     SetKeyHandler(mmi_jmms_pre_entry_audio_timing_settings, KEY_WAP, KEY_EVENT_DOWN);
  1706.     SetKeyHandler(mmi_jmms_pre_entry_audio_timing_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1707.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1708. }
  1709. /*****************************************************************************
  1710.  * FUNCTION
  1711.  *  mmi_jmms_highlight_smil_settings_video_timings
  1712.  * DESCRIPTION
  1713.  *  highlight fn for menu option edit content->smil settings->video timings
  1714.  * PARAMETERS
  1715.  *  void
  1716.  *  a(?)        [IN/OUT]        Nil(?)
  1717.  *  b(?)        [IN]            Nil(?)
  1718.  * RETURNS
  1719.  *  void
  1720.  *****************************************************************************/
  1721. void mmi_jmms_highlight_smil_settings_video_timings(void)
  1722. {
  1723.     /*----------------------------------------------------------------*/
  1724.     /* Local Variables                                                */
  1725.     /*----------------------------------------------------------------*/
  1726.     /*----------------------------------------------------------------*/
  1727.     /* Code Body                                                      */
  1728.     /*----------------------------------------------------------------*/
  1729.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1730.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1731.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1732.     SetLeftSoftkeyFunction(mmi_jmms_pre_entry_video_timing_settings, KEY_EVENT_UP);
  1733.     SetKeyHandler(mmi_jmms_pre_entry_video_timing_settings, KEY_WAP, KEY_EVENT_DOWN);
  1734.     SetKeyHandler(mmi_jmms_pre_entry_video_timing_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1735.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1736. }
  1737. /*****************************************************************************
  1738.  * FUNCTION
  1739.  *  mmi_jmms_highlight_smil_settings_bg_color
  1740.  * DESCRIPTION
  1741.  *  highlight fn for menu option edit content->smil settings->back ground color
  1742.  * PARAMETERS
  1743.  *  void
  1744.  *  a(?)        [IN/OUT]        Nil(?)
  1745.  *  b(?)        [IN]            Nil(?)
  1746.  * RETURNS
  1747.  *  void
  1748.  *****************************************************************************/
  1749. void mmi_jmms_highlight_smil_settings_bg_color(void)
  1750. {
  1751.     /*----------------------------------------------------------------*/
  1752.     /* Local Variables                                                */
  1753.     /*----------------------------------------------------------------*/
  1754.     /*----------------------------------------------------------------*/
  1755.     /* Code Body                                                      */
  1756.     /*----------------------------------------------------------------*/
  1757.     ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
  1758.     ChangeRightSoftkey(STR_GLOBAL_BACK, 0);
  1759.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1760.     SetLeftSoftkeyFunction(mmi_jmms_entry_smil_bg_color_settings, KEY_EVENT_UP);
  1761.     SetKeyHandler(mmi_jmms_entry_smil_bg_color_settings, KEY_WAP, KEY_EVENT_DOWN);
  1762.     SetKeyHandler(mmi_jmms_entry_smil_bg_color_settings, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
  1763.     SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
  1764. }
  1765. /*****************************************************************************
  1766.  * FUNCTION
  1767.  *  mmi_jmms_entry_attachment_options
  1768.  * DESCRIPTION
  1769.  *  Entry function when user want to edit attachments.
  1770.  * PARAMETERS
  1771.  *  void
  1772.  *  a(?)        [IN/OUT]        Nil(?)
  1773.  *  b(?)        [IN]            Nil(?)
  1774.  * RETURNS
  1775.  *  void
  1776.  *****************************************************************************/
  1777. void mmi_jmms_entry_attachment_options(void)
  1778. {
  1779.     /*----------------------------------------------------------------*/
  1780.     /* Local Variables                                                */
  1781.     /*----------------------------------------------------------------*/
  1782.     U16 str_item_list[MAX_SUB_MENUS];   /* Stores the strings id of submenus returned */
  1783.     U16 num_item;                       /* Stores no of children in the submenu */
  1784.     U16 disp_Attribute;                 /* Stores display attribue */
  1785.     U8 *gui_buffer;                     /* Buffer holding history data */
  1786.     U16 parent_id;
  1787.     /*----------------------------------------------------------------*/
  1788.     /* Code Body                                                      */
  1789.     /*----------------------------------------------------------------*/
  1790.     /* Himanshu Fix MAUI_00228900 START */
  1791.     if(g_jmms_context && g_jmms_context->compose_context)
  1792.     {
  1793.         g_jmms_context->compose_context->from_jmms_app = 0;
  1794.     }
  1795.     /* Himanshu Fix MAUI_00228900 END */
  1796. #ifdef __DRM_SUPPORT__
  1797.     if (mmi_jmms_is_drm_fwd_lock_media_in_mms(g_jmms_context->msg_handle, E_TRUE) == E_TRUE)
  1798.     {
  1799.        return;
  1800.     }
  1801. #endif 
  1802.     EntryNewScreen(SCR_ID_JMMS_ATTACHMENT_OPTIONS, NULL, mmi_jmms_entry_attachment_options, NULL);
  1803.     parent_id = MENU_ID_JMMS_ATTACHMENT_OPTIONS;
  1804.     SetParentHandler(parent_id);
  1805.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_ATTACHMENT_OPTIONS);
  1806.     if (g_jmms_context->num_attachments > 0)
  1807.     {
  1808.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_ATTACHMENT_DELETE);
  1809.     }
  1810.     else
  1811.     {
  1812.         mmi_frm_hide_menu_item(MENU_ID_JMMS_ATTACHMENT_DELETE);
  1813.     }
  1814.     disp_Attribute = GetDispAttributeOfItem(parent_id);
  1815.     num_item = GetNumOfChild_Ext(parent_id);
  1816.     GetSequenceStringIds_Ext(parent_id, str_item_list);
  1817.     RegisterHighlightHandler(ExecuteCurrHiliteHandler);
  1818.     ShowCategory52Screen(
  1819.         STR_GLOBAL_OPTIONS,
  1820.         GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
  1821.         STR_GLOBAL_OK,
  1822.         IMG_GLOBAL_OK,
  1823.         STR_GLOBAL_BACK,
  1824.         IMG_GLOBAL_BACK,
  1825.         num_item,
  1826.         str_item_list,
  1827.         (PU16) gIndexIconsImageList,
  1828.         NULL,
  1829.         0,
  1830.         0,
  1831.         gui_buffer);
  1832.     SetRightSoftkeyFunction(GoBacktoWriteMMS, KEY_EVENT_UP);
  1833. }
  1834. /*****************************************************************************
  1835.  * FUNCTION
  1836.  *  mmi_jmms_entry_attachment_insert
  1837.  * DESCRIPTION
  1838.  *  Entry function when user want to insert attachments.
  1839.  * PARAMETERS
  1840.  *  void
  1841.  *  a(?)        [IN/OUT]        Nil(?)
  1842.  *  b(?)        [IN]            Nil(?)
  1843.  * RETURNS
  1844.  *  void
  1845.  *****************************************************************************/
  1846. void mmi_jmms_entry_attachment_insert(void)
  1847. {
  1848.     /*----------------------------------------------------------------*/
  1849.     /* Local Variables                                                */
  1850.     /*----------------------------------------------------------------*/
  1851.     U16 str_item_list[MAX_SUB_MENUS];   /* Stores the strings id of submenus returned */
  1852.     U16 num_item;                       /* Stores no of children in the submenu */
  1853.     U16 disp_Attribute;                 /* Stores display attribue */
  1854.     U8 *gui_buffer;                     /* Buffer holding history data */
  1855.     U16 parent_id;
  1856.     /*----------------------------------------------------------------*/
  1857.     /* Code Body                                                      */
  1858.     /*----------------------------------------------------------------*/
  1859. /* MAUI_00228376 Start */
  1860. if(g_jmms_context->num_attachments >= JMMS_MAX_ATTACHMENTS_LIMIT)
  1861. {
  1862. DisplayPopup((PU8) GetString(STR_ID_MAX_ATTACHMENT_LIMIT),IMG_GLOBAL_ERROR, 1, JMMS_POPUP_TIME, ERROR_TONE);
  1863. return;
  1864. }
  1865. /* MAUI_00228376 End */
  1866. //#if (!defined (__MMI_VCARD__) && !defined (__MMI_VCALENDAR__))
  1867. //    mmi_jmms_entry_filemgr_insert_attachment();
  1868. //#else /* (!defined (__MMI_VCARD__) && !defined (__MMI_VCALENDAR__)) */ 
  1869.     EntryNewScreen(SCR_ID_JMMS_ATTACHMENT_INSERT, NULL, mmi_jmms_entry_attachment_insert, NULL);
  1870.     parent_id = MENU_ID_JMMS_ATTACHMENT_INSERT;
  1871.     SetParentHandler(parent_id);
  1872.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_ATTACHMENT_INSERT);
  1873.     num_item = GetNumOfChild(parent_id);
  1874.     disp_Attribute = GetDispAttributeOfItem(parent_id);
  1875.     GetSequenceStringIds(parent_id, str_item_list);
  1876.     RegisterHighlightHandler(ExecuteCurrHiliteHandler);
  1877.     ShowCategory52Screen(
  1878.         STR_GLOBAL_OPTIONS,
  1879.         GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
  1880.         STR_GLOBAL_OK,
  1881.         IMG_GLOBAL_OK,
  1882.         STR_GLOBAL_BACK,
  1883.         IMG_GLOBAL_BACK,
  1884.         num_item,
  1885.         str_item_list,
  1886.         (PU16) gIndexIconsImageList,
  1887.         NULL,
  1888.         0,
  1889.         0,
  1890.         gui_buffer);
  1891.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1892. //#endif /* (!defined (__MMI_VCARD__) && !defined (__MMI_VCALENDAR__)) */ 
  1893. }
  1894. /*****************************************************************************
  1895.  * FUNCTION
  1896.  *  mmi_jmms_entry_attachment_insert_vcard
  1897.  * DESCRIPTION
  1898.  *  Entry function when user want to insert Vcard.
  1899.  * PARAMETERS
  1900.  *  void
  1901.  *  a(?)        [IN/OUT]        Nil(?)
  1902.  *  b(?)        [IN]            Nil(?)
  1903.  * RETURNS
  1904.  *  void
  1905.  *****************************************************************************/
  1906. void mmi_jmms_entry_attachment_insert_vcard(void)
  1907. {
  1908.     /*----------------------------------------------------------------*/
  1909.     /* Local Variables                                                */
  1910.     /*----------------------------------------------------------------*/
  1911.     U16 str_item_list[MAX_SUB_MENUS];   /* Stores the strings id of submenus returned */
  1912.     U16 num_item;                       /* Stores no of children in the submenu */
  1913.     U16 disp_Attribute;                 /* Stores display attribue */
  1914.     U8 *gui_buffer;                     /* Buffer holding history data */
  1915.     U16 parent_id;
  1916.     /*----------------------------------------------------------------*/
  1917.     /* Code Body                                                      */
  1918.     /*----------------------------------------------------------------*/
  1919.     EntryNewScreen(SCR_ID_JMMS_ATTACHMENT_VCARD, NULL, mmi_jmms_entry_attachment_insert_vcard, NULL);
  1920.     parent_id = MENU_ID_JMMS_ATTACHMENT_VCARD;
  1921.     SetParentHandler(parent_id);
  1922.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_ATTACHMENT_VCARD);
  1923.     num_item = GetNumOfChild(parent_id);
  1924.     disp_Attribute = GetDispAttributeOfItem(parent_id);
  1925.     GetSequenceStringIds(parent_id, str_item_list);
  1926.     RegisterHighlightHandler(ExecuteCurrHiliteHandler);
  1927.     ShowCategory52Screen(
  1928.         STR_GLOBAL_OPTIONS,
  1929.         GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
  1930.         STR_GLOBAL_OK,
  1931.         IMG_GLOBAL_OK,
  1932.         STR_GLOBAL_BACK,
  1933.         IMG_GLOBAL_BACK,
  1934.         num_item,
  1935.         str_item_list,
  1936.         (PU16) gIndexIconsImageList,
  1937.         NULL,
  1938.         0,
  1939.         0,
  1940.         gui_buffer);
  1941.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1942. }
  1943. /*****************************************************************************
  1944.  *  
  1945.  * FUNCTION
  1946.  *  mmi_jmms_entry_attachment_insert_vcalender
  1947.  * DESCRIPTION
  1948.  *  Entry function when user want to insert vcalendar.
  1949.  * PARAMETERS
  1950.  *  void
  1951.  *  a(?)        [IN/OUT]        Nil(?)
  1952.  *  b(?)        [IN]            Nil(?)
  1953.  * RETURNS
  1954.  *  void
  1955.  *****************************************************************************/
  1956. void mmi_jmms_entry_attachment_insert_vcalender(void)
  1957. {
  1958.     /*----------------------------------------------------------------*/
  1959.     /* Local Variables                                                */
  1960.     /*----------------------------------------------------------------*/
  1961.     U16 str_item_list[MAX_SUB_MENUS];   /* Stores the strings id of submenus returned */
  1962.     U16 num_item;                       /* Stores no of children in the submenu */
  1963.     U16 disp_Attribute;                 /* Stores display attribue */
  1964.     U8 *gui_buffer;                     /* Buffer holding history data */
  1965.     U16 parent_id;
  1966.     /*----------------------------------------------------------------*/
  1967.     /* Code Body                                                      */
  1968.     /*----------------------------------------------------------------*/
  1969.     EntryNewScreen(SCR_ID_JMMS_ATTACHMENT_VCALENDAR, NULL, mmi_jmms_entry_attachment_insert_vcalender, NULL);
  1970.     parent_id = MENU_ID_JMMS_ATTACHMENT_VCALENDAR;
  1971.     SetParentHandler(parent_id);
  1972.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_ATTACHMENT_VCALENDAR);
  1973.     num_item = GetNumOfChild(parent_id);
  1974.     disp_Attribute = GetDispAttributeOfItem(parent_id);
  1975.     GetSequenceStringIds(parent_id, str_item_list);
  1976.     RegisterHighlightHandler(ExecuteCurrHiliteHandler);
  1977.     ShowCategory52Screen(
  1978.         STR_GLOBAL_OPTIONS,
  1979.         GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
  1980.         STR_GLOBAL_OK,
  1981.         IMG_GLOBAL_OK,
  1982.         STR_GLOBAL_BACK,
  1983.         IMG_GLOBAL_BACK,
  1984.         num_item,
  1985.         str_item_list,
  1986.         (PU16) gIndexIconsImageList,
  1987.         NULL,
  1988.         0,
  1989.         0,
  1990.         gui_buffer);
  1991.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  1992. }
  1993. /*****************************************************************************
  1994.  * FUNCTION
  1995.  *  mmi_jmms_show_edit_content_option
  1996.  * DESCRIPTION
  1997.  *  Entry function for edit content options
  1998.  * PARAMETERS
  1999.  *  void
  2000.  *  a(?)        [IN/OUT]        Nil(?)
  2001.  *  b(?)        [IN]            Nil(?)
  2002.  * RETURNS
  2003.  *  void
  2004.  *****************************************************************************/
  2005. void mmi_jmms_show_edit_content_option(void)
  2006. {
  2007.     /*----------------------------------------------------------------*/
  2008.     /* Local Variables                                                */
  2009.     /*----------------------------------------------------------------*/
  2010.     /*----------------------------------------------------------------*/
  2011.     /* Code Body                                                      */
  2012.     /*----------------------------------------------------------------*/
  2013.     if (mmi_jmms_exit_curr_slide() == JMMS_COMP_POPUP_OK)
  2014.     {
  2015.         history *temphistory_p;
  2016.         temphistory_p = (history*) jdd_MemAlloc(sizeof(history), 1);
  2017.         if (temphistory_p == NULL)
  2018.         {
  2019.             DisplayPopup((PU8) GetString(STR_ID_JMMS_OUT_OF_MEMORY), IMG_GLOBAL_ERROR, 1, JMMS_POPUP_TIME, ERROR_TONE);
  2020.         }
  2021.         else
  2022.         {
  2023.             memset(temphistory_p, 0, sizeof(history));
  2024.             temphistory_p->scrnID = SCR_ID_JMMS_EDIT_CONTENT_OPTIONS;
  2025.             temphistory_p->entryFuncPtr = mmi_jmms_entry_edit_content_option;
  2026.             AddHistory(*temphistory_p);
  2027.             jdd_MemFree(temphistory_p);
  2028.         }
  2029.     }
  2030.     else
  2031.     {
  2032.         mmi_jmms_entry_edit_content_option();
  2033.     }
  2034. }
  2035. /*****************************************************************************
  2036.  * FUNCTION
  2037.  *  mmi_jmms_entry_edit_content_option
  2038.  * DESCRIPTION
  2039.  *  Entry function for edit content options
  2040.  * PARAMETERS
  2041.  *  void
  2042.  *  a(?)        [IN/OUT]        Nil(?)
  2043.  *  b(?)        [IN]            Nil(?)
  2044.  * RETURNS
  2045.  *  void
  2046.  *****************************************************************************/
  2047. void mmi_jmms_entry_edit_content_option(void)
  2048. {
  2049.     /*----------------------------------------------------------------*/
  2050.     /* Local Variables                                                */
  2051.     /*----------------------------------------------------------------*/
  2052.     U16 str_item_list[MAX_SUB_MENUS];   /* Stores the strings id of submenus returned */
  2053.     U16 num_item;                       /* Stores no of children in the submenu */
  2054.     U16 disp_Attribute;                 /* Stores display attribue */
  2055.     U8 *gui_buffer;                     /* Buffer holding history data */
  2056.     U16 parent_id;
  2057.     U8 total_media_count = 0;
  2058.     U8 page_count;
  2059.     /*----------------------------------------------------------------*/
  2060.     /* Code Body                                                      */
  2061.     /*----------------------------------------------------------------*/
  2062.     EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_OPTIONS, NULL, mmi_jmms_entry_edit_content_option, NULL);
  2063.     parent_id = MENU_ID_JMMS_EDIT_CONTENT_OPTIONS;
  2064.     SetParentHandler(parent_id);
  2065.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_OPTIONS);
  2066.     disp_Attribute = GetDispAttributeOfItem(parent_id);
  2067.     if (g_jmms_context->compose_context->curr_slide_info.audio_ID == 0)
  2068.     {
  2069.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_PLAY_AUDIO);
  2070.     }
  2071.     else
  2072.     {
  2073.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_PLAY_AUDIO);
  2074.     }
  2075.     if (g_jmms_context->compose_context->curr_slide_info.video_ID == 0)
  2076.     {
  2077.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_PLAY_VIDEO);
  2078.     }
  2079.     else
  2080.     {
  2081.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_PLAY_VIDEO);
  2082.     }
  2083.     mmi_jmms_jdi_get_total_pages(g_jmms_context->msg_handle, &page_count);
  2084.     if (page_count <= 1)
  2085.     {
  2086.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO);
  2087.     }
  2088.     else
  2089.     {
  2090.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO);
  2091.     }
  2092.     /* to count total medias present in a slide. */
  2093.     if (g_jmms_context->compose_context->curr_slide_info.image_ID != 0)
  2094.     {
  2095.         total_media_count++;
  2096.     }
  2097.     if (g_jmms_context->compose_context->curr_slide_info.audio_ID != 0)
  2098.     {
  2099.         total_media_count++;
  2100.     }
  2101.     if (g_jmms_context->compose_context->curr_slide_info.video_ID != 0)
  2102.     {
  2103.         total_media_count++;
  2104.     }
  2105.     if (total_media_count == 0)
  2106.     {
  2107.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE);
  2108.     }
  2109.     else
  2110.     {
  2111.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE);
  2112.     }
  2113.     if (total_media_count == 0 && page_count <= 1)
  2114.     {
  2115.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE);
  2116.     }
  2117.     else
  2118.     {
  2119.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE);
  2120.     }
  2121.     num_item = GetNumOfChild_Ext(parent_id);
  2122.     GetSequenceStringIds_Ext(parent_id, str_item_list);
  2123.     RegisterHighlightHandler(ExecuteCurrHiliteHandler);
  2124.     ShowCategory52Screen(
  2125.         STR_GLOBAL_OPTIONS,
  2126.         GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
  2127.         STR_GLOBAL_OK,
  2128.         IMG_GLOBAL_OK,
  2129.         STR_GLOBAL_BACK,
  2130.         IMG_GLOBAL_BACK,
  2131.         num_item,
  2132.         str_item_list,
  2133.         (PU16) gIndexIconsImageList,
  2134.         NULL,
  2135.         0,
  2136.         0,
  2137.         gui_buffer);
  2138.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2139. }
  2140. /*****************************************************************************
  2141.  * FUNCTION
  2142.  *  mmi_jmms_entry_edit_content_insert
  2143.  * DESCRIPTION
  2144.  *  Entry function when user press edit content->insert.
  2145.  * PARAMETERS
  2146.  *  void
  2147.  *  a(?)        [IN/OUT]        Nil(?)
  2148.  *  b(?)        [IN]            Nil(?)
  2149.  * RETURNS
  2150.  *  void
  2151.  *****************************************************************************/
  2152. void mmi_jmms_entry_edit_content_insert(void)
  2153. {
  2154.     /*----------------------------------------------------------------*/
  2155.     /* Local Variables                                                */
  2156.     /*----------------------------------------------------------------*/
  2157.     U16 str_item_list[MAX_SUB_MENUS];   /* Stores the strings id of submenus returned */
  2158.     U16 num_item;                       /* Stores no of children in the submenu */
  2159.     U16 disp_Attribute;                 /* Stores display attribue */
  2160.     U8 *gui_buffer;                     /* Buffer holding history data */
  2161.     U16 parent_id;
  2162.     /*----------------------------------------------------------------*/
  2163.     /* Code Body                                                      */
  2164.     /*----------------------------------------------------------------*/
  2165.     EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_INSERT, NULL, mmi_jmms_entry_edit_content_insert, NULL);
  2166.     parent_id = MENU_ID_JMMS_EDIT_CONTENT_INSERT;
  2167.     SetParentHandler(parent_id);
  2168.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_INSERT);
  2169.     num_item = GetNumOfChild(parent_id);
  2170.     disp_Attribute = GetDispAttributeOfItem(parent_id);
  2171.     GetSequenceStringIds(parent_id, str_item_list);
  2172.     RegisterHighlightHandler(ExecuteCurrHiliteHandler);
  2173.     ShowCategory52Screen(
  2174.         STR_GLOBAL_OPTIONS,
  2175.         GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
  2176.         STR_GLOBAL_OK,
  2177.         IMG_GLOBAL_OK,
  2178.         STR_GLOBAL_BACK,
  2179.         IMG_GLOBAL_BACK,
  2180.         num_item,
  2181.         str_item_list,
  2182.         (PU16) gIndexIconsImageList,
  2183.         NULL,
  2184.         0,
  2185.         0,
  2186.         gui_buffer);
  2187.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2188. }
  2189. /*****************************************************************************
  2190.  * FUNCTION
  2191.  *  mmi_jmms_entry_edit_content_delete
  2192.  * DESCRIPTION
  2193.  *  Entry function when user press edit content->delete.
  2194.  * PARAMETERS
  2195.  *  void
  2196.  *  a(?)        [IN/OUT]        Nil(?)
  2197.  *  b(?)        [IN]            Nil(?)
  2198.  * RETURNS
  2199.  *  void
  2200.  *****************************************************************************/
  2201. void mmi_jmms_entry_edit_content_delete(void)
  2202. {
  2203.     /*----------------------------------------------------------------*/
  2204.     /* Local Variables                                                */
  2205.     /*----------------------------------------------------------------*/
  2206.     U16 str_item_list[MAX_SUB_MENUS];   /* Stores the strings id of submenus returned */
  2207.     U16 num_item;                       /* Stores no of children in the submenu */
  2208.     U16 disp_Attribute;                 /* Stores display attribue */
  2209.     U8 *gui_buffer;                     /* Buffer holding history data */
  2210.     U16 parent_id;
  2211.     U8 page_count;
  2212.     /*----------------------------------------------------------------*/
  2213.     /* Code Body                                                      */
  2214.     /*----------------------------------------------------------------*/
  2215.     EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_DELETE, NULL, mmi_jmms_entry_edit_content_delete, NULL);
  2216.     parent_id = MENU_ID_JMMS_EDIT_CONTENT_DELETE;
  2217.     SetParentHandler(parent_id);
  2218.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_DELETE);
  2219.     disp_Attribute = GetDispAttributeOfItem(parent_id);
  2220.     RegisterHighlightHandler(ExecuteCurrHiliteHandler);
  2221.     if (g_jmms_context->compose_context->curr_slide_info.image_ID == 0)
  2222.     {
  2223.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_IMAGE);
  2224.     }
  2225.     else
  2226.     {
  2227.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_IMAGE);
  2228.     }
  2229.     if (g_jmms_context->compose_context->curr_slide_info.audio_ID == 0)
  2230.     {
  2231.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_AUDIO);
  2232.     }
  2233.     else
  2234.     {
  2235.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_AUDIO);
  2236.     }
  2237.     if (g_jmms_context->compose_context->curr_slide_info.video_ID == 0)
  2238.     {
  2239.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_VIDEO);
  2240.     }
  2241.     else
  2242.     {
  2243.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_VIDEO);
  2244.     }
  2245.     mmi_jmms_jdi_get_total_pages(g_jmms_context->msg_handle, &page_count);
  2246.     if (page_count <= 1)
  2247.     {
  2248.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_SLIDE);
  2249.     }
  2250.     else
  2251.     {
  2252.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_DELETE_SLIDE);
  2253.     }
  2254.     num_item = GetNumOfChild_Ext(parent_id);
  2255.     GetSequenceStringIds_Ext(parent_id, str_item_list);
  2256.     ShowCategory52Screen(
  2257.         STR_GLOBAL_OPTIONS,
  2258.         GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
  2259.         STR_GLOBAL_OK,
  2260.         IMG_GLOBAL_OK,
  2261.         STR_GLOBAL_BACK,
  2262.         IMG_GLOBAL_BACK,
  2263.         num_item,
  2264.         str_item_list,
  2265.         (PU16) gIndexIconsImageList,
  2266.         NULL,
  2267.         0,
  2268.         0,
  2269.         gui_buffer);
  2270.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2271. }
  2272. /*****************************************************************************
  2273.  * FUNCTION
  2274.  *  mmi_jmms_entry_edit_content_replace
  2275.  * DESCRIPTION
  2276.  *  Entry function when user press edit content->replace.
  2277.  * PARAMETERS
  2278.  *  void
  2279.  *  a(?)        [IN/OUT]        Nil(?)
  2280.  *  b(?)        [IN]            Nil(?)
  2281.  * RETURNS
  2282.  *  void
  2283.  *****************************************************************************/
  2284. void mmi_jmms_entry_edit_content_replace(void)
  2285. {
  2286.     /*----------------------------------------------------------------*/
  2287.     /* Local Variables                                                */
  2288.     /*----------------------------------------------------------------*/
  2289.     U16 str_item_list[MAX_SUB_MENUS];   /* Stores the strings id of submenus returned */
  2290.     U16 num_item;                       /* Stores no of children in the submenu */
  2291.     U16 disp_Attribute;                 /* Stores display attribue */
  2292.     U8 *gui_buffer;                     /* Buffer holding history data */
  2293.     U16 parent_id;
  2294.     /*----------------------------------------------------------------*/
  2295.     /* Code Body                                                      */
  2296.     /*----------------------------------------------------------------*/
  2297.     EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_REPLACE, NULL, mmi_jmms_entry_edit_content_replace, NULL);
  2298.     parent_id = MENU_ID_JMMS_EDIT_CONTENT_REPLACE;
  2299.     SetParentHandler(parent_id);
  2300.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_REPLACE);
  2301.     disp_Attribute = GetDispAttributeOfItem(parent_id);
  2302.     RegisterHighlightHandler(ExecuteCurrHiliteHandler);
  2303.     if (g_jmms_context->compose_context->curr_slide_info.image_ID == 0)
  2304.     {
  2305.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_IMAGE);
  2306.     }
  2307.     else
  2308.     {
  2309.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_IMAGE);
  2310.     }
  2311.     if (g_jmms_context->compose_context->curr_slide_info.audio_ID == 0)
  2312.     {
  2313.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_AUDIO);
  2314.     }
  2315.     else
  2316.     {
  2317.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_AUDIO);
  2318.     }
  2319.     if (g_jmms_context->compose_context->curr_slide_info.video_ID == 0)
  2320.     {
  2321.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_VIDEO);
  2322.     }
  2323.     else
  2324.     {
  2325.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_REPLACE_VIDEO);
  2326.     }
  2327.     num_item = GetNumOfChild_Ext(parent_id);
  2328.     GetSequenceStringIds_Ext(parent_id, str_item_list);
  2329.     ShowCategory52Screen(
  2330.         STR_GLOBAL_OPTIONS,
  2331.         GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
  2332.         STR_GLOBAL_OK,
  2333.         IMG_GLOBAL_OK,
  2334.         STR_GLOBAL_BACK,
  2335.         IMG_GLOBAL_BACK,
  2336.         num_item,
  2337.         str_item_list,
  2338.         (PU16) gIndexIconsImageList,
  2339.         NULL,
  2340.         0,
  2341.         0,
  2342.         gui_buffer);
  2343.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2344. }
  2345. /*****************************************************************************
  2346.  * FUNCTION
  2347.  *  mmi_jmms_entry_edit_content_goto
  2348.  * DESCRIPTION
  2349.  *  Entry function when user press edit content->goto.
  2350.  * PARAMETERS
  2351.  *  void
  2352.  *  a(?)        [IN/OUT]        Nil(?)
  2353.  *  b(?)        [IN]            Nil(?)
  2354.  * RETURNS
  2355.  *  void
  2356.  *****************************************************************************/
  2357. void mmi_jmms_entry_edit_content_goto(void)
  2358. {
  2359.     /*----------------------------------------------------------------*/
  2360.     /* Local Variables                                                */
  2361.     /*----------------------------------------------------------------*/
  2362.     U16 str_item_list[MAX_SUB_MENUS];   /* Stores the strings id of submenus returned */
  2363.     U16 num_item;                       /* Stores no of children in the submenu */
  2364.     U16 disp_Attribute;                 /* Stores display attribue */
  2365.     U8 *gui_buffer;                     /* Buffer holding history data */
  2366.     U16 parent_id;
  2367.     U8 page_count;
  2368.     /*----------------------------------------------------------------*/
  2369.     /* Code Body                                                      */
  2370.     /*----------------------------------------------------------------*/
  2371.     mmi_jmms_jdi_get_total_pages(g_jmms_context->msg_handle, &page_count);
  2372.     EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_GOTO, NULL, mmi_jmms_entry_edit_content_goto, NULL);
  2373.     parent_id = MENU_ID_JMMS_EDIT_CONTENT_GOTO;
  2374.     SetParentHandler(parent_id);
  2375.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_GOTO);
  2376.     num_item = GetNumOfChild(parent_id);
  2377.     disp_Attribute = GetDispAttributeOfItem(parent_id);
  2378.     GetSequenceStringIds(parent_id, str_item_list);
  2379.     RegisterHighlightHandler(ExecuteCurrHiliteHandler);
  2380.     if (g_jmms_context->compose_context->curr_page_index > 1)
  2381.     {
  2382.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO_PREVIOUS);
  2383.     }
  2384.     else
  2385.     {
  2386.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO_PREVIOUS);
  2387.     }
  2388.     if (page_count > g_jmms_context->compose_context->curr_page_index)
  2389.     {
  2390.         mmi_frm_unhide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO_NEXT);
  2391.     }
  2392.     else
  2393.     {
  2394.         mmi_frm_hide_menu_item(MENU_ID_JMMS_EDIT_CONTENT_GOTO_NEXT);
  2395.     }
  2396.     num_item = GetNumOfChild_Ext(parent_id);
  2397.     GetSequenceStringIds_Ext(parent_id, str_item_list);
  2398.     ShowCategory52Screen(
  2399.         STR_ID_JMMS_SLIDE_LIST,
  2400.         GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
  2401.         STR_GLOBAL_OK,
  2402.         IMG_GLOBAL_OK,
  2403.         STR_GLOBAL_BACK,
  2404.         IMG_GLOBAL_BACK,
  2405.         num_item,
  2406.         str_item_list,
  2407.         (PU16) gIndexIconsImageList,
  2408.         NULL,
  2409.         0,
  2410.         0,
  2411.         gui_buffer);
  2412.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2413. }
  2414. /*****************************************************************************
  2415.  * FUNCTION
  2416.  *  mmi_jmms_entry_edit_content_settings
  2417.  * DESCRIPTION
  2418.  *  Entry function when user press edit content->SETTINGS.
  2419.  * PARAMETERS
  2420.  *  void
  2421.  *  a(?)        [IN/OUT]        Nil(?)
  2422.  *  b(?)        [IN]            Nil(?)
  2423.  * RETURNS
  2424.  *  void
  2425.  *****************************************************************************/
  2426. void mmi_jmms_entry_edit_content_settings(void)
  2427. {
  2428.     /*----------------------------------------------------------------*/
  2429.     /* Local Variables                                                */
  2430.     /*----------------------------------------------------------------*/
  2431.     U16 str_item_list[MAX_SUB_MENUS];   /* Stores the strings id of submenus returned */
  2432.     U16 num_item;                       /* Stores no of children in the submenu */
  2433.     U16 disp_Attribute;                 /* Stores display attribue */
  2434.     U8 *gui_buffer;                     /* Buffer holding history data */
  2435.     U16 parent_id;
  2436.     /*----------------------------------------------------------------*/
  2437.     /* Code Body                                                      */
  2438.     /*----------------------------------------------------------------*/
  2439. PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s ", "mmi_jmms_entry_edit_content_settings"));
  2440. 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));
  2441. 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));
  2442. 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));
  2443.     EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_SETTINGS, NULL, mmi_jmms_entry_edit_content_settings, NULL);
  2444.     parent_id = MENU_ID_JMMS_EDIT_CONTENT_SETTINGS;
  2445.     SetParentHandler(parent_id);
  2446.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_SETTINGS);
  2447.     num_item = GetNumOfChild(parent_id);
  2448.     disp_Attribute = GetDispAttributeOfItem(parent_id);
  2449.     GetSequenceStringIds(parent_id, str_item_list);
  2450.     RegisterHighlightHandler(ExecuteCurrHiliteHandler);
  2451.     ShowCategory52Screen(
  2452.         STR_ID_JMMS_EDIT_CONTENT_SETTINGS,
  2453.         GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
  2454.         STR_GLOBAL_OK,
  2455.         IMG_GLOBAL_OK,
  2456.         STR_GLOBAL_BACK,
  2457.         IMG_GLOBAL_BACK,
  2458.         num_item,
  2459.         str_item_list,
  2460.         (PU16) gIndexIconsImageList,
  2461.         NULL,
  2462.         0,
  2463.         0,
  2464.         gui_buffer);
  2465.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2466. }
  2467. /*****************************************************************************
  2468.  * FUNCTION
  2469.  *  mmi_jmms_pre_entry_edit_content_text_settings
  2470.  * DESCRIPTION
  2471.  *  pre Entry function when user press edit content->SETTINGS->text settings.
  2472.  * PARAMETERS
  2473.  *  void
  2474.  *  a(?)        [IN/OUT]        Nil(?)
  2475.  *  b(?)        [IN]            Nil(?)
  2476.  * RETURNS
  2477.  *  void
  2478.  *****************************************************************************/
  2479. void mmi_jmms_pre_entry_edit_content_text_settings(void)
  2480. {
  2481.     /*----------------------------------------------------------------*/
  2482.     /* Local Variables                                                */
  2483.     /*----------------------------------------------------------------*/
  2484.     U8 count = 0;
  2485.     /*----------------------------------------------------------------*/
  2486.     /* Code Body                                                      */
  2487.     /*----------------------------------------------------------------*/
  2488. PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s ", "mmi_jmms_pre_entry_edit_content_text_settings "));
  2489. 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));
  2490. 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));
  2491. 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));
  2492.     if (g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.size == SMALL_FONT)
  2493.     {
  2494.         g_jmms_context->jmms_inline_items.text_settings_items.size_selected = SIZE_SMALL;
  2495.     }
  2496.     else if (g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.size == LARGE_FONT)
  2497.     {
  2498.         g_jmms_context->jmms_inline_items.text_settings_items.size_selected = SIZE_LARGE;
  2499.     }
  2500.     else
  2501.     {
  2502.         g_jmms_context->jmms_inline_items.text_settings_items.size_selected = SIZE_NORMAL;
  2503.     }
  2504.     g_jmms_context->jmms_inline_items.text_settings_items.italic_selected =
  2505.         g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.italic;
  2506.     g_jmms_context->jmms_inline_items.text_settings_items.bold_selected =
  2507.         g_jmms_context->compose_context->curr_slide_info.slide_prop.text_font.bold;
  2508.     for (count = 0;
  2509.          g_jmms_context->compose_context->curr_slide_info.slide_prop.text_color != g_jmms_color_RGB_list[count] &&
  2510.          count < MAX_JMMS_COLOR_NUM - 1; count++);
  2511.     if (count == MAX_JMMS_COLOR_NUM - 1)
  2512.     {
  2513.         g_jmms_context->jmms_inline_items.text_settings_items.color_selected = MAX_JMMS_COLOR_NUM - 1;
  2514.         g_text_custom_color_RGB = g_jmms_context->compose_context->curr_slide_info.slide_prop.text_color;       /* sanjeev added */
  2515.     }
  2516.     else
  2517.     {
  2518.         g_jmms_context->jmms_inline_items.text_settings_items.color_selected = count;
  2519.         g_text_custom_color_RGB = 100;  /* sanjeev added */
  2520.     }
  2521.     g_custom_var_change = 0;
  2522. 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));  
  2523. 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));  
  2524. 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));  
  2525.     
  2526.     mmi_jmms_entry_edit_content_text_settings();
  2527. }
  2528. /*****************************************************************************
  2529.  * FUNCTION
  2530.  *  mmi_jmms_entry_edit_content_text_settings
  2531.  * DESCRIPTION
  2532.  *  Entry function when user press edit content->SETTINGS->text settings.
  2533.  * PARAMETERS
  2534.  *  void
  2535.  *  a(?)        [IN/OUT]        Nil(?)
  2536.  *  b(?)        [IN]            Nil(?)
  2537.  * RETURNS
  2538.  *  void
  2539.  *****************************************************************************/
  2540. void mmi_jmms_entry_edit_content_text_settings(void)
  2541. {
  2542.     /*----------------------------------------------------------------*/
  2543.     /* Local Variables                                                */
  2544.     /*----------------------------------------------------------------*/
  2545.     U8 *gui_buffer;
  2546.     U8 *input_buffer;
  2547.     U16 input_buffer_size;
  2548.     U16 parent_id;
  2549.     U16 num_item;   /* Stores no of children in the submenu */
  2550.     InlineItem text_settings_inline_edit_list[8];
  2551.     MMI_ID_TYPE item_icons[] = 
  2552.     {
  2553.         IMG_GLOBAL_L1,
  2554.         0,
  2555.         IMG_GLOBAL_L2,
  2556.         0,
  2557.         IMG_GLOBAL_L3,
  2558.         0,
  2559.         IMG_GLOBAL_L4,
  2560.         0,
  2561.     };
  2562.     /*----------------------------------------------------------------*/
  2563.     /* Code Body                                                      */
  2564.     /*----------------------------------------------------------------*/
  2565.     EntryNewScreen(SCR_ID_JMMS_EDIT_CONTENT_TEXT_SETTINGS, mmi_mms_exit_text_settings, NULL, NULL);
  2566.     parent_id = MENU_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT;
  2567.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_EDIT_CONTENT_TEXT_SETTINGS);
  2568.     input_buffer = GetCurrNInputBuffer(SCR_ID_JMMS_EDIT_CONTENT_TEXT_SETTINGS, &input_buffer_size);
  2569.     SetParentHandler(parent_id);
  2570.     num_item = GetNumOfChild(parent_id);
  2571.     InitializeCategory57Screen();
  2572.     mmi_jmms_fill_txt_setting_inline_edit_struct((void*)text_settings_inline_edit_list);
  2573.     if (input_buffer != NULL)   /* added for inline edit history */
  2574.     {
  2575.         SetCategory57Data(text_settings_inline_edit_list, num_item, input_buffer);      /* sets the data */
  2576.     }
  2577.     if (GetInlineDoneFlag(gui_buffer) == 0)
  2578.     {
  2579.         if (g_custom_var_change == 1)
  2580.         {
  2581.             SetInlineDoneFlag(gui_buffer);
  2582.         }
  2583.     }
  2584.     ShowCategory57Screen(
  2585.         STR_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT,
  2586.         GetRootTitleIcon(MAIN_MENU_MESSAGES_MENUID),
  2587.         STR_GLOBAL_EDIT,
  2588.         IMG_GLOBAL_OK,
  2589.         STR_GLOBAL_DONE,
  2590.         IMG_GLOBAL_BACK,
  2591.         num_item * 2,
  2592.         (PU16) item_icons,
  2593.         text_settings_inline_edit_list,
  2594.         0,
  2595.         gui_buffer);
  2596.     SetCategory57RightSoftkeyFunctions(mmi_jmms_confirm_save_txt_settings, GoBackHistory);
  2597. }
  2598. /*****************************************************************************
  2599.  * FUNCTION
  2600.  *  mmi_mms_exit_text_settings
  2601.  * DESCRIPTION
  2602.  *  Exit function when user press edit content->SETTINGS.
  2603.  * PARAMETERS
  2604.  *  void
  2605.  *  a(?)        [IN/OUT]        Nil(?)
  2606.  *  b(?)        [IN]            Nil(?)
  2607.  * RETURNS
  2608.  *  void
  2609.  *****************************************************************************/
  2610. void mmi_mms_exit_text_settings(void)
  2611. {
  2612.     /*----------------------------------------------------------------*/
  2613.     /* Local Variables                                                */
  2614.     /*----------------------------------------------------------------*/
  2615.     history scr;    /* Variable to hold the history data */
  2616.     S16 history_data = 0;
  2617.     U16 size;
  2618.     /*----------------------------------------------------------------*/
  2619.     /* Code Body                                                      */
  2620.     /*----------------------------------------------------------------*/
  2621.     CloseCategory57Screen();
  2622.     scr.scrnID = SCR_ID_JMMS_EDIT_CONTENT_TEXT_SETTINGS;
  2623.     scr.entryFuncPtr = mmi_jmms_entry_edit_content_text_settings;
  2624.     pfnUnicodeStrcpy((S8*) scr.inputBuffer, (S8*) & history_data);
  2625.     GetCategory57History(scr.guiBuffer);
  2626.     size = (U16) GetCategory57DataSize();       /* added for inline edit history */
  2627.     GetCategory57Data((U8*) scr.inputBuffer);   /* added for inline edit history */
  2628.     AddNHistory(scr, size);
  2629.     if (g_jmms_context->jmms_inline_lists != NULL)
  2630.     {
  2631.         jdd_MemFree(g_jmms_context->jmms_inline_lists);
  2632.         g_jmms_context->jmms_inline_lists = NULL;
  2633.     }
  2634. }
  2635. /*****************************************************************************
  2636.  * FUNCTION
  2637.  *  mmi_jmms_fill_txt_setting_inline_edit_struct
  2638.  * DESCRIPTION
  2639.  *  this fn will fill the inline struct of text settings
  2640.  * PARAMETERS
  2641.  *  inline_edit_p       [OUT]       
  2642.  * RETURNS
  2643.  *  void
  2644.  *****************************************************************************/
  2645. void mmi_jmms_fill_txt_setting_inline_edit_struct(void *inline_edit_p)
  2646. {
  2647.     /*----------------------------------------------------------------*/
  2648.     /* Local Variables                                                */
  2649.     /*----------------------------------------------------------------*/
  2650.     InlineItem *inline_struct_p = (InlineItem*) inline_edit_p;
  2651.     U8 item_offset = 0;
  2652.     /*----------------------------------------------------------------*/
  2653.     /* Code Body                                                      */
  2654.     /*----------------------------------------------------------------*/
  2655.     if (g_jmms_context->jmms_inline_lists == NULL)
  2656.     {
  2657.         g_jmms_context->jmms_inline_lists =
  2658.             (jmms_common_inline_lists_struct*) jdd_MemAlloc(sizeof(jmms_common_inline_lists_struct), 1);
  2659.         if (g_jmms_context->jmms_inline_lists == NULL)
  2660.         {
  2661.             DisplayPopup((PU8) GetString(STR_ID_JMMS_OUT_OF_MEMORY), IMG_GLOBAL_ERROR, 1, JMMS_POPUP_TIME, ERROR_TONE);
  2662.             return;
  2663.         }
  2664.     }
  2665.     g_jmms_context->jmms_inline_lists->on_off_list[1] = (S8*) GetString(STR_GLOBAL_ON);
  2666.     g_jmms_context->jmms_inline_lists->on_off_list[0] = (S8*) GetString(STR_GLOBAL_OFF);
  2667.     g_jmms_context->jmms_inline_items.text_settings_items.size_list[0] =
  2668.         (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_SIZE_SMALL);
  2669.     g_jmms_context->jmms_inline_items.text_settings_items.size_list[1] =
  2670.         (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_SIZE_MEDIUM);
  2671.     g_jmms_context->jmms_inline_items.text_settings_items.size_list[2] =
  2672.         (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_SIZE_LARGE);
  2673.     g_jmms_context->jmms_inline_items.text_settings_items.color_list[0] =
  2674.         (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_COLOR1);
  2675.     g_jmms_context->jmms_inline_items.text_settings_items.color_list[1] =
  2676.         (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_COLOR2);
  2677.     g_jmms_context->jmms_inline_items.text_settings_items.color_list[2] =
  2678.         (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_COLOR3);
  2679.     g_jmms_context->jmms_inline_items.text_settings_items.color_list[3] =
  2680.         (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_COLOR4);
  2681.     g_jmms_context->jmms_inline_items.text_settings_items.color_list[4] =
  2682.         (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_COLOR5);
  2683.     g_jmms_context->jmms_inline_items.text_settings_items.color_list[5] =
  2684.         (S8*) GetString(STR_ID_JMMS_TEXT_SETTINGS_CUSTOM);
  2685.     SetInlineItemActivation(&inline_struct_p[item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
  2686.     SetInlineItemCaption(
  2687.         &inline_struct_p[item_offset],
  2688.         (PU8) (U8*) GetString(STR_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT_SIZE));
  2689.     SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
  2690.     SetInlineItemSelect(
  2691.         &inline_struct_p[item_offset],
  2692.         3,
  2693.         (U8 **) g_jmms_context->jmms_inline_items.text_settings_items.size_list,
  2694.         (S32*) & (g_jmms_context->jmms_inline_items.text_settings_items.size_selected) /* CurrSelect */ );
  2695.     SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
  2696.     SetInlineItemCaption(
  2697.         &inline_struct_p[item_offset],
  2698.         (PU8) (U8*) GetString(STR_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT_ITALIC));
  2699.     SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
  2700.     SetInlineItemSelect(
  2701.         &inline_struct_p[item_offset],
  2702.         2,
  2703.         (U8 **) g_jmms_context->jmms_inline_lists->on_off_list,
  2704.         (S32*) & (g_jmms_context->jmms_inline_items.text_settings_items.italic_selected) /* CurrSelect */ );
  2705.     SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
  2706.     SetInlineItemCaption(
  2707.         &inline_struct_p[item_offset],
  2708.         (PU8) (U8*) GetString(STR_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT_BOLD));
  2709.     SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
  2710.     SetInlineItemSelect(
  2711.         &inline_struct_p[item_offset],
  2712.         2,
  2713.         (U8 **) g_jmms_context->jmms_inline_lists->on_off_list,
  2714.         (S32*) & (g_jmms_context->jmms_inline_items.text_settings_items.bold_selected) /* CurrSelect */ );
  2715.     SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
  2716.     SetInlineItemCaption(
  2717.         &inline_struct_p[item_offset],
  2718.         (PU8) (U8*) GetString(STR_ID_JMMS_EDIT_CONTENT_SETTINGS_TEXT_COLOR));
  2719.     SetInlineItemActivation(&inline_struct_p[++item_offset], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0);
  2720.     SetInlineItemSelect(
  2721.         &inline_struct_p[item_offset],
  2722.         MAX_JMMS_COLOR_NUM,
  2723.         (U8 **) g_jmms_context->jmms_inline_items.text_settings_items.color_list,
  2724.         (S32*) & (g_jmms_context->jmms_inline_items.text_settings_items.color_selected) /* CurrSelect */ );
  2725.     RegisterInlineSelectHighlightHandler(&inline_struct_p[item_offset], mmi_jmms_inline_text_color_hilite_handler);
  2726. }
  2727. /*****************************************************************************
  2728.  * FUNCTION
  2729.  *  mmi_jmms_confirm_save_txt_settings
  2730.  * DESCRIPTION
  2731.  *  fn shown confirmation popup when user press done on text settings.
  2732.  * PARAMETERS
  2733.  *  void
  2734.  *  a(?)        [IN/OUT]        Nil(?)
  2735.  *  b(?)        [IN]            Nil(?)
  2736.  * RETURNS
  2737.  *  void
  2738.  *****************************************************************************/
  2739. void mmi_jmms_confirm_save_txt_settings(void)
  2740. {
  2741.     /*----------------------------------------------------------------*/
  2742.     /* Local Variables                                                */
  2743.     /*----------------------------------------------------------------*/
  2744.     /*----------------------------------------------------------------*/
  2745.     /* Code Body                                                      */
  2746.     /*----------------------------------------------------------------*/
  2747.     DisplayConfirm(
  2748.         STR_GLOBAL_YES,
  2749.         IMG_GLOBAL_YES,
  2750.         STR_GLOBAL_NO,
  2751.         IMG_GLOBAL_NO,
  2752.         get_string(STR_GLOBAL_SAVE),
  2753.         IMG_GLOBAL_QUESTION,
  2754.         WARNING_TONE);
  2755.     SetLeftSoftkeyFunction(mmi_jmms_save_txt_settings, KEY_EVENT_UP);
  2756.     SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
  2757.     DeleteUptoScrID(SCR_ID_JMMS_EDIT_CONTENT_SETTINGS);
  2758. }
  2759. /*****************************************************************************
  2760.  * FUNCTION
  2761.  *  mmi_jmms_save_txt_settings
  2762.  * DESCRIPTION
  2763.  *  fn to be called when user press yes on text settings.
  2764.  * PARAMETERS
  2765.  *  void
  2766.  *  a(?)        [IN/OUT]        Nil(?)
  2767.  *  b(?)        [IN]            Nil(?)
  2768.  * RETURNS
  2769.  *  void
  2770.  *****************************************************************************/
  2771. void mmi_jmms_save_txt_settings(void)
  2772. {
  2773.     /*----------------------------------------------------------------*/
  2774.     /* Local Variables                                                */
  2775.     /*----------------------------------------------------------------*/
  2776.     JMMS_COMP_ERRCODE err_code = JMMS_COMP_OK;
  2777.     slide_prop_struct curr_slide_prop;
  2778.     /*----------------------------------------------------------------*/
  2779.     /* Code Body                                                      */
  2780.     /*----------------------------------------------------------------*/
  2781.     memcpy(&curr_slide_prop, &g_jmms_context->compose_context->curr_slide_info.slide_prop, sizeof(slide_prop_struct));
  2782. PRINT_INFORMATION_2((MMI_TRACE_INFO, "%s ", "mmi_jmms_save_txt_settings"));  
  2783. 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));  
  2784. 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));  
  2785. 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));  
  2786.     if (g_jmms_context->jmms_inline_items.text_settings_items.size_selected == SIZE_SMALL)
  2787.     {
  2788.         curr_slide_prop.text_font.size = SMALL_FONT;
  2789.     }
  2790.     else if (g_jmms_context->jmms_inline_items.text_settings_items.size_selected == SIZE_LARGE)
  2791.     {
  2792.         curr_slide_prop.text_font.size = LARGE_FONT;
  2793.     }
  2794.     else
  2795.     {
  2796.         curr_slide_prop.text_font.size = MEDIUM_FONT;
  2797.     }
  2798.     curr_slide_prop.text_font.italic = g_jmms_context->jmms_inline_items.text_settings_items.italic_selected;
  2799.     curr_slide_prop.text_font.bold = g_jmms_context->jmms_inline_items.text_settings_items.bold_selected;
  2800.     if (g_jmms_context->jmms_inline_items.text_settings_items.color_selected < MAX_JMMS_COLOR_NUM - 1)
  2801.     {
  2802.         curr_slide_prop.text_color =
  2803.             g_jmms_color_RGB_list[g_jmms_context->jmms_inline_items.text_settings_items.color_selected];
  2804.     }
  2805.     else
  2806.     {
  2807.         curr_slide_prop.text_color = g_text_custom_color_RGB;
  2808.     }
  2809.     if (g_jmms_context->compose_context->curr_slide_info.text_ID != 0)
  2810.     {
  2811.         err_code = mmi_jmms_set_text_attributes(
  2812.                     g_jmms_context->compose_context->curr_slide_info.text_ID,
  2813.                     g_jmms_context->compose_context->curr_page_index,
  2814.                     &curr_slide_prop);
  2815.         if (err_code == JMMS_COMP_OK)
  2816.         {
  2817.             memcpy(
  2818.                 &g_jmms_context->compose_context->curr_slide_info.slide_prop,
  2819.                 &curr_slide_prop,
  2820.                 sizeof(slide_prop_struct));
  2821.             DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JMMS_POPUP_TIME, SUCCESS_TONE);
  2822.         }
  2823.     }
  2824.     else
  2825.     {
  2826.         memcpy(
  2827.             &g_jmms_context->compose_context->curr_slide_info.slide_prop,
  2828.             &curr_slide_prop,
  2829.             sizeof(slide_prop_struct));
  2830.         DisplayPopup((PU8) GetString(STR_GLOBAL_DONE), IMG_GLOBAL_ACTIVATED, 1, JMMS_POPUP_TIME, SUCCESS_TONE);
  2831.     }
  2832. 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));  
  2833. 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));  
  2834. 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));  
  2835.     DeleteUptoScrID(SCR_ID_JMMS_EDIT_CONTENT);
  2836. }
  2837. /*****************************************************************************
  2838.  * FUNCTION
  2839.  *  mmi_jmms_inline_text_color_hilite_handler
  2840.  * DESCRIPTION
  2841.  *  fn to be called when color is highlited in text settings.
  2842.  * PARAMETERS
  2843.  *  index       [IN]        
  2844.  *  a(?)        [IN/OUT]        Nil(?)
  2845.  *  b(?)        [IN]            Nil(?)
  2846.  * RETURNS
  2847.  *  void
  2848.  *****************************************************************************/
  2849. void mmi_jmms_inline_text_color_hilite_handler(S32 index)
  2850. {
  2851.     /*----------------------------------------------------------------*/
  2852.     /* Local Variables                                                */
  2853.     /*----------------------------------------------------------------*/
  2854.     /*----------------------------------------------------------------*/
  2855.     /* Code Body                                                      */
  2856.     /*----------------------------------------------------------------*/
  2857.     if (index == MAX_JMMS_COLOR_NUM - 1)
  2858.     {
  2859.         ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
  2860.         SetCategory57LeftSoftkeyFunction(mmi_jmms_entry_txt_custom_color);
  2861.     }
  2862.     else
  2863.     {
  2864.         ChangeLeftSoftkey(0, 0);
  2865.         ClearKeyHandler(KEY_LSK, KEY_EVENT_UP);
  2866.     }
  2867. }
  2868. /*****************************************************************************
  2869.  * FUNCTION
  2870.  *  mmi_jmms_entry_txt_custom_color
  2871.  * DESCRIPTION
  2872.  *  entry fn for custom color screen.
  2873.  * PARAMETERS
  2874.  *  void
  2875.  *  a(?)        [IN/OUT]        Nil(?)
  2876.  *  b(?)        [IN]            Nil(?)
  2877.  * RETURNS
  2878.  *  void
  2879.  *****************************************************************************/
  2880. void mmi_jmms_entry_txt_custom_color(void)
  2881. {
  2882.     /*----------------------------------------------------------------*/
  2883.     /* Local Variables                                                */
  2884.     /*----------------------------------------------------------------*/
  2885.     U8 *gui_buffer;
  2886.     /*----------------------------------------------------------------*/
  2887.     /* Code Body                                                      */
  2888.     /*----------------------------------------------------------------*/
  2889.     EntryNewScreen(SCR_ID_JMMS_CUSTOM_COLOR, NULL, mmi_jmms_entry_txt_custom_color, NULL);
  2890.     gui_buffer = GetCurrGuiBuffer(SCR_ID_JMMS_CUSTOM_COLOR);
  2891. /* MAUI_00018451 Start */
  2892. if (gui_buffer == NULL)
  2893. {
  2894.     g_slider_info = MMI_CAT91_COLOR_SLIDER_RED_COLOR;
  2895. }
  2896. /* MAUI_00018451 End */
  2897.     g_custom_color_RGB_list[0] = (U8) ((0xFF000000 & g_text_custom_color_RGB) >> 24);
  2898.     g_custom_color_RGB_list[1] = (U8) ((0x00FF0000 & g_text_custom_color_RGB) >> 16);
  2899.     g_custom_color_RGB_list[2] = (U8) ((0x0000FF00 & g_text_custom_color_RGB) >> 8);
  2900.     ShowCategory91Screen(