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

MTK

开发平台:

C/C++

  1. /*****************************************************************************
  2.  * FUNCTION
  3.  *  wgui_setup_singleline_inputbox
  4.  * DESCRIPTION
  5.  *  create single line input box
  6.  * PARAMETERS
  7.  *  x                           [IN]        Start x of single line input box
  8.  *  y                           [IN]        Stsrt y of single line input box
  9.  *  width                       [IN]        Width of single line input box
  10.  *  height                      [IN]        Height of single line input box
  11.  *  buffer                      [IN]        Buffer of single line input box
  12.  *  buffer_size                 [IN]        Size of buffer
  13.  *  category_screen_ID          [IN]        Id ofcategory screen
  14.  *  RSK_label                   [IN]        String of RSK
  15.  *  RSK_icon                    [IN]        Icon of RSK
  16.  *  input_type                  [IN]        
  17.  *  history_buffer              [IN]        History buffer
  18.  *  information_bar_flag        [IN]        
  19.  *  input(?)                    [IN]        Type
  20.  *  Change(?)                   [IN]        The parameter for setup function - Gurinder - 23/4/2004
  21.  * RETURNS
  22.  *  void
  23.  *****************************************************************************/
  24. /* Change the parameter for setup function - Gurinder - 23/4/2004 */
  25. void wgui_setup_singleline_inputbox(
  26.         S32 x,
  27.         S32 y,
  28.         S32 width,
  29.         S32 height,
  30.         U8 *buffer,
  31.         S32 buffer_size,
  32.         U16 category_screen_ID,
  33.         UI_string_type RSK_label,
  34.         PU8 RSK_icon,
  35.         U16 input_type,
  36.         U8 *history_buffer,
  37.         U8 information_bar_flag)
  38. {
  39.     /*----------------------------------------------------------------*/
  40.     /* Local Variables                                                */
  41.     /*----------------------------------------------------------------*/
  42.     S32 l;
  43.     S16 input_type_flags = input_type & (~INPUT_TYPE_MASK);
  44.     U8 saved_MMI_current_input_mode;
  45.     U32 saved_inputbox_flags;
  46.     U8 override_history_input_type = 0;
  47.     S16 saved_input_type = input_type;
  48.     U8 plus_character_handling = 0;
  49. #if defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__)
  50.     mmi_pen_handwriting_area_struct stroke_area;
  51.     mmi_pen_handwriting_area_struct ext_stroke;
  52. #endif /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */ 
  53.     /*----------------------------------------------------------------*/
  54.     /* Code Body                                                      */
  55.     /*----------------------------------------------------------------*/
  56.     /* UI_UNUSED_PARAMETER(flags); */
  57.     wgui_singleline_inputbox_buffer_size = buffer_size;
  58.     if (input_type & INPUT_TYPE_PLUS_CHARACTER_HANDLING)
  59.     {
  60.         plus_character_handling = 1;
  61.     }
  62.     wgui_set_default_input_type(&input_type);
  63.     //MTK Elvis for PHB Quick Search
  64.     //W05.36 Fix Vietnamese Tone Input Issue
  65.     if (cat200_search_function)
  66.     {
  67.         wgui_set_qsearch_default_input_type(&input_type);
  68.         set_current_input_box_type(EDITOR_SINGLE_LINE_INPU_BOX);
  69.     }
  70.     else
  71.     {
  72.         set_current_input_box_type(EDITOR_SINGLE_LINE_INPU_BOX);
  73.     }
  74.     /* MTK end */
  75.     l = gui_strlen((UI_string_type) buffer);
  76.     create_singleline_inputbox_set_buffer((UI_string_type) buffer, buffer_size, l, l);
  77.     register_singleline_inputbox_keys();
  78.     /* Information Bar Setup For Single Line Box - Gurinder 23/4/2004 */
  79.     if (information_bar_flag)
  80.     {
  81.         wgui_inputbox_information_flag = 1;
  82.         wgui_inputbox_information_bar_height = INFORMATION_BAR_HEIGHT;
  83.         wgui_setup_input_information(
  84.             0,
  85.             (MMI_title_y + MMI_title_height),
  86.             UI_device_width,
  87.             wgui_inputbox_information_bar_height);
  88.     }
  89.     move_singleline_inputbox(x, y);
  90.     resize_singleline_inputbox(width, height);
  91.     switch (input_type & INPUT_TYPE_MASK)
  92.     {
  93.         case INPUT_TYPE_NUMERIC_PASSWORD:
  94.         case INPUT_TYPE_SAT_NUMERIC_PASSWORD:
  95.             override_history_input_type = 1;
  96.             break;
  97.     }
  98.     set_singleline_inputbox_category_history(category_screen_ID, history_buffer, (S16*) & input_type);
  99.     saved_MMI_current_input_mode = MMI_current_input_mode;
  100.     saved_inputbox_flags = MMI_singleline_inputbox.flags;
  101.     if (override_history_input_type)
  102.     {
  103.         input_type = saved_input_type;
  104.     }
  105.     /* Get input mode from "Input Methods" list selection */
  106.     wgui_change_inputbox_mode_multitap_ABC = wgui_singleline_inputbox_change_input_mode_multitap_ABC;
  107.     wgui_change_inputbox_mode_multitap_abc = wgui_singleline_inputbox_change_input_mode_multitap_abc;
  108.     wgui_change_inputbox_mode_mode_numeric = wgui_singleline_inputbox_change_input_mode_multitap_numeric;
  109.     wgui_inputbox_insert_symbol = wgui_singleline_inputbox_insert_symbol;
  110. #if defined(__MMI_MULTITAP_THAI__)
  111.     wgui_change_inputbox_mode_multitap_thai = wgui_singleline_inputbox_change_input_mode_multitap_thai;
  112. #endif 
  113. #if defined(__MMI_MULTITAP_SPANISH__)
  114.     wgui_change_inputbox_mode_multitap_SPANISH = wgui_singleline_inputbox_change_input_mode_multitap_SPANISH;
  115.     wgui_change_inputbox_mode_multitap_spanish = wgui_singleline_inputbox_change_input_mode_multitap_spanish;
  116. #endif /* defined(__MMI_MULTITAP_SPANISH__) */ 
  117. #if defined(__MMI_MULTITAP_DANISH__)
  118.     wgui_change_inputbox_mode_multitap_DANISH = wgui_singleline_inputbox_change_input_mode_multitap_DANISH;
  119.     wgui_change_inputbox_mode_multitap_danish = wgui_singleline_inputbox_change_input_mode_multitap_danish;
  120. #endif /* defined(__MMI_MULTITAP_DANISH__) */ 
  121. #if defined(__MMI_MULTITAP_POLISH__)
  122.     wgui_change_inputbox_mode_multitap_POLISH = wgui_singleline_inputbox_change_input_mode_multitap_POLISH;
  123.     wgui_change_inputbox_mode_multitap_polish = wgui_singleline_inputbox_change_input_mode_multitap_polish;
  124. #endif /* defined(__MMI_MULTITAP_POLISH__) */ 
  125. #if defined(__MMI_MULTITAP_FRENCH__)
  126.     wgui_change_inputbox_mode_multitap_FRENCH = wgui_singleline_inputbox_change_input_mode_multitap_FRENCH;
  127.     wgui_change_inputbox_mode_multitap_french = wgui_singleline_inputbox_change_input_mode_multitap_french;
  128. #endif /* defined(__MMI_MULTITAP_FRENCH__) */ 
  129. #if defined(__MMI_MULTITAP_GERMAN__)
  130.     wgui_change_inputbox_mode_multitap_GERMAN = wgui_singleline_inputbox_change_input_mode_multitap_GERMAN;
  131.     wgui_change_inputbox_mode_multitap_german = wgui_singleline_inputbox_change_input_mode_multitap_german;
  132. #endif /* defined(__MMI_MULTITAP_GERMAN__) */ 
  133. #if defined(__MMI_MULTITAP_ITALIAN__)
  134.     wgui_change_inputbox_mode_multitap_ITALIAN = wgui_singleline_inputbox_change_input_mode_multitap_ITALIAN;
  135.     wgui_change_inputbox_mode_multitap_italian = wgui_singleline_inputbox_change_input_mode_multitap_italian;
  136. #endif /* defined(__MMI_MULTITAP_ITALIAN__) */ 
  137. #if defined(__MMI_MULTITAP_RUSSIAN__)
  138.     wgui_change_inputbox_mode_multitap_RUSSIAN = wgui_singleline_inputbox_change_input_mode_multitap_RUSSIAN;
  139.     wgui_change_inputbox_mode_multitap_russian = wgui_singleline_inputbox_change_input_mode_multitap_russian;
  140. #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */ 
  141. #if defined(__MMI_MULTITAP_BULGARIAN__)
  142.     wgui_change_inputbox_mode_multitap_BULGARIAN = wgui_singleline_inputbox_change_input_mode_multitap_BULGARIAN;
  143.     wgui_change_inputbox_mode_multitap_bulgarian = wgui_singleline_inputbox_change_input_mode_multitap_bulgarian;
  144. #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */ 
  145. #if defined(__MMI_MULTITAP_TURKISH__)
  146.     wgui_change_inputbox_mode_multitap_TURKISH = wgui_singleline_inputbox_change_input_mode_multitap_TURKISH;
  147.     wgui_change_inputbox_mode_multitap_turkish = wgui_singleline_inputbox_change_input_mode_multitap_turkish;
  148. #endif /* defined(__MMI_MULTITAP_TURKISH__) */ 
  149. #if defined(__MMI_MULTITAP_PORTUGUESE__)
  150.     wgui_change_inputbox_mode_multitap_PORTUGUESE = wgui_singleline_inputbox_change_input_mode_multitap_PORTUGUESE;
  151.     wgui_change_inputbox_mode_multitap_portuguese = wgui_singleline_inputbox_change_input_mode_multitap_portuguese;
  152. #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */ 
  153. #if defined(__MMI_MULTITAP_HINDI__)
  154.     wgui_change_inputbox_mode_multitap_HINDI = wgui_singleline_inputbox_change_input_mode_multitap_HINDI;
  155. #endif 
  156.     /* PMT RAKESH START 20061006 */
  157. #if defined(__MMI_MULTITAP_MARATHI__)
  158.     wgui_change_inputbox_mode_multitap_MARATHI = wgui_singleline_inputbox_change_input_mode_multitap_MARATHI;
  159. #endif 
  160.     /* PMT RAKESH END 20061006 */
  161. #if defined(__MMI_MULTITAP_INDONESIAN__)
  162.     wgui_change_inputbox_mode_multitap_INDONESIAN = wgui_singleline_inputbox_change_input_mode_multitap_INDONESIAN;
  163.     wgui_change_inputbox_mode_multitap_indonesian = wgui_singleline_inputbox_change_input_mode_multitap_indonesian;
  164. #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */ 
  165. #if defined(__MMI_MULTITAP_CZECH__)
  166.     wgui_change_inputbox_mode_multitap_CZECH = wgui_singleline_inputbox_change_input_mode_multitap_CZECH;
  167.     wgui_change_inputbox_mode_multitap_czech = wgui_singleline_inputbox_change_input_mode_multitap_czech;
  168. #endif /* defined(__MMI_MULTITAP_CZECH__) */ 
  169. #if defined(__MMI_MULTITAP_MALAY__)
  170.     wgui_change_inputbox_mode_multitap_MALAY = wgui_singleline_inputbox_change_input_mode_multitap_MALAY;
  171.     wgui_change_inputbox_mode_multitap_malay = wgui_singleline_inputbox_change_input_mode_multitap_malay;
  172. #endif /* defined(__MMI_MULTITAP_MALAY__) */ 
  173. #if defined(__MMI_MULTITAP_VIETNAMESE__)
  174.     wgui_change_inputbox_mode_multitap_VIETNAMESE = wgui_singleline_inputbox_change_input_mode_multitap_VIETNAMESE;
  175.     wgui_change_inputbox_mode_multitap_vietnamese = wgui_singleline_inputbox_change_input_mode_multitap_vietnamese;
  176. #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */ 
  177. #if defined(__MMI_MULTITAP_FINNISH__)
  178.     wgui_change_inputbox_mode_multitap_FINNISH = wgui_singleline_inputbox_change_input_mode_multitap_FINNISH;
  179.     wgui_change_inputbox_mode_multitap_finnish = wgui_singleline_inputbox_change_input_mode_multitap_finnish;
  180. #endif /* defined(__MMI_MULTITAP_FINNISH__) */ 
  181. #if defined(__MMI_MULTITAP_HUNGARIAN__)
  182.     wgui_change_inputbox_mode_multitap_HUNGARIAN = wgui_singleline_inputbox_change_input_mode_multitap_HUNGARIAN;
  183.     wgui_change_inputbox_mode_multitap_hungarian = wgui_singleline_inputbox_change_input_mode_multitap_hungarian;
  184. #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */ 
  185. #if defined(__MMI_MULTITAP_SWEDISH__)
  186.     wgui_change_inputbox_mode_multitap_SWEDISH = wgui_singleline_inputbox_change_input_mode_multitap_SWEDISH;
  187.     wgui_change_inputbox_mode_multitap_swedish = wgui_singleline_inputbox_change_input_mode_multitap_swedish;
  188. #endif /* defined(__MMI_MULTITAP_SWEDISH__) */ 
  189. #if defined(__MMI_MULTITAP_HEBREW__)
  190.     wgui_change_inputbox_mode_multitap_hebrew = wgui_singleline_inputbox_change_input_mode_multitap_hebrew;
  191. #endif 
  192. #if defined(__MMI_MULTITAP_SLOVAK__)
  193.     wgui_change_inputbox_mode_multitap_SLOVAK = wgui_singleline_inputbox_change_input_mode_multitap_SLOVAK;
  194.     wgui_change_inputbox_mode_multitap_slovak = wgui_singleline_inputbox_change_input_mode_multitap_slovak;
  195. #endif /* defined(__MMI_MULTITAP_SLOVAK__) */ 
  196. #if defined(__MMI_MULTITAP_DUTCH__)
  197.     wgui_change_inputbox_mode_multitap_DUTCH = wgui_singleline_inputbox_change_input_mode_multitap_DUTCH;
  198.     wgui_change_inputbox_mode_multitap_dutch = wgui_singleline_inputbox_change_input_mode_multitap_dutch;
  199. #endif /* defined(__MMI_MULTITAP_DUTCH__) */ 
  200. #if defined(__MMI_MULTITAP_NORWEGIAN__)
  201.     wgui_change_inputbox_mode_multitap_NORWEGIAN = wgui_singleline_inputbox_change_input_mode_multitap_NORWEGIAN;
  202.     wgui_change_inputbox_mode_multitap_norwegian = wgui_singleline_inputbox_change_input_mode_multitap_norwegian;
  203. #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */ 
  204. #if defined(__MMI_MULTITAP_ARABIC__)
  205.     wgui_change_inputbox_mode_multitap_arabic = wgui_singleline_inputbox_change_input_mode_multitap_arabic;
  206. #endif 
  207. //PMT START PERSIAN
  208. #if defined(__MMI_MULTITAP_PERSIAN__)
  209. wgui_change_inputbox_mode_multitap_persian=wgui_singleline_inputbox_change_input_mode_multitap_persian;
  210. #endif
  211. //PMT END PERSIAN
  212. #if defined(__MMI_MULTITAP_CROATIAN__)
  213.     wgui_change_inputbox_mode_multitap_CROATIAN = wgui_singleline_inputbox_change_input_mode_multitap_CROATIAN;
  214.     wgui_change_inputbox_mode_multitap_croatian = wgui_singleline_inputbox_change_input_mode_multitap_croatian;
  215. #endif /* defined(__MMI_MULTITAP_CROATIAN__) */ 
  216. #if defined(__MMI_MULTITAP_ROMANIAN__)
  217.     wgui_change_inputbox_mode_multitap_ROMANIAN = wgui_singleline_inputbox_change_input_mode_multitap_ROMANIAN;
  218.     wgui_change_inputbox_mode_multitap_romanian = wgui_singleline_inputbox_change_input_mode_multitap_romanian;
  219. #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */ 
  220. #if defined(__MMI_MULTITAP_SLOVENIAN__)
  221.     wgui_change_inputbox_mode_multitap_SLOVENIAN = wgui_singleline_inputbox_change_input_mode_multitap_SLOVENIAN;
  222.     wgui_change_inputbox_mode_multitap_slovenian = wgui_singleline_inputbox_change_input_mode_multitap_slovenian;
  223. #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */ 
  224. #if defined(__MMI_MULTITAP_GREEK__)
  225.     wgui_change_inputbox_mode_multitap_GREEK = wgui_singleline_inputbox_change_input_mode_multitap_GREEK;
  226.     wgui_change_inputbox_mode_multitap_greek = wgui_singleline_inputbox_change_input_mode_multitap_greek;
  227. #endif /* defined(__MMI_MULTITAP_GREEK__) */ 
  228. #if defined(__MMI_T9__) || defined(__MMI_ZI__) || defined(__MMI_KA__)|| defined(__MMI_CSTAR__)     //KP Jerry add "__MMI_CSTAR__" on 2007-3-8
  229.     wgui_change_inputbox_mode_smart_ABC = wgui_singleline_inputbox_change_input_mode_smart_ABC;
  230.     wgui_change_inputbox_mode_smart_abc = wgui_singleline_inputbox_change_input_mode_smart_abc;
  231. //KP Jerry modify on 2007-4-18 start
  232. #ifdef __MMI_LANG_TR_CHINESE__      //KP Jerry add on 2007-4-17
  233.     wgui_change_inputbox_mode_tr_multitap_bpmf = wgui_singleline_inputbox_change_input_mode_tr_multitap_bpmf;
  234.     wgui_change_inputbox_mode_tr_bpmf = wgui_singleline_inputbox_change_input_mode_tr_bpmf;
  235.     wgui_change_inputbox_mode_tr_stroke = wgui_singleline_inputbox_change_input_mode_tr_stroke;
  236. #endif/*__MMI_LANG_TR_CHINESE__*/      //KP Jerry add on 2007-4-17
  237. #ifdef __MMI_LANG_SM_CHINESE__      //KP Jerry add on 2007-4-17
  238.     wgui_change_inputbox_mode_sm_multitap_pinyin = wgui_singleline_inputbox_change_input_mode_sm_multitap_pinyin;
  239.     wgui_change_inputbox_mode_sm_pinyin = wgui_singleline_inputbox_change_input_mode_sm_pinyin;
  240.     wgui_change_inputbox_mode_sm_stroke = wgui_singleline_inputbox_change_input_mode_sm_stroke;
  241. #endif/*__MMI_LANG_SM_CHINESE__*/      //KP Jerry add on 2007-4-17
  242. #ifdef __MMI_LANG_THAI__      //KP Jerry add on 2007-4-17
  243.     wgui_change_inputbox_mode_smart_thai = wgui_singleline_inputbox_change_input_mode_smart_thai;
  244. #endif/*__MMI_LANG_THAI__*/      //KP Jerry add on 2007-4-17
  245. #ifdef __MMI_LANG_ARABIC__      //KP Jerry add on 2007-4-17
  246.     wgui_change_inputbox_mode_smart_arabic = wgui_singleline_inputbox_change_input_mode_smart_arabic;
  247. #endif/*__MMI_LANG_ARABIC__*/      //KP Jerry add on 2007-4-17
  248. //PMT START PERSIAN
  249. #ifdef __MMI_LANG_PERSIAN__      //KP Jerry add on 2007-4-17
  250.     wgui_change_inputbox_mode_smart_persian=wgui_singleline_inputbox_change_input_mode_smart_persian;
  251. #endif/*__MMI_LANG_PERSIAN__*/      //KP Jerry add on 2007-4-17
  252. //PMT END PERSIAN
  253. #ifdef __MMI_LANG_HINDI__      //KP Jerry add on 2007-4-17
  254.     wgui_change_inputbox_mode_smart_hindi = wgui_singleline_inputbox_change_input_mode_smart_hindi;
  255. #endif/*__MMI_LANG_HINDI__*/      //KP Jerry add on 2007-4-17
  256. #ifdef __MMI_LANG_HEBREW__      //KP Jerry add on 2007-4-17
  257.     wgui_change_inputbox_mode_smart_hebrew = wgui_singleline_inputbox_change_input_mode_smart_hebrew;
  258. #endif/*__MMI_LANG_HEBREW__*/      //KP Jerry add on 2007-4-17
  259. //KP Jerry modify on 2007-4-18 end
  260. #if defined(__MMI_T9_SPANISH__) || defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__) || defined(__MMI_CSTAR_SPANISH__) //KP Jerry add "__MMI_CSTAR_SPANISH__" on 2007-4-6
  261.     wgui_change_inputbox_mode_smart_SPANISH = wgui_singleline_inputbox_change_input_mode_smart_SPANISH;
  262.     wgui_change_inputbox_mode_smart_spanish = wgui_singleline_inputbox_change_input_mode_smart_spanish;
  263. #endif /* defined(__MMI_T9_SPANISH__) || defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__) || defined(__MMI_CSTAR_SPANISH__) */  //KP Jerry add "__MMI_CSTAR_SPANISH__" on 2007-4-6
  264. #if defined(__MMI_T9_DANISH__) || defined(__MMI_ZI_DANISH__) || defined(__MMI_CSTAR_DANISH__) //KP Jerry add "__MMI_CSTAR_DANISH__" on 2007-4-6
  265.     wgui_change_inputbox_mode_smart_DANISH = wgui_singleline_inputbox_change_input_mode_smart_DANISH;
  266.     wgui_change_inputbox_mode_smart_danish = wgui_singleline_inputbox_change_input_mode_smart_danish;
  267. #endif /* defined(__MMI_T9_DANISH__) || defined(__MMI_ZI_DANISH__) || defined(__MMI_CSTAR_DANISH__) */  //KP Jerry add "__MMI_CSTAR_DANISH__" on 2007-4-6
  268. #if defined(__MMI_T9_POLISH__) || defined(__MMI_ZI_POLISH__) || defined(__MMI_CSTAR_POLISH__) //KP Jerry add "__MMI_CSTAR_POLISH__" on 2007-4-6
  269.     wgui_change_inputbox_mode_smart_POLISH = wgui_singleline_inputbox_change_input_mode_smart_POLISH;
  270.     wgui_change_inputbox_mode_smart_polish = wgui_singleline_inputbox_change_input_mode_smart_polish;
  271. #endif /* defined(__MMI_T9_POLISH__) || defined(__MMI_ZI_POLISH__) || defined(__MMI_CSTAR_POLISH__) */  //KP Jerry add "__MMI_CSTAR_POLISH__" on 2007-4-6
  272. #if defined(__MMI_T9_FRENCH__) || defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__) || defined(__MMI_CSTAR_FRENCH__) //KP Jerry add "__MMI_CSTAR_FRENCH__" on 2007-4-6
  273.     wgui_change_inputbox_mode_smart_FRENCH = wgui_singleline_inputbox_change_input_mode_smart_FRENCH;
  274.     wgui_change_inputbox_mode_smart_french = wgui_singleline_inputbox_change_input_mode_smart_french;
  275. #endif /* defined(__MMI_T9_FRENCH__) || defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__) || defined(__MMI_CSTAR_FRENCH__) */  //KP Jerry add "__MMI_CSTAR_FRENCH__" on 2007-4-6
  276. #if defined(__MMI_T9_GERMAN__) || defined(__MMI_ZI_GERMAN__) || defined(__MMI_CSTAR_GERMAN__) //KP Jerry add "__MMI_CSTAR_GERMAN__" on 2007-4-6
  277.     wgui_change_inputbox_mode_smart_GERMAN = wgui_singleline_inputbox_change_input_mode_smart_GERMAN;
  278.     wgui_change_inputbox_mode_smart_german = wgui_singleline_inputbox_change_input_mode_smart_german;
  279. #endif /* defined(__MMI_T9_GERMAN__) || defined(__MMI_ZI_GERMAN__) || defined(__MMI_CSTAR_GERMAN__) */  //KP Jerry add "__MMI_CSTAR_GERMAN__" on 2007-4-6
  280. #if defined(__MMI_T9_ITALIAN__) || defined(__MMI_ZI_ITALIAN__) || defined(__MMI_CSTAR_ITALIAN__) //KP Jerry add "__MMI_CSTAR_ITALIAN__" on 2007-4-6
  281.     wgui_change_inputbox_mode_smart_ITALIAN = wgui_singleline_inputbox_change_input_mode_smart_ITALIAN;
  282.     wgui_change_inputbox_mode_smart_italian = wgui_singleline_inputbox_change_input_mode_smart_italian;
  283. #endif /* defined(__MMI_T9_ITALIAN__) || defined(__MMI_ZI_ITALIAN__) || defined(__MMI_CSTAR_ITALIAN__) */  //KP Jerry add "__MMI_CSTAR_ITALIAN__" on 2007-4-6
  284. #if defined(__MMI_T9_RUSSIAN__) || defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) || defined(__MMI_CSTAR_RUSSIAN__) //KP Jerry add "__MMI_CSTAR_RUSSIAN__" on 2007-4-6
  285.     wgui_change_inputbox_mode_smart_RUSSIAN = wgui_singleline_inputbox_change_input_mode_smart_RUSSIAN;
  286.     wgui_change_inputbox_mode_smart_russian = wgui_singleline_inputbox_change_input_mode_smart_russian;
  287. #endif /* defined(__MMI_T9_RUSSIAN__) || defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) || defined(__MMI_CSTAR_RUSSIAN__) */  //KP Jerry add "__MMI_CSTAR_RUSSIAN__" on 2007-4-6
  288. #if defined(__MMI_T9_BULGARIAN__) || defined(__MMI_ZI_BULGARIAN__) || defined(__MMI_CSTAR_BULGARIAN__) //KP Jerry add "__MMI_CSTAR_BULGARIAN__" on 2007-4-6
  289.     wgui_change_inputbox_mode_smart_BULGARIAN = wgui_singleline_inputbox_change_input_mode_smart_BULGARIAN;
  290.     wgui_change_inputbox_mode_smart_bulgarian = wgui_singleline_inputbox_change_input_mode_smart_bulgarian;
  291. #endif /* defined(__MMI_T9_BULGARIAN__) || defined(__MMI_ZI_BULGARIAN__) || defined(__MMI_CSTAR_BULGARIAN__) */  //KP Jerry add "__MMI_CSTAR_BULGARIAN__" on 2007-4-6
  292. #if defined(__MMI_ZI_TURKISH__) || defined(__MMI_T9_TURKISH__) || defined(__MMI_CSTAR_TURKISH__) //KP Jerry add "__MMI_CSTAR_TURKISH__" on 2007-4-6
  293.     wgui_change_inputbox_mode_smart_TURKISH = wgui_singleline_inputbox_change_input_mode_smart_TURKISH;
  294.     wgui_change_inputbox_mode_smart_turkish = wgui_singleline_inputbox_change_input_mode_smart_turkish;
  295. #endif /* defined(__MMI_ZI_TURKISH__) || defined(__MMI_T9_TURKISH__) || defined(__MMI_CSTAR_TURKISH__) */  //KP Jerry add "__MMI_CSTAR_TURKISH__" on 2007-4-6
  296. #if defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__) || defined(__MMI_CSTAR_PORTUGUESE__) //KP Jerry add "__MMI_CSTAR_PORTUGUESE__" on 2007-4-6
  297.     wgui_change_inputbox_mode_smart_PORTUGUESE = wgui_singleline_inputbox_change_input_mode_smart_PORTUGUESE;
  298.     wgui_change_inputbox_mode_smart_portuguese = wgui_singleline_inputbox_change_input_mode_smart_portuguese;
  299. #endif /* defined(__MMI_T9_PORTUGUESE__) || defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__) || defined(__MMI_CSTAR_PORTUGUESE__) */  //KP Jerry add "__MMI_CSTAR_PORTUGUESE__" on 2007-4-6
  300. #if defined(__MMI_ZI_INDONESIAN__) || defined(__MMI_T9_INDONESIAN__) || defined(__MMI_CSTAR_INDONESIAN__) //KP Jerry add "__MMI_CSTAR_INDONESIAN__" on 2007-4-6
  301.     wgui_change_inputbox_mode_smart_INDONESIAN = wgui_singleline_inputbox_change_input_mode_smart_INDONESIAN;
  302.     wgui_change_inputbox_mode_smart_indonesian = wgui_singleline_inputbox_change_input_mode_smart_indonesian;
  303. #endif /* defined(__MMI_ZI_INDONESIAN__) || defined(__MMI_T9_INDONESIAN__) || defined(__MMI_CSTAR_INDONESIAN__) */  //KP Jerry add "__MMI_CSTAR_INDONESIAN__" on 2007-4-6
  304. #if defined(__MMI_T9_CZECH__) || defined(__MMI_ZI_CZECH__) || defined(__MMI_CSTAR_CZECH__) //KP Jerry add "__MMI_CSTAR_CZECH__" on 2007-4-6
  305.     wgui_change_inputbox_mode_smart_CZECH = wgui_singleline_inputbox_change_input_mode_smart_CZECH;
  306.     wgui_change_inputbox_mode_smart_czech = wgui_singleline_inputbox_change_input_mode_smart_czech;
  307. #endif /* defined(__MMI_T9_CZECH__) || defined(__MMI_ZI_CZECH__) || defined(__MMI_CSTAR_CZECH__) */  //KP Jerry add "__MMI_CSTAR_CZECH__" on 2007-4-6
  308. #if defined(__MMI_ZI_MALAY__) || defined(__MMI_T9_MALAY__) || defined(__MMI_CSTAR_MALAY__) //KP Jerry add "__MMI_CSTAR_MALAY__" on 2007-4-6
  309.     wgui_change_inputbox_mode_smart_MALAY = wgui_singleline_inputbox_change_input_mode_smart_MALAY;
  310.     wgui_change_inputbox_mode_smart_malay = wgui_singleline_inputbox_change_input_mode_smart_malay;
  311. #endif /* defined(__MMI_ZI_MALAY__) || defined(__MMI_T9_MALAY__) || defined(__MMI_CSTAR_MALAY__) */  //KP Jerry add "__MMI_CSTAR_MALAY__" on 2007-4-6
  312. #if defined(__MMI_ZI_VIETNAMESE__) || defined(__MMI_T9_VIETNAMESE__) || defined(__MMI_CSTAR_VIETNAMESE__) //KP Jerry add "__MMI_CSTAR_VIETNAMESE__" on 2007-4-6
  313.     wgui_change_inputbox_mode_smart_VIETNAMESE = wgui_singleline_inputbox_change_input_mode_smart_VIETNAMESE;
  314.     wgui_change_inputbox_mode_smart_vietnamese = wgui_singleline_inputbox_change_input_mode_smart_vietnamese;
  315. #endif /* defined(__MMI_ZI_VIETNAMESE__) || defined(__MMI_T9_VIETNAMESE__) || defined(__MMI_CSTAR_VIETNAMESE__) */  //KP Jerry add "__MMI_CSTAR_VIETNAMESE__" on 2007-4-6
  316. #if defined(__MMI_T9_FINNISH__) || defined(__MMI_ZI_FINNISH__) || defined(__MMI_CSTAR_FINNISH__) //KP Jerry add "__MMI_CSTAR_FINNISH__" on 2007-4-6
  317.     wgui_change_inputbox_mode_smart_FINNISH = wgui_singleline_inputbox_change_input_mode_smart_FINNISH;
  318.     wgui_change_inputbox_mode_smart_finnish = wgui_singleline_inputbox_change_input_mode_smart_finnish;
  319. #endif /* defined(__MMI_T9_FINNISH__) || defined(__MMI_ZI_FINNISH__) || defined(__MMI_CSTAR_FINNISH__) */  //KP Jerry add "__MMI_CSTAR_FINNISH__" on 2007-4-6
  320. #if defined(__MMI_T9_HUNGARIAN__) || defined(__MMI_ZI_HUNGARIAN__) || defined(__MMI_CSTAR_HUNGARIAN__) //KP Jerry add "__MMI_CSTAR_HUNGARIAN__" on 2007-4-6
  321.     wgui_change_inputbox_mode_smart_HUNGARIAN = wgui_singleline_inputbox_change_input_mode_smart_HUNGARIAN;
  322.     wgui_change_inputbox_mode_smart_hungarian = wgui_singleline_inputbox_change_input_mode_smart_hungarian;
  323. #endif /* defined(__MMI_T9_HUNGARIAN__) || defined(__MMI_ZI_HUNGARIAN__) || defined(__MMI_CSTAR_HUNGARIAN__) */  //KP Jerry add "__MMI_CSTAR_HUNGARIAN__" on 2007-4-6
  324. #if defined(__MMI_T9_SWEDISH__) || defined(__MMI_ZI_SWEDISH__) || defined(__MMI_CSTAR_SWEDISH__) //KP Jerry add "__MMI_CSTAR_SWEDISH__" on 2007-4-6
  325.     wgui_change_inputbox_mode_smart_SWEDISH = wgui_singleline_inputbox_change_input_mode_smart_SWEDISH;
  326.     wgui_change_inputbox_mode_smart_swedish = wgui_singleline_inputbox_change_input_mode_smart_swedish;
  327. #endif /* defined(__MMI_T9_SWEDISH__) || defined(__MMI_ZI_SWEDISH__) || defined(__MMI_CSTAR_SWEDISH__) */  //KP Jerry add "__MMI_CSTAR_SWEDISH__" on 2007-4-6
  328. #if defined(__MMI_T9_SLOVAK__) || defined(__MMI_ZI_SLOVAK__) || defined(__MMI_CSTAR_SLOVAK__) //KP Jerry add "__MMI_CSTAR_SLOVAK__" on 2007-4-6
  329.     wgui_change_inputbox_mode_smart_SLOVAK = wgui_singleline_inputbox_change_input_mode_smart_SLOVAK;
  330.     wgui_change_inputbox_mode_smart_slovak = wgui_singleline_inputbox_change_input_mode_smart_slovak;
  331. #endif /* defined(__MMI_T9_SLOVAK__) || defined(__MMI_ZI_SLOVAK__) || defined(__MMI_CSTAR_SLOVAK__) */  //KP Jerry add "__MMI_CSTAR_SLOVAK__" on 2007-4-6
  332. #if defined(__MMI_ZI_DUTCH__) || defined(__MMI_T9_DUTCH__) || defined(__MMI_CSTAR_DUTCH__) //KP Jerry add "__MMI_CSTAR_DUTCH__" on 2007-4-6
  333.     wgui_change_inputbox_mode_smart_DUTCH = wgui_singleline_inputbox_change_input_mode_smart_DUTCH;
  334.     wgui_change_inputbox_mode_smart_dutch = wgui_singleline_inputbox_change_input_mode_smart_dutch;
  335. #endif /* defined(__MMI_ZI_DUTCH__) || defined(__MMI_T9_DUTCH__) || defined(__MMI_CSTAR_DUTCH__) */  //KP Jerry add "__MMI_CSTAR_DUTCH__" on 2007-4-6
  336. #if defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_ZI_NORWEGIAN__) || defined(__MMI_CSTAR_NORWEGIAN__) //KP Jerry add "__MMI_CSTAR_NORWEGIAN__" on 2007-4-6
  337.     wgui_change_inputbox_mode_smart_NORWEGIAN = wgui_singleline_inputbox_change_input_mode_smart_NORWEGIAN;
  338.     wgui_change_inputbox_mode_smart_norwegian = wgui_singleline_inputbox_change_input_mode_smart_norwegian;
  339. #endif /* defined(__MMI_T9_NORWEGIAN__) || defined(__MMI_ZI_NORWEGIAN__) || defined(__MMI_CSTAR_NORWEGIAN__) */  //KP Jerry add "__MMI_CSTAR_NORWEGIAN__" on 2007-4-6
  340. #if defined(__MMI_T9_CROATIAN__) || defined(__MMI_ZI_CROATIAN__) || defined(__MMI_CSTAR_CROATIAN__) //KP Jerry add "__MMI_CSTAR_CROATIAN__" on 2007-4-6
  341.     wgui_change_inputbox_mode_smart_CROATIAN = wgui_singleline_inputbox_change_input_mode_smart_CROATIAN;
  342.     wgui_change_inputbox_mode_smart_croatian = wgui_singleline_inputbox_change_input_mode_smart_croatian;
  343. #endif /* defined(__MMI_T9_CROATIAN__) || defined(__MMI_ZI_CROATIAN__) || defined(__MMI_CSTAR_CROATIAN__) */  //KP Jerry add "__MMI_CSTAR_CROATIAN__" on 2007-4-6
  344. #if defined(__MMI_ZI_ROMANIAN__) || defined(__MMI_T9_ROMANIAN__) || defined(__MMI_CSTAR_ROMANIAN__) //KP Jerry add "__MMI_CSTAR_ROMANIAN__" on 2007-4-6
  345.     wgui_change_inputbox_mode_smart_ROMANIAN = wgui_singleline_inputbox_change_input_mode_smart_ROMANIAN;
  346.     wgui_change_inputbox_mode_smart_romanian = wgui_singleline_inputbox_change_input_mode_smart_romanian;
  347. #endif /* defined(__MMI_ZI_ROMANIAN__) || defined(__MMI_T9_ROMANIAN__) || defined(__MMI_CSTAR_ROMANIAN__) */  //KP Jerry add "__MMI_CSTAR_ROMANIAN__" on 2007-4-6
  348. #if defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_ZI_SLOVENIAN__) || defined(__MMI_CSTAR_SLOVENIAN__) //KP Jerry add "__MMI_CSTAR_SLOVENIAN__" on 2007-4-6
  349.     wgui_change_inputbox_mode_smart_SLOVENIAN = wgui_singleline_inputbox_change_input_mode_smart_SLOVENIAN;
  350.     wgui_change_inputbox_mode_smart_slovenian = wgui_singleline_inputbox_change_input_mode_smart_slovenian;
  351. #endif /* defined(__MMI_T9_SLOVENIAN__) || defined(__MMI_ZI_SLOVENIAN__) || defined(__MMI_CSTAR_SLOVENIAN__) */  //KP Jerry add "__MMI_CSTAR_SLOVENIAN__" on 2007-4-6
  352. #if defined(__MMI_T9_GREEK__) || defined(__MMI_ZI_GREEK__) || defined(__MMI_CSTAR_GREEK__) //KP Jerry add "__MMI_CSTAR_GREEK__" on 2007-4-6
  353.     wgui_change_inputbox_mode_smart_GREEK = wgui_singleline_inputbox_change_input_mode_smart_GREEK;
  354.     wgui_change_inputbox_mode_smart_greek = wgui_singleline_inputbox_change_input_mode_smart_greek;
  355. #endif /* defined(__MMI_T9_GREEK__) || defined(__MMI_ZI_GREEK__) || defined(__MMI_CSTAR_GREEK__) */  //KP Jerry add "__MMI_CSTAR_GREEK__" on 2007-4-6
  356. #endif /* defined(__MMI_T9__) || defined(__MMI_ZI__) || defined(__MMI_CSTAR__)  || defined(__MMI_KA__) */  //KP Jerry add "__MMI_CSTAR__" on 2007-4-6
  357.     if (wgui_singleline_inputbox_input_mode_changed)
  358.     {
  359.         input_type = wgui_singleline_inputbox_input_type;
  360.         wgui_singleline_inputbox_input_mode_changed = 0;
  361.         if (cat200_search_function)
  362.         {
  363.             if (gui_single_line_input_box_get_text_length(&MMI_singleline_inputbox) > 0)
  364.             {
  365.                 singleline_inputbox_delete_all_characters();
  366.             }
  367.             refresh_search_list(NULL);
  368.         }
  369.     }
  370.     input_type |= input_type_flags;
  371.     MMI_current_input_type = input_type;
  372.     wgui_singleline_inputbox_decimal_input_mode_flag = 0;
  373.     wgui_inputbox_UCS2_count_function = wgui_singleline_inputbox_get_UCS2_count;
  374.     wgui_inputbox_GSM_ext_count_function = wgui_singleline_inputbox_get_GSM_ext_count;
  375.     if (input_type & INPUT_TYPE_USE_ENCODING_BASED_LENGTH)
  376.     {
  377.         MMI_singleline_inputbox.flags |= UI_SINGLE_LINE_INPUT_BOX_USE_ENCODING_BASED_LENGTH;
  378.         if (input_type & INPUT_TYPE_ONE_LESS_CHARACTER)
  379.         {
  380.             MMI_singleline_inputbox.flags |= UI_SINGLE_LINE_INPUT_BOX_ONE_LESS_CHARACTER;
  381.             UI_TEST_UCS2_COUNT_SET_LENGTH_TYPE2(
  382.                 MMI_singleline_inputbox.UCS2_count,
  383.                 MMI_singleline_inputbox.allocated_length,
  384.                 MMI_singleline_inputbox.available_length);
  385.         }
  386.         if (input_type & INPUT_TYPE_ONE_LESS_CHARACTER)
  387.         {
  388.             MMI_singleline_inputbox.flags |= UI_SINGLE_LINE_INPUT_BOX_ONE_LESS_CHARACTER;
  389.             UI_TEST_UCS2_COUNT_SET_LENGTH_TYPE2(
  390.                 MMI_singleline_inputbox.UCS2_count,
  391.                 MMI_singleline_inputbox.allocated_length,
  392.                 MMI_singleline_inputbox.available_length);
  393.         }
  394.         else
  395.         {
  396.             UI_TEST_UCS2_COUNT_SET_LENGTH(
  397.                 MMI_singleline_inputbox.UCS2_count,
  398.                 MMI_singleline_inputbox.allocated_length,
  399.                 MMI_singleline_inputbox.available_length);
  400.         }
  401.     }
  402.     if (plus_character_handling)
  403.     {
  404.         MMI_singleline_inputbox.flags |= UI_SINGLE_LINE_INPUT_BOX_PLUS_CHARACTER_HANDLING;
  405.     }
  406.     switch (input_type & INPUT_TYPE_MASK)
  407.     {
  408.             /* MTK Elvis to add some APIs for Qsearch */
  409.         case INPUT_TYPE_MMI_MULTITAP_BPMF:
  410.             set_singleline_inputbox_mask(0);
  411.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  412.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_MULTITAP_BPMF);
  413.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  414.             MMI_current_input_mode = INPUT_MODE_MMI_MULTITAP_BPMF;
  415.     #if defined(__MMI_ZI__)
  416.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  417.     #else 
  418.             wgui_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_BPMF_IMG);
  419.     #endif 
  420.             break;
  421.         case INPUT_TYPE_MMI_MULTITAP_PINYIN:
  422.             set_singleline_inputbox_mask(0);
  423.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  424.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_MULTITAP_PINYIN);
  425.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  426.             MMI_current_input_mode = INPUT_MODE_MMI_MULTITAP_PINYIN;
  427.     #if defined(__MMI_ZI__)
  428.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  429.     #else 
  430.             wgui_inputbox_information_icon = get_image(WGUI_IME_MULTITAP_PINYIN_IMG);
  431.     #endif 
  432.             break;
  433.         case INPUT_TYPE_MMI_SM_STROKE:
  434.             set_singleline_inputbox_mask(0);
  435.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  436.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_SM_STROKE);
  437.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  438.             MMI_current_input_mode = INPUT_MODE_MMI_SM_STROKE;
  439.     #if defined(__MMI_ZI__)
  440.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  441.     #else 
  442.             wgui_inputbox_information_icon = get_image(WGUI_IME_SM_STROKE_IMG);
  443.     #endif 
  444.             break;
  445.         case INPUT_TYPE_MMI_TR_STROKE:
  446.             set_singleline_inputbox_mask(0);
  447.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  448.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_TR_STROKE);
  449.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  450.             MMI_current_input_mode = INPUT_MODE_MMI_TR_STROKE;
  451.     #if defined(__MMI_ZI__)
  452.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  453.     #else 
  454.             wgui_inputbox_information_icon = get_image(WGUI_IME_TR_STROKE_IMG);
  455.     #endif 
  456.             break;
  457.         case INPUT_TYPE_MMI_NUMERIC:
  458.             set_singleline_inputbox_mask(0);
  459.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  460.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_NUMERIC);
  461.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  462.             MMI_current_input_mode = INPUT_MODE_MMI_NUMERIC;
  463.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  464.             break;
  465.         case INPUT_TYPE_MMI_LOWERCASE_ABC:
  466.             set_singleline_inputbox_mask(0);
  467.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  468.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_ABC);
  469.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  470.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_ABC;
  471.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  472.             break;
  473.     #if defined(__MMI_MULTITAP_HINDI__)
  474.         case INPUT_TYPE_MULTITAP_HINDI:
  475.             set_singleline_inputbox_mask(0);
  476.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  477.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MULTITAP_HINDI);
  478.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  479.             MMI_current_input_mode = INPUT_MODE_MULTITAP_HINDI;
  480.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  481.             break;
  482.     #endif /* defined(__MMI_MULTITAP_HINDI__) */ 
  483.             /* PMT RAKESH START 20061006 */
  484.     #if defined(__MMI_MULTITAP_MARATHI__)
  485.         case INPUT_TYPE_MULTITAP_MARATHI:
  486.             set_singleline_inputbox_mask(0);
  487.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  488.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MULTITAP_MARATHI);
  489.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  490.             MMI_current_input_mode = INPUT_MODE_MULTITAP_MARATHI;
  491.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  492.             break;
  493.     #endif /* defined(__MMI_MULTITAP_MARATHI__) */ 
  494.             /* PMT RAKESH END 20061006 */
  495.     #if defined (__MMI_MULTITAP_THAI__)
  496.         case INPUT_TYPE_MMI_MULTITAP_THAI:
  497.             set_singleline_inputbox_mask(0);
  498.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_MULTITAP_THAI);
  499.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_LONG_PRESS);
  500.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  501.             MMI_current_input_mode = INPUT_MODE_MMI_MULTITAP_THAI;
  502.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  503.             break;
  504.     #endif /* defined (__MMI_MULTITAP_THAI__) */ 
  505.     #if defined(__MMI_MULTITAP_SPANISH__)
  506.         case INPUT_TYPE_MMI_LOWERCASE_SPANISH:
  507.             set_singleline_inputbox_mask(0);
  508.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  509.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_SPANISH);
  510.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  511.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_SPANISH;
  512.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  513.             break;
  514.     #endif /* defined(__MMI_MULTITAP_SPANISH__) */ 
  515.     #if defined(__MMI_MULTITAP_DANISH__)
  516.         case INPUT_TYPE_MMI_LOWERCASE_DANISH:
  517.             set_singleline_inputbox_mask(0);
  518.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  519.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_DANISH);
  520.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  521.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_DANISH;
  522.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  523.             break;
  524.     #endif /* defined(__MMI_MULTITAP_DANISH__) */ 
  525.     #if defined(__MMI_MULTITAP_POLISH__)
  526.         case INPUT_TYPE_MMI_LOWERCASE_POLISH:
  527.             set_singleline_inputbox_mask(0);
  528.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  529.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_POLISH);
  530.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  531.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_POLISH;
  532.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  533.             break;
  534.     #endif /* defined(__MMI_MULTITAP_POLISH__) */ 
  535.     #if defined(__MMI_MULTITAP_FRENCH__)
  536.         case INPUT_TYPE_MMI_LOWERCASE_FRENCH:
  537.             set_singleline_inputbox_mask(0);
  538.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  539.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_FRENCH);
  540.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  541.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_FRENCH;
  542.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  543.             break;
  544.     #endif /* defined(__MMI_MULTITAP_FRENCH__) */ 
  545.     #if defined(__MMI_MULTITAP_GERMAN__)
  546.         case INPUT_TYPE_MMI_LOWERCASE_GERMAN:
  547.             set_singleline_inputbox_mask(0);
  548.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  549.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_GERMAN);
  550.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  551.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_GERMAN;
  552.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  553.             break;
  554.     #endif /* defined(__MMI_MULTITAP_GERMAN__) */ 
  555.     #if defined(__MMI_MULTITAP_ITALIAN__)
  556.         case INPUT_TYPE_MMI_LOWERCASE_ITALIAN:
  557.             set_singleline_inputbox_mask(0);
  558.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  559.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_ITALIAN);
  560.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  561.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_ITALIAN;
  562.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  563.             break;
  564.     #endif /* defined(__MMI_MULTITAP_ITALIAN__) */ 
  565.     #if defined(__MMI_MULTITAP_RUSSIAN__)
  566.         case INPUT_TYPE_MMI_LOWERCASE_RUSSIAN:
  567.             set_singleline_inputbox_mask(0);
  568.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  569.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_RUSSIAN);
  570.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  571.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_RUSSIAN;
  572.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  573.             break;
  574.     #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */ 
  575.     #if defined(__MMI_MULTITAP_BULGARIAN__)
  576.         case INPUT_TYPE_MMI_LOWERCASE_BULGARIAN:
  577.             set_singleline_inputbox_mask(0);
  578.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  579.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_BULGARIAN);
  580.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  581.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_BULGARIAN;
  582.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  583.             break;
  584.     #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */ 
  585.     #if defined(__MMI_MULTITAP_TURKISH__)
  586.         case INPUT_TYPE_MMI_LOWERCASE_TURKISH:
  587.             set_singleline_inputbox_mask(0);
  588.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  589.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_TURKISH);
  590.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  591.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_TURKISH;
  592.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  593.             break;
  594.     #endif /* defined(__MMI_MULTITAP_TURKISH__) */ 
  595.     #if defined(__MMI_MULTITAP_PORTUGUESE__)
  596.         case INPUT_TYPE_MMI_LOWERCASE_PORTUGUESE:
  597.             set_singleline_inputbox_mask(0);
  598.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  599.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_PORTUGUESE);
  600.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  601.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_PORTUGUESE;
  602.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  603.             break;
  604.     #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */ 
  605.     #if defined(__MMI_MULTITAP_INDONESIAN__)
  606.         case INPUT_TYPE_MMI_LOWERCASE_INDONESIAN:
  607.             set_singleline_inputbox_mask(0);
  608.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  609.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_INDONESIAN);
  610.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  611.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_INDONESIAN;
  612.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  613.             break;
  614.     #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */ 
  615.     #if defined(__MMI_MULTITAP_CZECH__)
  616.         case INPUT_TYPE_MMI_LOWERCASE_CZECH:
  617.             set_singleline_inputbox_mask(0);
  618.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  619.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_CZECH);
  620.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  621.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_CZECH;
  622.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  623.             break;
  624.     #endif /* defined(__MMI_MULTITAP_CZECH__) */ 
  625.     #if defined(__MMI_MULTITAP_MALAY__)
  626.         case INPUT_TYPE_MMI_LOWERCASE_MALAY:
  627.             set_singleline_inputbox_mask(0);
  628.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  629.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_MALAY);
  630.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  631.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_MALAY;
  632.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  633.             break;
  634.     #endif /* defined(__MMI_MULTITAP_MALAY__) */ 
  635.     #if defined(__MMI_MULTITAP_VIETNAMESE__)
  636.         case INPUT_TYPE_MMI_LOWERCASE_VIETNAMESE:
  637.             set_singleline_inputbox_mask(0);
  638.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  639.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_VIETNAMESE);
  640.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  641.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_VIETNAMESE;
  642.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  643.             break;
  644.     #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */ 
  645.     #if defined(__MMI_MULTITAP_FINNISH__)
  646.         case INPUT_TYPE_MMI_LOWERCASE_FINNISH:
  647.             set_singleline_inputbox_mask(0);
  648.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  649.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_FINNISH);
  650.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  651.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_FINNISH;
  652.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  653.             break;
  654.     #endif /* defined(__MMI_MULTITAP_FINNISH__) */ 
  655.     #if defined(__MMI_MULTITAP_HUNGARIAN__)
  656.         case INPUT_TYPE_MMI_LOWERCASE_HUNGARIAN:
  657.             set_singleline_inputbox_mask(0);
  658.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  659.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_HUNGARIAN);
  660.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  661.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_HUNGARIAN;
  662.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  663.             break;
  664.     #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */ 
  665.     #if defined(__MMI_MULTITAP_HEBREW__)
  666.         case INPUT_TYPE_MMI_MULTITAP_HEBREW:
  667.             set_singleline_inputbox_mask(0);
  668.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  669.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_MULTITAP_HEBREW);
  670.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  671.             MMI_current_input_mode = INPUT_MODE_MMI_MULTITAP_HEBREW;
  672.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  673.             break;
  674.     #endif /* defined(__MMI_MULTITAP_HEBREW__) */ 
  675.     #if defined(__MMI_MULTITAP_SLOVAK__)
  676.         case INPUT_TYPE_MMI_LOWERCASE_SLOVAK:
  677.             set_singleline_inputbox_mask(0);
  678.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  679.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_SLOVAK);
  680.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  681.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_SLOVAK;
  682.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  683.             break;
  684.     #endif /* defined(__MMI_MULTITAP_SLOVAK__) */ 
  685.     #if defined(__MMI_MULTITAP_DUTCH__)
  686.         case INPUT_TYPE_MMI_LOWERCASE_DUTCH:
  687.             set_singleline_inputbox_mask(0);
  688.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  689.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_DUTCH);
  690.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  691.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_DUTCH;
  692.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  693.             break;
  694.     #endif /* defined(__MMI_MULTITAP_DUTCH__) */ 
  695.     #if defined(__MMI_MULTITAP_ARABIC__)
  696.         case INPUT_TYPE_MMI_MULTITAP_ARABIC:
  697.             set_singleline_inputbox_mask(0);
  698.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  699.             change_qsearch_singleline_inputbox_mode(INPUT_TYPE_MMI_MULTITAP_ARABIC);
  700.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  701.             MMI_current_input_mode = INPUT_TYPE_MMI_MULTITAP_ARABIC;
  702.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  703.             break;
  704.     #endif /* defined(__MMI_MULTITAP_ARABIC__) */ 
  705. //PMT START PERSIAN
  706.     #if defined(__MMI_MULTITAP_PERSIAN__)
  707.         case INPUT_TYPE_MMI_MULTITAP_PERSIAN:
  708.             set_singleline_inputbox_mask(0);
  709.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  710.             change_qsearch_singleline_inputbox_mode(INPUT_TYPE_MMI_MULTITAP_PERSIAN);
  711.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  712.             MMI_current_input_mode = INPUT_TYPE_MMI_MULTITAP_PERSIAN;
  713.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  714.             break;
  715.     #endif 
  716. //PMT END PERSIAN
  717.     #if defined(__MMI_MULTITAP_NORWEGIAN__)
  718.         case INPUT_TYPE_MMI_LOWERCASE_NORWEGIAN:
  719.             set_singleline_inputbox_mask(0);
  720.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  721.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_NORWEGIAN);
  722.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  723.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_NORWEGIAN;
  724.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  725.             break;
  726.     #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */ 
  727.     #if defined(__MMI_MULTITAP_SWEDISH__)
  728.         case INPUT_TYPE_MMI_LOWERCASE_SWEDISH:
  729.             set_singleline_inputbox_mask(0);
  730.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  731.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_SWEDISH);
  732.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  733.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_SWEDISH;
  734.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  735.             break;
  736.     #endif /* defined(__MMI_MULTITAP_SWEDISH__) */ 
  737.     #if defined(__MMI_MULTITAP_CROATIAN__)
  738.         case INPUT_TYPE_MMI_LOWERCASE_CROATIAN:
  739.             set_singleline_inputbox_mask(0);
  740.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  741.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_CROATIAN);
  742.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  743.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_CROATIAN;
  744.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  745.             break;
  746.     #endif /* defined(__MMI_MULTITAP_CROATIAN__) */ 
  747.     #if defined(__MMI_MULTITAP_ROMANIAN__)
  748.         case INPUT_TYPE_MMI_LOWERCASE_ROMANIAN:
  749.             set_singleline_inputbox_mask(0);
  750.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  751.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_ROMANIAN);
  752.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  753.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_ROMANIAN;
  754.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  755.             break;
  756.     #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */ 
  757.     #if defined(__MMI_MULTITAP_SLOVENIAN__)
  758.         case INPUT_TYPE_MMI_LOWERCASE_SLOVENIAN:
  759.             set_singleline_inputbox_mask(0);
  760.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  761.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_SLOVENIAN);
  762.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  763.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_SLOVENIAN;
  764.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  765.             break;
  766.     #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */ 
  767.     #if defined(__MMI_MULTITAP_GREEK__)
  768.         case INPUT_TYPE_MMI_LOWERCASE_GREEK:
  769.             set_singleline_inputbox_mask(0);
  770.             SetKeyHandler(wgui_handle_qsearch_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  771.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MMI_LOWERCASE_GREEK);
  772.             inputbox_change_mode = change_qsearch_singleline_inputbox_input_mode;
  773.             MMI_current_input_mode = INPUT_MODE_MMI_LOWERCASE_GREEK;
  774.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  775.             break;
  776.     #endif /* defined(__MMI_MULTITAP_GREEK__) */ 
  777.         case INPUT_TYPE_NUMERIC_CHANGEABLE:
  778.             set_singleline_inputbox_mask(0);
  779.             change_singleline_inputbox_mode(INPUT_MODE_123);
  780.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  781.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  782.             MMI_current_input_mode = INPUT_MODE_123;
  783.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  784.             break;
  785.         case INPUT_TYPE_NUMERIC:
  786.             set_singleline_inputbox_mask(0);
  787.             change_singleline_inputbox_mode(INPUT_MODE_123);
  788.             MMI_current_input_mode = INPUT_MODE_123;
  789.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  790.             break;
  791.         case INPUT_TYPE_DECIMAL_NUMERIC:
  792.             wgui_singleline_inputbox_decimal_flag = 0;
  793.             if (l > 0)
  794.             {
  795.                 S32 i;
  796.                 UI_buffer_type t = buffer;
  797.                 UI_character_type c;
  798.                 for (i = 0; i < l; i++)
  799.                 {
  800.                     UI_STRING_GET_NEXT_CHARACTER(t, c);
  801.                     if (c == (UI_character_type) '.')
  802.                     {
  803.                         wgui_singleline_inputbox_decimal_flag = 1;
  804.                         break;
  805.                     }
  806.                 }
  807.             }
  808.             set_singleline_inputbox_mask(0);
  809.             change_singleline_inputbox_mode(INPUT_MODE_123);
  810.             MMI_current_input_mode = INPUT_MODE_123;
  811.             SetKeyHandler(wgui_singleline_inputbox_decimal_numeric_handle_pound_key_down, KEY_POUND, KEY_EVENT_DOWN);
  812.             wgui_singleline_inputbox_decimal_input_mode_flag = 1;
  813.             break;
  814.         case INPUT_TYPE_KEYPAD_NUMERIC:
  815.             set_singleline_inputbox_mask(0);
  816.             change_singleline_inputbox_mode(INPUT_MODE_123);
  817.             MMI_current_input_mode = INPUT_MODE_123;
  818.             SetKeyHandler(wgui_singleline_inputbox_keypad_numeric_handle_star_key_down, KEY_STAR, KEY_EVENT_DOWN);
  819.             SetKeyHandler(wgui_singleline_inputbox_keypad_numeric_handle_pound_key_down, KEY_POUND, KEY_EVENT_DOWN);
  820.             break;
  821.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE:
  822.             set_singleline_inputbox_mask(0);
  823.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_ABC);
  824.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  825.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  826.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_ABC;
  827.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  828.             break;
  829.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE:
  830.             set_singleline_inputbox_mask(0);
  831.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_ABC);
  832.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  833.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  834.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_ABC;
  835.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  836.             break;
  837.         #if defined(__MMI_MULTITAP_THAI__)
  838.         case INPUT_TYPE_ALPHANUMERIC_MULTITAP_THAI:
  839.             set_singleline_inputbox_mask(0);
  840.             change_qsearch_singleline_inputbox_mode(INPUT_MODE_MULTITAP_THAI);
  841.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_LONG_PRESS);
  842.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  843.             MMI_current_input_mode = INPUT_MODE_MULTITAP_THAI;
  844.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  845.             break;
  846.         #endif /* defined(__MMI_MULTITAP_THAI__) */ 
  847.         #if defined(__MMI_MULTITAP_SPNAISH__)
  848.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SPANISH:
  849.             set_singleline_inputbox_mask(0);
  850.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_SPANISH);
  851.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  852.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  853.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_SPANISH;
  854.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  855.             break;
  856.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SPANISH:
  857.             set_singleline_inputbox_mask(0);
  858.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_SPANISH);
  859.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  860.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  861.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_SPANISH;
  862.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  863.             break;
  864.         #endif /* defined(__MMI_MULTITAP_SPNAISH__) */ 
  865.         #if defined(__MMI_MULTITAP_DANISH__)
  866.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_DANISH:
  867.             set_singleline_inputbox_mask(0);
  868.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_DANISH);
  869.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  870.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  871.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_DANISH;
  872.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  873.             break;
  874.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_DANISH:
  875.             set_singleline_inputbox_mask(0);
  876.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_DANISH);
  877.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  878.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  879.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_DANISH;
  880.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  881.             break;
  882.         #endif /* defined(__MMI_MULTITAP_DANISH__) */ 
  883.         #if defined(__MMI_MULTITAP_POLISH__)
  884.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_POLISH:
  885.             set_singleline_inputbox_mask(0);
  886.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_POLISH);
  887.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  888.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  889.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_POLISH;
  890.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  891.             break;
  892.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_POLISH:
  893.             set_singleline_inputbox_mask(0);
  894.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_POLISH);
  895.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  896.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  897.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_POLISH;
  898.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  899.             break;
  900.         #endif /* defined(__MMI_MULTITAP_POLISH__) */ 
  901.         #if defined(__MMI_MULTITAP_FRENCH__)
  902.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_FRENCH:
  903.             set_singleline_inputbox_mask(0);
  904.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_FRENCH);
  905.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  906.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  907.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_FRENCH;
  908.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  909.             break;
  910.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_FRENCH:
  911.             set_singleline_inputbox_mask(0);
  912.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_FRENCH);
  913.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  914.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  915.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_FRENCH;
  916.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  917.             break;
  918.         #endif /* defined(__MMI_MULTITAP_FRENCH__) */ 
  919.         #if defined(__MMI_MULTITAP_GERMAN__)
  920.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_GERMAN:
  921.             set_singleline_inputbox_mask(0);
  922.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_GERMAN);
  923.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  924.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  925.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_GERMAN;
  926.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  927.             break;
  928.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_GERMAN:
  929.             set_singleline_inputbox_mask(0);
  930.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_GERMAN);
  931.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  932.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  933.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_GERMAN;
  934.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  935.             break;
  936.         #endif /* defined(__MMI_MULTITAP_GERMAN__) */ 
  937.         #if defined(__MMI_MULTITAP_ITALIAN__)
  938.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_ITALIAN:
  939.             set_singleline_inputbox_mask(0);
  940.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN);
  941.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  942.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  943.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN;
  944.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  945.             break;
  946.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_ITALIAN:
  947.             set_singleline_inputbox_mask(0);
  948.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN);
  949.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  950.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  951.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN;
  952.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  953.             break;
  954.         #endif /* defined(__MMI_MULTITAP_ITALIAN__) */ 
  955.         #if defined(__MMI_MULTITAP_RUSSIAN__)
  956.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_RUSSIAN:
  957.             set_singleline_inputbox_mask(0);
  958.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN);
  959.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  960.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  961.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN;
  962.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  963.             break;
  964.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_RUSSIAN:
  965.             set_singleline_inputbox_mask(0);
  966.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN);
  967.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  968.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  969.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN;
  970.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  971.             break;
  972.         #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */ 
  973.         #if defined(__MMI_MULTITAP_BULGARIAN__)
  974.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_BULGARIAN:
  975.             set_singleline_inputbox_mask(0);
  976.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN);
  977.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  978.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  979.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN;
  980.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  981.             break;
  982.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_BULGARIAN:
  983.             set_singleline_inputbox_mask(0);
  984.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN);
  985.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  986.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  987.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN;
  988.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  989.             break;
  990.         #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */ 
  991.         #if defined(__MMI_MULTITAP_TURKISH__)
  992.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_TURKISH:
  993.             set_singleline_inputbox_mask(0);
  994.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_TURKISH);
  995.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  996.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  997.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_TURKISH;
  998.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  999.             break;
  1000.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_TURKISH:
  1001.             set_singleline_inputbox_mask(0);
  1002.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_TURKISH);
  1003.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1004.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1005.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_TURKISH;
  1006.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1007.             break;
  1008.         #endif /* defined(__MMI_MULTITAP_TURKISH__) */ 
  1009.         #if defined(__MMI_MULTITAP_PORTUGUESE__)
  1010.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_PORTUGUESE:
  1011.             set_singleline_inputbox_mask(0);
  1012.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE);
  1013.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1014.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1015.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE;
  1016.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1017.             break;
  1018.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_PORTUGUESE:
  1019.             set_singleline_inputbox_mask(0);
  1020.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE);
  1021.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1022.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1023.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE;
  1024.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1025.             break;
  1026.         #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */ 
  1027.         #if defined(__MMI_MULTITAP_INDONESIAN__)
  1028.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_INDONESIAN:
  1029.             set_singleline_inputbox_mask(0);
  1030.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN);
  1031.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1032.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1033.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN;
  1034.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1035.             break;
  1036.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_INDONESIAN:
  1037.             set_singleline_inputbox_mask(0);
  1038.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN);
  1039.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1040.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1041.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN;
  1042.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1043.             break;
  1044.         #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */ 
  1045.         #if defined(__MMI_MULTITAP_CZECH__)
  1046.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_CZECH:
  1047.             set_singleline_inputbox_mask(0);
  1048.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_CZECH);
  1049.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1050.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1051.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_CZECH;
  1052.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1053.             break;
  1054.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_CZECH:
  1055.             set_singleline_inputbox_mask(0);
  1056.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_CZECH);
  1057.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1058.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1059.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_CZECH;
  1060.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1061.             break;
  1062.         #endif /* defined(__MMI_MULTITAP_CZECH__) */ 
  1063.         #if defined(__MMI_MULTITAP_MALAY__)
  1064.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_MALAY:
  1065.             set_singleline_inputbox_mask(0);
  1066.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_MALAY);
  1067.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1068.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1069.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_MALAY;
  1070.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1071.             break;
  1072.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_MALAY:
  1073.             set_singleline_inputbox_mask(0);
  1074.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_MALAY);
  1075.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1076.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1077.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_MALAY;
  1078.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1079.             break;
  1080.         #endif /* defined(__MMI_MULTITAP_MALAY__) */ 
  1081.         #if defined(__MMI_MULTITAP_VIETNAMESE__)
  1082.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_VIETNAMESE:
  1083.             set_singleline_inputbox_mask(0);
  1084.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE);
  1085.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1086.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1087.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE;
  1088.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1089.             break;
  1090.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_VIETNAMESE:
  1091.             set_singleline_inputbox_mask(0);
  1092.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE);
  1093.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1094.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1095.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE;
  1096.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1097.             break;
  1098.         #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */ 
  1099.         #if defined(__MMI_MULTITAP_FINNISH__)
  1100.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_FINNISH:
  1101.             set_singleline_inputbox_mask(0);
  1102.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_FINNISH);
  1103.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1104.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1105.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_FINNISH;
  1106.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1107.             break;
  1108.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_FINNISH:
  1109.             set_singleline_inputbox_mask(0);
  1110.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_FINNISH);
  1111.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1112.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1113.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_FINNISH;
  1114.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1115.             break;
  1116.         #endif /* defined(__MMI_MULTITAP_FINNISH__) */ 
  1117.         #if defined(__MMI_MULTITAP_HUNGARIAN__) 
  1118.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_HUNGARIAN:
  1119.             set_singleline_inputbox_mask(0);
  1120.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN);
  1121.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1122.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1123.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN;
  1124.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1125.             break;
  1126.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_HUNGARIAN:
  1127.             set_singleline_inputbox_mask(0);
  1128.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN);
  1129.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1130.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1131.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN;
  1132.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1133.             break;
  1134.         #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */ 
  1135.         #if defined(__MMI_MULTITAP_SLOVAK__)
  1136.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SLOVAK:
  1137.             set_singleline_inputbox_mask(0);
  1138.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK);
  1139.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1140.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1141.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK;
  1142.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1143.             break;
  1144.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SLOVAK:
  1145.             set_singleline_inputbox_mask(0);
  1146.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK);
  1147.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1148.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1149.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK;
  1150.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1151.             break;
  1152.         #endif /* defined(__MMI_MULTITAP_SLOVAK__) */ 
  1153.         #if defined(__MMI_MULTITAP_DUTCH__)
  1154.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_DUTCH:
  1155.             set_singleline_inputbox_mask(0);
  1156.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_DUTCH);
  1157.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1158.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1159.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_DUTCH;
  1160.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1161.             break;
  1162.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_DUTCH:
  1163.             set_singleline_inputbox_mask(0);
  1164.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_DUTCH);
  1165.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1166.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1167.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_DUTCH;
  1168.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1169.             break;
  1170.         #endif /* defined(__MMI_MULTITAP_DUTCH__) */ 
  1171.         #if defined(__MMI_MULTITAP_NORWEGIAN__)
  1172.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_NORWEGIAN:
  1173.             set_singleline_inputbox_mask(0);
  1174.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN);
  1175.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1176.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1177.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN;
  1178.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1179.             break;
  1180.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_NORWEGIAN:
  1181.             set_singleline_inputbox_mask(0);
  1182.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN);
  1183.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1184.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1185.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN;
  1186.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1187.             break;
  1188.         #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */ 
  1189.         #if defined(__MMI_MULTITAP_SWEDISH__)
  1190.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SWEDISH:
  1191.             set_singleline_inputbox_mask(0);
  1192.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH);
  1193.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1194.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1195.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH;
  1196.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1197.             break;
  1198.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SWEDISH:
  1199.             set_singleline_inputbox_mask(0);
  1200.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH);
  1201.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1202.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1203.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH;
  1204.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1205.             break;
  1206.         #endif /* defined(__MMI_MULTITAP_SWEDISH__) */ 
  1207.         #if defined(__MMI_MULTITAP_CROATIAN__)
  1208.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_CROATIAN:
  1209.             set_singleline_inputbox_mask(0);
  1210.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN);
  1211.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1212.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1213.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN;
  1214.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1215.             break;
  1216.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_CROATIAN:
  1217.             set_singleline_inputbox_mask(0);
  1218.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN);
  1219.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1220.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1221.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN;
  1222.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1223.             break;
  1224.         #endif /* defined(__MMI_MULTITAP_CROATIAN__) */ 
  1225.         #if defined(__MMI_MULTITAP_ROMANIAN__)
  1226.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_ROMANIAN:
  1227.             set_singleline_inputbox_mask(0);
  1228.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN);
  1229.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1230.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1231.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN;
  1232.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1233.             break;
  1234.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_ROMANIAN:
  1235.             set_singleline_inputbox_mask(0);
  1236.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN);
  1237.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1238.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1239.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN;
  1240.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1241.             break;
  1242.         #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */ 
  1243.         #if defined(__MMI_MULTITAP_SLOVENIAN__)
  1244.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_SLOVENIAN:
  1245.             set_singleline_inputbox_mask(0);
  1246.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN);
  1247.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1248.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1249.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN;
  1250.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1251.             break;
  1252.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_SLOVENIAN:
  1253.             set_singleline_inputbox_mask(0);
  1254.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN);
  1255.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1256.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1257.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN;
  1258.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1259.             break;
  1260.         #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */ 
  1261.         #if defined(__MMI_MULTITAP_GREEK__)
  1262.         case INPUT_TYPE_ALPHANUMERIC_UPPERCASE_GREEK:
  1263.             set_singleline_inputbox_mask(0);
  1264.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_UPPERCASE_GREEK);
  1265.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1266.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1267.             MMI_current_input_mode = INPUT_MODE_MULTITAP_UPPERCASE_GREEK;
  1268.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1269.             break;
  1270.         case INPUT_TYPE_ALPHANUMERIC_LOWERCASE_GREEK:
  1271.             set_singleline_inputbox_mask(0);
  1272.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_GREEK);
  1273.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1274.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1275.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_GREEK;
  1276.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1277.             break;
  1278.         #endif /* defined(__MMI_MULTITAP_GREEK__) */ 
  1279.         case INPUT_TYPE_ALPHANUMERIC_SENTENCECASE:
  1280.             set_singleline_inputbox_mask(0);
  1281.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_ABC);
  1282.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1283.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1284.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_ABC;
  1285.             wgui_inputbox_information_icon = get_image(WGUI_INPUT_INFORMATION_ICON1);
  1286.             break;
  1287.         case INPUT_TYPE_NUMERIC_PASSWORD:
  1288.             set_singleline_inputbox_mask(1);
  1289.             change_singleline_inputbox_mode(INPUT_MODE_123);
  1290.             MMI_current_input_mode = INPUT_MODE_123;
  1291.             break;
  1292.         case INPUT_TYPE_ALPHANUMERIC_PASSWORD:
  1293.             set_singleline_inputbox_mask(1);
  1294.             change_singleline_inputbox_mode(INPUT_MODE_MULTITAP_LOWERCASE_ABC);
  1295.             SetKeyHandler(wgui_handle_singleline_inputbox_change_input_mode, KEY_POUND, KEY_EVENT_DOWN);
  1296.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1297.             MMI_current_input_mode = INPUT_MODE_MULTITAP_LOWERCASE_ABC;
  1298.             break;
  1299.         case INPUT_TYPE_PHONE_NUMBER:
  1300.             set_singleline_inputbox_mask(0);
  1301.             change_singleline_inputbox_mode(INPUT_MODE_123);
  1302.             MMI_current_input_mode = INPUT_MODE_123;
  1303.             /* Handling of Phone number input   */
  1304.         #ifdef __MMI_MULTITAP_KEY_0__
  1305.             SetKeyHandler(wgui_singleline_inputbox_phone_number_input_handle_star_key_down, KEY_STAR, KEY_EVENT_DOWN);
  1306.         #else /* __MMI_MULTITAP_KEY_0__ */ 
  1307.             gui_create_multitap_input(
  1308.                 &wgui_inputbox_multitap_star_key,
  1309.                 0,
  1310.                 0,
  1311.                 0,
  1312.                 0,
  1313.                 (UI_string_type) wgui_inputbox_phone_number_star_key_string);
  1314.             gui_set_multitap_input_callbacks(
  1315.                 &wgui_inputbox_multitap_star_key,
  1316.                 singleline_inputbox_multitap_input,
  1317.                 singleline_inputbox_multitap_input_complete);
  1318.             SetKeyHandler(
  1319.                 wgui_singleline_inputbox_phone_number_input_handle_multitap_star_key_down,
  1320.                 KEY_STAR,
  1321.                 KEY_EVENT_DOWN);
  1322.             SetKeyHandler(
  1323.                 wgui_singleline_inputbox_phone_number_input_handle_multitap_star_key_up,
  1324.                 KEY_STAR,
  1325.                 KEY_EVENT_UP);
  1326.         #endif /* __MMI_MULTITAP_KEY_0__ */ 
  1327.             SetKeyHandler(wgui_singleline_inputbox_phone_number_input_handle_hash_key_down, KEY_POUND, KEY_EVENT_DOWN);
  1328.             register_key_down_handler(wgui_singleline_inputbox_phone_number_numeric_key_handler);
  1329.         #if(ENABLE_DIALER_ZERO_KEY_MULTITAP)
  1330.             gui_create_multitap_input(
  1331.                 &wgui_inputbox_multitap_zero_key,
  1332.                 0,
  1333.                 0,
  1334.                 0,
  1335.                 0,
  1336.                 (UI_string_type) wgui_inputbox_phone_number_zero_key_string);
  1337.             gui_set_multitap_input_callbacks(
  1338.                 &wgui_inputbox_multitap_zero_key,
  1339.                 singleline_inputbox_multitap_input,
  1340.                 singleline_inputbox_multitap_input_complete);
  1341.         #ifdef __MMI_MULTITAP_KEY_0__
  1342.             SetKeyHandler(
  1343.                 wgui_singleline_inputbox_phone_number_input_handle_zero_key_long_press,
  1344.                 KEY_0,
  1345.                 KEY_EVENT_LONG_PRESS);
  1346.         #else /* __MMI_MULTITAP_KEY_0__ */ 
  1347.             SetKeyHandler(
  1348.                 wgui_singleline_inputbox_phone_number_input_handle_multitap_zero_key_down,
  1349.                 KEY_0,
  1350.                 KEY_EVENT_DOWN);
  1351.             SetKeyHandler(wgui_singleline_inputbox_phone_number_input_handle_multitap_zero_key_up, KEY_0, KEY_EVENT_UP);
  1352.         #endif /* __MMI_MULTITAP_KEY_0__ */ 
  1353.         #endif /* (ENABLE_DIALER_ZERO_KEY_MULTITAP) */ 
  1354.             wgui_inputbox_active_multitap = WGUI_INPUTBOX_MULTITAP_NONE;
  1355.             break;
  1356.         #if defined(__MMI_T9__)
  1357.         case INPUT_TYPE_TR_BOPOMO:
  1358.             change_singleline_inputbox_mode(INPUT_MODE_TR_BOPOMO);
  1359.             MMI_current_input_mode = INPUT_MODE_TR_BOPOMO;
  1360.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1361.             break;
  1362.         case INPUT_TYPE_SM_PINYIN:
  1363.             change_singleline_inputbox_mode(INPUT_MODE_SM_PINYIN);
  1364.             MMI_current_input_mode = INPUT_MODE_SM_PINYIN;
  1365.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1366.             break;
  1367.         case INPUT_TYPE_TR_STROKE:
  1368.             change_singleline_inputbox_mode(INPUT_MODE_TR_STROKE);
  1369.             MMI_current_input_mode = INPUT_MODE_TR_STROKE;
  1370.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1371.             break;
  1372.         case INPUT_TYPE_SM_STROKE:
  1373.             change_singleline_inputbox_mode(INPUT_MODE_SM_STROKE);
  1374.             MMI_current_input_mode = INPUT_MODE_SM_STROKE;
  1375.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1376.             break;
  1377.         case INPUT_TYPE_SMART_UPPERCASE_ABC:
  1378.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_ABC);
  1379.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ABC;
  1380.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1381.             break;
  1382.         case INPUT_TYPE_SMART_LOWERCASE_ABC:
  1383.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_ABC);
  1384.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ABC;
  1385.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1386.             break;
  1387.         #if defined(__MMI_T9_SPANISH__)
  1388.         case INPUT_TYPE_SMART_UPPERCASE_SPANISH:
  1389.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SPANISH);
  1390.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SPANISH;
  1391.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1392.             break;
  1393.         case INPUT_TYPE_SMART_LOWERCASE_SPANISH:
  1394.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SPANISH);
  1395.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SPANISH;
  1396.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1397.             break;
  1398.         #endif /* defined(__MMI_T9_SPANISH__) */ 
  1399.         #if defined(__MMI_T9_DANISH__)
  1400.         case INPUT_TYPE_SMART_UPPERCASE_DANISH:
  1401.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_DANISH);
  1402.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_DANISH;
  1403.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1404.             break;
  1405.         case INPUT_TYPE_SMART_LOWERCASE_DANISH:
  1406.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_DANISH);
  1407.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_DANISH;
  1408.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1409.             break;
  1410.         #endif /* defined(__MMI_T9_DANISH__) */ 
  1411.         #if defined(__MMI_T9_POLISH__)
  1412.         case INPUT_TYPE_SMART_UPPERCASE_POLISH:
  1413.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_POLISH);
  1414.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_POLISH;
  1415.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1416.             break;
  1417.         case INPUT_TYPE_SMART_LOWERCASE_POLISH:
  1418.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_POLISH);
  1419.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_POLISH;
  1420.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1421.             break;
  1422.         #endif /* defined(__MMI_T9_POLISH__) */ 
  1423.         #if defined(__MMI_T9_FRENCH__)
  1424.         case INPUT_TYPE_SMART_UPPERCASE_FRENCH:
  1425.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_FRENCH);
  1426.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_FRENCH;
  1427.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1428.             break;
  1429.         case INPUT_TYPE_SMART_LOWERCASE_FRENCH:
  1430.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_FRENCH);
  1431.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_FRENCH;
  1432.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1433.             break;
  1434.         #endif /* defined(__MMI_T9_FRENCH__) */ 
  1435.         #if defined(__MMI_T9_GERMAN__)
  1436.         case INPUT_TYPE_SMART_UPPERCASE_GERMAN:
  1437.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_GERMAN);
  1438.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_GERMAN;
  1439.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1440.             break;
  1441.         case INPUT_TYPE_SMART_LOWERCASE_GERMAN:
  1442.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_GERMAN);
  1443.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_GERMAN;
  1444.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1445.             break;
  1446.         #endif /* defined(__MMI_T9_GERMAN__) */ 
  1447.         #if defined(__MMI_T9_ITALIAN__)
  1448.         case INPUT_TYPE_SMART_UPPERCASE_ITALIAN:
  1449.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_ITALIAN);
  1450.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ITALIAN;
  1451.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1452.             break;
  1453.         case INPUT_TYPE_SMART_LOWERCASE_ITALIAN:
  1454.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_ITALIAN);
  1455.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ITALIAN;
  1456.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1457.             break;
  1458.         #endif /* defined(__MMI_T9_ITALIAN__) */ 
  1459.         #if defined(__MMI_T9_RUSSIAN__)
  1460.         case INPUT_TYPE_SMART_UPPERCASE_RUSSIAN:
  1461.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_RUSSIAN);
  1462.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_RUSSIAN;
  1463.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1464.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1465.             break;
  1466.         case INPUT_TYPE_SMART_LOWERCASE_RUSSIAN:
  1467.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_RUSSIAN);
  1468.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_RUSSIAN;
  1469.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1470.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1471.             break;
  1472.         #endif /* defined(__MMI_T9_RUSSIAN__) */ 
  1473.         #if defined(__MMI_T9_BULGARIAN__)
  1474.         case INPUT_TYPE_SMART_UPPERCASE_BULGARIAN:
  1475.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_BULGARIAN);
  1476.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_BULGARIAN;
  1477.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1478.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1479.             break;
  1480.         case INPUT_TYPE_SMART_LOWERCASE_BULGARIAN:
  1481.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_BULGARIAN);
  1482.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_BULGARIAN;
  1483.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1484.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1485.             break;
  1486.         #endif /* defined(__MMI_T9_BULGARIAN__) */ 
  1487.         #if defined(__MMI_T9_VIETNAMESE__)
  1488.         case INPUT_TYPE_SMART_UPPERCASE_VIETNAMESE:
  1489.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_VIETNAMESE);
  1490.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_VIETNAMESE;
  1491.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1492.             break;
  1493.         case INPUT_TYPE_SMART_LOWERCASE_VIETNAMESE:
  1494.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_VIETNAMESE);
  1495.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_VIETNAMESE;
  1496.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1497.             break;
  1498.         #endif /* defined(__MMI_T9_VIETNAMESE__) */ 
  1499.         #if defined(__MMI_T9_INDONESIAN__)
  1500.         case INPUT_TYPE_SMART_UPPERCASE_INDONESIAN:
  1501.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_INDONESIAN);
  1502.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_INDONESIAN;
  1503.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1504.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1505.             break;
  1506.         case INPUT_TYPE_SMART_LOWERCASE_INDONESIAN:
  1507.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_INDONESIAN);
  1508.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_INDONESIAN;
  1509.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1510.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1511.             break;
  1512.         #endif /* defined(__MMI_T9_INDONESIAN__) */ 
  1513.         #if defined(__MMI_T9_PORTUGUESE__)
  1514.         case INPUT_TYPE_SMART_UPPERCASE_PORTUGUESE:
  1515.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_PORTUGUESE);
  1516.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_PORTUGUESE;
  1517.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1518.             break;
  1519.         case INPUT_TYPE_SMART_LOWERCASE_PORTUGUESE:
  1520.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_PORTUGUESE);
  1521.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_PORTUGUESE;
  1522.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1523.             break;
  1524.         #endif /* defined(__MMI_T9_PORTUGUESE__) */ 
  1525.         #if defined(__MMI_T9_CZECH__)
  1526.         case INPUT_TYPE_SMART_UPPERCASE_CZECH:
  1527.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_CZECH);
  1528.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_CZECH;
  1529.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1530.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1531.             break;
  1532.         case INPUT_TYPE_SMART_LOWERCASE_CZECH:
  1533.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_CZECH);
  1534.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_CZECH;
  1535.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1536.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1537.             break;
  1538.         #endif /* defined(__MMI_T9_CZECH__) */ 
  1539.         #if defined(__MMI_T9_TURKISH__)
  1540.         case INPUT_TYPE_SMART_UPPERCASE_TURKISH:
  1541.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_TURKISH);
  1542.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_TURKISH;
  1543.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1544.             break;
  1545.         case INPUT_TYPE_SMART_LOWERCASE_TURKISH:
  1546.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_TURKISH);
  1547.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_TURKISH;
  1548.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1549.             break;
  1550.         #endif /* defined(__MMI_T9_TURKISH__) */ 
  1551.         #if defined(__MMI_T9_FINNISH__)
  1552.         case INPUT_TYPE_SMART_UPPERCASE_FINNISH:
  1553.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_FINNISH);
  1554.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_FINNISH;
  1555.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1556.             break;
  1557.         case INPUT_TYPE_SMART_LOWERCASE_FINNISH:
  1558.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_FINNISH);
  1559.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_FINNISH;
  1560.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1561.             break;
  1562.         #endif /* defined(__MMI_T9_FINNISH__) */ 
  1563.         #if defined(__MMI_T9_HUNGARIAN__)
  1564.         case INPUT_TYPE_SMART_UPPERCASE_HUNGARIAN:
  1565.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_HUNGARIAN);
  1566.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_HUNGARIAN;
  1567.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1568.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1569.             break;
  1570.         case INPUT_TYPE_SMART_LOWERCASE_HUNGARIAN:
  1571.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_HUNGARIAN);
  1572.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_HUNGARIAN;
  1573.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1574.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1575.             break;
  1576.         #endif /* defined(__MMI_T9_HUNGARIAN__) */ 
  1577.         #if defined(__MMI_T9_ARABIC__)
  1578.         case INPUT_TYPE_SMART_ARABIC:
  1579.             change_singleline_inputbox_mode(INPUT_MODE_SMART_ARABIC);
  1580.             MMI_current_input_mode = INPUT_MODE_SMART_ARABIC;
  1581.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1582.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1583.             break;
  1584.         #endif /* defined(__MMI_T9_ARABIC__) */ 
  1585.         #if defined(__MMI_T9_GREEK__)
  1586.         case INPUT_TYPE_SMART_UPPERCASE_GREEK:
  1587.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_GREEK);
  1588.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_GREEK;
  1589.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1590.             break;
  1591.         case INPUT_TYPE_SMART_LOWERCASE_GREEK:
  1592.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_GREEK);
  1593.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_GREEK;
  1594.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1595.             break;
  1596.         #endif /* defined(__MMI_T9_GREEK__) */ 
  1597.         #if defined(__MMI_T9_HEBREW__)
  1598.         case INPUT_TYPE_SMART_HEBREW:
  1599.             change_singleline_inputbox_mode(INPUT_MODE_SMART_HEBREW);
  1600.             MMI_current_input_mode = INPUT_MODE_SMART_HEBREW;
  1601.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1602.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1603.             break;
  1604.         #endif /* defined(__MMI_T9_HEBREW__) */ 
  1605.         #if defined(__MMI_T9_HINDI__)
  1606.         case INPUT_TYPE_SMART_HINDI:
  1607.             change_singleline_inputbox_mode(INPUT_MODE_SMART_HINDI);
  1608.             MMI_current_input_mode = INPUT_MODE_SMART_HINDI;
  1609.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1610.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1611.             break;
  1612.         #endif /* defined(__MMI_T9_HINDI__) */ 
  1613.         #if defined(__MMI_T9_NORWEGIAN__)
  1614.         case INPUT_TYPE_SMART_UPPERCASE_NORWEGIAN:
  1615.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_NORWEGIAN);
  1616.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_NORWEGIAN;
  1617.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1618.             break;
  1619.         case INPUT_TYPE_SMART_LOWERCASE_NORWEGIAN:
  1620.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_NORWEGIAN);
  1621.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_NORWEGIAN;
  1622.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1623.             break;
  1624.         #endif /* defined(__MMI_T9_NORWEGIAN__) */ 
  1625.         #if defined(__MMI_T9_DUTCH__)
  1626.         case INPUT_TYPE_SMART_UPPERCASE_DUTCH:
  1627.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_DUTCH);
  1628.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_DUTCH;
  1629.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1630.             break;
  1631.         case INPUT_TYPE_SMART_LOWERCASE_DUTCH:
  1632.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_DUTCH);
  1633.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_DUTCH;
  1634.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1635.             break;
  1636.         #endif /* defined(__MMI_T9_DUTCH__) */ 
  1637.         #if defined(__MMI_T9_SLOVENIAN__)
  1638.         case INPUT_TYPE_SMART_UPPERCASE_SLOVENIAN:
  1639.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SLOVENIAN);
  1640.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SLOVENIAN;
  1641.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1642.             break;
  1643.         case INPUT_TYPE_SMART_LOWERCASE_SLOVENIAN:
  1644.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SLOVENIAN);
  1645.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SLOVENIAN;
  1646.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1647.             break;
  1648.         #endif /* defined(__MMI_T9_SLOVENIAN__) */ 
  1649.         #if defined(__MMI_T9_SWEDISH__)
  1650.         case INPUT_TYPE_SMART_UPPERCASE_SWEDISH:
  1651.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SWEDISH);
  1652.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SWEDISH;
  1653.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1654.             break;
  1655.         case INPUT_TYPE_SMART_LOWERCASE_SWEDISH:
  1656.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SWEDISH);
  1657.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SWEDISH;
  1658.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1659.             break;
  1660.         #endif /* defined(__MMI_T9_SWEDISH__) */ 
  1661.         #if defined(__MMI_T9_MALAY__)
  1662.         case INPUT_TYPE_SMART_UPPERCASE_MALAY:
  1663.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_MALAY);
  1664.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_MALAY;
  1665.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1666.             break;
  1667.         case INPUT_TYPE_SMART_LOWERCASE_MALAY:
  1668.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_MALAY);
  1669.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_MALAY;
  1670.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1671.             break;
  1672.         #endif /* defined(__MMI_T9_MALAY__) */ 
  1673.         #if defined(__MMI_T9_CROATIAN__)
  1674.         case INPUT_TYPE_SMART_UPPERCASE_CROATIAN:
  1675.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_CROATIAN);
  1676.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_CROATIAN;
  1677.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1678.             break;
  1679.         case INPUT_TYPE_SMART_LOWERCASE_CROATIAN:
  1680.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_CROATIAN);
  1681.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_CROATIAN;
  1682.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1683.             break;
  1684.         #endif /* defined(__MMI_T9_CROATIAN__) */ 
  1685.         #if defined(__MMI_T9_SLOVAK__)
  1686.         case INPUT_TYPE_SMART_UPPERCASE_SLOVAK:
  1687.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SLOVAK);
  1688.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SLOVAK;
  1689.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1690.             break;
  1691.         case INPUT_TYPE_SMART_LOWERCASE_SLOVAK:
  1692.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SLOVAK);
  1693.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SLOVAK;
  1694.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1695.             break;
  1696.         #endif /* defined(__MMI_T9_SLOVAK__) */ 
  1697.         #if defined(__MMI_T9_ROMANIAN__)
  1698.         case INPUT_TYPE_SMART_UPPERCASE_ROMANIAN:
  1699.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_ROMANIAN);
  1700.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ROMANIAN;
  1701.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1702.             break;
  1703.         case INPUT_TYPE_SMART_LOWERCASE_ROMANIAN:
  1704.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_ROMANIAN);
  1705.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ROMANIAN;
  1706.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1707.             break;
  1708.         #endif /* defined(__MMI_T9_ROMANIAN__) */ 
  1709.         #elif defined(__MMI_ZI__)
  1710.         case INPUT_TYPE_TR_MULTITAP_BOPOMO:
  1711.             change_singleline_inputbox_mode(INPUT_MODE_TR_MULTITAP_BOPOMO);
  1712.             MMI_current_input_mode = INPUT_MODE_TR_MULTITAP_BOPOMO;
  1713.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1714.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_BPMF_LOGO);
  1715.             break;
  1716.         case INPUT_TYPE_SM_MULTITAP_PINYIN:
  1717.             change_singleline_inputbox_mode(INPUT_MODE_SM_MULTITAP_PINYIN);
  1718.             MMI_current_input_mode = INPUT_MODE_SM_MULTITAP_PINYIN;
  1719.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1720.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO);
  1721.             break;
  1722.         case INPUT_TYPE_TR_BOPOMO:
  1723.             change_singleline_inputbox_mode(INPUT_MODE_TR_BOPOMO);
  1724.             MMI_current_input_mode = INPUT_MODE_TR_BOPOMO;
  1725.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1726.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_BPMF_LOGO);
  1727.             break;
  1728.         case INPUT_TYPE_SM_PINYIN:
  1729.             change_singleline_inputbox_mode(INPUT_MODE_SM_PINYIN);
  1730.             MMI_current_input_mode = INPUT_MODE_SM_PINYIN;
  1731.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1732.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_PINYIN_LOGO);
  1733.             break;
  1734.         case INPUT_TYPE_TR_STROKE:
  1735.             change_singleline_inputbox_mode(INPUT_MODE_TR_STROKE);
  1736.             MMI_current_input_mode = INPUT_MODE_TR_STROKE;
  1737.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1738.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_TR_STROKE_LOGO);
  1739.             break;
  1740.         case INPUT_TYPE_SM_STROKE:
  1741.             change_singleline_inputbox_mode(INPUT_MODE_SM_STROKE);
  1742.             MMI_current_input_mode = INPUT_MODE_SM_STROKE;
  1743.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1744.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_SM_STROKE_LOGO);
  1745.             break;
  1746.         case INPUT_TYPE_SMART_UPPERCASE_ABC:
  1747.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_ABC);
  1748.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ABC;
  1749.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1750.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1751.             break;
  1752.         case INPUT_TYPE_SMART_LOWERCASE_ABC:
  1753.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_ABC);
  1754.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ABC;
  1755.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1756.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1757.             break;
  1758.         #if defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__)
  1759.         case INPUT_TYPE_SMART_UPPERCASE_SPANISH:
  1760.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SPANISH);
  1761.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SPANISH;
  1762.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1763.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1764.             break;
  1765.         case INPUT_TYPE_SMART_LOWERCASE_SPANISH:
  1766.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SPANISH);
  1767.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SPANISH;
  1768.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1769.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1770.             break;
  1771.         #endif /* defined(__MMI_ZI_EU_SPANISH__) || defined(__MMI_ZI_SA_SPANISH__) */ 
  1772.         #if defined(__MMI_ZI_DANISH__)
  1773.         case INPUT_TYPE_SMART_UPPERCASE_DANISH:
  1774.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_DANISH);
  1775.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_DANISH;
  1776.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1777.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1778.             break;
  1779.         case INPUT_TYPE_SMART_LOWERCASE_DANISH:
  1780.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_DANISH);
  1781.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_DANISH;
  1782.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1783.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1784.             break;
  1785.         #endif /* defined(__MMI_ZI_DANISH__) */ 
  1786.         #if defined(__MMI_ZI_POLISH__)
  1787.         case INPUT_TYPE_SMART_UPPERCASE_POLISH:
  1788.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_POLISH);
  1789.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_POLISH;
  1790.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1791.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1792.             break;
  1793.         case INPUT_TYPE_SMART_LOWERCASE_POLISH:
  1794.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_POLISH);
  1795.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_POLISH;
  1796.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1797.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1798.             break;
  1799.         #endif /* defined(__MMI_ZI_POLISH__) */ 
  1800.         #if defined(__MMI_ZI_NORWEGIAN__)
  1801.         case INPUT_TYPE_SMART_UPPERCASE_NORWEGIAN:
  1802.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_NORWEGIAN);
  1803.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_NORWEGIAN;
  1804.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1805.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1806.             break;
  1807.         case INPUT_TYPE_SMART_LOWERCASE_NORWEGIAN:
  1808.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_NORWEGIAN);
  1809.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_NORWEGIAN;
  1810.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1811.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1812.             break;
  1813.         #endif /* defined(__MMI_ZI_NORWEGIAN__) */ 
  1814.         #if defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__)
  1815.         case INPUT_TYPE_SMART_UPPERCASE_FRENCH:
  1816.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_FRENCH);
  1817.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_FRENCH;
  1818.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1819.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1820.             break;
  1821.         case INPUT_TYPE_SMART_LOWERCASE_FRENCH:
  1822.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_FRENCH);
  1823.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_FRENCH;
  1824.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1825.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1826.             break;
  1827.         #endif /* defined(__MMI_ZI_CA_FRENCH__) || defined(__MMI_ZI_EU_FRENCH__) */ 
  1828.         #if defined(__MMI_ZI_GERMAN__)
  1829.         case INPUT_TYPE_SMART_UPPERCASE_GERMAN:
  1830.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_GERMAN);
  1831.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_GERMAN;
  1832.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1833.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1834.             break;
  1835.         case INPUT_TYPE_SMART_LOWERCASE_GERMAN:
  1836.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_GERMAN);
  1837.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_GERMAN;
  1838.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1839.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1840.             break;
  1841.         #endif /* defined(__MMI_ZI_GERMAN__) */ 
  1842.         #if defined(__MMI_ZI_ITALIAN__)
  1843.         case INPUT_TYPE_SMART_UPPERCASE_ITALIAN:
  1844.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_ITALIAN);
  1845.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ITALIAN;
  1846.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1847.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1848.             break;
  1849.         case INPUT_TYPE_SMART_LOWERCASE_ITALIAN:
  1850.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_ITALIAN);
  1851.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ITALIAN;
  1852.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1853.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1854.             break;
  1855.         #endif /* defined(__MMI_ZI_ITALIAN__) */ 
  1856.         #if defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__)
  1857.         case INPUT_TYPE_SMART_UPPERCASE_RUSSIAN:
  1858.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_RUSSIAN);
  1859.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_RUSSIAN;
  1860.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1861.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1862.             break;
  1863.         case INPUT_TYPE_SMART_LOWERCASE_RUSSIAN:
  1864.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_RUSSIAN);
  1865.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_RUSSIAN;
  1866.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1867.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1868.             break;
  1869.         #endif /* defined(__MMI_ZI_RUSSIAN__) || defined(__MMI_ZI_RECOMMENDED_SIZE_RUSSIAN__) */ 
  1870.         #if defined(__MMI_ZI_BULGARIAN__)
  1871.         case INPUT_TYPE_SMART_UPPERCASE_BULGARIAN:
  1872.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_BULGARIAN);
  1873.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_BULGARIAN;
  1874.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1875.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1876.             break;
  1877.         case INPUT_TYPE_SMART_LOWERCASE_BULGARIAN:
  1878.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_BULGARIAN);
  1879.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_BULGARIAN;
  1880.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1881.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1882.             break;
  1883.         #endif /* defined(__MMI_ZI_BULGARIAN__) */ 
  1884.         #if defined(__MMI_ZI_TURKISH__)
  1885.         case INPUT_TYPE_SMART_UPPERCASE_TURKISH:
  1886.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_TURKISH);
  1887.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_TURKISH;
  1888.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1889.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1890.             break;
  1891.         case INPUT_TYPE_SMART_LOWERCASE_TURKISH:
  1892.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_TURKISH);
  1893.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_TURKISH;
  1894.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1895.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1896.             break;
  1897.         #endif /* defined(__MMI_ZI_TURKISH__) */ 
  1898.         #if defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__)
  1899.         case INPUT_TYPE_SMART_UPPERCASE_PORTUGUESE:
  1900.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_PORTUGUESE);
  1901.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_PORTUGUESE;
  1902.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1903.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1904.             break;
  1905.         case INPUT_TYPE_SMART_LOWERCASE_PORTUGUESE:
  1906.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_PORTUGUESE);
  1907.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_PORTUGUESE;
  1908.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1909.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1910.             break;
  1911.         #endif /* defined(__MMI_ZI_EU_PORTUGUESE__) || defined(__MMI_ZI_SA_PORTUGUESE__) || defined(__MMI_ZI_BZ_PORTUGUESE__) */ 
  1912.         #if defined(__MMI_ZI_INDONESIAN__)
  1913.         case INPUT_TYPE_SMART_UPPERCASE_INDONESIAN:
  1914.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_INDONESIAN);
  1915.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_INDONESIAN;
  1916.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1917.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1918.             break;
  1919.         case INPUT_TYPE_SMART_LOWERCASE_INDONESIAN:
  1920.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_INDONESIAN);
  1921.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_INDONESIAN;
  1922.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1923.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1924.             break;
  1925.         #endif /* defined(__MMI_ZI_INDONESIAN__) */ 
  1926.         #if defined(__MMI_ZI_MALAY__)
  1927.         case INPUT_TYPE_SMART_UPPERCASE_MALAY:
  1928.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_MALAY);
  1929.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_MALAY;
  1930.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1931.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1932.             break;
  1933.         case INPUT_TYPE_SMART_LOWERCASE_MALAY:
  1934.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_MALAY);
  1935.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_MALAY;
  1936.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1937.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1938.             break;
  1939.         #endif /* defined(__MMI_ZI_MALAY__) */ 
  1940.         #if defined(__MMI_ZI_VIETNAMESE__)
  1941.         case INPUT_TYPE_SMART_UPPERCASE_VIETNAMESE:
  1942.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_VIETNAMESE);
  1943.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_VIETNAMESE;
  1944.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1945.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1946.             break;
  1947.         case INPUT_TYPE_SMART_LOWERCASE_VIETNAMESE:
  1948.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_VIETNAMESE);
  1949.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_VIETNAMESE;
  1950.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1951.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1952.             break;
  1953.         #endif /* defined(__MMI_ZI_VIETNAMESE__) */ 
  1954.         #if defined(__MMI_ZI_SLOVAK__)
  1955.         case INPUT_TYPE_SMART_UPPERCASE_SLOVAK:
  1956.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SLOVAK);
  1957.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SLOVAK;
  1958.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1959.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1960.             break;
  1961.         case INPUT_TYPE_SMART_LOWERCASE_SLOVAK:
  1962.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SLOVAK);
  1963.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SLOVAK;
  1964.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1965.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1966.             break;
  1967.         #endif /* defined(__MMI_ZI_SLOVAK__) */ 
  1968.         #if defined(__MMI_ZI_DUTCH__)
  1969.         case INPUT_TYPE_SMART_UPPERCASE_DUTCH:
  1970.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_DUTCH);
  1971.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_DUTCH;
  1972.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1973.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1974.             break;
  1975.         case INPUT_TYPE_SMART_LOWERCASE_DUTCH:
  1976.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_DUTCH);
  1977.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_DUTCH;
  1978.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1979.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1980.             break;
  1981.         #endif /* defined(__MMI_ZI_DUTCH__) */ 
  1982.         #if defined(__MMI_ZI_SWEDISH__)
  1983.         case INPUT_TYPE_SMART_UPPERCASE_SWEDISH:
  1984.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SWEDISH);
  1985.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SWEDISH;
  1986.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1987.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1988.             break;
  1989.         case INPUT_TYPE_SMART_LOWERCASE_SWEDISH:
  1990.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SWEDISH);
  1991.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SWEDISH;
  1992.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  1993.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  1994.             break;
  1995.         #endif /* defined(__MMI_ZI_SWEDISH__) */ 
  1996.         #if defined(__MMI_ZI_CROATIAN__)
  1997.         case INPUT_TYPE_SMART_UPPERCASE_CROATIAN:
  1998.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_CROATIAN);
  1999.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_CROATIAN;
  2000.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2001.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2002.             break;
  2003.         case INPUT_TYPE_SMART_LOWERCASE_CROATIAN:
  2004.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_CROATIAN);
  2005.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_CROATIAN;
  2006.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2007.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2008.             break;
  2009.         #endif /* defined(__MMI_ZI_CROATIAN__) */ 
  2010.         #if defined(__MMI_ZI_ROMANIAN__)
  2011.         case INPUT_TYPE_SMART_UPPERCASE_ROMANIAN:
  2012.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_ROMANIAN);
  2013.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ROMANIAN;
  2014.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2015.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2016.             break;
  2017.         case INPUT_TYPE_SMART_LOWERCASE_ROMANIAN:
  2018.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_ROMANIAN);
  2019.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ROMANIAN;
  2020.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2021.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2022.             break;
  2023.         #endif /* defined(__MMI_ZI_ROMANIAN__) */ 
  2024.         #if defined(__MMI_ZI_SLOVENIAN__)
  2025.         case INPUT_TYPE_SMART_UPPERCASE_SLOVENIAN:
  2026.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SLOVENIAN);
  2027.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SLOVENIAN;
  2028.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2029.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2030.             break;
  2031.         case INPUT_TYPE_SMART_LOWERCASE_SLOVENIAN:
  2032.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SLOVENIAN);
  2033.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SLOVENIAN;
  2034.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2035.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2036.             break;
  2037.         #endif /* defined(__MMI_ZI_SLOVENIAN__) */ 
  2038.         #if defined(__MMI_ZI_GREEK__)
  2039.         case INPUT_TYPE_SMART_UPPERCASE_GREEK:
  2040.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_GREEK);
  2041.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_GREEK;
  2042.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2043.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2044.             break;
  2045.         case INPUT_TYPE_SMART_LOWERCASE_GREEK:
  2046.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_GREEK);
  2047.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_GREEK;
  2048.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2049.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2050.             break;
  2051.         #endif /* defined(__MMI_ZI_GREEK__) */ 
  2052.         #if defined(__MMI_ZI_FINNISH__)
  2053.         case INPUT_TYPE_SMART_UPPERCASE_FINNISH:
  2054.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_FINNISH);
  2055.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_FINNISH;
  2056.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2057.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2058.             break;
  2059.         case INPUT_TYPE_SMART_LOWERCASE_FINNISH:
  2060.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_FINNISH);
  2061.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_FINNISH;
  2062.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2063.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2064.             break;
  2065.         #endif /* defined(__MMI_ZI_FINNISH__) */ 
  2066.         #if defined(__MMI_ZI_CZECH__)
  2067.         case INPUT_TYPE_SMART_UPPERCASE_CZECH:
  2068.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_CZECH);
  2069.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_CZECH;
  2070.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2071.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2072.             break;
  2073.         case INPUT_TYPE_SMART_LOWERCASE_CZECH:
  2074.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_CZECH);
  2075.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_CZECH;
  2076.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2077.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2078.             break;
  2079.         #endif /* defined(__MMI_ZI_CZECH__) */ 
  2080.         #if defined(__MMI_ZI_HUNGARIAN__)
  2081.         case INPUT_TYPE_SMART_UPPERCASE_HUNGARIAN:
  2082.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_HUNGARIAN);
  2083.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_HUNGARIAN;
  2084.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2085.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2086.             break;
  2087.         case INPUT_TYPE_SMART_LOWERCASE_HUNGARIAN:
  2088.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_HUNGARIAN);
  2089.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_HUNGARIAN;
  2090.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2091.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2092.             break;
  2093.         #endif /* defined(__MMI_ZI_HUNGARIAN__) */ 
  2094. //KP Jerry add on 2007-3-8 start
  2095. #elif defined(__MMI_CSTAR__)
  2096.         case INPUT_TYPE_SMART_UPPERCASE_ABC:
  2097.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_ABC);
  2098.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ABC;
  2099.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2100.             break;
  2101.         case INPUT_TYPE_SMART_LOWERCASE_ABC:
  2102.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_ABC);
  2103.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ABC;
  2104.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2105.             break;
  2106.         #if defined(__MMI_CSTAR_TR_CHINESE__)
  2107.         case INPUT_TYPE_TR_BOPOMO:
  2108.             change_singleline_inputbox_mode(INPUT_MODE_TR_BOPOMO);
  2109.             MMI_current_input_mode = INPUT_MODE_TR_BOPOMO;
  2110.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2111.             break;
  2112.         case INPUT_TYPE_TR_STROKE:
  2113.             change_singleline_inputbox_mode(INPUT_MODE_TR_STROKE);
  2114.             MMI_current_input_mode = INPUT_MODE_TR_STROKE;
  2115.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2116.             break;
  2117.         #endif
  2118.         #if defined(__MMI_CSTAR_SM_CHINESE__)
  2119.         case INPUT_TYPE_SM_PINYIN:
  2120.             change_singleline_inputbox_mode(INPUT_MODE_SM_PINYIN);
  2121.             MMI_current_input_mode = INPUT_MODE_SM_PINYIN;
  2122.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2123.             break;
  2124.         case INPUT_TYPE_SM_STROKE:
  2125.             change_singleline_inputbox_mode(INPUT_MODE_SM_STROKE);
  2126.             MMI_current_input_mode = INPUT_MODE_SM_STROKE;
  2127.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2128.             break;
  2129.         #endif
  2130.         #if defined(__MMI_CSTAR_SPANISH__)
  2131.         case INPUT_TYPE_SMART_UPPERCASE_SPANISH:
  2132.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SPANISH);
  2133.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SPANISH;
  2134.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2135.             break;
  2136.         case INPUT_TYPE_SMART_LOWERCASE_SPANISH:
  2137.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SPANISH);
  2138.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SPANISH;
  2139.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2140.             break;
  2141.         #endif
  2142.         #if defined(__MMI_CSTAR_DANISH__)
  2143.         case INPUT_TYPE_SMART_UPPERCASE_DANISH:
  2144.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_DANISH);
  2145.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_DANISH;
  2146.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2147.             break;
  2148.         case INPUT_TYPE_SMART_LOWERCASE_DANISH:
  2149.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_DANISH);
  2150.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_DANISH;
  2151.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2152.             break;
  2153.         #endif
  2154.         #if defined(__MMI_CSTAR_POLISH__)
  2155.         case INPUT_TYPE_SMART_UPPERCASE_POLISH:
  2156.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_POLISH);
  2157.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_POLISH;
  2158.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2159.             break;
  2160.         case INPUT_TYPE_SMART_LOWERCASE_POLISH:
  2161.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_POLISH);
  2162.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_POLISH;
  2163.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2164.             break;
  2165.         #endif
  2166.         #if defined(__MMI_CSTAR_FRENCH__)
  2167.         case INPUT_TYPE_SMART_UPPERCASE_FRENCH:
  2168.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_FRENCH);
  2169.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_FRENCH;
  2170.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2171.             break;
  2172.         case INPUT_TYPE_SMART_LOWERCASE_FRENCH:
  2173.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_FRENCH);
  2174.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_FRENCH;
  2175.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2176.             break;
  2177.         #endif
  2178.         #if defined(__MMI_CSTAR_GERMAN__)
  2179.         case INPUT_TYPE_SMART_UPPERCASE_GERMAN:
  2180.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_GERMAN);
  2181.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_GERMAN;
  2182.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2183.             break;
  2184.         case INPUT_TYPE_SMART_LOWERCASE_GERMAN:
  2185.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_GERMAN);
  2186.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_GERMAN;
  2187.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2188.             break;
  2189.         #endif
  2190.         #if defined(__MMI_CSTAR_ITALIAN__)
  2191.         case INPUT_TYPE_SMART_UPPERCASE_ITALIAN:
  2192.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_ITALIAN);
  2193.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ITALIAN;
  2194.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2195.             break;
  2196.         case INPUT_TYPE_SMART_LOWERCASE_ITALIAN:
  2197.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_ITALIAN);
  2198.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ITALIAN;
  2199.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2200.             break;
  2201.         #endif
  2202.         #if defined(__MMI_CSTAR_RUSSIAN__)
  2203.         case INPUT_TYPE_SMART_UPPERCASE_RUSSIAN:
  2204.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_RUSSIAN);
  2205.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_RUSSIAN;
  2206.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2207.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2208.             break;
  2209.         case INPUT_TYPE_SMART_LOWERCASE_RUSSIAN:
  2210.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_RUSSIAN);
  2211.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_RUSSIAN;
  2212.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2213.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2214.             break;
  2215.         #endif
  2216.         #if defined(__MMI_CSTAR_BULGARIAN__)
  2217.         case INPUT_TYPE_SMART_UPPERCASE_BULGARIAN:
  2218.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_BULGARIAN);
  2219.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_BULGARIAN;
  2220.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2221.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2222.             break;
  2223.         case INPUT_TYPE_SMART_LOWERCASE_BULGARIAN:
  2224.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_BULGARIAN);
  2225.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_BULGARIAN;
  2226.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2227.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2228.             break;
  2229.         #endif
  2230.         #if defined(__MMI_CSTAR_VIETNAMESE__)
  2231.         case INPUT_TYPE_SMART_UPPERCASE_VIETNAMESE:
  2232.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_VIETNAMESE);
  2233.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_VIETNAMESE;
  2234.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2235.             break;
  2236.         case INPUT_TYPE_SMART_LOWERCASE_VIETNAMESE:
  2237.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_VIETNAMESE);
  2238.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_VIETNAMESE;
  2239.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2240.             break;
  2241.         #endif
  2242.         #if defined(__MMI_CSTAR_INDONESIAN__)
  2243.         case INPUT_TYPE_SMART_UPPERCASE_INDONESIAN:
  2244.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_INDONESIAN);
  2245.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_INDONESIAN;
  2246.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2247.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2248.             break;
  2249.         case INPUT_TYPE_SMART_LOWERCASE_INDONESIAN:
  2250.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_INDONESIAN);
  2251.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_INDONESIAN;
  2252.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2253.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2254.             break;
  2255.         #endif
  2256.  
  2257.         #if defined(__MMI_CSTAR_PORTUGUESE__)
  2258.         case INPUT_TYPE_SMART_UPPERCASE_PORTUGUESE:
  2259.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_PORTUGUESE);
  2260.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_PORTUGUESE;
  2261.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2262.             break;
  2263.         case INPUT_TYPE_SMART_LOWERCASE_PORTUGUESE:
  2264.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_PORTUGUESE);
  2265.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_PORTUGUESE;
  2266.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2267.             break;
  2268.         #endif
  2269.  
  2270.         #if defined(__MMI_CSTAR_CZECH__)
  2271.         case INPUT_TYPE_SMART_UPPERCASE_CZECH:
  2272.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_CZECH);
  2273.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_CZECH;
  2274.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2275.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2276.             break;
  2277.         case INPUT_TYPE_SMART_LOWERCASE_CZECH:
  2278.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_CZECH);
  2279.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_CZECH;
  2280.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2281.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2282.             break;
  2283.         #endif
  2284.         #if defined(__MMI_CSTAR_TURKISH__)
  2285.         case INPUT_TYPE_SMART_UPPERCASE_TURKISH:
  2286.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_TURKISH);
  2287.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_TURKISH;
  2288.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2289.             break;
  2290.         case INPUT_TYPE_SMART_LOWERCASE_TURKISH:
  2291.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_TURKISH);
  2292.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_TURKISH;
  2293.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2294.             break;
  2295.         #endif
  2296.         #if defined(__MMI_CSTAR_FINNISH__)
  2297.         case INPUT_TYPE_SMART_UPPERCASE_FINNISH:
  2298.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_FINNISH);
  2299.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_FINNISH;
  2300.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2301.             break;
  2302.         case INPUT_TYPE_SMART_LOWERCASE_FINNISH:
  2303.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_FINNISH);
  2304.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_FINNISH;
  2305.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2306.             break;
  2307.         #endif
  2308.         #if defined(__MMI_CSTAR_HUNGARIAN__)
  2309.         case INPUT_TYPE_SMART_UPPERCASE_HUNGARIAN:
  2310.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_HUNGARIAN);
  2311.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_HUNGARIAN;
  2312.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2313.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2314.             break;
  2315.         case INPUT_TYPE_SMART_LOWERCASE_HUNGARIAN:
  2316.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_HUNGARIAN);
  2317.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_HUNGARIAN;
  2318.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2319.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2320.             break;
  2321.         #endif
  2322.         #if defined(__MMI_CSTAR_ARABIC__)
  2323.         case INPUT_TYPE_SMART_ARABIC:
  2324.             change_singleline_inputbox_mode(INPUT_MODE_SMART_ARABIC);
  2325.             MMI_current_input_mode = INPUT_MODE_SMART_ARABIC;
  2326.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2327.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2328.             break;
  2329.         #endif
  2330.         #if defined(__MMI_CSTAR_GREEK__)
  2331.         case INPUT_TYPE_SMART_UPPERCASE_GREEK:
  2332.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_GREEK);
  2333.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_GREEK;
  2334.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2335.             break;
  2336.         case INPUT_TYPE_SMART_LOWERCASE_GREEK:
  2337.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_GREEK);
  2338.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_GREEK;
  2339.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2340.             break;
  2341.         #endif
  2342.         #if defined(__MMI_CSTAR_HEBREW__)
  2343.         case INPUT_TYPE_SMART_HEBREW:
  2344.             change_singleline_inputbox_mode(INPUT_MODE_SMART_HEBREW);
  2345.             MMI_current_input_mode = INPUT_MODE_SMART_HEBREW;
  2346.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2347.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2348.             break;
  2349.         #endif
  2350.         #if defined(__MMI_CSTAR_HINDI__)
  2351.         case INPUT_TYPE_SMART_HINDI:
  2352.             change_singleline_inputbox_mode(INPUT_MODE_SMART_HINDI);
  2353.             MMI_current_input_mode = INPUT_MODE_SMART_HINDI;
  2354.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2355.             wgui_inputbox_information_icon = get_image(WGUI_ZI_EZITEXT_LOGO);
  2356.             break;
  2357.         #endif
  2358.         #if defined(__MMI_CSTAR_NORWEGIAN__)
  2359.         case INPUT_TYPE_SMART_UPPERCASE_NORWEGIAN:
  2360.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_NORWEGIAN);
  2361.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_NORWEGIAN;
  2362.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2363.             break;
  2364.         case INPUT_TYPE_SMART_LOWERCASE_NORWEGIAN:
  2365.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_NORWEGIAN);
  2366.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_NORWEGIAN;
  2367.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2368.             break;
  2369.         #endif
  2370.         #if defined(__MMI_CSTAR_DUTCH__)
  2371.         case INPUT_TYPE_SMART_UPPERCASE_DUTCH:
  2372.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_DUTCH);
  2373.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_DUTCH;
  2374.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2375.             break;
  2376.         case INPUT_TYPE_SMART_LOWERCASE_DUTCH:
  2377.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_DUTCH);
  2378.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_DUTCH;
  2379.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2380.             break;
  2381.         #endif
  2382.         #if defined(__MMI_CSTAR_SLOVENIAN__)
  2383.         case INPUT_TYPE_SMART_UPPERCASE_SLOVENIAN:
  2384.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SLOVENIAN);
  2385.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SLOVENIAN;
  2386.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2387.             break;
  2388.         case INPUT_TYPE_SMART_LOWERCASE_SLOVENIAN:
  2389.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SLOVENIAN);
  2390.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SLOVENIAN;
  2391.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2392.             break;
  2393.         #endif
  2394.         #if defined(__MMI_CSTAR_SWEDISH__)
  2395.         case INPUT_TYPE_SMART_UPPERCASE_SWEDISH:
  2396.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SWEDISH);
  2397.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SWEDISH;
  2398.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2399.             break;
  2400.         case INPUT_TYPE_SMART_LOWERCASE_SWEDISH:
  2401.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SWEDISH);
  2402.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SWEDISH;
  2403.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2404.             break;
  2405.         #endif
  2406.         #if defined(__MMI_CSTAR_MALAY__)
  2407.         case INPUT_TYPE_SMART_UPPERCASE_MALAY:
  2408.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_MALAY);
  2409.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_MALAY;
  2410.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2411.             break;
  2412.         case INPUT_TYPE_SMART_LOWERCASE_MALAY:
  2413.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_MALAY);
  2414.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_MALAY;
  2415.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2416.             break;
  2417.         #endif
  2418.         #if defined(__MMI_CSTAR_CROATIAN__)
  2419.         case INPUT_TYPE_SMART_UPPERCASE_CROATIAN:
  2420.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_CROATIAN);
  2421.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_CROATIAN;
  2422.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2423.             break;
  2424.         case INPUT_TYPE_SMART_LOWERCASE_CROATIAN:
  2425.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_CROATIAN);
  2426.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_CROATIAN;
  2427.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2428.             break;
  2429.         #endif
  2430.         #if defined(__MMI_CSTAR_SLOVAK__)
  2431.         case INPUT_TYPE_SMART_UPPERCASE_SLOVAK:
  2432.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_SLOVAK);
  2433.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_SLOVAK;
  2434.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2435.             break;
  2436.         case INPUT_TYPE_SMART_LOWERCASE_SLOVAK:
  2437.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_SLOVAK);
  2438.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_SLOVAK;
  2439.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2440.             break;
  2441.         #endif
  2442.         #if defined(__MMI_CSTAR_ROMANIAN__)
  2443.         case INPUT_TYPE_SMART_UPPERCASE_ROMANIAN:
  2444.             change_singleline_inputbox_mode(INPUT_MODE_SMART_UPPERCASE_ROMANIAN);
  2445.             MMI_current_input_mode = INPUT_MODE_SMART_UPPERCASE_ROMANIAN;
  2446.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2447.             break;
  2448.         case INPUT_TYPE_SMART_LOWERCASE_ROMANIAN:
  2449.             change_singleline_inputbox_mode(INPUT_MODE_SMART_LOWERCASE_ROMANIAN);
  2450.             MMI_current_input_mode = INPUT_MODE_SMART_LOWERCASE_ROMANIAN;
  2451.             inputbox_change_mode = change_singleline_inputbox_input_mode;
  2452.             break;
  2453.         #endif
  2454. //KP Jerry add on 2007-3-8 end
  2455.         #endif 
  2456.         default:
  2457.             set_singleline_inputbox_mask(0);
  2458.             change_singleline_inputbox_mode(INPUT_MODE_123);
  2459.             MMI_current_input_mode = INPUT_MODE_123;
  2460.             break;
  2461.     }
  2462.     if (!override_history_input_type && (saved_inputbox_flags & UI_SINGLE_LINE_INPUT_BOX_MASK_CHARACTERS))
  2463.     {
  2464.         set_singleline_inputbox_mask(1);
  2465.         if ((saved_input_type & INPUT_TYPE_MASK) != INPUT_TYPE_ALPHANUMERIC_PASSWORD)
  2466.         {
  2467.             ClearKeyHandler(KEY_POUND, KEY_EVENT_DOWN);
  2468.         }
  2469.     }
  2470.     wgui_singleline_inputbox_RSK_label_clear = 0;
  2471.     wgui_singleline_inputbox_RSK_label_icon = RSK_icon;
  2472.     wgui_singleline_inputbox_RSK_label_string = RSK_label;
  2473. #if defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__)
  2474.     if (cat200_search_function)
  2475.     {
  2476.         mmi_pen_editor_setup_input_box(
  2477.             NULL,
  2478.             NULL,
  2479.             MMI_current_input_type,
  2480.             MMI_TRUE,
  2481.             PEN_EDITOR_QUICK_SEARCH_SINGLE_LINE_INPU_BOX);
  2482.     }
  2483.     else
  2484.     {
  2485.         ext_stroke.x1 = 0;
  2486.         ext_stroke.y1 = 0;
  2487.         ext_stroke.x2 = UI_device_width - 1;
  2488.         ext_stroke.y2 = UI_device_height - 1;
  2489.     #if 0
  2490. /* under construction !*/
  2491. /* under construction !*/
  2492. /* under construction !*/
  2493. /* under construction !*/
  2494.     #else /* 0 */ 
  2495.         stroke_area.x1 = MMI_content_x;
  2496.         stroke_area.x2 = MMI_content_x + MMI_content_width;
  2497.         stroke_area.y1 = MMI_title_y;
  2498.         stroke_area.y2 = MMI_title_y + MMI_content_height + MMI_title_height;
  2499.     #endif /* 0 */ 
  2500.         mmi_pen_editor_setup_input_box(
  2501.             &stroke_area,
  2502.             &ext_stroke,
  2503.             MMI_current_input_type,
  2504.             MMI_TRUE,
  2505.             PEN_EDITOR_SINGLE_LINE_INPU_BOX);
  2506.     }
  2507. #endif /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */ 
  2508.     wgui_set_singleline_RSK();
  2509.     register_singleline_inputbox_input_callback(wgui_handle_singleline_inputbox_input);
  2510.     test_change_input_mode = wgui_singleline_inputbox_test_change_input_mode;
  2511.     UI_UNUSED_PARAMETER(saved_MMI_current_input_mode);
  2512. }
  2513. /*****************************************************************************
  2514.  * FUNCTION