A. Menu ID: MENU_ID_MYAPP_TEXT
Screen ID: SCR_ID_MYAPP_TEXT
String ID: STR_ID_MYAPP_TEXT
Image ID: ICON_ID_MYAPP_TEXT
B. MyAppDef. h
MyAppProt. h
MyAppGprot. h
Res_MyAppRes.c
1. GlobalMenuItem. h
Add one menu in GLOBALMENUITEMSID: MENU_ID_MYAPP;
2. MyAppDef. h
A. Create A new file
B. Add the screen ID SCR_ID_MYAPP_TEXT to the enumerated list respectively;
String ID: STR_ID_MYAPP_TEXT;
Image ID: iicon_id_myapp_text;
3. resmainmenu. c
A. Add the new enumerated value org_enum_myapp_text to the enumerated organizermenu;
B. add_application_menuitem (main_menu_organizer_menuid ,............)) Add the new menu ID (menu_id_myapp_text );
4. res_organizer.c
A. Add the value of the new string (str_id_myapp_text;
B. Add the value of the new image (icon_id_myapp_text;
C. Add the sub-menu of the new menu (menu_id_myapp_text;
5. organizer. c
Add the initialization function (myapptextinit) of the project indicated by the new menu );
6. MyApp. c
Compile the following functions:
A. the initialization function of the project indicated by the new menu (MyAppTextInit ),
A simple example of this function:
SetHiliteHandler (MENU_ID_MYAPP_TEXT, HighlightMyAppTextMenu );
Call the highlighted handle function of the new menu.
B. HighlightMyAppTextMenu)
A simple example of this function:
SetLeftSoftkeyFunction (mmi_myapp_entry_text_screen, KEY_EVENT_UP );
Register the associated functions of the Left software.
C. New window entry function (mmi_myapp_entry_text_screen );
7. MyAppGProt. h
External Declaration (extern) MyAppTextInit;
8. MyAppProt. h
The third function above the external Declaration (extern;
9. plutommi. Lis
Location: ../make/plutommi. Lis
Add the source file to be compiled: plutommi/MMI] organizer/organizersrc/MyApp. c
10. populateres. c
../Plutommi/MMI/resource/populateres. c
Declare new resource functions
(1) extern void populatemyappres (void );
(2) add_application (app_myapp, "MyApp", myapp_base, myapp_base_max );
(3) print_information ("populating MyApp resources/N "));
Populatemyappres ();
11. mmidatatype. h
../Plutommi/MMI/INC/mmidatatype. h
Declare resource range
(1) Add APP_MYAPP in APPLICATION_DEPLOY enumeration,
(2) RESOURCE_BASE_RANGE (MYAPP, 50 ),
(3) # define MYAPP_BASE (002) RESOURCE_BASE_MYAPP)
# Define MYAPP_BASE_MAX (002) RESOURCE_BASE_MYAPP_END)
RESOURCE_BASE_TABLE_ITEM (MYAPP)
12. Res_MyApp.c
Create resource functions of MyApp
13. Add the MyApp header file
A. Res_MyApp.c
B. MyApp. c
C. Res_Organizer.c
D. Organizer. c
14. Use the advanced template (Draw Manager, Touch Screen)
A. Wgui_categories_enum.h
Location: ../plutommi/mmi/gui/gui_inc
Add the ID of the new template to the MMI_CATEGORY_ID_LIST enumeration: MMI_CATEGORYWT001_ID
B. CustCoordinates. c
Location: ../plutommi/customer/custresource
A. In the ing table const dm_category_id_control_set_map_struct_categories_controls_map [] =
Add
{MMI_CATEGORYWT001_ID, (U8 *) categoryWT001, (S16 *) coordinate_setWT001, NULL}
B. Add the above two control checks
(1) List controls
Const U8 categoryWT001 [] =
{
3, // the number of controls
DM_BASE_LAYER_START,
DM_LIST1,
DM_BUTTON_BAR1
};
(2) Attribute Set
Const S16 coordinate_setWT001 [] =
{
DM_FULL_SCREEN_COORDINATE_FLAG, // Base Attribute
20, // x
Mmi_content_y + 5, // y
136, // width
MMI_CONTENT_HEIGHT-40, // height
DM_NO_FLAGS, // Flags
DM_DEFAULT_BUTTON_BAR_FLAG,
MMI_SOFTKEY_WIDTH
};