Exemplo n.º 1
0
void EntryEmSockePingMenu(void)
{
	U8* inputBuffer;     //added for inline edit history
	U8* guiBuffer;       /* Buffer holding history data */
	U16 inputBufferSize;
	
	EntryNewScreen(EM_GPRS_PING_MENUID, ExitEmSocketPingMenu, NULL, NULL);

     EmSocketAppPingInit();
     EmPingInitInlinParam();
	InitializeCategory57Screen();
	DisableCategory57ScreenDone();
     EmPingFillInlineStruct();
	SetParentHandler(0);
	guiBuffer = GetCurrGuiBuffer(EM_GPRS_PING_MENUID);
	inputBuffer = GetCurrNInputBuffer (EM_GPRS_PING_MENUID, &inputBufferSize );    //added for inline edit history
	if(inputBuffer != NULL)		
		SetCategory57Data(EmPingInlineItem, EM_MAX_INLINE_ITEM_LIST, inputBuffer);	

	ShowCategory57Screen(EM_GPRS_PING_TEXT, EM_GPRS_PING_ICON,
						 STR_GLOBAL_OK, ENGINEER_MODE_LSK_ICON,
						 STR_GLOBAL_BACK, ENGINEER_MODE_RSK_ICON,
						 EM_MAX_INLINE_ITEM_LIST,
						 NULL,
						 EmPingInlineItem,
						 0,
						 guiBuffer);
	
	SetCategory57RightSoftkeyFunctions(EmPingCheckParam,GoBackHistory);
	SetCategory57LeftSoftkeyFunction(EmPingCheckParam);
	
}
Exemplo n.º 2
0
/*****************************************************************************
* FUNCTION
*	EntrySpofEdit
* DESCRIPTION
*   Entry function of inline editor screen of schedule power on off
* PARAMETERS
*	None.
* RETURNS
*	None.
* GLOBALS AFFECTED
*	None
*****************************************************************************/
void EntrySpofEdit(void)
{
	U8* guiBuffer;
	U8* inputBuffer;			//added for inline edit history
	U16 inputBufferSize;		//added for inline edit history
	U16 spof_icon_list[] = {SPOF_SETTING_STATUS_IMAGEID, 0, SPOF_TYPEPOWERON_IMAGEID,	IMG_TIME};

	EntryNewScreen(SCR_ID_SPOF_EDITOR, ExitSpofEdit, NULL, NULL);
	guiBuffer = GetCurrGuiBuffer(SCR_ID_SPOF_EDITOR);
	InitializeCategory57Screen();
	SpofFillInlineEditStruct();

	inputBuffer = GetCurrNInputBuffer (SCR_ID_SPOF_EDITOR, &inputBufferSize );    //added for inline edit history
	if(inputBuffer != NULL)
		SetCategory57Data(wgui_inline_items, NUM_ITEM_EDIT_SCREEN, inputBuffer);

	RegisterHighlightHandler(HighlightSPOFInlineItem);
	ShowCategory57Screen(SPOF_EDIT_TITLE_STRINGID,IMG_SCR_SETTING_CAPTION,
		STR_GLOBAL_OK,IMG_GLOBAL_OK,STR_GLOBAL_BACK, 
		IMG_GLOBAL_BACK,NUM_ITEM_EDIT_SCREEN,spof_icon_list,
		wgui_inline_items,0,guiBuffer);

	DisableCategory57ScreenDone();

	SetCategory57RightSoftkeyFunctions(SpofSaveData,GoBackHistory);
}
Exemplo n.º 3
0
/*****************************************************************************
* FUNCTION
*	EntryBMIInputScreen
* DESCRIPTION
*   Display inline editor screen for entering gender, height, and weight
* PARAMETERS
*	None
* RETURNS
*	None
* GLOBALS AFFECTED
*	None
*****************************************************************************/
void EntryBMIInputScreen(void) 
{
	U8 *guiBuffer;
	U8* inputBuffer;                       //added for inline edit history
	U16 inputBufferSize;                //added for inline edit history
	U16 BMIImageList[6] = {0,0,0,0,0,0};

	//to malloc memory
	if(g_bmi_cntx == NULL)
	{
		g_bmi_cntx = OslMalloc(sizeof(bmi_context_struct));
		memset(g_bmi_cntx, 0, sizeof(bmi_context_struct));
	}		
	//
	
	EntryNewScreen(SCR_BMI_INPUT, ExitBMIInputScreen, NULL, NULL);
	SetDelScrnIDCallbackHandler(SCR_BMI_INPUT, (HistoryDelCBPtr)BmiExit);

	InitializeCategory57Screen();							

	guiBuffer = GetCurrGuiBuffer(SCR_BMI_INPUT);

	BMIFillInlineStruct();

	RegisterHighlightHandler(HighlightBMIInlineEditor);

	if(g_bmi_cntx->Gender == 0)
		BMIImageList[ENUM_GENDER] = IMG_BMI_BLUE_FLOWER;
	else
		BMIImageList[ENUM_GENDER] = IMG_BMI_RED_FLOWER;

	inputBuffer = GetCurrNInputBuffer(SCR_BMI_INPUT, &inputBufferSize);    //added for inline edit history
	
	if(inputBuffer!=NULL)                                            //added for inline edit history
		SetCategory57Data(wgui_inline_items, ENUM_INLINE_TOTAL, inputBuffer);//sets the data 

 	DisableCategory57ScreenDone();
 	
 	#ifdef __MMI_SLIM_LISTMENU_NUMBER__ 
 		wgui_override_list_menu_slim_style(WGUI_LIST_MENU_SLIM_STYLE_DRAW_ICON);
 	#endif
 
	 
 	//Category57AppendTopImage(IMG_BMI_WELCOME_SCREEN, TRUE);
 	 
	ShowCategory57Screen(STR_BMI_INPUT_CAPTION,GetRootTitleIcon(ORGANIZER_HEALTH_MENU), 
	                     STR_GLOBAL_OK, IMG_GLOBAL_OK, 
	                     STR_GLOBAL_BACK, IMG_GLOBAL_BACK, 
						 ENUM_INLINE_TOTAL, 
						 BMIImageList,
						 wgui_inline_items, 
						 g_bmi_cntx->CurrHilite, 
						 guiBuffer);
 
	SetCategory57RightSoftkeyFunctions(BmiComputeResult, GoBackHistory);

}
Exemplo n.º 4
0
/**************************************************************

	FUNCTION NAME		: EntrySECSETFDNDetails(void)
  	PURPOSE				: Entry screen to add FDL entry.
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void EntrySECSETFDNDetails(void)
{
	U16 nNumofItem;      /* Stores no of children in the submenu*/
