前提:10A.W10.32及其以后开pluto MMI版本
1. 在\plutommi\mmi\DataAccount\DataAccountRes找到Dataaccount.res,
在Menu Resource Area的最后,添加一个MENU ID:
<MENU id="MENU_ID_WLAN_WIZARD_LIST_OPT_ld" type="OPTION" str="STR_GLOBAL_OPTIONS">
<MENUITEM_ID>MENU_ID_WLAN_WIZARD_LIST_OPT_OFF</MENUITEM_ID>
</MENU>
#endif
2. 在DataAccountUI.c --> mmi_wlan_entry_new_wizard_list() 找到这个函数的后面一部份:
else
{
if (ap_list_num)
{
ShowCategory73Screen(
STR_ID_DTCNT_WLAN_SCAN_RESULT,
#ifdef __WIFI_WIZARD_SUPPORT__
GetRootTitleIcon(MAIN_MENU_WLAN_WIZARD_MENUID),
#else
GetRootTitleIcon(MENU_ID_WLAN_MAIN),
#endif
STR_GLOBAL_OPTIONS,
IMG_GLOBAL_OPTIONS,
STR_GLOBAL_BACK,
IMG_GLOBAL_BACK,
ap_list_num,
subMenuDataPtrs,
(U16*) icon_list,
iconStates,
g_wlan_display_context.wizard_cur_profile_list_index,
guiBuffer,
ICON_TEXT_ICON);
if (g_wlan_display_context.wizard_list_option == WLAN_MATCH_SE_SA_C ||
g_wlan_display_context.wizard_list_option == WLAN_MATCH_SA_C)
{
ChangeCenterSoftkey(0, IMG_GLOBAL_COMMON_CSK);
SetCenterSoftkeyFunction(mmi_wlan_entry_network_disconnect, KEY_EVENT_UP);
}
else
{
ChangeCenterSoftkey(0, IMG_GLOBAL_COMMON_CSK);
SetCenterSoftkeyFunction(mmi_wlan_entry_wizard_connect, KEY_EVENT_UP);
}
SetLeftSoftkeyFunction(mmi_wlan_entry_wizard_list_opt, KEY_EVENT_UP);
}
else
{
ShowCategory73Screen(
STR_ID_DTCNT_WLAN_SCAN_RESULT,
#ifdef __WIFI_WIZARD_SUPPORT__
GetRootTitleIcon(MAIN_MENU_WLAN_WIZARD_MENUID),
#else
GetRootTitleIcon(MENU_ID_WLAN_MAIN),
#endif
0,
0,
STR_GLOBAL_BACK,
IMG_GLOBAL_BACK,
ap_list_num,
subMenuDataPtrs,
(U16*) icon_list,
iconStates,
g_wlan_display_context.wizard_cur_profile_list_index,
guiBuffer,
ICON_TEXT_ICON);
}
}
修改成:
else
{
ShowCategory73Screen(
STR_ID_DTCNT_WLAN_SCAN_RESULT,
#ifdef __WIFI_WIZARD_SUPPORT__
GetRootTitleIcon(MAIN_MENU_WLAN_WIZARD_MENUID),
#else
GetRootTitleIcon(MENU_ID_WLAN_MAIN),
#endif
STR_GLOBAL_OPTIONS,
IMG_GLOBAL_OPTIONS,
STR_GLOBAL_BACK,
IMG_GLOBAL_BACK,
ap_list_num,
subMenuDataPtrs,
(U16*) icon_list,
iconStates,
g_wlan_display_context.wizard_cur_profile_list_index,
guiBuffer,
ICON_TEXT_ICON);
if (g_wlan_display_context.wizard_list_option == WLAN_MATCH_SE_SA_C ||
g_wlan_display_context.wizard_list_option == WLAN_MATCH_SA_C)
{
ChangeCenterSoftkey(0, IMG_GLOBAL_COMMON_CSK);
SetCenterSoftkeyFunction(mmi_wlan_entry_network_disconnect, KEY_EVENT_UP);
}
else
{
ChangeCenterSoftkey(0, IMG_GLOBAL_COMMON_CSK);
SetCenterSoftkeyFunction(mmi_wlan_entry_wizard_connect, KEY_EVENT_UP);
}
SetLeftSoftkeyFunction(mmi_wlan_entry_wizard_list_opt, KEY_EVENT_UP);
}
3. 在mmi_wlan_entry_wizard_list_opt这个函数里:
void mmi_wlan_entry_wizard_list_opt(void)
{
.................
g_wlan_display_context.insert_mode = FALSE;
if(g_wlan_display_context.ap_list_num > 0)
{
switch(g_wlan_display_context.wizard_list_option)
//以下保持不变
...........................
}
else
{
wlan_menu_cui_id = cui_menu_create(
wlan_parent_group_id,
CUI_MENU_SRC_TYPE_RESOURCE,
CUI_MENU_TYPE_OPTION,
MENU_ID_WLAN_WIZARD_LIST_OPT_ld,
MMI_TRUE,
NULL);
}
cui_menu_run(wlan_menu_cui_id);
}
1. 在\plutommi\mmi\DataAccount\DataAccountRes找到Dataaccount.res,
在Menu Resource Area的最后,添加一个MENU ID:
<MENU id="MENU_ID_WLAN_WIZARD_LIST_OPT_ld" type="OPTION" str="STR_GLOBAL_OPTIONS">
<MENUITEM_ID>MENU_ID_WLAN_WIZARD_LIST_OPT_OFF</MENUITEM_ID>
</MENU>
#endif
2. 在DataAccountUI.c --> mmi_wlan_entry_new_wizard_list() 找到这个函数的后面一部份:
else
{
if (ap_list_num)
{
ShowCategory73Screen(
STR_ID_DTCNT_WLAN_SCAN_RESULT,
#ifdef __WIFI_WIZARD_SUPPORT__
GetRootTitleIcon(MAIN_MENU_WLAN_WIZARD_MENUID),
#else
GetRootTitleIcon(MENU_ID_WLAN_MAIN),
#endif
STR_GLOBAL_OPTIONS,
IMG_GLOBAL_OPTIONS,
STR_GLOBAL_BACK,
IMG_GLOBAL_BACK,
ap_list_num,
subMenuDataPtrs,
(U16*) icon_list,
iconStates,
g_wlan_display_context.wizard_cur_profile_list_index,
guiBuffer,
ICON_TEXT_ICON);
if (g_wlan_display_context.wizard_list_option == WLAN_MATCH_SE_SA_C ||
g_wlan_display_context.wizard_list_option == WLAN_MATCH_SA_C)
{
ChangeCenterSoftkey(0, IMG_GLOBAL_COMMON_CSK);
SetCenterSoftkeyFunction(mmi_wlan_entry_network_disconnect, KEY_EVENT_UP);
}
else
{
ChangeCenterSoftkey(0, IMG_GLOBAL_COMMON_CSK);
SetCenterSoftkeyFunction(mmi_wlan_entry_wizard_connect, KEY_EVENT_UP);
}
SetLeftSoftkeyFunction(mmi_wlan_entry_wizard_list_opt, KEY_EVENT_UP);
}
else
{
ShowCategory73Screen(
STR_ID_DTCNT_WLAN_SCAN_RESULT,
#ifdef __WIFI_WIZARD_SUPPORT__
GetRootTitleIcon(MAIN_MENU_WLAN_WIZARD_MENUID),
#else
GetRootTitleIcon(MENU_ID_WLAN_MAIN),
#endif
0,
0,
STR_GLOBAL_BACK,
IMG_GLOBAL_BACK,
ap_list_num,
subMenuDataPtrs,
(U16*) icon_list,
iconStates,
g_wlan_display_context.wizard_cur_profile_list_index,
guiBuffer,
ICON_TEXT_ICON);
}
}
修改成:
else
{
ShowCategory73Screen(
STR_ID_DTCNT_WLAN_SCAN_RESULT,
#ifdef __WIFI_WIZARD_SUPPORT__
GetRootTitleIcon(MAIN_MENU_WLAN_WIZARD_MENUID),
#else
GetRootTitleIcon(MENU_ID_WLAN_MAIN),
#endif
STR_GLOBAL_OPTIONS,
IMG_GLOBAL_OPTIONS,
STR_GLOBAL_BACK,
IMG_GLOBAL_BACK,
ap_list_num,
subMenuDataPtrs,
(U16*) icon_list,
iconStates,
g_wlan_display_context.wizard_cur_profile_list_index,
guiBuffer,
ICON_TEXT_ICON);
if (g_wlan_display_context.wizard_list_option == WLAN_MATCH_SE_SA_C ||
g_wlan_display_context.wizard_list_option == WLAN_MATCH_SA_C)
{
ChangeCenterSoftkey(0, IMG_GLOBAL_COMMON_CSK);
SetCenterSoftkeyFunction(mmi_wlan_entry_network_disconnect, KEY_EVENT_UP);
}
else
{
ChangeCenterSoftkey(0, IMG_GLOBAL_COMMON_CSK);
SetCenterSoftkeyFunction(mmi_wlan_entry_wizard_connect, KEY_EVENT_UP);
}
SetLeftSoftkeyFunction(mmi_wlan_entry_wizard_list_opt, KEY_EVENT_UP);
}
3. 在mmi_wlan_entry_wizard_list_opt这个函数里:
void mmi_wlan_entry_wizard_list_opt(void)
{
.................
g_wlan_display_context.insert_mode = FALSE;
if(g_wlan_display_context.ap_list_num > 0)
{
switch(g_wlan_display_context.wizard_list_option)
//以下保持不变
...........................
}
else
{
wlan_menu_cui_id = cui_menu_create(
wlan_parent_group_id,
CUI_MENU_SRC_TYPE_RESOURCE,
CUI_MENU_TYPE_OPTION,
MENU_ID_WLAN_WIZARD_LIST_OPT_ld,
MMI_TRUE,
NULL);
}
cui_menu_run(wlan_menu_cui_id);
}