版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、 一、 /畫做軟鍵小列表菜單 /所對應(yīng)的DM Wgui_categories_enum.h (d:whc1068_c015plutommimmiguigui_inc MMI_CATEGORYLSK_ID, (CustCoordinates.c (d:whc1068_c015plutommicustomercustresource) MMI_CATEGORYLSK_ID, (U8 * categoryLSK, (S16 * coordinate_setLSK, NULL, const U8 categoryLSK = 6, DM_BASE_LAYER_START, DM_SCR_BG, DM_R
2、ECTANGLE, DM_CATEGORY_CONTROLLED_AREA, DM_LIST1, DM_BUTTON_BAR1 ; const S16 coordinate_setLSK = 0, 0, MAIN_LCD_DEVICE_WIDTH, MAIN_LCD_DEVICE_HEIGHT, DM_NO_FLAGS, /* Category Screen Coordinates */ 0, 0, MAIN_LCD_DEVICE_WIDTH, MAIN_LCD_DEVICE_HEIGHT, DM_NO_FLAGS, /* greyscale rectangle */ 0, 158,120,1
3、36, DM_NO_FLAGS, /* control area */ 1,160,120,136, DM_CENTRE_ALIGN_X | DM_CENTER_ALIGN_Y, 0, MAIN_LCD_DEVICE_HEIGHT - MMI_BUTTON_BAR_HEIGHT, MAIN_LCD_DEVICE_WIDTH, MMI_BUTTON_BAR_HEIGHT,DM_BUTTON_DISABLE_BACKGROUND, MMI_SOFTKEY_WIDTH /* Button Bar */ ; /* code */ void DrawRectangle( gui_draw_rectang
4、le(0, 158,121,296,UI_COLOR_BLACK; gui_draw_rectangle(0,157,123,298,UI_COLOR_GREEN; gui_BLT_double_buffer(0,0,UI_device_width-1,UI_device_height-1; void ShowCategoryLSKScreen( /左軟鍵進入菜單項模板 dm_data_struct dm_data; S32 i; S32 number_of_items; U8* history_buffer=NULL; color c = UI_COLOR_GREEN; gdi_layer_
5、lock_frame_buffer(; /DrawBackgroundBar(; wgui_fixed_list_create_icontext_menu(8, 0, 0, MMI_CATEGORY10_ID, history_buffer; wgui_fixed_list_begin_add_icontext_one_item(; for(i = 0; i small_list_menu_highlight_without_scrollbar_filler; /MMI_fixed_list_menu.flags |= UI_LIST_MENU_DISABLE_SCROLLBAR|UI_LIS
6、T_MENU_DISABLE_BACKGROUND; gdi_layer_unlock_frame_buffer(; dm_setup_category_functions(dm_redraw_category_screen, dm_get_category_history, dm_get_category_history_size; dm_data.s32ScrId = (S32 GetActiveScreenId(; dm_data.s32CatId = MMI_CATEGORYLSK_ID; dm_data.s32flags = 0; dm_add_rectangle(c, DM_REC
7、TANGLE_FILL_GRAYSCALE; dm_setup_data(&dm_data; dm_redraw_category_screen(; gui_BLT_double_buffer(0,0,UI_device_width-1,UI_device_height-1; void mmi_fmreadapp_LSK_entery(void S32 i; U8 *guiBuffer = NULL; U16 Iconlistt5; U16 ItemListt5; EntryNewScreen(SCR_FMREADAPP_MAIN,NULL,NULL,NULL; entry_full_scre
8、en(; ShowCategoryLSKScreen(; DrawTitleButtonBar(; DrawRectangle(; change_left_softkey(STR_GLOBAL_OK,NULL; change_right_softkey(STR_GLOBAL_QUIT,NULL; show_softkey(MMI_LEFT_SOFTKEY; show_softkey(MMI_RIGHT_SOFTKEY; SetLeftSoftkeyFunction(mmi_fmreadapp_FirstPage, KEY_EVENT_UP; /SetRightSoftkeyFunction(G
9、oBackHistory, KEY_EVENT_UP; SetKeyHandler(GoBackHistory,KEY_RSK,KEY_EVENT_UP; gui_BLT_double_buffer(0,0,UI_device_width-1,UI_device_height-1; 二、 /畫列表菜單 /所對應(yīng)的DM Wgui_categories_enum.h (d:whc1068_c015plutommimmiguigui_inc MMI_CATEGORYChapterList_ID, (CustCoordinates.c (d:whc1068_c015plutommicustomercu
10、stresource) MMI_CATEGORYChapterList_ID, (U8 * categoryChapterList, (S16 * coordinate_setChapterList, NULL, const U8 categoryChapterList = 5, DM_BASE_LAYER_START, DM_SCR_BG, /沒有這個高亮時會把整個字體蓋住 DM_CATEGORY_CONTROLLED_AREA, /DM_BASE_CONTROL_SET_SUBMENU, DM_LIST1, DM_BUTTON_BAR1 ; const S16 coordinate_set
11、ChapterList = DM_FULL_SCREEN_COORDINATE_FLAG, DM_FULL_SCREEN_COORDINATE_FLAG, /MMI_SUBMENU_CONTENT_X, MMI_SUBMENU_CONTENT_Y, MMI_SUBMENU_CONTENT_WIDTH, MMI_SUBMENU_CONTENT_HEIGHT, DM_CENTRE_ALIGN_X | DM_CENTER_ALIGN_Y 0,35,240,260, DM_CENTRE_ALIGN_X | DM_CENTER_ALIGN_Y, 0, MAIN_LCD_DEVICE_HEIGHT - M
12、MI_BUTTON_BAR_HEIGHT, MAIN_LCD_DEVICE_WIDTH, MMI_BUTTON_BAR_HEIGHT,DM_BUTTON_DISABLE_BACKGROUND, MMI_SOFTKEY_WIDTH ; /*code */ void Mybookshelf_draw_text(S32 item_index gui_BLT_double_buffer(0,0,UI_device_width-1,UI_device_height-1; void category668_highlight_handler(S32 item_index Mybookshelf_draw_
13、text(item_index; /* void RedrawCategory668Screen(void gdi_layer_lock_frame_buffer(; show_fixed_list(; show_softkey(MMI_LEFT_SOFTKEY; show_softkey(MMI_RIGHT_SOFTKEY; gdi_layer_unlock_frame_buffer(; gui_BLT_double_buffer(0,0,UI_device_width-1,UI_device_height-1; */ void ExitCategory668Screen(void Clea
14、rHighlightHandler(;/清掉所有高亮響應(yīng)函數(shù) reset_softkeys(;/重置左右軟鍵 reset_menu_shortcut_handler(;/重置快捷序號框 reset_fixed_list(;/重置列表菜單 void ShowCategoryChapterListScreen( U16 left_softkey,U16 left_softkey_icon, U16 right_softkey,U16 right_softkey_icon, S32 number_of_items, U16 *list_of_items, U16 *list_of_icons, S3
15、2 highlighted_item, U8* history_buffer S8 i; dm_data_struct dm_data; entry_full_screen(; clear_screen(; DrawTitleButtonBar(; MMI_current_menu_type=LIST_MENU; create_fixed_icontext_menuitems(; associate_fixed_icontext_list(; for(i=0;inumber_of_items;i+ add_fixed_icontext_item(L大話西游,(PU8GetImage(IMG_G
16、LOBAL_L1+i; register_fixed_list_shortcut_handler(; register_fixed_list_keys(; register_fixed_list_highlight_handler(category668_highlight_handler; fixed_list_goto_item_no_redraw(0; show_fixed_list(; / RedrawCategoryFunction=RedrawCategory668Screen; dm_setup_category_functions(dm_redraw_category_scre
17、en, dm_get_category_history, dm_get_category_history_size; dm_data.s32ScrId = (S32 GetActiveScreenId(; dm_data.s32CatId = MMI_CATEGORYChapterList_ID; dm_data.s32flags = 0; dm_setup_data(&dm_data; dm_redraw_category_screen(; change_left_softkey(STR_GLOBAL_OK,NULL; change_right_softkey(STR_GLOBAL_BACK
18、,NULL; show_softkey(MMI_LEFT_SOFTKEY; show_softkey(MMI_RIGHT_SOFTKEY; SetLeftSoftkeyFunction(mmi_fmreadapp_LSK_entery, KEY_EVENT_UP; SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP; void mmi_fmreadapp_ChapterList_entery(void S32 i; U16 list_of_items10; U16 list_of_icons10; U8* history_buffer; /
19、for(i=0;i10;i+ / /list_of_itemsi=STR_GLOBAL_FILENAME+i; /list_of_iconsi=IMG_GLOBAL_L1+i; / DrawTitleButtonBar(; EntryNewScreen(SCR_FMREADAPP_MAIN,NULL,mmi_fmreadapp_ChapterList_entery,NULL; ShowCategoryChapterListScreen( (U8*GetString(STR_GLOBAL_OK, 0, (U8*GetString(STR_GLOBAL_BACK, 0, 10, (U8* list
20、_of_items, list_of_icons, 2, (U8* history_buffer; gui_BLT_double_buffer(0,0,UI_device_width-1,UI_device_height-1; 三、/搜索界面(暫時未寫出) /* void entry_search_result_screen(void key_word = OslMalloc(FMREAD_SEARCH_LEN*2; memset(key_word,0,FMREAD_SEARCH_LEN*2; mmi_chset_convert(MMI_CHSET_UCS2, MMI_CHSET_GB2312, (char*tmp_key_word, (char*key_word, FMREAD_SEARCH_LEN*2; ui_gid=8; fmread_popup(NULL,NULL,STR_GLOBAL_BACK,IMG_GLOBAL_BACK,(UI_string_typeGetString(STR_GLOBAL_LOADING,IMG_GLOBAL_LOADING,NULL;/加載中 void show_search_content_screen(void U8 *gui_buffer; EntryNewScreen(SCR_
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 有關(guān)管理專業(yè)實習報告
- 綠教學反思15篇
- 感恩節(jié)大學活動策劃6篇
- 在人間八年級品讀心得(3篇)
- 五年級下冊16課課件
- 嚴蔚敏版數(shù)據(jù)結(jié)構(gòu)課后習題答案-完整版
- 《大雁南飛》教學設(shè)計(小學環(huán)境教育)
- 2021中小學節(jié)約糧食反對浪費工作實施方案(完整版)
- 全國2015年10月自學考試03298創(chuàng)新思維理論與方法試題答案
- 新入員工安全培訓(xùn)試題及答案培優(yōu)A卷
- 追求遠大理想堅定崇高信念-課件
- 慢性咳嗽病因分析課件
- 影視廣告策劃與制作課件
- 粉塵清掃記錄
- 大數(shù)據(jù)技術(shù)原理與應(yīng)用 完整版課件
- 接地裝置隱蔽工程驗收記錄
- 創(chuàng)新創(chuàng)業(yè)路演PPT
- 第5課 耕牛-戰(zhàn)馬 課件 八年級上冊
- 觀看公安民警違紀警示教育片心得體會三篇
- 再生水清水池施工技術(shù)措施
- 人教版四年級語文上冊精美課件第一單元習作推薦一個好地方
評論
0/150
提交評論