DictionaryMain.h
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:4k
源码类别:
MTK
开发平台:
C/C++
- #ifndef _MMI_DICTIONARYMAIN_H
- #define _MMI_DICTIONARYMAIN_H
- #include "PixtelDatatypes.h"
- #include "gui_data_types.h"
- #define DICTIONARY_MAX_WORDS 50000 /* this is maximum limit set for shortcut width rectange in title bar. */
- #define DICTIONARY_INPUT_LENGTH 30 /* input buffer length for main dictionary, wildcard and exact search */
- enum STR_DICTIONARY_LIST
- {
- STR_DICTIONARY_TITLE = DICTIONARY_BASE + 1,
- STR_DICTIONARY_SHOW_MEANING,
- STR_DICTIONARY_WILDCARD_SEARCH,
- STR_DICTIONARY_EXACT_SEARCH,
- STR_DICTIONARY_LANGUAGE_NOT_SUPPORTED,
- STR_DICTIONARY_NO_MATCH_FOUND,
- STR_DICTIONARY_CHINESE_STRING,
- STR_DICTIONARY_SYNONYMS,
- STR_DICTIONARY_ANTONYMS,
- STR_DICTIONARY_EXAMPLE_SENTENCE
- };
- enum IMG_DICTIONARY_LIST
- {
- IMG_DICTIONARY_TITLE = DICTIONARY_BASE + 1,
- IMG_DICTIONARY_WORD_LIST_SCREEN,
- IMG_DICTIONARY_EXTRA_MENU_SCREEN,
- IMG_DICTIONARY_SEARCH,
- IMG_DICTIONARY_LOGO,
- IMG_DICTIONARY_WAIT
- };
- enum SCR_DICTIONARY_LIST
- {
- SCR_DICTIONARY_MAIN = DICTIONARY_BASE + 1,
- SCR_DICTIONARY_RESULT,
- SCR_DICTIONARY_OPTION,
- SCR_DICTIONARY_WILDCARD_EXACT_EDITOR,
- SCR_DICTIONARY_EDITOR_OPTION_SCREEN,
- SCR_DICTIONARY_WILDCARD_RESULT_LIST,
- SCR_DICTIONARY_WELCOME_SCREEN
- };
- typedef enum /* Search type : To differentiate between wildcard,exact and chinese string */
- {
- DICTIONARY_WILDCARD_SEARCH,
- DICTIONARY_EXACT_SEARCH,
- DICTIONARY_BROWSE
- } mmi_dictionary_search_type;
- typedef struct
- {
- S32 total_browse_entry; /* Number of character present in main dictionary editor screen */
- S32 starting_index; /* starting index of first word in main dictionary browse screen */
- S32 wildcard_results; /* Number of wildcard result found */
- S32 current_selected_index; /* Index of current selected word in list */
- S32 current_wildcard_search_index;
- } mmi_dictionary_cntx;
- typedef enum
- {
- DICTIONARY_ENGLISH,
- DICTIONARY_CHINESE,
- DICTIONARY_LANG_TOTAL,
- DICTIONARY_NONE
- } MMI_DICTIONARY_LANGUAGE;
- extern void mmi_dictionary_init(void);
- extern void mmi_dictionary_main_menu_highlight_hdlr(void);
- extern void mmi_dictionary_show_meaning_highlight_hdlr(void);
- extern void mmi_dictionary_wildcard_highlight_hdlr(void);
- extern void mmi_dictionary_wildcard_word_list_hdlr(S32 index);
- extern void mmi_dictionary_input_method_highlight_hdlr(void);
- extern void mmi_dictionary_editor_option_search_highlight_hdlr(void);
- extern void mmi_dictionary_editor_option_input_method_highlight_hdlr(void);
- extern void mmi_dictionary_word_hdlr(S32 index);
- extern void mmi_dictionary_exact_highlight_hdlr(void);
- extern S32 mmi_dictionary_find_entry(U8 *keyword);
- extern pBOOL mmi_dictionary_list_get_item(S32 item_index, UI_string_type str_buff, PU8 *img_buff_p, U8 str_img_mask);
- extern pBOOL mmi_dictionary_wildcard_list_get_item(
- S32 item_index,
- UI_string_type str_buff,
- PU8 *img_buff_p,
- U8 str_img_mask);
- extern void mmi_dictionary_entry_welcome_screen(void);
- extern void mmi_dictionary_entry_main_screen(void);
- extern void mmi_dictionary_entry_result_screen(void);
- extern void mmi_dictionary_entry_main_option_screen(void);
- extern void mmi_dictionary_entry_wildcard_exact_editor_screen(void);
- extern void mmi_dictionary_entry_editor_option_screen(void);
- extern void mmi_dictionary_entry_search(void);
- extern void mmi_dictionary_entry_wildcard_result_list_screen(void);
- extern void mmi_dictionary_pre_entry_main_screen(void);
- extern pBOOL mmi_dictionary_check_input_buffer(U8 *inputBuffer, U8 language);
- extern MMI_DICTIONARY_LANGUAGE mmi_dictionary_check_input_family(U8 inputMethod);
- extern BOOL mmi_dictionary_flush_editor_buffer(void);
- extern void mmi_dictionary_exit_main_screen(void);
- extern BOOL isFromDictionary(S32 *);
- extern BOOL mmi_dictionary_flush_exact_wild_editor_buffer(void);
- extern void mmi_dictionary_exit_engine(void);
- extern void DictionaryGoBackEditorScreen(void);
- extern void DictionaryGoBackMainScreen(void);
- extern pBOOL dictionary_dummy_function(void);
- extern void mmi_dictionary_exit_wildcard_exact_editor_screen(void);
- extern BOOL IsDictionaryLanguageChanged(U8 input_type);
- #endif /* _MMI_DICTIONARYMAIN_H */