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

MTK

开发平台:

C/C++

  1. #ifndef _MMI_DICTIONARYMAIN_H
  2. #define _MMI_DICTIONARYMAIN_H
  3. #include "PixtelDatatypes.h"
  4. #include "gui_data_types.h"
  5. #define DICTIONARY_MAX_WORDS 50000      /* this is maximum limit set for shortcut width rectange in title bar. */
  6. #define DICTIONARY_INPUT_LENGTH 30      /* input buffer length for main dictionary, wildcard and exact search */
  7. enum STR_DICTIONARY_LIST
  8. {
  9.     STR_DICTIONARY_TITLE = DICTIONARY_BASE + 1,
  10.     STR_DICTIONARY_SHOW_MEANING,
  11.     STR_DICTIONARY_WILDCARD_SEARCH,
  12.     STR_DICTIONARY_EXACT_SEARCH,
  13.     STR_DICTIONARY_LANGUAGE_NOT_SUPPORTED,
  14.     STR_DICTIONARY_NO_MATCH_FOUND,
  15.     STR_DICTIONARY_CHINESE_STRING,
  16.     STR_DICTIONARY_SYNONYMS,
  17.     STR_DICTIONARY_ANTONYMS,
  18.     STR_DICTIONARY_EXAMPLE_SENTENCE
  19. };
  20. enum IMG_DICTIONARY_LIST
  21. {
  22.     IMG_DICTIONARY_TITLE = DICTIONARY_BASE + 1,
  23.     IMG_DICTIONARY_WORD_LIST_SCREEN,
  24.     IMG_DICTIONARY_EXTRA_MENU_SCREEN,
  25.     IMG_DICTIONARY_SEARCH,
  26.     IMG_DICTIONARY_LOGO,
  27.     IMG_DICTIONARY_WAIT
  28. };
  29. enum SCR_DICTIONARY_LIST
  30. {
  31.     SCR_DICTIONARY_MAIN = DICTIONARY_BASE + 1,
  32.     SCR_DICTIONARY_RESULT,
  33.     SCR_DICTIONARY_OPTION,
  34.     SCR_DICTIONARY_WILDCARD_EXACT_EDITOR,
  35.     SCR_DICTIONARY_EDITOR_OPTION_SCREEN,
  36.     SCR_DICTIONARY_WILDCARD_RESULT_LIST,
  37.     SCR_DICTIONARY_WELCOME_SCREEN
  38. };
  39. typedef enum    /* Search type : To differentiate between wildcard,exact and chinese string */
  40. {
  41.     DICTIONARY_WILDCARD_SEARCH,
  42.     DICTIONARY_EXACT_SEARCH,
  43.     DICTIONARY_BROWSE
  44. } mmi_dictionary_search_type;
  45. typedef struct
  46. {
  47.     S32 total_browse_entry;     /* Number of character present in main dictionary editor screen   */
  48.     S32 starting_index;         /* starting index of first word in main dictionary browse screen  */
  49.     S32 wildcard_results;       /* Number of wildcard result found  */
  50.     S32 current_selected_index; /* Index of current selected word in list  */
  51.     S32 current_wildcard_search_index;
  52. } mmi_dictionary_cntx;
  53. typedef enum
  54. {
  55.     DICTIONARY_ENGLISH,
  56.     DICTIONARY_CHINESE,
  57.     DICTIONARY_LANG_TOTAL,
  58.     DICTIONARY_NONE
  59. } MMI_DICTIONARY_LANGUAGE;
  60. extern void mmi_dictionary_init(void);
  61. extern void mmi_dictionary_main_menu_highlight_hdlr(void);
  62. extern void mmi_dictionary_show_meaning_highlight_hdlr(void);
  63. extern void mmi_dictionary_wildcard_highlight_hdlr(void);
  64. extern void mmi_dictionary_wildcard_word_list_hdlr(S32 index);
  65. extern void mmi_dictionary_input_method_highlight_hdlr(void);
  66. extern void mmi_dictionary_editor_option_search_highlight_hdlr(void);
  67. extern void mmi_dictionary_editor_option_input_method_highlight_hdlr(void);
  68. extern void mmi_dictionary_word_hdlr(S32 index);
  69. extern void mmi_dictionary_exact_highlight_hdlr(void);
  70. extern S32 mmi_dictionary_find_entry(U8 *keyword);
  71. extern pBOOL mmi_dictionary_list_get_item(S32 item_index, UI_string_type str_buff, PU8 *img_buff_p, U8 str_img_mask);
  72. extern pBOOL mmi_dictionary_wildcard_list_get_item(
  73.                 S32 item_index,
  74.                 UI_string_type str_buff,
  75.                 PU8 *img_buff_p,
  76.                 U8 str_img_mask);
  77. extern void mmi_dictionary_entry_welcome_screen(void);
  78. extern void mmi_dictionary_entry_main_screen(void);
  79. extern void mmi_dictionary_entry_result_screen(void);
  80. extern void mmi_dictionary_entry_main_option_screen(void);
  81. extern void mmi_dictionary_entry_wildcard_exact_editor_screen(void);
  82. extern void mmi_dictionary_entry_editor_option_screen(void);
  83. extern void mmi_dictionary_entry_search(void);
  84. extern void mmi_dictionary_entry_wildcard_result_list_screen(void);
  85. extern void mmi_dictionary_pre_entry_main_screen(void);
  86. extern pBOOL mmi_dictionary_check_input_buffer(U8 *inputBuffer, U8 language);
  87. extern MMI_DICTIONARY_LANGUAGE mmi_dictionary_check_input_family(U8 inputMethod);
  88. extern BOOL mmi_dictionary_flush_editor_buffer(void);
  89. extern void mmi_dictionary_exit_main_screen(void);
  90. extern BOOL isFromDictionary(S32 *);
  91. extern BOOL mmi_dictionary_flush_exact_wild_editor_buffer(void);
  92. extern void mmi_dictionary_exit_engine(void);
  93. extern void DictionaryGoBackEditorScreen(void);
  94. extern void DictionaryGoBackMainScreen(void);
  95. extern pBOOL dictionary_dummy_function(void);
  96. extern void mmi_dictionary_exit_wildcard_exact_editor_screen(void);
  97. extern BOOL IsDictionaryLanguageChanged(U8 input_type);
  98. #endif /* _MMI_DICTIONARYMAIN_H */