//micha1229
//	U16 nDispAttribute;  /* Stores display attribue */
	U8* guiBuffer;       /* Buffer holding history data */
	U16	ItemIcons[2];
	U8* inputBuffer;                       //added for inline edit history
	U16 inputBufferSize;                //added for inline edit history
	mmi_trace(1, TSTXT("EntrySECSETFDNDetails"));
	if((gpFDLBDLContext->FDNBDNCount == (U16)gpFDLBDLContext->MaxFDL ||gpFDLBDLContext->FDNBDNCount == MAX_SIM_ENTRIES)  &&( gpFDLBDLContext->FDNBDNEdit == FALSE))
	{
		DisplayPopup((U8*)GetString(STR_SETTING_STORAGE_FULL),IMG_GLOBAL_WARNING,0,ST_NOTIFYDURATION,(U8)WARNING_TONE);
	}
	else
	{
		EntryNewScreen(SCR_ID_SECSET_FDN_DETAILS, ExitSECSETFDNDetails, NULL, NULL);

		guiBuffer = GetCurrGuiBuffer(SCR_ID_SECSET_FDN_DETAILS);
		inputBuffer = GetCurrNInputBuffer ( SCR_ID_SECSET_FDN_DETAILS, &inputBufferSize );    //added for inline edit history

		nNumofItem = GetNumOfChild(MENU8234_FDL_VIEW_OPTIONS_ADD);
		
//		nDispAttribute = GetDispAttributeOfItem(MENU8234_FDL_VIEW_OPTIONS_ADD);

		GetSequenceImageIds(MENU8234_FDL_VIEW_OPTIONS_ADD,ItemIcons);

		InitializeCategory57Screen();
		RegisterHighlightHandler(mmi_EntrySECSETFDNDetails_hdlr);

		FillFdlInlineEditStruct();

		if(inputBuffer!=NULL)                                            //added for inline edit history
			SetCategory57Data(gpFDLBDLContext->FDLBDLInlineDisplay, nNumofItem, inputBuffer);//sets the data 

		ShowCategory57Screen(STR_SETTING_FDL_EDIT_ENTRY,MAIN_MENU_TITLE_SETTINGS_ICON,
							STR_EDIT,IMG_GLOBAL_OK,
							STR_DONE, IMG_GLOBAL_BACK,
							nNumofItem,ItemIcons,gpFDLBDLContext->FDLBDLInlineDisplay,
							0,guiBuffer);
	#if defined(__MMI_GB__)
		mmi_frm_set_highlight_handler();
		GBSetInputboxLSKFunction(EntryScrForInputMethodAndDone); 
	#endif
		SetCategory57RightSoftkeyFunctions( PreNewFdlEntryReq, GoBackHistory);
		mmi_trace(1, TSTXT("SCR_ID_SECSET_FDN_DETAILS"));
	}
}
Exemplo n.º 5
0
/*****************************************************************************
 * FUNCTION
 *  mmi_netset_entry_user_ctrl_plmn_add_data
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_netset_entry_user_ctrl_plmn_add_data(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *guiBuffer;          /* Buffer holding history data */
    U8 *inputBuffer;        /* added for inline edit history */
    U16 inputBufferSize;    /* added for inline edit history */
    U16 IconList[] = {IMG_GLOBAL_L1, 0, IMG_GLOBAL_L2, 0};

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_ID_NETSET_USER_CTRL_PLMN_ADD, mmi_netset_exit_user_ctrl_plmn_add_data, NULL, NULL);

    guiBuffer = GetCurrGuiBuffer(SCR_ID_NETSET_USER_CTRL_PLMN_ADD);
    inputBuffer = GetCurrNInputBuffer(SCR_ID_NETSET_USER_CTRL_PLMN_ADD, &inputBufferSize);      /* added for inline edit history */

    InitializeCategory57Screen();
    mmi_netset_set_user_ctrl_plmn_add_inline_editor();

    if (inputBuffer != NULL)
    {
        SetCategory57Data(wgui_inline_items, 4, inputBuffer);
    }

    ClearHighlightHandler();

    if (IsScreenPresent(SCR_ID_NETSET_USER_CTRL_PLMN_LIST))
    {
        ShowCategory57Screen(
            STR_GLOBAL_ADD,
            MAIN_MENU_TITLE_SETTINGS_ICON,
            STR_GLOBAL_OK,
            IMG_GLOBAL_OK,
            STR_GLOBAL_BACK,
            IMG_GLOBAL_BACK,
            4,
            IconList,
            wgui_inline_items,
            1,
            guiBuffer);
    }
    else
    {
        ShowCategory57Screen(
            STR_GLOBAL_ADD,
            MAIN_MENU_TITLE_SETTINGS_ICON,
            STR_GLOBAL_OK,
            IMG_GLOBAL_OK,
            STR_GLOBAL_BACK,
            IMG_GLOBAL_BACK,
            4,
            IconList,
            wgui_inline_items,
            3,
            guiBuffer);
    }

    SetCategory57RightSoftkeyFunctions(mmi_netset_save_user_ctrl_plmn_confirm, GoBackHistory);

    DeleteScreenIfPresent(SCR_ID_NETSET_UNKNOWN_PLMN_MSG);
}