void HightlightShowMTPNPHelpInfo(void) { change_left_softkey(STR_GLOBAL_OK, 0); redraw_left_softkey(); SetLeftSoftkeyFunction(EntryShowMTPNPHelpInfo, KEY_EVENT_UP); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); }
/*! * \brief 更新左右软键盘显示状态 * \param * \return * \note * \author weizhiping * \date 2010年2月5日 */ void GBInputBox_UpdateSoftKeyLabel(void) { PEngineOutputInfo pEngineOutputInfo = CLayoutControl_GetEngineOutputInfo(); // 引擎处理状态 if (pEngineOutputInfo->bCandWindOpen) { // 左软键显示为【选择】 set_left_softkey_label(get_string(STR_GLOBAL_SELECT)); // 输入框为空 && 输入法引擎有内容, 右软键显示为【清除】 if(GBInputBox_InputBoxIsEmtpy() && !pEngineOutputInfo->bInputEmpty) { set_right_softkey_label((UI_string_type) get_string(STR_GLOBAL_CLEAR)); } } else // 平台处理状态 { UI_string_type pLeftSoftkeyLabel = GBInputBox_GetPlatformLeftSoftkeyLabel(); UI_string_type pRightSoftkeyLabel = GBInputBox_GetPlatformRightSoftkeyLabel(); // 左软键显示为平台应用刚进入编辑界面时设置的标签(如无则默认为【选项】) if (pLeftSoftkeyLabel != NULL) { set_left_softkey_label(pLeftSoftkeyLabel); } else { set_left_softkey_label(get_string(STR_GLOBAL_OPTIONS)); } // 输入框内容为空, 右软键显示为平台应用刚进入编辑界面时设置的标签(如无则默认为【返回】) if(GBInputBox_InputBoxIsEmtpy()) { if (pRightSoftkeyLabel != NULL) { set_right_softkey_label(pRightSoftkeyLabel); } else { set_right_softkey_label(get_string(STR_GLOBAL_BACK)); } } else // 不为空右软键显示为【清除】 { set_right_softkey_label(get_string(STR_GLOBAL_CLEAR)); } } // 重绘左软键 set_left_softkey_icon(NULL); wgui_hide_left_softkey(); redraw_left_softkey(); // 重绘右软键 set_right_softkey_icon(NULL); wgui_hide_right_softkey(); redraw_right_softkey(); }
/*! * \brief 重绘左软键 * \param void * \return void */ void GBInputBox_RedrawLeftSoftKey(void) { #if __MTK__ > 0 redraw_left_softkey(); #endif // __MTK__ }