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

MTK

开发平台:

C/C++

  1.  *  void
  2.  *****************************************************************************/
  3. void wgui_EMS_inputbox_change_input_mode_smart_DANISH(void)
  4. {
  5.     /*----------------------------------------------------------------*/
  6.     /* Local Variables                                                */
  7.     /*----------------------------------------------------------------*/
  8.     /*----------------------------------------------------------------*/
  9.     /* Code Body                                                      */
  10.     /*----------------------------------------------------------------*/
  11.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_DANISH;
  12.     wgui_EMS_inputbox_input_mode_changed = 1;
  13. }
  14. /*****************************************************************************
  15.  * FUNCTION
  16.  *  wgui_EMS_inputbox_change_input_mode_smart_danish
  17.  * DESCRIPTION
  18.  *  
  19.  * PARAMETERS
  20.  *  void
  21.  * RETURNS
  22.  *  void
  23.  *****************************************************************************/
  24. void wgui_EMS_inputbox_change_input_mode_smart_danish(void)
  25. {
  26.     /*----------------------------------------------------------------*/
  27.     /* Local Variables                                                */
  28.     /*----------------------------------------------------------------*/
  29.     /*----------------------------------------------------------------*/
  30.     /* Code Body                                                      */
  31.     /*----------------------------------------------------------------*/
  32.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_DANISH;
  33.     wgui_EMS_inputbox_input_mode_changed = 1;
  34. }
  35. #endif /* defined(__MMI_T9_DANISH__) || defined(__MMI_ZI_DANISH__) */ 
  36. #if defined(__MMI_T9_POLISH__) || defined(__MMI_ZI_POLISH__)
  37. /*****************************************************************************
  38.  * FUNCTION
  39.  *  wgui_EMS_inputbox_change_input_mode_smart_POLISH
  40.  * DESCRIPTION
  41.  *  
  42.  * PARAMETERS
  43.  *  void
  44.  * RETURNS
  45.  *  void
  46.  *****************************************************************************/
  47. void wgui_EMS_inputbox_change_input_mode_smart_POLISH(void)
  48. {
  49.     /*----------------------------------------------------------------*/
  50.     /* Local Variables                                                */
  51.     /*----------------------------------------------------------------*/
  52.     /*----------------------------------------------------------------*/
  53.     /* Code Body                                                      */
  54.     /*----------------------------------------------------------------*/
  55.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_POLISH;
  56.     wgui_EMS_inputbox_input_mode_changed = 1;
  57. }
  58. /*****************************************************************************
  59.  * FUNCTION
  60.  *  wgui_EMS_inputbox_change_input_mode_smart_polish
  61.  * DESCRIPTION
  62.  *  
  63.  * PARAMETERS
  64.  *  void
  65.  * RETURNS
  66.  *  void
  67.  *****************************************************************************/
  68. void wgui_EMS_inputbox_change_input_mode_smart_polish(void)
  69. {
  70.     /*----------------------------------------------------------------*/
  71.     /* Local Variables                                                */
  72.     /*----------------------------------------------------------------*/
  73.     /*----------------------------------------------------------------*/
  74.     /* Code Body                                                      */
  75.     /*----------------------------------------------------------------*/
  76.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_POLISH;
  77.     wgui_EMS_inputbox_input_mode_changed = 1;
  78. }
  79. #endif /* defined(__MMI_T9_POLISH__) || defined(__MMI_ZI_POLISH__) */ 
  80. #if defined(__MMI_T9_FRENCH__) || defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__)
  81. /*****************************************************************************
  82.  * FUNCTION
  83.  *  wgui_EMS_inputbox_change_input_mode_smart_FRENCH
  84.  * DESCRIPTION
  85.  *  
  86.  * PARAMETERS
  87.  *  void
  88.  * RETURNS
  89.  *  void
  90.  *****************************************************************************/
  91. void wgui_EMS_inputbox_change_input_mode_smart_FRENCH(void)
  92. {
  93.     /*----------------------------------------------------------------*/
  94.     /* Local Variables                                                */
  95.     /*----------------------------------------------------------------*/
  96.     /*----------------------------------------------------------------*/
  97.     /* Code Body                                                      */
  98.     /*----------------------------------------------------------------*/
  99.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_FRENCH;
  100.     wgui_EMS_inputbox_input_mode_changed = 1;
  101. }
  102. /*****************************************************************************
  103.  * FUNCTION
  104.  *  wgui_EMS_inputbox_change_input_mode_smart_french
  105.  * DESCRIPTION
  106.  *  
  107.  * PARAMETERS
  108.  *  void
  109.  * RETURNS
  110.  *  void
  111.  *****************************************************************************/
  112. void wgui_EMS_inputbox_change_input_mode_smart_french(void)
  113. {
  114.     /*----------------------------------------------------------------*/
  115.     /* Local Variables                                                */
  116.     /*----------------------------------------------------------------*/
  117.     /*----------------------------------------------------------------*/
  118.     /* Code Body                                                      */
  119.     /*----------------------------------------------------------------*/
  120.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_FRENCH;
  121.     wgui_EMS_inputbox_input_mode_changed = 1;
  122. }
  123. #endif /* defined(__MMI_T9_FRENCH__) || defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__) */ 
  124. #if defined(__MMI_T9_GERMAN__) || defined(__MMI_ZI_GERMAN__)
  125. /*****************************************************************************
  126.  * FUNCTION
  127.  *  wgui_EMS_inputbox_change_input_mode_smart_GERMAN
  128.  * DESCRIPTION
  129.  *  
  130.  * PARAMETERS
  131.  *  void
  132.  * RETURNS
  133.  *  void
  134.  *****************************************************************************/
  135. void wgui_EMS_inputbox_change_input_mode_smart_GERMAN(void)
  136. {
  137.     /*----------------------------------------------------------------*/
  138.     /* Local Variables                                                */
  139.     /*----------------------------------------------------------------*/
  140.     /*----------------------------------------------------------------*/
  141.     /* Code Body                                                      */
  142.     /*----------------------------------------------------------------*/
  143.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_GERMAN;
  144.     wgui_EMS_inputbox_input_mode_changed = 1;
  145. }
  146. /*****************************************************************************
  147.  * FUNCTION
  148.  *  wgui_EMS_inputbox_change_input_mode_smart_german
  149.  * DESCRIPTION
  150.  *  
  151.  * PARAMETERS
  152.  *  void
  153.  * RETURNS
  154.  *  void
  155.  *****************************************************************************/
  156. void wgui_EMS_inputbox_change_input_mode_smart_german(void)
  157. {
  158.     /*----------------------------------------------------------------*/
  159.     /* Local Variables                                                */
  160.     /*----------------------------------------------------------------*/
  161.     /*----------------------------------------------------------------*/
  162.     /* Code Body                                                      */
  163.     /*----------------------------------------------------------------*/
  164.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_GERMAN;
  165.     wgui_EMS_inputbox_input_mode_changed = 1;
  166. }
  167. #endif /* defined(__MMI_T9_GERMAN__) || defined(__MMI_ZI_GERMAN__) */ 
  168. #if defined(__MMI_T9_ITALIAN__) || defined(__MMI_ZI_ITALIAN__)
  169. /*****************************************************************************
  170.  * FUNCTION
  171.  *  wgui_EMS_inputbox_change_input_mode_smart_ITALIAN
  172.  * DESCRIPTION
  173.  *  
  174.  * PARAMETERS
  175.  *  void
  176.  * RETURNS
  177.  *  void
  178.  *****************************************************************************/
  179. void wgui_EMS_inputbox_change_input_mode_smart_ITALIAN(void)
  180. {
  181.     /*----------------------------------------------------------------*/
  182.     /* Local Variables                                                */
  183.     /*----------------------------------------------------------------*/
  184.     /*----------------------------------------------------------------*/
  185.     /* Code Body                                                      */
  186.     /*----------------------------------------------------------------*/
  187.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_ITALIAN;
  188.     wgui_EMS_inputbox_input_mode_changed = 1;
  189. }
  190. /*****************************************************************************
  191.  * FUNCTION
  192.  *  wgui_EMS_inputbox_change_input_mode_smart_italian
  193.  * DESCRIPTION
  194.  *  
  195.  * PARAMETERS
  196.  *  void
  197.  * RETURNS
  198.  *  void
  199.  *****************************************************************************/
  200. void wgui_EMS_inputbox_change_input_mode_smart_italian(void)
  201. {
  202.     /*----------------------------------------------------------------*/
  203.     /* Local Variables                                                */
  204.     /*----------------------------------------------------------------*/
  205.     /*----------------------------------------------------------------*/
  206.     /* Code Body                                                      */
  207.     /*----------------------------------------------------------------*/
  208.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_ITALIAN;
  209.     wgui_EMS_inputbox_input_mode_changed = 1;
  210. }
  211. #endif /* defined(__MMI_T9_ITALIAN__) || defined(__MMI_ZI_ITALIAN__) */ 
  212. #if defined (__MMI_T9_RUSSIAN__) || defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) || defined(__MMI_CSTAR_RUSSIAN__)       //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
  213. /*****************************************************************************
  214.  * FUNCTION
  215.  *  wgui_EMS_inputbox_change_input_mode_smart_RUSSIAN
  216.  * DESCRIPTION
  217.  *  
  218.  * PARAMETERS
  219.  *  void
  220.  * RETURNS
  221.  *  void
  222.  *****************************************************************************/
  223. void wgui_EMS_inputbox_change_input_mode_smart_RUSSIAN(void)
  224. {
  225.     /*----------------------------------------------------------------*/
  226.     /* Local Variables                                                */
  227.     /*----------------------------------------------------------------*/
  228.     /*----------------------------------------------------------------*/
  229.     /* Code Body                                                      */
  230.     /*----------------------------------------------------------------*/
  231.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_RUSSIAN;
  232.     wgui_EMS_inputbox_input_mode_changed = 1;
  233. }
  234. /*****************************************************************************
  235.  * FUNCTION
  236.  *  wgui_EMS_inputbox_change_input_mode_smart_russian
  237.  * DESCRIPTION
  238.  *  
  239.  * PARAMETERS
  240.  *  void
  241.  * RETURNS
  242.  *  void
  243.  *****************************************************************************/
  244. void wgui_EMS_inputbox_change_input_mode_smart_russian(void)
  245. {
  246.     /*----------------------------------------------------------------*/
  247.     /* Local Variables                                                */
  248.     /*----------------------------------------------------------------*/
  249.     /*----------------------------------------------------------------*/
  250.     /* Code Body                                                      */
  251.     /*----------------------------------------------------------------*/
  252.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_RUSSIAN;
  253.     wgui_EMS_inputbox_input_mode_changed = 1;
  254. }
  255. #endif /* defined (__MMI_T9_RUSSIAN__) || defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) */ 
  256. #if defined (__MMI_T9_BULGARIAN__) || defined(__MMI_ZI_BULGARIAN__)
  257. /*****************************************************************************
  258.  * FUNCTION
  259.  *  wgui_EMS_inputbox_change_input_mode_smart_BULGARIAN
  260.  * DESCRIPTION
  261.  *  
  262.  * PARAMETERS
  263.  *  void
  264.  * RETURNS
  265.  *  void
  266.  *****************************************************************************/
  267. void wgui_EMS_inputbox_change_input_mode_smart_BULGARIAN(void)
  268. {
  269.     /*----------------------------------------------------------------*/
  270.     /* Local Variables                                                */
  271.     /*----------------------------------------------------------------*/
  272.     /*----------------------------------------------------------------*/
  273.     /* Code Body                                                      */
  274.     /*----------------------------------------------------------------*/
  275.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_BULGARIAN;
  276.     wgui_EMS_inputbox_input_mode_changed = 1;
  277. }
  278. /*****************************************************************************
  279.  * FUNCTION
  280.  *  wgui_EMS_inputbox_change_input_mode_smart_bulgarian
  281.  * DESCRIPTION
  282.  *  
  283.  * PARAMETERS
  284.  *  void
  285.  * RETURNS
  286.  *  void
  287.  *****************************************************************************/
  288. void wgui_EMS_inputbox_change_input_mode_smart_bulgarian(void)
  289. {
  290.     /*----------------------------------------------------------------*/
  291.     /* Local Variables                                                */
  292.     /*----------------------------------------------------------------*/
  293.     /*----------------------------------------------------------------*/
  294.     /* Code Body                                                      */
  295.     /*----------------------------------------------------------------*/
  296.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_BULGARIAN;
  297.     wgui_EMS_inputbox_input_mode_changed = 1;
  298. }
  299. #endif /* defined (__MMI_T9_BULGARIAN__) || defined(__MMI_ZI_BULGARIAN__) */ 
  300. #if defined(__MMI_ZI_TURKISH__) || defined(__MMI_T9_TURKISH__)
  301. /*****************************************************************************
  302.  * FUNCTION
  303.  *  wgui_EMS_inputbox_change_input_mode_smart_TURKISH
  304.  * DESCRIPTION
  305.  *  
  306.  * PARAMETERS
  307.  *  void
  308.  * RETURNS
  309.  *  void
  310.  *****************************************************************************/
  311. void wgui_EMS_inputbox_change_input_mode_smart_TURKISH(void)
  312. {
  313.     /*----------------------------------------------------------------*/
  314.     /* Local Variables                                                */
  315.     /*----------------------------------------------------------------*/
  316.     /*----------------------------------------------------------------*/
  317.     /* Code Body                                                      */
  318.     /*----------------------------------------------------------------*/
  319.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_TURKISH;
  320.     wgui_EMS_inputbox_input_mode_changed = 1;
  321. }
  322. /*****************************************************************************
  323.  * FUNCTION
  324.  *  wgui_EMS_inputbox_change_input_mode_smart_turkish
  325.  * DESCRIPTION
  326.  *  
  327.  * PARAMETERS
  328.  *  void
  329.  * RETURNS
  330.  *  void
  331.  *****************************************************************************/
  332. void wgui_EMS_inputbox_change_input_mode_smart_turkish(void)
  333. {
  334.     /*----------------------------------------------------------------*/
  335.     /* Local Variables                                                */
  336.     /*----------------------------------------------------------------*/
  337.     /*----------------------------------------------------------------*/
  338.     /* Code Body                                                      */
  339.     /*----------------------------------------------------------------*/
  340.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_TURKISH;
  341.     wgui_EMS_inputbox_input_mode_changed = 1;
  342. }
  343. #endif /* defined(__MMI_ZI_TURKISH__) || defined(__MMI_T9_TURKISH__) */ 
  344. #if defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__)
  345. /*****************************************************************************
  346.  * FUNCTION
  347.  *  wgui_EMS_inputbox_change_input_mode_smart_PORTUGUESE
  348.  * DESCRIPTION
  349.  *  
  350.  * PARAMETERS
  351.  *  void
  352.  * RETURNS
  353.  *  void
  354.  *****************************************************************************/
  355. void wgui_EMS_inputbox_change_input_mode_smart_PORTUGUESE(void)
  356. {
  357.     /*----------------------------------------------------------------*/
  358.     /* Local Variables                                                */
  359.     /*----------------------------------------------------------------*/
  360.     /*----------------------------------------------------------------*/
  361.     /* Code Body                                                      */
  362.     /*----------------------------------------------------------------*/
  363.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_PORTUGUESE;
  364.     wgui_EMS_inputbox_input_mode_changed = 1;
  365. }
  366. /*****************************************************************************
  367.  * FUNCTION
  368.  *  wgui_EMS_inputbox_change_input_mode_smart_portuguese
  369.  * DESCRIPTION
  370.  *  
  371.  * PARAMETERS
  372.  *  void
  373.  * RETURNS
  374.  *  void
  375.  *****************************************************************************/
  376. void wgui_EMS_inputbox_change_input_mode_smart_portuguese(void)
  377. {
  378.     /*----------------------------------------------------------------*/
  379.     /* Local Variables                                                */
  380.     /*----------------------------------------------------------------*/
  381.     /*----------------------------------------------------------------*/
  382.     /* Code Body                                                      */
  383.     /*----------------------------------------------------------------*/
  384.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_PORTUGUESE;
  385.     wgui_EMS_inputbox_input_mode_changed = 1;
  386. }
  387. #endif /* defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__) */ 
  388. #if defined(__MMI_ZI_INDONESIAN__) || defined(__MMI_T9_INDONESIAN__)
  389. /*****************************************************************************
  390.  * FUNCTION
  391.  *  wgui_EMS_inputbox_change_input_mode_smart_INDONESIAN
  392.  * DESCRIPTION
  393.  *  
  394.  * PARAMETERS
  395.  *  void
  396.  * RETURNS
  397.  *  void
  398.  *****************************************************************************/
  399. void wgui_EMS_inputbox_change_input_mode_smart_INDONESIAN(void)
  400. {
  401.     /*----------------------------------------------------------------*/
  402.     /* Local Variables                                                */
  403.     /*----------------------------------------------------------------*/
  404.     /*----------------------------------------------------------------*/
  405.     /* Code Body                                                      */
  406.     /*----------------------------------------------------------------*/
  407.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_INDONESIAN;
  408.     wgui_EMS_inputbox_input_mode_changed = 1;
  409. }
  410. /*****************************************************************************
  411.  * FUNCTION
  412.  *  wgui_EMS_inputbox_change_input_mode_smart_indonesian
  413.  * DESCRIPTION
  414.  *  
  415.  * PARAMETERS
  416.  *  void
  417.  * RETURNS
  418.  *  void
  419.  *****************************************************************************/
  420. void wgui_EMS_inputbox_change_input_mode_smart_indonesian(void)
  421. {
  422.     /*----------------------------------------------------------------*/
  423.     /* Local Variables                                                */
  424.     /*----------------------------------------------------------------*/
  425.     /*----------------------------------------------------------------*/
  426.     /* Code Body                                                      */
  427.     /*----------------------------------------------------------------*/
  428.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_INDONESIAN;
  429.     wgui_EMS_inputbox_input_mode_changed = 1;
  430. }
  431. #endif /* defined(__MMI_ZI_INDONESIAN__) || defined(__MMI_T9_INDONESIAN__) */ 
  432. #if defined(__MMI_ZI_CZECH__) || defined(__MMI_T9_CZECH__)
  433. /*****************************************************************************
  434.  * FUNCTION
  435.  *  wgui_EMS_inputbox_change_input_mode_smart_CZECH
  436.  * DESCRIPTION
  437.  *  
  438.  * PARAMETERS
  439.  *  void
  440.  * RETURNS
  441.  *  void
  442.  *****************************************************************************/
  443. void wgui_EMS_inputbox_change_input_mode_smart_CZECH(void)
  444. {
  445.     /*----------------------------------------------------------------*/
  446.     /* Local Variables                                                */
  447.     /*----------------------------------------------------------------*/
  448.     /*----------------------------------------------------------------*/
  449.     /* Code Body                                                      */
  450.     /*----------------------------------------------------------------*/
  451.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_CZECH;
  452.     wgui_EMS_inputbox_input_mode_changed = 1;
  453. }
  454. /*****************************************************************************
  455.  * FUNCTION
  456.  *  wgui_EMS_inputbox_change_input_mode_smart_czech
  457.  * DESCRIPTION
  458.  *  
  459.  * PARAMETERS
  460.  *  void
  461.  * RETURNS
  462.  *  void
  463.  *****************************************************************************/
  464. void wgui_EMS_inputbox_change_input_mode_smart_czech(void)
  465. {
  466.     /*----------------------------------------------------------------*/
  467.     /* Local Variables                                                */
  468.     /*----------------------------------------------------------------*/
  469.     /*----------------------------------------------------------------*/
  470.     /* Code Body                                                      */
  471.     /*----------------------------------------------------------------*/
  472.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_CZECH;
  473.     wgui_EMS_inputbox_input_mode_changed = 1;
  474. }
  475. #endif /* defined(__MMI_ZI_CZECH__) || defined(__MMI_T9_CZECH__) */ 
  476. #if defined(__MMI_ZI_MALAY__) || defined(__MMI_T9_MALAY__)
  477. /*****************************************************************************
  478.  * FUNCTION
  479.  *  wgui_EMS_inputbox_change_input_mode_smart_MALAY
  480.  * DESCRIPTION
  481.  *  
  482.  * PARAMETERS
  483.  *  void
  484.  * RETURNS
  485.  *  void
  486.  *****************************************************************************/
  487. void wgui_EMS_inputbox_change_input_mode_smart_MALAY(void)
  488. {
  489.     /*----------------------------------------------------------------*/
  490.     /* Local Variables                                                */
  491.     /*----------------------------------------------------------------*/
  492.     /*----------------------------------------------------------------*/
  493.     /* Code Body                                                      */
  494.     /*----------------------------------------------------------------*/
  495.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_MALAY;
  496.     wgui_EMS_inputbox_input_mode_changed = 1;
  497. }
  498. /*****************************************************************************
  499.  * FUNCTION
  500.  *  wgui_EMS_inputbox_change_input_mode_smart_malay
  501.  * DESCRIPTION
  502.  *  
  503.  * PARAMETERS
  504.  *  void
  505.  * RETURNS
  506.  *  void
  507.  *****************************************************************************/
  508. void wgui_EMS_inputbox_change_input_mode_smart_malay(void)
  509. {
  510.     /*----------------------------------------------------------------*/
  511.     /* Local Variables                                                */
  512.     /*----------------------------------------------------------------*/
  513.     /*----------------------------------------------------------------*/
  514.     /* Code Body                                                      */
  515.     /*----------------------------------------------------------------*/
  516.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_MALAY;
  517.     wgui_EMS_inputbox_input_mode_changed = 1;
  518. }
  519. #endif /* defined(__MMI_ZI_MALAY__) || defined(__MMI_T9_MALAY__) */ 
  520. #if defined(__MMI_ZI_VIETNAMESE__) || defined(__MMI_T9_VIETNAMESE__) || defined(__MMI_CSTAR_VIETNAMESE__)       //KP Jerry add "__MMI_CSTAR_XXX__" on 2007-4-17
  521. /*****************************************************************************
  522.  * FUNCTION
  523.  *  wgui_EMS_inputbox_change_input_mode_smart_VIETNAMESE
  524.  * DESCRIPTION
  525.  *  
  526.  * PARAMETERS
  527.  *  void
  528.  * RETURNS
  529.  *  void
  530.  *****************************************************************************/
  531. void wgui_EMS_inputbox_change_input_mode_smart_VIETNAMESE(void)
  532. {
  533.     /*----------------------------------------------------------------*/
  534.     /* Local Variables                                                */
  535.     /*----------------------------------------------------------------*/
  536.     /*----------------------------------------------------------------*/
  537.     /* Code Body                                                      */
  538.     /*----------------------------------------------------------------*/
  539.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_VIETNAMESE;
  540.     wgui_EMS_inputbox_input_mode_changed = 1;
  541. }
  542. /*****************************************************************************
  543.  * FUNCTION
  544.  *  wgui_EMS_inputbox_change_input_mode_smart_vietnamese
  545.  * DESCRIPTION
  546.  *  
  547.  * PARAMETERS
  548.  *  void
  549.  * RETURNS
  550.  *  void
  551.  *****************************************************************************/
  552. void wgui_EMS_inputbox_change_input_mode_smart_vietnamese(void)
  553. {
  554.     /*----------------------------------------------------------------*/
  555.     /* Local Variables                                                */
  556.     /*----------------------------------------------------------------*/
  557.     /*----------------------------------------------------------------*/
  558.     /* Code Body                                                      */
  559.     /*----------------------------------------------------------------*/
  560.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_VIETNAMESE;
  561.     wgui_EMS_inputbox_input_mode_changed = 1;
  562. }
  563. #endif /* defined(__MMI_ZI_VIETNAMESE__) || defined(__MMI_T9_VIETNAMESE__) */ 
  564. #if defined(__MMI_T9_FINNISH__) || defined(__MMI_ZI_FINNISH__)
  565. /*****************************************************************************
  566.  * FUNCTION
  567.  *  wgui_EMS_inputbox_change_input_mode_smart_FINNISH
  568.  * DESCRIPTION
  569.  *  
  570.  * PARAMETERS
  571.  *  void
  572.  * RETURNS
  573.  *  void
  574.  *****************************************************************************/
  575. void wgui_EMS_inputbox_change_input_mode_smart_FINNISH(void)
  576. {
  577.     /*----------------------------------------------------------------*/
  578.     /* Local Variables                                                */
  579.     /*----------------------------------------------------------------*/
  580.     /*----------------------------------------------------------------*/
  581.     /* Code Body                                                      */
  582.     /*----------------------------------------------------------------*/
  583.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_FINNISH;
  584.     wgui_EMS_inputbox_input_mode_changed = 1;
  585. }
  586. /*****************************************************************************
  587.  * FUNCTION
  588.  *  wgui_EMS_inputbox_change_input_mode_smart_finnish
  589.  * DESCRIPTION
  590.  *  
  591.  * PARAMETERS
  592.  *  void
  593.  * RETURNS
  594.  *  void
  595.  *****************************************************************************/
  596. void wgui_EMS_inputbox_change_input_mode_smart_finnish(void)
  597. {
  598.     /*----------------------------------------------------------------*/
  599.     /* Local Variables                                                */
  600.     /*----------------------------------------------------------------*/
  601.     /*----------------------------------------------------------------*/
  602.     /* Code Body                                                      */
  603.     /*----------------------------------------------------------------*/
  604.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_FINNISH;
  605.     wgui_EMS_inputbox_input_mode_changed = 1;
  606. }
  607. #endif /* defined(__MMI_T9_FINNISH__) || defined(__MMI_ZI_FINNISH__) */ 
  608. #if defined(__MMI_ZI_HUNGARIAN__) || defined(__MMI_T9_HUNGARIAN__)
  609. /*****************************************************************************
  610.  * FUNCTION
  611.  *  wgui_EMS_inputbox_change_input_mode_smart_HUNGARIAN
  612.  * DESCRIPTION
  613.  *  
  614.  * PARAMETERS
  615.  *  void
  616.  * RETURNS
  617.  *  void
  618.  *****************************************************************************/
  619. void wgui_EMS_inputbox_change_input_mode_smart_HUNGARIAN(void)
  620. {
  621.     /*----------------------------------------------------------------*/
  622.     /* Local Variables                                                */
  623.     /*----------------------------------------------------------------*/
  624.     /*----------------------------------------------------------------*/
  625.     /* Code Body                                                      */
  626.     /*----------------------------------------------------------------*/
  627.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_HUNGARIAN;
  628.     wgui_EMS_inputbox_input_mode_changed = 1;
  629. }
  630. /*****************************************************************************
  631.  * FUNCTION
  632.  *  wgui_EMS_inputbox_change_input_mode_smart_hungarian
  633.  * DESCRIPTION
  634.  *  
  635.  * PARAMETERS
  636.  *  void
  637.  * RETURNS
  638.  *  void
  639.  *****************************************************************************/
  640. void wgui_EMS_inputbox_change_input_mode_smart_hungarian(void)
  641. {
  642.     /*----------------------------------------------------------------*/
  643.     /* Local Variables                                                */
  644.     /*----------------------------------------------------------------*/
  645.     /*----------------------------------------------------------------*/
  646.     /* Code Body                                                      */
  647.     /*----------------------------------------------------------------*/
  648.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_HUNGARIAN;
  649.     wgui_EMS_inputbox_input_mode_changed = 1;
  650. }
  651. #endif /* defined(__MMI_ZI_HUNGARIAN__) || defined(__MMI_T9_HUNGARIAN__) */ 
  652. #if defined(__MMI_T9_SLOVAK__) || defined(__MMI_ZI_SLOVAK__)
  653. /*****************************************************************************
  654.  * FUNCTION
  655.  *  wgui_EMS_inputbox_change_input_mode_smart_SLOVAK
  656.  * DESCRIPTION
  657.  *  
  658.  * PARAMETERS
  659.  *  void
  660.  * RETURNS
  661.  *  void
  662.  *****************************************************************************/
  663. void wgui_EMS_inputbox_change_input_mode_smart_SLOVAK(void)
  664. {
  665.     /*----------------------------------------------------------------*/
  666.     /* Local Variables                                                */
  667.     /*----------------------------------------------------------------*/
  668.     /*----------------------------------------------------------------*/
  669.     /* Code Body                                                      */
  670.     /*----------------------------------------------------------------*/
  671.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_SLOVAK;
  672.     wgui_EMS_inputbox_input_mode_changed = 1;
  673. }
  674. /*****************************************************************************
  675.  * FUNCTION
  676.  *  wgui_EMS_inputbox_change_input_mode_smart_slovak
  677.  * DESCRIPTION
  678.  *  
  679.  * PARAMETERS
  680.  *  void
  681.  * RETURNS
  682.  *  void
  683.  *****************************************************************************/
  684. void wgui_EMS_inputbox_change_input_mode_smart_slovak(void)
  685. {
  686.     /*----------------------------------------------------------------*/
  687.     /* Local Variables                                                */
  688.     /*----------------------------------------------------------------*/
  689.     /*----------------------------------------------------------------*/
  690.     /* Code Body                                                      */
  691.     /*----------------------------------------------------------------*/
  692.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_SLOVAK;
  693.     wgui_EMS_inputbox_input_mode_changed = 1;
  694. }
  695. #endif /* defined(__MMI_T9_SLOVAK__) || defined(__MMI_ZI_SLOVAK__) */ 
  696. #if defined(__MMI_ZI_DUTCH__) || defined(__MMI_T9_DUTCH__)
  697. /*****************************************************************************
  698.  * FUNCTION
  699.  *  wgui_EMS_inputbox_change_input_mode_smart_DUTCH
  700.  * DESCRIPTION
  701.  *  
  702.  * PARAMETERS
  703.  *  void
  704.  * RETURNS
  705.  *  void
  706.  *****************************************************************************/
  707. void wgui_EMS_inputbox_change_input_mode_smart_DUTCH(void)
  708. {
  709.     /*----------------------------------------------------------------*/
  710.     /* Local Variables                                                */
  711.     /*----------------------------------------------------------------*/
  712.     /*----------------------------------------------------------------*/
  713.     /* Code Body                                                      */
  714.     /*----------------------------------------------------------------*/
  715.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_DUTCH;
  716.     wgui_EMS_inputbox_input_mode_changed = 1;
  717. }
  718. /*****************************************************************************
  719.  * FUNCTION
  720.  *  wgui_EMS_inputbox_change_input_mode_smart_dutch
  721.  * DESCRIPTION
  722.  *  
  723.  * PARAMETERS
  724.  *  void
  725.  * RETURNS
  726.  *  void
  727.  *****************************************************************************/
  728. void wgui_EMS_inputbox_change_input_mode_smart_dutch(void)
  729. {
  730.     /*----------------------------------------------------------------*/
  731.     /* Local Variables                                                */
  732.     /*----------------------------------------------------------------*/
  733.     /*----------------------------------------------------------------*/
  734.     /* Code Body                                                      */
  735.     /*----------------------------------------------------------------*/
  736.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_DUTCH;
  737.     wgui_EMS_inputbox_input_mode_changed = 1;
  738. }
  739. #endif /* defined(__MMI_ZI_DUTCH__) || defined(__MMI_T9_DUTCH__) */ 
  740. #if defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_ZI_NORWEGIAN__)
  741. /*****************************************************************************
  742.  * FUNCTION
  743.  *  wgui_EMS_inputbox_change_input_mode_smart_NORWEGIAN
  744.  * DESCRIPTION
  745.  *  
  746.  * PARAMETERS
  747.  *  void
  748.  * RETURNS
  749.  *  void
  750.  *****************************************************************************/
  751. void wgui_EMS_inputbox_change_input_mode_smart_NORWEGIAN(void)
  752. {
  753.     /*----------------------------------------------------------------*/
  754.     /* Local Variables                                                */
  755.     /*----------------------------------------------------------------*/
  756.     /*----------------------------------------------------------------*/
  757.     /* Code Body                                                      */
  758.     /*----------------------------------------------------------------*/
  759.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_NORWEGIAN;
  760.     wgui_EMS_inputbox_input_mode_changed = 1;
  761. }
  762. /*****************************************************************************
  763.  * FUNCTION
  764.  *  wgui_EMS_inputbox_change_input_mode_smart_norwegian
  765.  * DESCRIPTION
  766.  *  
  767.  * PARAMETERS
  768.  *  void
  769.  * RETURNS
  770.  *  void
  771.  *****************************************************************************/
  772. void wgui_EMS_inputbox_change_input_mode_smart_norwegian(void)
  773. {
  774.     /*----------------------------------------------------------------*/
  775.     /* Local Variables                                                */
  776.     /*----------------------------------------------------------------*/
  777.     /*----------------------------------------------------------------*/
  778.     /* Code Body                                                      */
  779.     /*----------------------------------------------------------------*/
  780.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_NORWEGIAN;
  781.     wgui_EMS_inputbox_input_mode_changed = 1;
  782. }
  783. #endif /* defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_ZI_NORWEGIAN__) */ 
  784. #if defined(__MMI_T9_SWEDISH__) || defined(__MMI_ZI_SWEDISH__)
  785. /*****************************************************************************
  786.  * FUNCTION
  787.  *  wgui_EMS_inputbox_change_input_mode_smart_SWEDISH
  788.  * DESCRIPTION
  789.  *  
  790.  * PARAMETERS
  791.  *  void
  792.  * RETURNS
  793.  *  void
  794.  *****************************************************************************/
  795. void wgui_EMS_inputbox_change_input_mode_smart_SWEDISH(void)
  796. {
  797.     /*----------------------------------------------------------------*/
  798.     /* Local Variables                                                */
  799.     /*----------------------------------------------------------------*/
  800.     /*----------------------------------------------------------------*/
  801.     /* Code Body                                                      */
  802.     /*----------------------------------------------------------------*/
  803.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_SWEDISH;
  804.     wgui_EMS_inputbox_input_mode_changed = 1;
  805. }
  806. /*****************************************************************************
  807.  * FUNCTION
  808.  *  wgui_EMS_inputbox_change_input_mode_smart_swedish
  809.  * DESCRIPTION
  810.  *  
  811.  * PARAMETERS
  812.  *  void
  813.  * RETURNS
  814.  *  void
  815.  *****************************************************************************/
  816. void wgui_EMS_inputbox_change_input_mode_smart_swedish(void)
  817. {
  818.     /*----------------------------------------------------------------*/
  819.     /* Local Variables                                                */
  820.     /*----------------------------------------------------------------*/
  821.     /*----------------------------------------------------------------*/
  822.     /* Code Body                                                      */
  823.     /*----------------------------------------------------------------*/
  824.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_SWEDISH;
  825.     wgui_EMS_inputbox_input_mode_changed = 1;
  826. }
  827. #endif /* defined(__MMI_T9_SWEDISH__) || defined(__MMI_ZI_SWEDISH__) */ 
  828. #if defined(__MMI_T9_CROATIAN__) || defined(__MMI_ZI_CROATIAN__)
  829. /*****************************************************************************
  830.  * FUNCTION
  831.  *  wgui_EMS_inputbox_change_input_mode_smart_CROATIAN
  832.  * DESCRIPTION
  833.  *  
  834.  * PARAMETERS
  835.  *  void
  836.  * RETURNS
  837.  *  void
  838.  *****************************************************************************/
  839. void wgui_EMS_inputbox_change_input_mode_smart_CROATIAN(void)
  840. {
  841.     /*----------------------------------------------------------------*/
  842.     /* Local Variables                                                */
  843.     /*----------------------------------------------------------------*/
  844.     /*----------------------------------------------------------------*/
  845.     /* Code Body                                                      */
  846.     /*----------------------------------------------------------------*/
  847.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_CROATIAN;
  848.     wgui_EMS_inputbox_input_mode_changed = 1;
  849. }
  850. /*****************************************************************************
  851.  * FUNCTION
  852.  *  wgui_EMS_inputbox_change_input_mode_smart_croatian
  853.  * DESCRIPTION
  854.  *  
  855.  * PARAMETERS
  856.  *  void
  857.  * RETURNS
  858.  *  void
  859.  *****************************************************************************/
  860. void wgui_EMS_inputbox_change_input_mode_smart_croatian(void)
  861. {
  862.     /*----------------------------------------------------------------*/
  863.     /* Local Variables                                                */
  864.     /*----------------------------------------------------------------*/
  865.     /*----------------------------------------------------------------*/
  866.     /* Code Body                                                      */
  867.     /*----------------------------------------------------------------*/
  868.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_CROATIAN;
  869.     wgui_EMS_inputbox_input_mode_changed = 1;
  870. }
  871. #endif /* defined(__MMI_T9_CROATIAN__) || defined(__MMI_ZI_CROATIAN__) */ 
  872. #if defined(__MMI_ZI_ROMANIAN__) || defined(__MMI_T9_ROMANIAN__)
  873. /*****************************************************************************
  874.  * FUNCTION
  875.  *  wgui_EMS_inputbox_change_input_mode_smart_ROMANIAN
  876.  * DESCRIPTION
  877.  *  
  878.  * PARAMETERS
  879.  *  void
  880.  * RETURNS
  881.  *  void
  882.  *****************************************************************************/
  883. void wgui_EMS_inputbox_change_input_mode_smart_ROMANIAN(void)
  884. {
  885.     /*----------------------------------------------------------------*/
  886.     /* Local Variables                                                */
  887.     /*----------------------------------------------------------------*/
  888.     /*----------------------------------------------------------------*/
  889.     /* Code Body                                                      */
  890.     /*----------------------------------------------------------------*/
  891.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_ROMANIAN;
  892.     wgui_EMS_inputbox_input_mode_changed = 1;
  893. }
  894. /*****************************************************************************
  895.  * FUNCTION
  896.  *  wgui_EMS_inputbox_change_input_mode_smart_romanian
  897.  * DESCRIPTION
  898.  *  
  899.  * PARAMETERS
  900.  *  void
  901.  * RETURNS
  902.  *  void
  903.  *****************************************************************************/
  904. void wgui_EMS_inputbox_change_input_mode_smart_romanian(void)
  905. {
  906.     /*----------------------------------------------------------------*/
  907.     /* Local Variables                                                */
  908.     /*----------------------------------------------------------------*/
  909.     /*----------------------------------------------------------------*/
  910.     /* Code Body                                                      */
  911.     /*----------------------------------------------------------------*/
  912.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_ROMANIAN;
  913.     wgui_EMS_inputbox_input_mode_changed = 1;
  914. }
  915. #endif /* defined(__MMI_ZI_ROMANIAN__) || defined(__MMI_T9_ROMANIAN__) */ 
  916. #if defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_ZI_SLOVENIAN__)
  917. /*****************************************************************************
  918.  * FUNCTION
  919.  *  wgui_EMS_inputbox_change_input_mode_smart_SLOVENIAN
  920.  * DESCRIPTION
  921.  *  
  922.  * PARAMETERS
  923.  *  void
  924.  * RETURNS
  925.  *  void
  926.  *****************************************************************************/
  927. void wgui_EMS_inputbox_change_input_mode_smart_SLOVENIAN(void)
  928. {
  929.     /*----------------------------------------------------------------*/
  930.     /* Local Variables                                                */
  931.     /*----------------------------------------------------------------*/
  932.     /*----------------------------------------------------------------*/
  933.     /* Code Body                                                      */
  934.     /*----------------------------------------------------------------*/
  935.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_SLOVENIAN;
  936.     wgui_EMS_inputbox_input_mode_changed = 1;
  937. }
  938. /*****************************************************************************
  939.  * FUNCTION
  940.  *  wgui_EMS_inputbox_change_input_mode_smart_slovenian
  941.  * DESCRIPTION
  942.  *  
  943.  * PARAMETERS
  944.  *  void
  945.  * RETURNS
  946.  *  void
  947.  *****************************************************************************/
  948. void wgui_EMS_inputbox_change_input_mode_smart_slovenian(void)
  949. {
  950.     /*----------------------------------------------------------------*/
  951.     /* Local Variables                                                */
  952.     /*----------------------------------------------------------------*/
  953.     /*----------------------------------------------------------------*/
  954.     /* Code Body                                                      */
  955.     /*----------------------------------------------------------------*/
  956.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_SLOVENIAN;
  957.     wgui_EMS_inputbox_input_mode_changed = 1;
  958. }
  959. #endif /* defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_ZI_SLOVENIAN__) */ 
  960. #if defined(__MMI_T9_GREEK__) || defined(__MMI_ZI_GREEK__)
  961. /*****************************************************************************
  962.  * FUNCTION
  963.  *  wgui_EMS_inputbox_change_input_mode_smart_GREEK
  964.  * DESCRIPTION
  965.  *  
  966.  * PARAMETERS
  967.  *  void
  968.  * RETURNS
  969.  *  void
  970.  *****************************************************************************/
  971. void wgui_EMS_inputbox_change_input_mode_smart_GREEK(void)
  972. {
  973.     /*----------------------------------------------------------------*/
  974.     /* Local Variables                                                */
  975.     /*----------------------------------------------------------------*/
  976.     /*----------------------------------------------------------------*/
  977.     /* Code Body                                                      */
  978.     /*----------------------------------------------------------------*/
  979.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_UPPERCASE_GREEK;
  980.     wgui_EMS_inputbox_input_mode_changed = 1;
  981. }
  982. /*****************************************************************************
  983.  * FUNCTION
  984.  *  wgui_EMS_inputbox_change_input_mode_smart_greek
  985.  * DESCRIPTION
  986.  *  
  987.  * PARAMETERS
  988.  *  void
  989.  * RETURNS
  990.  *  void
  991.  *****************************************************************************/
  992. void wgui_EMS_inputbox_change_input_mode_smart_greek(void)
  993. {
  994.     /*----------------------------------------------------------------*/
  995.     /* Local Variables                                                */
  996.     /*----------------------------------------------------------------*/
  997.     /*----------------------------------------------------------------*/
  998.     /* Code Body                                                      */
  999.     /*----------------------------------------------------------------*/
  1000.     wgui_EMS_inputbox_input_type = INPUT_TYPE_SMART_LOWERCASE_GREEK;
  1001.     wgui_EMS_inputbox_input_mode_changed = 1;
  1002. }
  1003. #endif /* defined(__MMI_T9_GREEK__) || defined(__MMI_ZI_GREEK__) */ 
  1004. #endif /* defined(__MMI_T9__) || defined(__MMI_ZI__) || defined(__MMI_KA__) || defined(__MMI_ITAP__) */ 
  1005. /*****************************************************************************
  1006.  * FUNCTION
  1007.  *  SetCategory28RightSoftkeyFunction
  1008.  * DESCRIPTION
  1009.  *  
  1010.  * PARAMETERS
  1011.  *  f       [IN]        
  1012.  *  k       [IN]        
  1013.  * RETURNS
  1014.  *  void
  1015.  *****************************************************************************/
  1016. void SetCategory28RightSoftkeyFunction(void (*f) (void), MMI_key_event_type k)
  1017. {
  1018.     /*----------------------------------------------------------------*/
  1019.     /* Local Variables                                                */
  1020.     /*----------------------------------------------------------------*/
  1021.     /*----------------------------------------------------------------*/
  1022.     /* Code Body                                                      */
  1023.     /*----------------------------------------------------------------*/
  1024.     UI_UNUSED_PARAMETER(k);
  1025.     category28_RSK_function = f;
  1026. }
  1027. /*****************************************************************************
  1028.  * FUNCTION
  1029.  *  handle_category28_right_softkey_down
  1030.  * DESCRIPTION
  1031.  *  
  1032.  * PARAMETERS
  1033.  *  void
  1034.  * RETURNS
  1035.  *  void
  1036.  *****************************************************************************/
  1037. void handle_category28_right_softkey_down(void)
  1038. {
  1039.     /*----------------------------------------------------------------*/
  1040.     /* Local Variables                                                */
  1041.     /*----------------------------------------------------------------*/
  1042.     /*----------------------------------------------------------------*/
  1043.     /* Code Body                                                      */
  1044.     /*----------------------------------------------------------------*/
  1045.     disable_active_multitap();
  1046. #if(UI_DISABLE_EMS_INPUT_BOX)
  1047.     if (MMI_multiline_inputbox.text_length > 1)
  1048.     {
  1049.         multiline_inputbox_delete_character();
  1050.     }
  1051. #else /* (UI_DISABLE_EMS_INPUT_BOX) */ 
  1052.     if (!gui_EMS_inputbox_empty(&MMI_EMS_inputbox))
  1053.     {
  1054.         EMS_inputbox_backspace();
  1055.     }
  1056. #endif /* (UI_DISABLE_EMS_INPUT_BOX) */ 
  1057. }
  1058. /*****************************************************************************
  1059.  * FUNCTION
  1060.  *  handle_category28_right_softkey_up
  1061.  * DESCRIPTION
  1062.  *  
  1063.  * PARAMETERS
  1064.  *  void
  1065.  * RETURNS
  1066.  *  void
  1067.  *****************************************************************************/
  1068. void handle_category28_right_softkey_up(void)
  1069. {
  1070. #if(UI_DISABLE_EMS_INPUT_BOX)
  1071.     /*----------------------------------------------------------------*/
  1072.     /* Local Variables                                                */
  1073.     /*----------------------------------------------------------------*/
  1074.     /*----------------------------------------------------------------*/
  1075.     /* Code Body                                                      */
  1076.     /*----------------------------------------------------------------*/
  1077.     if ((MMI_multiline_inputbox.text_length <= 1) && (!category28_RSK_label_clear))
  1078.     {
  1079.         if (category28_RSK_function != NULL)
  1080.         {
  1081.             category28_RSK_function();
  1082.         }
  1083.     }
  1084. #else /* (UI_DISABLE_EMS_INPUT_BOX) */ 
  1085.     if (category28_RSK_function != NULL)
  1086.     {
  1087.         category28_RSK_function();
  1088.     }
  1089. #endif /* (UI_DISABLE_EMS_INPUT_BOX) */ 
  1090. }
  1091. /*****************************************************************************
  1092.  * FUNCTION
  1093.  *  register_category28_handle_right_softkey_up
  1094.  * DESCRIPTION
  1095.  *  
  1096.  * PARAMETERS
  1097.  *  void
  1098.  * RETURNS
  1099.  *  void
  1100.  *****************************************************************************/
  1101. void register_category28_handle_right_softkey_up(void)
  1102. {
  1103.     /*----------------------------------------------------------------*/
  1104.     /* Local Variables                                                */
  1105.     /*----------------------------------------------------------------*/
  1106.     /*----------------------------------------------------------------*/
  1107.     /* Code Body                                                      */
  1108.     /*----------------------------------------------------------------*/
  1109.     set_right_softkey_function(handle_category28_right_softkey_up, KEY_EVENT_UP);
  1110. }
  1111. /*****************************************************************************
  1112.  * FUNCTION
  1113.  *  register_category28_handle_clear_key_up
  1114.  * DESCRIPTION
  1115.  *  
  1116.  * PARAMETERS
  1117.  *  void
  1118.  * RETURNS
  1119.  *  void
  1120.  *****************************************************************************/
  1121. void register_category28_handle_clear_key_up(void)
  1122. {
  1123.     /*----------------------------------------------------------------*/
  1124.     /* Local Variables                                                */
  1125.     /*----------------------------------------------------------------*/
  1126.     /*----------------------------------------------------------------*/
  1127.     /* Code Body                                                      */
  1128.     /*----------------------------------------------------------------*/
  1129.     SetKeyHandler(handle_category28_right_softkey_up, KEY_CLEAR, KEY_EVENT_UP);
  1130. }
  1131. /*****************************************************************************
  1132.  * FUNCTION
  1133.  *  handle_category28_right_softkey_long_press
  1134.  * DESCRIPTION
  1135.  *  
  1136.  * PARAMETERS
  1137.  *  void
  1138.  * RETURNS
  1139.  *  void
  1140.  *****************************************************************************/
  1141. void handle_category28_right_softkey_long_press(void)
  1142. {
  1143. #if(UI_DISABLE_EMS_INPUT_BOX)
  1144.     /*----------------------------------------------------------------*/
  1145.     /* Local Variables                                                */
  1146.     /*----------------------------------------------------------------*/
  1147.     /*----------------------------------------------------------------*/
  1148.     /* Code Body                                                      */
  1149.     /*----------------------------------------------------------------*/
  1150.     multiline_inputbox_delete_all_characters();
  1151. #else /* (UI_DISABLE_EMS_INPUT_BOX) */ 
  1152.     EMS_inputbox_delete_all();
  1153. #endif /* (UI_DISABLE_EMS_INPUT_BOX) */ 
  1154. }
  1155. /*****************************************************************************
  1156.  * FUNCTION
  1157.  *  handle_category28_input
  1158.  * DESCRIPTION
  1159.  *  
  1160.  * PARAMETERS
  1161.  *  void
  1162.  * RETURNS
  1163.  *  void
  1164.  *****************************************************************************/
  1165. void handle_category28_input(void)
  1166. {
  1167.     /*----------------------------------------------------------------*/
  1168.     /* Local Variables                                                */
  1169.     /*----------------------------------------------------------------*/
  1170.     /*----------------------------------------------------------------*/
  1171.     /* Code Body                                                      */
  1172.     /*----------------------------------------------------------------*/
  1173.     EMS_inputbox_has_changed = 1;
  1174. #if(UI_DISABLE_EMS_INPUT_BOX)
  1175.     if (MMI_multiline_inputbox.text_length > 1)
  1176.     {
  1177.     #if defined(__MMI_WITH_C_KEY__)
  1178.     #else /* defined(__MMI_WITH_C_KEY__) */ 
  1179.         if (category28_RSK_label_clear == 0)
  1180.         {
  1181.             set_right_softkey_label((UI_string_type) get_string(WGUI_CATEGORY_CLEAR_STRING_ID));
  1182.             set_right_softkey_icon(NULL);
  1183.             redraw_right_softkey();
  1184.             category28_RSK_label_clear = 1;
  1185.             set_right_softkey_function(UI_dummy_function, KEY_EVENT_UP);
  1186.         }
  1187.     #endif /* defined(__MMI_WITH_C_KEY__) */ 
  1188.     }
  1189.     else
  1190.     {
  1191.     #if defined(__MMI_WITH_C_KEY__)
  1192.     #else /* defined(__MMI_WITH_C_KEY__) */ 
  1193.         if (category28_RSK_label_clear == 1)
  1194.         {
  1195.             set_right_softkey_label(category28_RSK_label_string);
  1196.             set_right_softkey_icon(category28_RSK_label_icon);
  1197.             redraw_right_softkey();
  1198.             category28_RSK_label_clear = 0;
  1199.             set_right_softkey_function(register_category28_handle_right_softkey_up, KEY_EVENT_UP);
  1200.         }
  1201.     #endif /* defined(__MMI_WITH_C_KEY__) */ 
  1202.     }
  1203. #else /* (UI_DISABLE_EMS_INPUT_BOX) */ 
  1204.     if (MMI_EMS_inputbox.data == NULL)
  1205.     {
  1206.         return;
  1207.     }
  1208.     if (!gui_EMS_inputbox_empty(&MMI_EMS_inputbox))
  1209.     {
  1210.     #if defined(__MMI_WITH_C_KEY__)
  1211.         if (category28_RSK_label_clear == 0)
  1212.         {
  1213.             category28_RSK_label_clear = 1;
  1214.             SetKeyHandler(handle_category28_right_softkey_down, KEY_CLEAR, KEY_EVENT_DOWN);
  1215.             SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_UP);
  1216.             SetKeyHandler(handle_category28_right_softkey_long_press, KEY_CLEAR, KEY_LONG_PRESS);
  1217.         }
  1218.     #else /* defined(__MMI_WITH_C_KEY__) */ 
  1219.         if (category28_RSK_label_clear == 0)
  1220.         {
  1221.             set_right_softkey_label((UI_string_type) get_string(WGUI_CATEGORY_CLEAR_STRING_ID));
  1222.             set_right_softkey_icon(NULL);
  1223.             redraw_right_softkey();
  1224.             category28_RSK_label_clear = 1;
  1225.             set_right_softkey_function(UI_dummy_function, KEY_EVENT_UP);
  1226.         }
  1227.     #endif /* defined(__MMI_WITH_C_KEY__) */ 
  1228.     }
  1229.     else
  1230.     {
  1231.     #if defined(__MMI_WITH_C_KEY__)
  1232.         if (category28_RSK_label_clear == 1)
  1233.         {
  1234.             category28_RSK_label_clear = 0;
  1235.             SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_EVENT_DOWN);
  1236.             SetKeyHandler(register_category28_handle_clear_key_up, KEY_CLEAR, KEY_EVENT_UP);
  1237.             SetKeyHandler(UI_dummy_function, KEY_CLEAR, KEY_LONG_PRESS);
  1238.         }
  1239.     #else /* defined(__MMI_WITH_C_KEY__) */ 
  1240.         if (category28_RSK_label_clear == 1)
  1241.         {
  1242.             set_right_softkey_label(category28_RSK_label_string);
  1243.             set_right_softkey_icon(category28_RSK_label_icon);
  1244.             redraw_right_softkey();
  1245.             category28_RSK_label_clear = 0;
  1246.             set_right_softkey_function(register_category28_handle_right_softkey_up, KEY_EVENT_UP);
  1247.         }
  1248.     #endif /* defined(__MMI_WITH_C_KEY__) */ 
  1249.     }
  1250. #endif /* (UI_DISABLE_EMS_INPUT_BOX) */ 
  1251. }
  1252. #ifdef __MMI_MULTITAP_THAI__
  1253. /*****************************************************************************
  1254.  * FUNCTION
  1255.  *  handle_category28_change_input_mode_bymultitapthai
  1256.  * DESCRIPTION
  1257.  *  
  1258.  * PARAMETERS
  1259.  *  void
  1260.  * RETURNS
  1261.  *  void
  1262.  *****************************************************************************/
  1263. extern void handle_category28_change_input_mode(void);     //KP Jerry add on 2007-4-29
  1264. void handle_category28_change_input_mode_bymultitapthai(void)
  1265. {
  1266.     /*----------------------------------------------------------------*/
  1267.     /* Local Variables                                                */
  1268.     /*----------------------------------------------------------------*/
  1269.     /*----------------------------------------------------------------*/
  1270.     /* Code Body                                                      */
  1271.     /*----------------------------------------------------------------*/
  1272.     if (Get_inputbox_update_states() == 1)
  1273.     {
  1274.         gui_EMS_input_box_backspace(&MMI_EMS_inputbox);
  1275.         wgui_EMS_text_format = MMI_EMS_inputbox.text_format;
  1276.     }
  1277.     handle_category28_change_input_mode();
  1278. }
  1279. #endif /* __MMI_MULTITAP_THAI__ */ 
  1280. /*****************************************************************************
  1281.  * FUNCTION
  1282.  *  handle_category28_change_input_mode
  1283.  * DESCRIPTION
  1284.  *  
  1285.  * PARAMETERS
  1286.  *  void
  1287.  * RETURNS
  1288.  *  void
  1289.  *****************************************************************************/
  1290. void handle_category28_change_input_mode(void)
  1291. {
  1292.     /*----------------------------------------------------------------*/
  1293.     /* Local Variables                                                */
  1294.     /*----------------------------------------------------------------*/
  1295.     /*----------------------------------------------------------------*/
  1296.     /* Code Body                                                      */
  1297.     /*----------------------------------------------------------------*/
  1298.     disable_active_multitap();
  1299.     change_input_mode();
  1300.     set_MMI_current_input_type();
  1301.     switch (MMI_current_input_mode)
  1302.     {
  1303.         case INPUT_MODE_MULTITAP_UPPERCASE_ABC:
  1304.         case INPUT_MODE_MULTITAP_LOWERCASE_ABC:
  1305.     #if defined(__MMI_MULTITAP_THAI__)
  1306.         case INPUT_MODE_MULTITAP_THAI:
  1307.     #endif 
  1308.     #if defined(__MMI_MULTITAP_SPANISH__)
  1309.         case INPUT_MODE_MULTITAP_UPPERCASE_SPANISH:
  1310.         case INPUT_MODE_MULTITAP_LOWERCASE_SPANISH:
  1311.     #endif /* defined(__MMI_MULTITAP_SPANISH__) */ 
  1312.     #if defined(__MMI_MULTITAP_DANISH__)
  1313.         case INPUT_MODE_MULTITAP_UPPERCASE_DANISH:
  1314.         case INPUT_MODE_MULTITAP_LOWERCASE_DANISH:
  1315.     #endif /* defined(__MMI_MULTITAP_DANISH__) */ 
  1316.     #if defined(__MMI_MULTITAP_POLISH__)
  1317.         case INPUT_MODE_MULTITAP_UPPERCASE_POLISH:
  1318.         case INPUT_MODE_MULTITAP_LOWERCASE_POLISH:
  1319.     #endif /* defined(__MMI_MULTITAP_POLISH__) */ 
  1320.     #if defined(__MMI_MULTITAP_FRENCH__)
  1321.         case INPUT_MODE_MULTITAP_UPPERCASE_FRENCH:
  1322.         case INPUT_MODE_MULTITAP_LOWERCASE_FRENCH:
  1323.     #endif /* defined(__MMI_MULTITAP_FRENCH__) */ 
  1324.     #if defined(__MMI_MULTITAP_GERMAN__)
  1325.         case INPUT_MODE_MULTITAP_UPPERCASE_GERMAN:
  1326.         case INPUT_MODE_MULTITAP_LOWERCASE_GERMAN:
  1327.     #endif /* defined(__MMI_MULTITAP_GERMAN__) */ 
  1328.     #if defined(__MMI_MULTITAP_ITALIAN__)
  1329.         case INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN:
  1330.         case INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN:
  1331.     #endif /* defined(__MMI_MULTITAP_ITALIAN__) */ 
  1332.     #if defined(__MMI_MULTITAP_RUSSIAN__)
  1333.         case INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN:
  1334.         case INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN:
  1335.     #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */ 
  1336.     #if defined(__MMI_MULTITAP_BULGARIAN__)
  1337.         case INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN:
  1338.         case INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN:
  1339.     #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */ 
  1340.     #if defined(__MMI_MULTITAP_TURKISH__)
  1341.         case INPUT_MODE_MULTITAP_UPPERCASE_TURKISH:
  1342.         case INPUT_MODE_MULTITAP_LOWERCASE_TURKISH:
  1343.     #endif /* defined(__MMI_MULTITAP_TURKISH__) */ 
  1344.     #if defined(__MMI_MULTITAP_PORTUGUESE__)
  1345.         case INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE:
  1346.         case INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE:
  1347.     #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */ 
  1348.     #if defined(__MMI_MULTITAP_HINDI__)
  1349.         case INPUT_MODE_MULTITAP_HINDI:
  1350.     #endif 
  1351.             /* PMT RAKESH START 20061006 */
  1352.     #if defined(__MMI_MULTITAP_MARATHI__)
  1353.         case INPUT_MODE_MULTITAP_MARATHI:
  1354.     #endif 
  1355.             /* PMT RAKESH START 20061006 */
  1356.     #if defined(__MMI_MULTITAP_INDONESIAN__)
  1357.         case INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN:
  1358.         case INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN:
  1359.     #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */ 
  1360.     #if defined(__MMI_MULTITAP_CZECH__)
  1361.         case INPUT_MODE_MULTITAP_UPPERCASE_CZECH:
  1362.         case INPUT_MODE_MULTITAP_LOWERCASE_CZECH:
  1363.     #endif /* defined(__MMI_MULTITAP_CZECH__) */ 
  1364.     #if defined(__MMI_MULTITAP_MALAY__)
  1365.         case INPUT_MODE_MULTITAP_UPPERCASE_MALAY:
  1366.         case INPUT_MODE_MULTITAP_LOWERCASE_MALAY:
  1367.     #endif /* defined(__MMI_MULTITAP_MALAY__) */ 
  1368.     #if defined(__MMI_MULTITAP_VIETNAMESE__)
  1369.         case INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE:
  1370.         case INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE:
  1371.     #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */ 
  1372.     #if defined(__MMI_MULTITAP_HEBREW__)
  1373.         case INPUT_MODE_MULTITAP_HEBREW:
  1374.     #endif 
  1375.     #if defined(__MMI_MULTITAP_FINNISH__)
  1376.         case INPUT_MODE_MULTITAP_UPPERCASE_FINNISH:
  1377.         case INPUT_MODE_MULTITAP_LOWERCASE_FINNISH:
  1378.     #endif /* defined(__MMI_MULTITAP_FINNISH__) */ 
  1379.     #if defined(__MMI_MULTITAP_HUNGARIAN__)
  1380.         case INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN:
  1381.         case INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN:
  1382.     #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */ 
  1383.     #if defined(__MMI_MULTITAP_SLOVAK__)
  1384.         case INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK:
  1385.         case INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK:
  1386.     #endif /* defined(__MMI_MULTITAP_SLOVAK__) */ 
  1387.     #if defined(__MMI_MULTITAP_DUTCH__)
  1388.         case INPUT_MODE_MULTITAP_UPPERCASE_DUTCH:
  1389.         case INPUT_MODE_MULTITAP_LOWERCASE_DUTCH:
  1390.     #endif /* defined(__MMI_MULTITAP_DUTCH__) */ 
  1391.     #if defined(__MMI_MULTITAP_NORWEGIAN__)
  1392.         case INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN:
  1393.         case INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN:
  1394.     #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */ 
  1395.     #if defined(__MMI_MULTITAP_ARABIC__)
  1396.         case INPUT_MODE_MULTITAP_ARABIC:
  1397.     #endif 
  1398. //PMT START PERSIAN
  1399.     #if defined(__MMI_MULTITAP_PERSIAN__)
  1400.         case INPUT_MODE_MULTITAP_PERSIAN:
  1401.     #endif 
  1402. //PMT END PERSIAN
  1403.     #if defined(__MMI_MULTITAP_SWEDISH__)
  1404.         case INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH:
  1405.         case INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH:
  1406.     #endif /* defined(__MMI_MULTITAP_SWEDISH__) */ 
  1407.     #if defined(__MMI_MULTITAP_CROATIAN__)
  1408.         case INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN:
  1409.         case INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN:
  1410.     #endif /* defined(__MMI_MULTITAP_CROATIAN__) */ 
  1411.     #if defined(__MMI_MULTITAP_ROMANIAN__)
  1412.         case INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN:
  1413.         case INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN:
  1414.     #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */ 
  1415.     #if defined(__MMI_MULTITAP_SLOVENIAN__)
  1416.         case INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN:
  1417.         case INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN:
  1418.     #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */ 
  1419.     #if defined(__MMI_MULTITAP_GREEK__)
  1420.         case INPUT_MODE_MULTITAP_UPPERCASE_GREEK:
  1421.         case INPUT_MODE_MULTITAP_LOWERCASE_GREEK:
  1422.     #endif /* defined(__MMI_MULTITAP_GREEK__) */ 
  1423.         case INPUT_MODE_123:
  1424.             wgui_EMS_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1425.             break;
  1426.     #if defined(__MMI_T9__) || defined(__MMI_ITAP__) || defined(__MMI_KA__)
  1427.         case INPUT_MODE_TR_MULTITAP_BOPOMO:
  1428.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_BPMF_IMG);
  1429.             break;
  1430.         case INPUT_MODE_SM_MULTITAP_PINYIN:
  1431.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_PINYIN_IMG);
  1432.             break;
  1433.         case INPUT_MODE_TR_BOPOMO:
  1434.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_BPMF_IMG);
  1435.             break;
  1436.         case INPUT_MODE_SM_PINYIN:
  1437.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_PINYIN_IMG);
  1438.             break;
  1439.         case INPUT_MODE_TR_STROKE:
  1440.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_TR_STROKE_IMG);
  1441.             break;
  1442.         case INPUT_MODE_SM_STROKE:
  1443.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SM_STROKE_IMG);
  1444.             break;
  1445.         case INPUT_MODE_SMART_UPPERCASE_ABC:
  1446.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1447.             break;
  1448.         case INPUT_MODE_SMART_LOWERCASE_ABC:
  1449.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1450.             break;
  1451.     #if defined(__MMI_T9_SPANISH__)
  1452.         case INPUT_MODE_SMART_UPPERCASE_SPANISH:
  1453.         case INPUT_MODE_SMART_LOWERCASE_SPANISH:
  1454.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1455.             break;
  1456.     #endif /* defined(__MMI_T9_SPANISH__) */ 
  1457.     #if defined(__MMI_T9_DANISH__)
  1458.         case INPUT_MODE_SMART_UPPERCASE_DANISH:
  1459.         case INPUT_MODE_SMART_LOWERCASE_DANISH:
  1460.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1461.             break;
  1462.     #endif /* defined(__MMI_T9_DANISH__) */ 
  1463.     #if defined(__MMI_T9_POLISH__)
  1464.         case INPUT_MODE_SMART_UPPERCASE_POLISH:
  1465.         case INPUT_MODE_SMART_LOWERCASE_POLISH:
  1466.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1467.             break;
  1468.     #endif /* defined(__MMI_T9_POLISH__) */ 
  1469.     #if defined(__MMI_T9_FRENCH__)
  1470.         case INPUT_MODE_SMART_UPPERCASE_FRENCH:
  1471.         case INPUT_MODE_SMART_LOWERCASE_FRENCH:
  1472.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1473.             break;
  1474.     #endif /* defined(__MMI_T9_FRENCH__) */ 
  1475.     #if defined(__MMI_T9_GERMAN__)
  1476.         case INPUT_MODE_SMART_UPPERCASE_GERMAN:
  1477.         case INPUT_MODE_SMART_LOWERCASE_GERMAN:
  1478.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1479.             break;
  1480.     #endif /* defined(__MMI_T9_GERMAN__) */ 
  1481.     #if defined(__MMI_T9_ITALIAN__)
  1482.         case INPUT_MODE_SMART_UPPERCASE_ITALIAN:
  1483.         case INPUT_MODE_SMART_LOWERCASE_ITALIAN:
  1484.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1485.             break;
  1486.     #endif /* defined(__MMI_T9_ITALIAN__) */ 
  1487.     #if defined(__MMI_T9_VIETNAMESE__)
  1488.         case INPUT_MODE_SMART_UPPERCASE_VIETNAMESE:
  1489.         case INPUT_MODE_SMART_LOWERCASE_VIETNAMESE:
  1490.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1491.             break;
  1492.     #endif /* defined(__MMI_T9_VIETNAMESE__) */ 
  1493.     #if defined(__MMI_T9_TURKISH__)
  1494.         case INPUT_MODE_SMART_UPPERCASE_TURKISH:
  1495.         case INPUT_MODE_SMART_LOWERCASE_TURKISH:
  1496.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1497.             break;
  1498.     #endif /* defined(__MMI_T9_TURKISH__) */ 
  1499.     #if defined(__MMI_T9_INDONESIAN__)
  1500.         case INPUT_MODE_SMART_UPPERCASE_INDONESIAN:
  1501.         case INPUT_MODE_SMART_LOWERCASE_INDONESIAN:
  1502.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1503.             break;
  1504.     #endif /* defined(__MMI_T9_INDONESIAN__) */ 
  1505.     #if defined(__MMI_T9_CZECH__)
  1506.         case INPUT_MODE_SMART_UPPERCASE_CZECH:
  1507.         case INPUT_MODE_SMART_LOWERCASE_CZECH:
  1508.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1509.             break;
  1510.     #endif /* defined(__MMI_T9_CZECH__) */ 
  1511.     #if defined (__MMI_T9_RUSSIAN__)
  1512.         case INPUT_MODE_SMART_UPPERCASE_RUSSIAN:
  1513.         case INPUT_MODE_SMART_LOWERCASE_RUSSIAN:
  1514.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1515.             break;
  1516.     #endif /* defined (__MMI_T9_RUSSIAN__) */ 
  1517.     #if defined (__MMI_T9_BULGARIAN__)
  1518.         case INPUT_MODE_SMART_UPPERCASE_BULGARIAN:
  1519.         case INPUT_MODE_SMART_LOWERCASE_BULGARIAN:
  1520.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1521.             break;
  1522.     #endif /* defined (__MMI_T9_BULGARIAN__) */ 
  1523.     #if defined (__MMI_T9_THAI__)
  1524.         case INPUT_MODE_SMART_THAI:
  1525.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1526.             break;
  1527.     #endif /* defined (__MMI_T9_THAI__) */ 
  1528.     #if defined(__MMI_T9_PORTUGUESE__)
  1529.         case INPUT_MODE_SMART_UPPERCASE_PORTUGUESE:
  1530.         case INPUT_MODE_SMART_LOWERCASE_PORTUGUESE:
  1531.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1532.             break;
  1533.     #endif /* defined(__MMI_T9_PORTUGUESE__) */ 
  1534.     #if defined(__MMI_T9_FINNISH__)
  1535.         case INPUT_MODE_SMART_UPPERCASE_FINNISH:
  1536.         case INPUT_MODE_SMART_LOWERCASE_FINNISH:
  1537.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1538.             break;
  1539.     #endif /* defined(__MMI_T9_FINNISH__) */ 
  1540.     #if defined(__MMI_T9_HUNGARIAN__)
  1541.         case INPUT_MODE_SMART_UPPERCASE_HUNGARIAN:
  1542.         case INPUT_MODE_SMART_LOWERCASE_HUNGARIAN:
  1543.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1544.             break;
  1545.     #endif /* defined(__MMI_T9_HUNGARIAN__) */ 
  1546.     #if defined(__MMI_T9_ARABIC__)
  1547.         case INPUT_MODE_SMART_ARABIC:
  1548.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1549.             break;
  1550.     #endif /* defined(__MMI_T9_ARABIC__) */ 
  1551.     #if defined(__MMI_T9_HINDI__)
  1552.         case INPUT_MODE_SMART_HINDI:
  1553.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1554.             break;
  1555.     #endif /* defined(__MMI_T9_HINDI__) */ 
  1556.     #if defined(__MMI_T9_NORWEGIAN__)
  1557.         case INPUT_MODE_SMART_UPPERCASE_NORWEGIAN:
  1558.         case INPUT_MODE_SMART_LOWERCASE_NORWEGIAN:
  1559.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1560.             break;
  1561.     #endif /* defined(__MMI_T9_NORWEGIAN__) */ 
  1562.     #if defined(__MMI_T9_DUTCH__)
  1563.         case INPUT_MODE_SMART_UPPERCASE_DUTCH:
  1564.         case INPUT_MODE_SMART_LOWERCASE_DUTCH:
  1565.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1566.             break;
  1567.     #endif /* defined(__MMI_T9_DUTCH__) */ 
  1568.     #if defined(__MMI_T9_SLOVENIAN__)
  1569.         case INPUT_MODE_SMART_UPPERCASE_SLOVENIAN:
  1570.         case INPUT_MODE_SMART_LOWERCASE_SLOVENIAN:
  1571.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1572.             break;
  1573.     #endif /* defined(__MMI_T9_SLOVENIAN__) */ 
  1574.     #if defined(__MMI_T9_SWEDISH__)
  1575.         case INPUT_MODE_SMART_UPPERCASE_SWEDISH:
  1576.         case INPUT_MODE_SMART_LOWERCASE_SWEDISH:
  1577.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1578.             break;
  1579.     #endif /* defined(__MMI_T9_SWEDISH__) */ 
  1580.     #if defined(__MMI_T9_GREEK__)
  1581.         case INPUT_MODE_SMART_UPPERCASE_GREEK:
  1582.         case INPUT_MODE_SMART_LOWERCASE_GREEK:
  1583.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1584.             break;
  1585.     #endif /* defined(__MMI_T9_GREEK__) */ 
  1586.     #if defined(__MMI_T9_HEBREW__)
  1587.         case INPUT_MODE_SMART_HEBREW:
  1588.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1589.             break;
  1590.     #endif /* defined(__MMI_T9_HEBREW__) */ 
  1591.     #if defined(__MMI_T9_MALAY__)
  1592.         case INPUT_MODE_SMART_UPPERCASE_MALAY:
  1593.         case INPUT_MODE_SMART_LOWERCASE_MALAY:
  1594.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1595.             break;
  1596.     #endif /* defined(__MMI_T9_MALAY__) */ 
  1597.     #if defined(__MMI_T9_CROATIAN__)
  1598.         case INPUT_MODE_SMART_UPPERCASE_CROATIAN:
  1599.         case INPUT_MODE_SMART_LOWERCASE_CROATIAN:
  1600.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1601.             break;
  1602.     #endif /* defined(__MMI_T9_CROATIAN__) */ 
  1603.     #if defined(__MMI_T9_SLOVAK__)
  1604.         case INPUT_MODE_SMART_UPPERCASE_SLOVAK:
  1605.         case INPUT_MODE_SMART_LOWERCASE_SLOVAK:
  1606.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1607.             break;
  1608.     #endif /* defined(__MMI_T9_SLOVAK__) */ 
  1609.     #if defined(__MMI_T9_ROMANIAN__)
  1610.         case INPUT_MODE_SMART_UPPERCASE_ROMANIAN:
  1611.         case INPUT_MODE_SMART_LOWERCASE_ROMANIAN:
  1612.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1613.             break;
  1614.     #endif /* defined(__MMI_T9_ROMANIAN__) */ 
  1615.     #elif defined(__MMI_ZI__)
  1616.         case INPUT_MODE_TR_MULTITAP_BOPOMO:
  1617.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_BPMF_LOGO);
  1618.             break;
  1619.         case INPUT_MODE_SM_MULTITAP_PINYIN:
  1620.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO);
  1621.             break;
  1622.         case INPUT_MODE_TR_BOPOMO:
  1623.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_BPMF_LOGO);
  1624.             break;
  1625.         case INPUT_MODE_SM_PINYIN:
  1626.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO);
  1627.             break;
  1628.         case INPUT_MODE_TR_STROKE:
  1629.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_TR_STROKE_LOGO);
  1630.             break;
  1631.         case INPUT_MODE_SM_STROKE:
  1632.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_SM_STROKE_LOGO);
  1633.             break;
  1634.         case INPUT_MODE_SMART_UPPERCASE_ABC:
  1635.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1636.             break;
  1637.         case INPUT_MODE_SMART_LOWERCASE_ABC:
  1638.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1639.             break;
  1640.         case INPUT_MODE_SMART_THAI:
  1641.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1642.             break;
  1643.             /* MTK Elvis for R2L characters */
  1644.         case INPUT_MODE_SMART_ARABIC:
  1645.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1646.             break;
  1647. //PMT START PERSIAN
  1648.         case INPUT_MODE_SMART_PERSIAN:
  1649.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1650.             break;
  1651. //PMT END PERSIAN
  1652.         case INPUT_MODE_SMART_HINDI:
  1653.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1654.             break;
  1655.         case INPUT_MODE_SMART_HEBREW:
  1656.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1657.             break;
  1658.     #if defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__)
  1659.         case INPUT_MODE_SMART_UPPERCASE_SPANISH:
  1660.         case INPUT_MODE_SMART_LOWERCASE_SPANISH:
  1661.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1662.             break;
  1663.     #endif /* defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__) */ 
  1664.     #if defined(__MMI_ZI_DANISH__)
  1665.         case INPUT_MODE_SMART_UPPERCASE_DANISH:
  1666.         case INPUT_MODE_SMART_LOWERCASE_DANISH:
  1667.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1668.             break;
  1669.     #endif /* defined(__MMI_ZI_DANISH__) */ 
  1670.     #if defined(__MMI_ZI_POLISH__)
  1671.         case INPUT_MODE_SMART_UPPERCASE_POLISH:
  1672.         case INPUT_MODE_SMART_LOWERCASE_POLISH:
  1673.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1674.             break;
  1675.     #endif /* defined(__MMI_ZI_POLISH__) */ 
  1676.     #if defined(__MMI_ZI_NORWEGIAN__)
  1677.         case INPUT_MODE_SMART_UPPERCASE_NORWEGIAN:
  1678.         case INPUT_MODE_SMART_LOWERCASE_NORWEGIAN:
  1679.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1680.             break;
  1681.     #endif /* defined(__MMI_ZI_NORWEGIAN__) */ 
  1682.     #if defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__)
  1683.         case INPUT_MODE_SMART_UPPERCASE_FRENCH:
  1684.         case INPUT_MODE_SMART_LOWERCASE_FRENCH:
  1685.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1686.             break;
  1687.     #endif /* defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__) */ 
  1688.     #if defined(__MMI_ZI_GERMAN__)
  1689.         case INPUT_MODE_SMART_UPPERCASE_GERMAN:
  1690.         case INPUT_MODE_SMART_LOWERCASE_GERMAN:
  1691.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1692.             break;
  1693.     #endif /* defined(__MMI_ZI_GERMAN__) */ 
  1694.     #if defined(__MMI_ZI_ITALIAN__)
  1695.         case INPUT_MODE_SMART_UPPERCASE_ITALIAN:
  1696.         case INPUT_MODE_SMART_LOWERCASE_ITALIAN:
  1697.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1698.             break;
  1699.     #endif /* defined(__MMI_ZI_ITALIAN__) */ 
  1700.     #if defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__)
  1701.         case INPUT_MODE_SMART_UPPERCASE_RUSSIAN:
  1702.         case INPUT_MODE_SMART_LOWERCASE_RUSSIAN:
  1703.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1704.             break;
  1705.     #endif /* defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) */ 
  1706.     #if defined(__MMI_ZI_BULGARIAN__)
  1707.         case INPUT_MODE_SMART_UPPERCASE_BULGARIAN:
  1708.         case INPUT_MODE_SMART_LOWERCASE_BULGARIAN:
  1709.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1710.             break;
  1711.     #endif /* defined(__MMI_ZI_BULGARIAN__) */ 
  1712.     #if defined(__MMI_ZI_TURKISH__)
  1713.         case INPUT_MODE_SMART_UPPERCASE_TURKISH:
  1714.         case INPUT_MODE_SMART_LOWERCASE_TURKISH:
  1715.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1716.             break;
  1717.     #endif /* defined(__MMI_ZI_TURKISH__) */ 
  1718.     #if defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__)
  1719.         case INPUT_MODE_SMART_UPPERCASE_PORTUGUESE:
  1720.         case INPUT_MODE_SMART_LOWERCASE_PORTUGUESE:
  1721.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1722.             break;
  1723.     #endif /* defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__) */ 
  1724.     #if defined(__MMI_ZI_INDONESIAN__)
  1725.         case INPUT_MODE_SMART_UPPERCASE_INDONESIAN:
  1726.         case INPUT_MODE_SMART_LOWERCASE_INDONESIAN:
  1727.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1728.             break;
  1729.     #endif /* defined(__MMI_ZI_INDONESIAN__) */ 
  1730.     #if defined(__MMI_ZI_MALAY__)
  1731.         case INPUT_MODE_SMART_UPPERCASE_MALAY:
  1732.         case INPUT_MODE_SMART_LOWERCASE_MALAY:
  1733.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1734.             break;
  1735.     #endif /* defined(__MMI_ZI_MALAY__) */ 
  1736.     #if defined(__MMI_ZI_VIETNAMESE__)
  1737.         case INPUT_MODE_SMART_UPPERCASE_VIETNAMESE:
  1738.         case INPUT_MODE_SMART_LOWERCASE_VIETNAMESE:
  1739.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1740.             break;
  1741.     #endif /* defined(__MMI_ZI_VIETNAMESE__) */ 
  1742.     #if defined(__MMI_ZI_SLOVAK__)
  1743.         case INPUT_MODE_SMART_UPPERCASE_SLOVAK:
  1744.         case INPUT_MODE_SMART_LOWERCASE_SLOVAK:
  1745.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1746.             break;
  1747.     #endif /* defined(__MMI_ZI_SLOVAK__) */ 
  1748.     #if defined(__MMI_ZI_DUTCH__)
  1749.         case INPUT_MODE_SMART_UPPERCASE_DUTCH:
  1750.         case INPUT_MODE_SMART_LOWERCASE_DUTCH:
  1751.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1752.             break;
  1753.     #endif /* defined(__MMI_ZI_DUTCH__) */ 
  1754.     #if defined(__MMI_ZI_SWEDISH__)
  1755.         case INPUT_MODE_SMART_UPPERCASE_SWEDISH:
  1756.         case INPUT_MODE_SMART_LOWERCASE_SWEDISH:
  1757.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1758.             break;
  1759.     #endif /* defined(__MMI_ZI_SWEDISH__) */ 
  1760.     #if defined(__MMI_ZI_CROATIAN__)
  1761.         case INPUT_MODE_SMART_UPPERCASE_CROATIAN:
  1762.         case INPUT_MODE_SMART_LOWERCASE_CROATIAN:
  1763.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1764.             break;
  1765.     #endif /* defined(__MMI_ZI_CROATIAN__) */ 
  1766.     #if defined(__MMI_ZI_ROMANIAN__)
  1767.         case INPUT_MODE_SMART_UPPERCASE_ROMANIAN:
  1768.         case INPUT_MODE_SMART_LOWERCASE_ROMANIAN:
  1769.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1770.             break;
  1771.     #endif /* defined(__MMI_ZI_ROMANIAN__) */ 
  1772.     #if defined(__MMI_ZI_SLOVENIAN__)
  1773.         case INPUT_MODE_SMART_UPPERCASE_SLOVENIAN:
  1774.         case INPUT_MODE_SMART_LOWERCASE_SLOVENIAN:
  1775.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1776.             break;
  1777.     #endif /* defined(__MMI_ZI_SLOVENIAN__) */ 
  1778.     #if defined(__MMI_ZI_GREEK__)
  1779.         case INPUT_MODE_SMART_UPPERCASE_GREEK:
  1780.         case INPUT_MODE_SMART_LOWERCASE_GREEK:
  1781.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1782.             break;
  1783.     #endif /* defined(__MMI_ZI_GREEK__) */ 
  1784.     #if defined(__MMI_ZI_FINNISH__)
  1785.         case INPUT_MODE_SMART_UPPERCASE_FINNISH:
  1786.         case INPUT_MODE_SMART_LOWERCASE_FINNISH:
  1787.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1788.             break;
  1789.     #endif /* defined(__MMI_ZI_FINNISH__) */ 
  1790.     #if defined(__MMI_ZI_CZECH__)
  1791.         case INPUT_MODE_SMART_UPPERCASE_CZECH:
  1792.         case INPUT_MODE_SMART_LOWERCASE_CZECH:
  1793.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1794.             break;
  1795.     #endif /* defined(__MMI_ZI_CZECH__) */ 
  1796.     #if defined(__MMI_ZI_HUNGARIAN__)
  1797.         case INPUT_MODE_SMART_UPPERCASE_HUNGARIAN:
  1798.         case INPUT_MODE_SMART_LOWERCASE_HUNGARIAN:
  1799.             wgui_EMS_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1800.             break;
  1801.     #endif /* defined(__MMI_ZI_HUNGARIAN__) */ 
  1802. //KP Jerry add on 2007-3-8 start
  1803.     #elif defined(__MMI_CSTAR__)
  1804.     #if defined(__MMI_CSTAR_TR_CHINESE__)
  1805.         case INPUT_MODE_TR_MULTITAP_BOPOMO:
  1806.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_BPMF_IMG);
  1807.             break;
  1808.         case INPUT_MODE_TR_BOPOMO:
  1809.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_BPMF_IMG);
  1810.             break;
  1811.         case INPUT_MODE_TR_STROKE:
  1812.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_TR_STROKE_IMG);
  1813.             break;
  1814.     #endif
  1815.     #if defined(__MMI_CSTAR_SM_CHINESE__)
  1816.         case INPUT_MODE_SM_MULTITAP_PINYIN:
  1817.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_PINYIN_IMG);
  1818.             break;
  1819.         case INPUT_MODE_SM_PINYIN:
  1820.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_PINYIN_IMG);
  1821.             break;
  1822.         case INPUT_MODE_SM_STROKE:
  1823.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SM_STROKE_IMG);
  1824.             break;
  1825.         case INPUT_MODE_SMART_UPPERCASE_ABC:
  1826.         case INPUT_MODE_SMART_LOWERCASE_ABC:
  1827.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1828.             break;
  1829.     #endif
  1830.     #if defined(__MMI_CSTAR_VIETNAMESE__)
  1831.         case INPUT_MODE_SMART_UPPERCASE_VIETNAMESE:
  1832.         case INPUT_MODE_SMART_LOWERCASE_VIETNAMESE:
  1833.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1834.             break;
  1835.     #endif
  1836.     #if defined(__MMI_CSTAR_RUSSIAN__)
  1837.         case INPUT_MODE_SMART_UPPERCASE_RUSSIAN:
  1838.         case INPUT_MODE_SMART_LOWERCASE_RUSSIAN:
  1839.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1840.             break;
  1841.     #endif      
  1842.     #if defined(__MMI_CSTAR_THAI__)
  1843.         case INPUT_MODE_SMART_THAI:
  1844.             wgui_EMS_inputbox_information_icon = get_image(WGUI_IME_SMART_ENGLISH_IMG);
  1845.             break;
  1846.     #endif
  1847. //KP Jerry add on 2007-3-8 start
  1848.     #endif 
  1849.         default:
  1850.             wgui_EMS_inputbox_information_icon = NULL;
  1851.             break;
  1852.     }
  1853.     wgui_EMS_redraw_input_information_bar();
  1854. }
  1855. /* MTK end */
  1856. /*****************************************************************************
  1857.  * FUNCTION
  1858.  *  RedrawCategory28Screen
  1859.  * DESCRIPTION
  1860.  *  
  1861.  * PARAMETERS
  1862.  *  void
  1863.  * RETURNS
  1864.  *  void
  1865.  *****************************************************************************/
  1866. void RedrawCategory28Screen(void)
  1867. {
  1868.     /*----------------------------------------------------------------*/
  1869.     /* Local Variables                                                */
  1870.     /*----------------------------------------------------------------*/
  1871.     /*----------------------------------------------------------------*/
  1872.     /* Code Body                                                      */
  1873.     /*----------------------------------------------------------------*/
  1874.     gui_lock_double_buffer();
  1875.     clear_screen();
  1876.     show_title_status_icon();
  1877.     draw_title();
  1878. #if(UI_DISABLE_EMS_INPUT_BOX)
  1879.     show_multiline_inputbox();
  1880. #else 
  1881.     show_EMS_inputbox();
  1882. #endif 
  1883.     wgui_EMS_redraw_input_information_bar();
  1884. #if defined(__MMI_TOUCH_SCREEN__)
  1885.     wgui_show_virtual_keyboard();
  1886. #endif 
  1887.     show_softkey_background();
  1888.     show_left_softkey();
  1889.     show_right_softkey();
  1890.     gui_unlock_double_buffer();
  1891.     gui_BLT_double_buffer(0, 0, UI_device_width - 1, UI_device_height - 1);
  1892.     /* MTK Elvis for redrawing spelling or candidate boxes */
  1893.     if (RedrawSpellingOrCandidateBoxesFunction)
  1894.     {
  1895.         RedrawSpellingOrCandidateBoxesFunction();
  1896.     }
  1897.     /* MTK end */
  1898. }
  1899. /*****************************************************************************
  1900.  * FUNCTION
  1901.  *  cat28_virtual_keypad_callback
  1902.  * DESCRIPTION
  1903.  *  
  1904.  * PARAMETERS
  1905.  *  void
  1906.  * RETURNS
  1907.  *  void
  1908.  *****************************************************************************/
  1909. void cat28_virtual_keypad_callback(void)
  1910. {
  1911.     /*----------------------------------------------------------------*/
  1912.     /* Local Variables                                                */
  1913.     /*----------------------------------------------------------------*/
  1914.     /*----------------------------------------------------------------*/
  1915.     /* Code Body                                                      */
  1916.     /*----------------------------------------------------------------*/
  1917. #if defined(__MMI_TOUCH_SCREEN__)
  1918.     mmi_pen_editor_resize_multiline_input_box_for_vk();
  1919. #endif 
  1920. }
  1921. /*****************************************************************************
  1922.  * FUNCTION
  1923.  *  category28callback
  1924.  * DESCRIPTION
  1925.  *  
  1926.  * PARAMETERS
  1927.  *  coordinate      [?]     
  1928.  * RETURNS
  1929.  *  void
  1930.  *****************************************************************************/
  1931. void category28callback(dm_coordinates *coordinate)
  1932. {
  1933.     /*----------------------------------------------------------------*/
  1934.     /* Local Variables                                                */
  1935.     /*----------------------------------------------------------------*/
  1936.     /*----------------------------------------------------------------*/
  1937.     /* Code Body                                                      */
  1938.     /*----------------------------------------------------------------*/
  1939.     if (RedrawSpellingOrCandidateBoxesFunction)
  1940.     {
  1941.         RedrawSpellingOrCandidateBoxesFunction();
  1942.     }
  1943. }
  1944. /*****************************************************************************
  1945.  * FUNCTION
  1946.  *  AppendCategory28String
  1947.  * DESCRIPTION
  1948.  *  
  1949.  * PARAMETERS
  1950.  *  input_type          [IN]        
  1951.  *  data                [?]         
  1952.  *  s                   [?]         
  1953.  *  history_buffer      [?]         
  1954.  * RETURNS
  1955.  *  
  1956.  *****************************************************************************/
  1957. U8 AppendCategory28String(S16 input_type, EMSData *data, U8 *s, U8 *history_buffer)
  1958. {
  1959. #if(!UI_DISABLE_EMS_INPUT_BOX)
  1960.     /*----------------------------------------------------------------*/
  1961.     /* Local Variables                                                */
  1962.     /*----------------------------------------------------------------*/
  1963.     S32 i = 0;
  1964. #ifdef __MMI_MENUTREE_2__
  1965.     S32 j = 0;
  1966. #endif 
  1967.     S32 l, box_height;
  1968.     U8 ts[2];
  1969.     U8 h;
  1970.     UI_character_type c;
  1971.     /* Manju added for template, 1213 */
  1972.     S32 remaining_length;
  1973.     /*----------------------------------------------------------------*/
  1974.     /* Code Body                                                      */
  1975.     /*----------------------------------------------------------------*/
  1976.     //Mamju end
  1977. #if defined __MMI_LANG_HINDI__ && (defined __MMI_LANG_ARABIC__ || defined __MMI_LANG_PERSIAN__)
  1978.     if (ARABIC_PRESENT || MMI_current_input_mode == INPUT_MODE_SMART_ARABIC || MMI_current_input_mode == INPUT_MODE_SMART_PERSIAN)
  1979.     {
  1980.         U16 unicode = 0;
  1981.         U16 clFill = 0;
  1982.         IS_HINDI = 0;
  1983.         while ((s[clFill] != '' || s[clFill + 1] != '') && !IS_HINDI)
  1984.         {
  1985.             unicode = s[clFill];
  1986.             unicode |= (s[clFill + 1] << 8);
  1987.             if (UI_HINDI_CHARACTER_UCS2_RANGE(unicode))
  1988.             {
  1989.                 IS_HINDI = 1;
  1990.             }
  1991.             clFill += 2;
  1992.         }
  1993.         if (IS_HINDI && ARABIC_PRESENT)
  1994.         {
  1995.             return (0);
  1996.         }
  1997.         else if (IS_HINDI)
  1998.         {
  1999.             test_change_input_mode = test_EMS_inputbox_change_mode;
  2000.             wgui_change_inputbox_mode_multitap_HINDI();
  2001.         }
  2002.     }
  2003.     else if (HINDI_PRESENT || MMI_current_input_mode == INPUT_MODE_MULTITAP_HINDI)
  2004.     {
  2005.         U16 default_direction = 1;
  2006.         U16 Count = 0;
  2007.         U16 length = pfnUnicodeStrlen((const char*)s) * 2;
  2008.         IS_ARABIC = 0;
  2009.         for (Count = 0; Count < length; Count += 2)
  2010.         {
  2011.             bidi_get_char_type(s + Count, (U8*) & default_direction);
  2012.             if ((default_direction == 5) || (default_direction == 3) || (default_direction == 2))
  2013.             {
  2014.                 IS_ARABIC = 1;
  2015.             }
  2016.         }
  2017.         if (IS_ARABIC && HINDI_PRESENT)
  2018.         {
  2019.             return (0);
  2020.         }
  2021.         else if (IS_ARABIC)
  2022.         {
  2023.             test_change_input_mode = test_EMS_inputbox_change_mode;
  2024. //PMT START PERSIAN
  2025. #if defined(__MMI_LANG_ARABIC__)
  2026.             wgui_change_inputbox_mode_smart_arabic();
  2027. #elif defined(__MMI_LANG_PERSIAN__)
  2028.             wgui_change_inputbox_mode_smart_persian();
  2029. #endif
  2030. //PMT END PERSIAN
  2031.         }
  2032.     }
  2033. #endif /* defined __MMI_LANG_HINDI__ && defined __MMI_LANG_ARABIC__ */ 
  2034. #if(UI_DOUBLE_BUFFER_SUPPORT)
  2035.     gui_lock_double_buffer();
  2036. #endif 
  2037.     l = gui_strlen((UI_string_type) s);
  2038.     box_height = MMI_content_height - MMI_multitap_height - 10;
  2039.     gui_create_EMS_input_box(&MMI_EMS_inputbox, 0, (MMI_title_y + MMI_title_height) + 12, UI_device_width, box_height);
  2040.     gui_set_EMS_input_box_data(&MMI_EMS_inputbox, data);
  2041.     h = set_EMS_inputbox_category_history(MMI_CATEGORY28_ID, history_buffer, (S16*) & input_type);
  2042.     if (h)
  2043.     {
  2044.         gui_EMS_input_box_locate_cursor(&MMI_EMS_inputbox);
  2045.     #ifdef __MMI_MESSAGES_EMS__
  2046.         gui_EMS_input_box_set_text_format_object(&MMI_EMS_inputbox, &wgui_EMS_text_format);
  2047.     #endif 
  2048.     }
  2049.     MMI_EMS_inputbox.flags |= UI_EMS_INPUT_BOX_DISABLE_DRAW;
  2050.     gui_show_EMS_input_box(&MMI_EMS_inputbox);
  2051.     MMI_EMS_inputbox.flags &= ~UI_EMS_INPUT_BOX_DISABLE_DRAW;
  2052.     for (i = 0; i < l; i++)
  2053.     {
  2054.         UI_STRING_GET_NEXT_CHARACTER(s, c);
  2055.     #if(0)
  2056. ts[0]=c>>8;
  2057. ts[1]=c&0xff;
  2058.     #else /* (0) */ 
  2059.         ts[1] = c >> 8;
  2060.         ts[0] = c & 0xff;
  2061.     #endif /* (0) */ 
  2062.         /* Manju added for template, 1213 */
  2063.         if (MMI_EMS_inputbox.UCS2_count > 0)
  2064.         {
  2065.             remaining_length = (EMS_get_remaining_length(MMI_EMS_inputbox.data) >> 1);
  2066.         }
  2067.         else
  2068.         {
  2069.             remaining_length = EMS_get_remaining_length(MMI_EMS_inputbox.data);
  2070.         }
  2071.         if (remaining_length <= 0)
  2072.         {
  2073.             break;
  2074.         }
  2075.         if (MMI_EMS_inputbox.UCS2_count == 0)
  2076.         {
  2077.             if (UI_TEST_UCS2_CHARACTER(c))
  2078.             {
  2079.                 if (EMSSetDCS(MMI_EMS_inputbox.data, SMSAL_UCS2_DCS) != EMS_OK)
  2080.                 {
  2081.                     EMSSetDCS(MMI_EMS_inputbox.data, SMSAL_DEFAULT_DCS);
  2082.                     break;
  2083.                 }
  2084.                 else
  2085.                 {
  2086.                     if (EMS_get_remaining_length(MMI_EMS_inputbox.data) < 2)
  2087.                     {
  2088.                         EMSSetDCS(MMI_EMS_inputbox.data, SMSAL_DEFAULT_DCS);
  2089.                         break;
  2090.                     }
  2091.                 }
  2092.             }
  2093.             else if (UI_TEST_GSM_EXTENDED(c))
  2094.             {
  2095.                 if (EMS_get_remaining_length(MMI_EMS_inputbox.data) < 2)
  2096.                 {
  2097.                     break;
  2098.                 }
  2099.             }
  2100.         }
  2101.         /* Manju end */
  2102.         if (gui_EMS_input_box_add_string(&MMI_EMS_inputbox, ts, &MMI_EMS_inputbox.text_format) != EMS_OK)
  2103.         {
  2104.             break;
  2105.         }
  2106.         gui_EMS_input_box_locate_cursor(&MMI_EMS_inputbox);
  2107.     }
  2108.     get_EMS_inputbox_category_history(MMI_CATEGORY28_ID, history_buffer, input_type);
  2109. #if(UI_DOUBLE_BUFFER_SUPPORT)
  2110.     gui_unlock_double_buffer();
  2111. #endif 
  2112.     if (i == l)
  2113.     {
  2114.         return (1);
  2115.     }
  2116.     else
  2117.     {
  2118.     #ifdef __MMI_MENUTREE_2__
  2119.         for (j = 0; j < i; j++)
  2120.         {
  2121.             gui_EMS_input_box_backspace(&MMI_EMS_inputbox);
  2122.         }
  2123.     #endif /* __MMI_MENUTREE_2__ */ 
  2124.         return (0);
  2125.     }
  2126. #else /* (!UI_DISABLE_EMS_INPUT_BOX) */ 
  2127.     UI_UNUSED_PARAMETER(input_type);
  2128.     UI_UNUSED_PARAMETER(data);
  2129.     UI_UNUSED_PARAMETER(s);
  2130.     UI_UNUSED_PARAMETER(history_buffer);
  2131.     return (0);
  2132. #endif /* (!UI_DISABLE_EMS_INPUT_BOX) */ 
  2133. }
  2134. /*****************************************************************************
  2135.  * FUNCTION
  2136.  *  ShowCategory28Screen
  2137.  * DESCRIPTION
  2138.  *  Displays the MO EMS/SMS screen
  2139.  * PARAMETERS
  2140.  *  title                   [IN]        Title for the screen
  2141.  *  title_icon              [IN]        Icon shown with the title
  2142.  *  left_softkey            [IN]        Left softkey label
  2143.  *  left_softkey_icon       [IN]        Icon for the left softkey
  2144.  *  right_softkey           [IN]        Right softkey label
  2145.  *  right_softkey_icon      [IN]        Icon for the right softkey
  2146.  *  data                    [IN]        EMSData (Pre-allocated and initialized)
  2147.  *  history_buffer          [IN]        History buffer
  2148.  * RETURNS
  2149.  *  void
  2150.  *****************************************************************************/
  2151. void ShowCategory28Screen(
  2152.         U16 title,
  2153.         U16 title_icon,
  2154.         U16 left_softkey,
  2155.         U16 left_softkey_icon,
  2156.         U16 right_softkey,
  2157.         U16 right_softkey_icon,
  2158.         EMSData *data,
  2159.         U8 *history_buffer)
  2160. {
  2161.     /*----------------------------------------------------------------*/
  2162.     /* Local Variables                                                */
  2163.     /*----------------------------------------------------------------*/
  2164. #if defined __MMI_LANG_HINDI__ && (defined __MMI_LANG_ARABIC__ || defined __MMI_LANG_PERSIAN__)
  2165.     U16 unicode = 0;
  2166.     U16 clFill = 0;
  2167. #endif /* defined __MMI_LANG_HINDI__ && defined __MMI_LANG_ARABIC__ */ 
  2168.     dm_data_struct dm_data;
  2169.     U16 input_type = (U16) INPUT_TYPE_ALPHANUMERIC_LOWERCASE;
  2170. #if(UI_DISABLE_EMS_INPUT_BOX)
  2171.     S32 length;
  2172.     S32 i, j, h, fh;
  2173.     UI_UNUSED_PARAMETER(history_buffer);
  2174. #else /* (UI_DISABLE_EMS_INPUT_BOX) */ 
  2175.     U8 h;
  2176.     S32 box_height;
  2177. #endif /* (UI_DISABLE_EMS_INPUT_BOX) */ 
  2178. #if defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__)
  2179.     mmi_pen_handwriting_area_struct stroke_area;
  2180.     mmi_pen_handwriting_area_struct ext_stroke;
  2181. #endif /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */ 
  2182.     /*----------------------------------------------------------------*/
  2183.     /* Code Body                                                      */
  2184.     /*----------------------------------------------------------------*/
  2185.     gdi_layer_lock_frame_buffer();
  2186. #if defined __MMI_LANG_HINDI__ && (defined __MMI_LANG_ARABIC__ || defined __MMI_LANG_PERSIAN__)
  2187.     ARABIC_PRESENT = 0;
  2188.     HINDI_PRESENT = 0;
  2189. #endif /* defined __MMI_LANG_HINDI__ && defined __MMI_LANG_ARABIC__ */ 
  2190. #if defined __MMI_LANG_HINDI__ && (defined __MMI_LANG_ARABIC__ || defined __MMI_LANG_PERSIAN__)
  2191.     HINDI_PRESENT = 0;
  2192.     ARABIC_PRESENT = 0;
  2193.     while ((data->textBuffer[clFill] != '' || data->textBuffer[clFill + 1] != '') && !HINDI_PRESENT)
  2194.     {
  2195.         unicode = data->textBuffer[clFill];
  2196.         unicode |= (data->textBuffer[clFill + 1] << 8);
  2197.         if (UI_HINDI_CHARACTER_UCS2_RANGE(unicode))
  2198.         {
  2199.             HINDI_PRESENT = 1;
  2200.             ARABIC_PRESENT = 0;
  2201.         }
  2202.         else if (IS_ARABIC_CHARACTER(unicode))
  2203.         {
  2204.             ARABIC_PRESENT = 1;
  2205.             HINDI_PRESENT = 0;
  2206.         }
  2207.         clFill += 2;
  2208.     }
  2209. #endif /* defined __MMI_LANG_HINDI__ && defined __MMI_LANG_ARABIC__ */ 
  2210.     set_current_input_box_type(EDITOR_EMS_INPUT_BOX);
  2211.     test_change_input_mode = test_EMS_inputbox_change_mode;
  2212.     wgui_set_default_input_type(&input_type);
  2213. #ifdef __MMI_T9__
  2214.     InuptMethodEnterCategory28();
  2215. #elif defined(__MMI_ZI__) && defined(__MMI_MESSAGES_EMS__)
  2216.     ZiInuptMethodEnterCategory28();
  2217. //KP Jerry add on 2007-3-8 start
  2218. #elif defined(__MMI_CSTAR__)
  2219.     CstarInputMethodEnterCategory28();
  2220. //KP Jerry add on 2007-3-8 end
  2221. #elif defined(__MMI_KA__)
  2222.     KonkaInuptMethodEnterCategory28();
  2223. #elif defined(__MMI_ITAP__)
  2224. /* under construction !*/
  2225. /* under construction !*/
  2226. #endif 
  2227.     wgui_inputbox_information_flag = 1;
  2228.     wgui_inputbox_information_bar_height = INFORMATION_BAR_HEIGHT;
  2229.     wgui_EMS_setup_input_information(
  2230.         0,
  2231.         (MMI_title_y + MMI_title_height),
  2232.         UI_device_width,
  2233.         wgui_inputbox_information_bar_height);
  2234.     MMI_menu_shortcut_number = -1;
  2235.     change_left_softkey(left_softkey, left_softkey_icon);
  2236.     change_right_softkey(right_softkey, right_softkey_icon);
  2237.     SetupCategoryKeyHandlers();
  2238.     MMI_title_string = (UI_string_type) get_string(title);
  2239.     MMI_title_icon = (PU8) get_image(title_icon);
  2240. #if(UI_DISABLE_EMS_INPUT_BOX)
  2241.     length = (data->textBufferSize >> 1);
  2242.     if (length == 0)
  2243.     {
  2244.         UI_string_type s = (UI_string_type) "EMS Data not initialized";
  2245.         S32 l = gui_strlen((UI_string_type) s);
  2246.         temp_EMS_buffer = (UI_string_type) gui_malloc(l * sizeof(UI_character_type));
  2247.         gui_strcpy((UI_string_type) temp_EMS_buffer, (UI_string_type) s);
  2248.         length = l + 1;
  2249.         i = j = l;
  2250.     }
  2251.     else
  2252.     {
  2253.         temp_EMS_buffer = (UI_string_type) gui_malloc(length * sizeof(UI_character_type));
  2254.         i = j = 0;
  2255.         while (j < data->textLength)
  2256.         {
  2257.             if ((data->textBuffer[j] == '') && (data->textBuffer[j + 1] == ''))
  2258.             {
  2259.                 temp_EMS_buffer[i] = '';
  2260.                 break;
  2261.             }
  2262.             else
  2263.             {
  2264.                 temp_EMS_buffer[i] = data->textBuffer[j + 1];
  2265.             }
  2266.             i++;
  2267.             j += 2;
  2268.         }
  2269.     }
  2270.     temp_EMS_data = data;
  2271.     create_multiline_inputbox_set_buffer(temp_EMS_buffer, length, i, 0);
  2272.     register_multiline_inputbox_keys();
  2273.     register_hide_multitap(category5_hide_multitap);
  2274.     h = MMI_content_height - MMI_multitap_height - 8;
  2275.     gui_set_font(MMI_multiline_inputbox.text_font);
  2276.     fh = gui_get_character_height();
  2277.     h = ((h / fh) * fh) + 8;
  2278.     resize_multiline_inputbox(MMI_multiline_inputbox.width, h);
  2279.     set_multiline_inputbox_mask(0);
  2280.     change_multiline_inputbox_mode(1);
  2281.     SetKeyHandler(change_input_mode, KEY_STAR, KEY_EVENT_DOWN);
  2282.     inputbox_change_mode = change_multiline_inputbox_input_mode;
  2283.     MMI_current_input_mode = 1;
  2284.     set_right_softkey_function(handle_category28_right_softkey_down, KEY_EVENT_DOWN);
  2285.     set_right_softkey_function(handle_category28_right_softkey_long_press, KEY_LONG_PRESS);
  2286.     register_multiline_inputbox_input_callback(handle_category28_input);
  2287.     category28_RSK_label_icon = get_image(right_softkey_icon);
  2288.     category28_RSK_label_string = get_string(right_softkey);
  2289.     handle_category28_input();
  2290.     if (MMI_multiline_inputbox.text_length <= 1)
  2291.     {
  2292.         set_right_softkey_function(handle_category28_right_softkey_up, KEY_EVENT_UP);
  2293.     }
  2294. #ifdef __MMI_WALLPAPER_ON_BOTTOM__
  2295.     MMI_EMS_inputbox.flags |= UI_EMS_INPUT_BOX_TRANSPARENT_BACKGROUND;
  2296.     dm_get_scr_bg_image(
  2297.         &editor_scr_bg_ID,
  2298.         &editor_scr_bg_filename,
  2299.         &editor_scr_bg_x,
  2300.         &editor_scr_bg_y,
  2301.         &editor_scr_bg_opacity);
  2302. //PMT SUKRIT START 10112006
  2303.     dm_set_scr_bg_image(editor_scr_bg_ID, editor_scr_bg_filename, editor_scr_bg_x, editor_scr_bg_y, current_MMI_theme->bg_opacity_low);     /* 100605 editor opacity Calvin */
  2304. //PMT SUKRIT END 10112006
  2305. #endif /* __MMI_WALLPAPER_ON_BOTTOM__ */ 
  2306. #else /* (UI_DISABLE_EMS_INPUT_BOX) */ 
  2307. #if((UI_ENABLE_FRAME_SKIPPING) && (ENABLE_EMS_INPUTBOX_FRAME_SKIPPING))
  2308.     wgui_EMS_inputbox_frame_counter = 0;
  2309. #endif 
  2310. #ifdef __MMI_MESSAGES_EMS__
  2311.     initialize_EMS_objects();
  2312. #endif 
  2313.     /* MTK Elvis to adjust to avoid overlap with multitap window */
  2314. #if defined(__MMI_FULL_SCREEN_EDITOR__)
  2315.     box_height = MMI_content_height - 13;
  2316. #else 
  2317.     box_height = MMI_content_height - MMI_multitap_height - 13;
  2318. #endif 
  2319.     /* MTK end */
  2320.     gui_create_EMS_input_box(
  2321.         &MMI_EMS_inputbox,
  2322.         0,
  2323.         (MMI_title_y + MMI_title_height) + wgui_EMS_inputbox_information_bar_height,
  2324.         UI_device_width,
  2325.         box_height);
  2326.     gui_set_EMS_input_box_data(&MMI_EMS_inputbox, data);
  2327.     h = set_EMS_inputbox_category_history(MMI_CATEGORY28_ID, history_buffer, (S16*) & input_type);
  2328.     if (h)
  2329.     {   /* HACK: Current alignment is not saved in history, so test it using a flag   */
  2330.         if (EMS_inputbox_alignment_added_flag)
  2331.         {
  2332.             wgui_EMS_text_format.Alignment = EMS_inputbox_alignment;
  2333.             MMI_EMS_inputbox.text_format.Alignment = EMS_inputbox_alignment;
  2334.             EMS_inputbox_alignment_added_flag = 0;
  2335.         }
  2336.     #ifdef __MMI_MESSAGES_EMS__
  2337.         gui_EMS_input_box_set_text_format_object(&MMI_EMS_inputbox, &wgui_EMS_text_format);
  2338.     #endif 
  2339.     }
  2340.     else
  2341.     {
  2342.         gui_EMS_input_box_set_text_format_cursor_position(&MMI_EMS_inputbox);
  2343.         wgui_EMS_text_format = MMI_EMS_inputbox.text_format;
  2344.     }
  2345.     gui_EMS_input_box_locate_cursor(&MMI_EMS_inputbox);
  2346.     register_hide_multitap(category5_hide_multitap);
  2347.     SetKeyHandler(handle_category28_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  2348.     /* MTK Terry : Switch IME by long press # */
  2349. #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
  2350. #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */ 
  2351.     SetKeyHandler(handle_category28_change_input_mode, KEY_POUND, KEY_LONG_PRESS);
  2352. #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */ 
  2353.     register_EMS_inputbox_keys();
  2354. #ifdef __MMI_WALLPAPER_ON_BOTTOM__
  2355.     MMI_EMS_inputbox.flags |= UI_EMS_INPUT_BOX_TRANSPARENT_BACKGROUND;
  2356.     dm_get_scr_bg_image(
  2357.         &editor_scr_bg_ID,
  2358.         &editor_scr_bg_filename,
  2359.         &editor_scr_bg_x,
  2360.         &editor_scr_bg_y,
  2361.         &editor_scr_bg_opacity);
  2362. //PMT SUKRIT START 10112006
  2363.     dm_set_scr_bg_image(editor_scr_bg_ID, editor_scr_bg_filename, editor_scr_bg_x, editor_scr_bg_y, current_MMI_theme->bg_opacity_low);     /* 100605 editor opacity Calvin */
  2364. //PMT SUKRIT END 10112006
  2365. #endif /* __MMI_WALLPAPER_ON_BOTTOM__ */ 
  2366.     inputbox_change_mode = change_EMS_inputbox_input_mode;
  2367.     /* Get input mode from "Input Methods" list selection */
  2368.     wgui_change_inputbox_mode_multitap_ABC = wgui_EMS_inputbox_change_input_mode_multitap_ABC;
  2369.     wgui_change_inputbox_mode_multitap_abc = wgui_EMS_inputbox_change_input_mode_multitap_abc;
  2370.     wgui_change_inputbox_mode_mode_numeric = wgui_EMS_inputbox_change_input_mode_multitap_numeric;
  2371.     /* PMT dara added for Multitap thai */
  2372. #if defined(__MMI_MULTITAP_THAI__)
  2373.     wgui_change_inputbox_mode_multitap_thai = wgui_EMS_inputbox_change_input_mode_multitap_thai;
  2374. #endif 
  2375. #if defined(__MMI_MULTITAP_SPANISH__)
  2376.     wgui_change_inputbox_mode_multitap_SPANISH = wgui_EMS_inputbox_change_input_mode_multitap_SPANISH;
  2377.     wgui_change_inputbox_mode_multitap_spanish = wgui_EMS_inputbox_change_input_mode_multitap_spanish;
  2378. #endif /* defined(__MMI_MULTITAP_SPANISH__) */ 
  2379. #if defined(__MMI_MULTITAP_DANISH__)
  2380.     wgui_change_inputbox_mode_multitap_DANISH = wgui_EMS_inputbox_change_input_mode_multitap_DANISH;
  2381.     wgui_change_inputbox_mode_multitap_danish = wgui_EMS_inputbox_change_input_mode_multitap_danish;
  2382. #endif /* defined(__MMI_MULTITAP_DANISH__) */ 
  2383. #if defined(__MMI_MULTITAP_POLISH__)
  2384.     wgui_change_inputbox_mode_multitap_POLISH = wgui_EMS_inputbox_change_input_mode_multitap_POLISH;
  2385.     wgui_change_inputbox_mode_multitap_polish = wgui_EMS_inputbox_change_input_mode_multitap_polish;
  2386. #endif /* defined(__MMI_MULTITAP_POLISH__) */ 
  2387. #if defined(__MMI_MULTITAP_FRENCH__)
  2388.     wgui_change_inputbox_mode_multitap_FRENCH = wgui_EMS_inputbox_change_input_mode_multitap_FRENCH;
  2389.     wgui_change_inputbox_mode_multitap_french = wgui_EMS_inputbox_change_input_mode_multitap_french;
  2390. #endif /* defined(__MMI_MULTITAP_FRENCH__) */ 
  2391. #if defined(__MMI_MULTITAP_GERMAN__)
  2392.     wgui_change_inputbox_mode_multitap_GERMAN = wgui_EMS_inputbox_change_input_mode_multitap_GERMAN;
  2393.     wgui_change_inputbox_mode_multitap_german = wgui_EMS_inputbox_change_input_mode_multitap_german;
  2394. #endif /* defined(__MMI_MULTITAP_GERMAN__) */ 
  2395. #if defined(__MMI_MULTITAP_ITALIAN__)
  2396.     wgui_change_inputbox_mode_multitap_ITALIAN = wgui_EMS_inputbox_change_input_mode_multitap_ITALIAN;
  2397.     wgui_change_inputbox_mode_multitap_italian = wgui_EMS_inputbox_change_input_mode_multitap_italian;
  2398. #endif /* defined(__MMI_MULTITAP_ITALIAN__) */ 
  2399. #if defined(__MMI_MULTITAP_RUSSIAN__)
  2400.     wgui_change_inputbox_mode_multitap_RUSSIAN = wgui_EMS_inputbox_change_input_mode_multitap_RUSSIAN;
  2401.     wgui_change_inputbox_mode_multitap_russian = wgui_EMS_inputbox_change_input_mode_multitap_russian;
  2402. #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */ 
  2403. #if defined(__MMI_MULTITAP_BULGARIAN__)
  2404.     wgui_change_inputbox_mode_multitap_BULGARIAN = wgui_EMS_inputbox_change_input_mode_multitap_BULGARIAN;
  2405.     wgui_change_inputbox_mode_multitap_bulgarian = wgui_EMS_inputbox_change_input_mode_multitap_bulgarian;
  2406. #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */ 
  2407. #if defined(__MMI_MULTITAP_TURKISH__)
  2408.     wgui_change_inputbox_mode_multitap_TURKISH = wgui_EMS_inputbox_change_input_mode_multitap_TURKISH;
  2409.     wgui_change_inputbox_mode_multitap_turkish = wgui_EMS_inputbox_change_input_mode_multitap_turkish;
  2410. #endif /* defined(__MMI_MULTITAP_TURKISH__) */ 
  2411. #if defined(__MMI_MULTITAP_PORTUGUESE__)
  2412.     wgui_change_inputbox_mode_multitap_PORTUGUESE = wgui_EMS_inputbox_change_input_mode_multitap_PORTUGUESE;
  2413.     wgui_change_inputbox_mode_multitap_portuguese = wgui_EMS_inputbox_change_input_mode_multitap_portuguese;
  2414. #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */ 
  2415. #if defined(__MMI_MULTITAP_HINDI__)
  2416.     wgui_change_inputbox_mode_multitap_HINDI = wgui_EMS_inputbox_change_input_mode_multitap_HINDI;
  2417. #endif 
  2418.     /* PMT RAKESH START 20061006 */
  2419. #if defined(__MMI_MULTITAP_MARATHI__)
  2420.     wgui_change_inputbox_mode_multitap_MARATHI = wgui_EMS_inputbox_change_input_mode_multitap_MARATHI;
  2421. #endif 
  2422.     /* PMT RAKESH END 20061006 */
  2423. #if defined(__MMI_MULTITAP_INDONESIAN__)
  2424.     wgui_change_inputbox_mode_multitap_INDONESIAN = wgui_EMS_inputbox_change_input_mode_multitap_INDONESIAN;
  2425.     wgui_change_inputbox_mode_multitap_indonesian = wgui_EMS_inputbox_change_input_mode_multitap_indonesian;
  2426. #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */ 
  2427. #if defined(__MMI_MULTITAP_CZECH__)
  2428.     wgui_change_inputbox_mode_multitap_CZECH = wgui_EMS_inputbox_change_input_mode_multitap_CZECH;
  2429.     wgui_change_inputbox_mode_multitap_czech = wgui_EMS_inputbox_change_input_mode_multitap_czech;
  2430. #endif /* defined(__MMI_MULTITAP_CZECH__) */ 
  2431. #if defined(__MMI_MULTITAP_MALAY__)
  2432.     wgui_change_inputbox_mode_multitap_MALAY = wgui_EMS_inputbox_change_input_mode_multitap_MALAY;
  2433.     wgui_change_inputbox_mode_multitap_malay = wgui_EMS_inputbox_change_input_mode_multitap_malay;
  2434. #endif /* defined(__MMI_MULTITAP_MALAY__) */ 
  2435. #if defined(__MMI_MULTITAP_VIETNAMESE__)
  2436.     wgui_change_inputbox_mode_multitap_VIETNAMESE = wgui_EMS_inputbox_change_input_mode_multitap_VIETNAMESE;
  2437.     wgui_change_inputbox_mode_multitap_vietnamese = wgui_EMS_inputbox_change_input_mode_multitap_vietnamese;
  2438. #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */ 
  2439. #if defined(__MMI_MULTITAP_FINNISH__)