/***************************************************************************** * FUNCTION * mmi_netset_set_user_ctrl_plmn_add_inline_editor * DESCRIPTION * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void mmi_netset_set_user_ctrl_plmn_add_inline_editor(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ memset(gUserCtrlPlmnList.PlmnAddNumber, 0, (MAX_PLMN_LEN + 1) * ENCODING_LENGTH); memset(gUserCtrlPlmnList.PlmnAddString, 0, MAX_LENGTH_DISPLAY_NAME * ENCODING_LENGTH); if (!IsScreenPresent(SCR_ID_NETSET_USER_CTRL_PLMN_LIST)) { mmi_asc_to_ucs2((S8*) gUserCtrlPlmnList.PlmnAddNumber, (S8*) gPLMN); } SetInlineItemActivation(&wgui_inline_items[0], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0); SetInlineItemCaption(&wgui_inline_items[0], (PU8) GetString(STR_ID_NETSET_PRR_MCC_CAPTION)); SetInlineItemActivation(&wgui_inline_items[1], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0); SetInlineItemTextEdit( &wgui_inline_items[1], (PU8) gUserCtrlPlmnList.PlmnAddNumber, MAX_PLMN_LEN + 1, INPUT_TYPE_NUMERIC); //SetInlineItemFullWidth(&wgui_inline_items[1]); EnableInlineItemBoundary(&wgui_inline_items[1]); DisableInlineItemHighlight(&wgui_inline_items[1]); SetInlineItemActivation(&wgui_inline_items[2], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0); SetInlineItemCaption(&wgui_inline_items[2], (PU8) GetString(STR_ID_NETSET_OP_NAME_CAPTION)); SetInlineItemActivation(&wgui_inline_items[3], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0); SetInlineItemTextEdit( &wgui_inline_items[3], (PU8) gUserCtrlPlmnList.PlmnAddString, MAX_LENGTH_DISPLAY_NAME, INPUT_TYPE_ALPHANUMERIC_LOWERCASE | INPUT_TYPE_USE_ONLY_ENGLISH_MODES); #if defined(__MMI_TOUCH_SCREEN__) SetInlineTextEditCustomFunction(&wgui_inline_items[3], mmi_phb_op_email_custom_function); #endif //SetInlineItemFullWidth(&wgui_inline_items[3]); EnableInlineItemBoundary(&wgui_inline_items[3]); DisableInlineItemHighlight(&wgui_inline_items[3]); #if 0 /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ #endif }
/************************************************************** FUNCTION NAME : FillFdlInlineEditStruct(void) PURPOSE : Fill Inline Edit structs. INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void Author : Vanita Jain **************************************************************/ void FillFdlInlineEditStruct(void) { SetInlineItemActivation(&gpFDLBDLContext->FDLBDLInlineDisplay[0],KEY_LSK,KEY_EVENT_UP); SetInlineItemFullScreenEdit(&gpFDLBDLContext->FDLBDLInlineDisplay[0],STR_SETTING_FDL_NAME,MAIN_MENU_TITLE_SETTINGS_ICON,(PU8)gpFDLBDLContext->FDLBDLName, (14 + 1) ,INPUT_TYPE_ALPHANUMERIC_UPPERCASE | INPUT_TYPE_USE_ENCODING_BASED_LENGTH | INPUT_TYPE_ONE_LESS_CHARACTER); SetInlineFullScreenEditCustomFunction(&gpFDLBDLContext->FDLBDLInlineDisplay[0], SettingInlineCustomFunction); SetInlineItemActivation(&gpFDLBDLContext->FDLBDLInlineDisplay[1], INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT, 0); SetInlineItemTextEdit(&gpFDLBDLContext->FDLBDLInlineDisplay[1], (PU8)gpFDLBDLContext->FDLBDLNumber, MAX_PB_NUMBER_LENGTH+1, INPUT_TYPE_PHONE_NUMBER|INPUT_TYPE_PLUS_CHARACTER_HANDLING ); DisableInlineItemHighlight(&gpFDLBDLContext->FDLBDLInlineDisplay[1]); }
/***************************************************************************** * FUNCTION * SpofFillInlineEditStruct * DESCRIPTION * Initialize inline editor structure * PARAMETERS * None. * RETURNS * None. * GLOBALS AFFECTED * External global *****************************************************************************/ void SpofFillInlineEditStruct(void) { S8 dummyString[12]; /* initialize string resource for inline selection */ g_spof_cntx.ActStateList[0] = GetString(SPOF_DISABLE_STRINGID); g_spof_cntx.ActStateList[1] = GetString(SPOF_ENABLE_STRINGID); g_spof_cntx.OnOffStateList[0] = GetString(STR_MENU_SETTING_SCH_POW_SET1_POW_ON); g_spof_cntx.OnOffStateList[1] = GetString(STR_MENU_SETTING_SCH_POW_SET1_POW_OFF); g_spof_cntx.CurrHiliteOnOff = g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Type; g_spof_cntx.CurrHiliteActivation= g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Status; /* hour buffer */ sprintf(dummyString,"%02d",g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Hour); AnsiiToUnicodeString(g_spof_cntx.HourBuf,dummyString); /* minute buffer */ sprintf(dummyString,"%02d",g_spof_cntx.SPOFList[g_spof_cntx.CurrItem].Min); AnsiiToUnicodeString(g_spof_cntx.MinBuf,dummyString); /* caption */ SetInlineItemCaption(&wgui_inline_items[0],(PU8)GetString(SPOF_STATUS_STRINGID)); /* activate/inactivate */ SetInlineItemActivation(&wgui_inline_items[1],INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT,0); SetInlineItemSelect(&wgui_inline_items[1],SPOF_NUM_STATES_ACTINACT,(U8**)g_spof_cntx.ActStateList,&g_spof_cntx.CurrHiliteActivation); /* power on/off */ SetInlineItemActivation(&wgui_inline_items[2],INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT,0); DisableInlineItemHighlight(&wgui_inline_items[2]); SetInlineItemSelect(&wgui_inline_items[2],SPOF_NUM_STATES_ONOFF,(U8**)g_spof_cntx.OnOffStateList,&g_spof_cntx.CurrHiliteOnOff); /* time */ SetInlineItemActivation(&wgui_inline_items[3],INLINE_ITEM_ACTIVATE_WITHOUT_KEY_EVENT,0); SetInlineItemTime(&wgui_inline_items[3],(U8*)g_spof_cntx.HourBuf,(U8*)g_spof_cntx.MinBuf,NULL,AlmTimeEditorCallBack/*SOPFTimeEditorCallBack*/); DisableInlineItemHighlight(&wgui_inline_items[3]); }