⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu.c

📁 EVD测试仪开发源码含测试图片及部分GUI开发源码
💻 C
📖 第 1 页 / 共 3 页
字号:
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunDataSearchOnOk(void)
{
	struct StpLabelBlk_Int* pTmp;
	FLP32 sTmp;
	

	pTmp=(struct StpLabelBlk_Int*)p_S_L_B;
	
	if(FlashPacketDatRd(&DatForStore,pTmp->Dat_Temp) && pTmp->Dat_Temp)
	{
		GUI_ClearRect(3, 124, 16, 43);

		GUI_DispLine_("时间", 7, 28);
		Gui_CharacterStyle_Set7_4();
		RefreshTime_YYMMDD(&(DatForStore.MeasureTime), 7, 35);
		RefreshTime_HHMMSS(&(DatForStore.MeasureTime), 7, 42);

		
		GUI_DispLine_("位移", 47, 28);
		Gui_CharacterStyle_Set12_6();
		sTmp=(DatForStore.s[0]+DatForStore.s[1]+DatForStore.s[2])/3;
		GUI_DisFloatData(sTmp, 47, 42, "%.3f");
		
		GUI_DispLine_("动模", 87, 28);
		GUI_DisFloatData(22.5/sTmp, 87, 42, "%.3f");
		Display();
	}
	else
	{
		GUI_ClearRect(3, 124, 16, 43);
		GUI_DispLine_("无效", 51, 38);
		Display();
	}
}


/*********************************************************************
	Description:选择清除OK
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunDataClearSelOnOk(void)
{
	struct StpLabelBlk_Int* pTmp;

	pTmp=(struct StpLabelBlk_Int*)p_S_L_B;

	GUI_ClearRect(3, 124, 16, 43);

	if(FlashPacketDatDel(pTmp->Dat_Temp) &&pTmp->Dat_Temp)
	{
		GUI_DispLine_("清除成功", 40, 38);
	}
	else
	{
		GUI_DispLine_("无效", 51, 38);
	}
	Display();
}


/*********************************************************************
	Description:进入清除所有
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunDataClearAllEnter(void)
{
	CursorLocationPush(CursorLocation);
	FocusIndex=MenuTable[FocusIndex].KeyOkIndex;
	GUI_ClearRect(2,	 124, 1, 43);
	GUI_DispLine_(MenuTable[FocusIndex].p_Text, 30, 20);
	ExpFunBtnRedraw5();
	Display();
}


/*********************************************************************
	Description:选择打印OK
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunDataPrintSelOnOk(void)
{
	struct StpLabelBlk_Int *pTmp;

	pTmp=(struct StpLabelBlk_Int *)p_S_L_B;

	GUI_ClearRect(3, 124, 16, 43);

	if(!pTmp->Dat_Temp)
	{
		GUI_DispLine_("无效", 51, 38);
	}
	else
	{
		if(!Print(pTmp->Dat_Temp))
		{
			GUI_DispLine_("无效", 51, 38);
		}
		else
		{
			GUI_DispLine_("打印成功", 40, 38);
		}
	}
	Display();
}


/*********************************************************************
	Description:清除所有OK
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunDataClearAllOnOk(void)
{
	FlashPacketDatDelAll();
	GUI_DispLine_("清除成功", 40, 38);
	Display();
	//CursorLocation=CursorLocationPop();
	//ExpFunBtnRedraw2();
}



/*********************************************************************
	Description:进入打印所有
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunDataPrintAllEnter()
{
	CursorLocationPush(CursorLocation);
	FocusIndex=MenuTable[FocusIndex].KeyOkIndex;
	GUI_ClearRect(2,	 124, 1, 43);
	GUI_DispLine_(MenuTable[FocusIndex].p_Text, 17, 30);
	ExpFunBtnRedraw6();
	Display();
}


/*********************************************************************
	Description:打印所有OK
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunDataPrintAllOnOk(void)
{
	FlagPrintAll=1;
}


/*********************************************************************
	Description:打印所有终止
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunDataPrintAllOnPre(void)
{
	FlagPrintAll=0;
	PrintPos=0;
}


/*********************************************************************
	Description:设置打印模式
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunPrintModeSetEnter(void)
{
	CursorLocationPush(CursorLocation);
	FocusIndex=MenuTable[FocusIndex].KeyOkIndex;
	GUI_ClearRect(2,	 124, 1, 43);
	CreateStpLable_Logic(MenuTable[FocusIndex].p_Text, &SysPara.PrintMode, 28, 20, 40, 40);
	ExpFunBtnRedraw4();
	Display();
}


/*********************************************************************
	Description:打印模式设置OK
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunPrintModeSetOnOk(void)
{
	struct StpLabelBlk_Int *pTmp;

	pTmp=(struct StpLabelBlk_Int *)p_S_L_B;
	
	SysPara.PrintMode=pTmp->Dat_Temp;
	FlashPacketSysWr(&SysPara);
	
	OnOK_Logic();
	CursorLocation=CursorLocationPop();
	ExpFunBtnRedraw2();
}


/*********************************************************************
	Description:测试开始
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunMainOnPre(void)
{
	FlagIdleMode=0;
	DrawFlash(2);
	Display();
	AdStart();
	if(ExperimentStep==4)
	{
		DrawSampleData(0);
		ExperimentStep=1;
	}
}


/*********************************************************************
	Description:测试复位
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunMainOnNxt(void)
{
	FlagIdleMode=1;
	DrawFlash(1);
	DrawSampleData(0);
	ExperimentStep=1;
}


/*********************************************************************
	Description:打印
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunMainOnQuit(void)
{
	Print(SysPara.CrtStoreIndex-1);
}


/*********************************************************************
	Description:进入系统复位
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunSysResetEnter(void)
{
	CursorLocationPush(CursorLocation);
	FocusIndex=MenuTable[FocusIndex].KeyOkIndex;
	GUI_ClearRect(2,	 124, 1, 43);
	GUI_DispLine_(MenuTable[FocusIndex].p_Text, 40, 30);
	ExpFunBtnRedraw5();
	Display();
}


/*********************************************************************
	Description:进入核对密码
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunCodeCheckEnter(void)
{
	TIMER0_CLOSE;
	FlagTimeRefresh=0;
	FlagIdleMode=0;
	ExpFunBtnRedraw3();
	CursorLocationPush(CursorLocation);
	FocusIndex=1;
	CursorLocation=0;
	DataSetTmp=0x00;
	
	GUI_ClearRect(0,	 127,	 0,	 46);
	GUI_DrawRect(1,	 125,	 0,	 44);
	GUI_DrawHLine(2,	 126,	 45);
	GUI_DrawVLine(1,	 45,	 126);
	Gui_CharacterStyle_Set12_6();
	CreateStpLabel_Int(MenuTable[1].p_Text, 22, 20, &DataSetTmp, 52, 40, 4);
	Display();
}


/*********************************************************************
	Description:密码核对
	
	Input:
	
	Output:

	Return:

	Gloable:	

	Calls:

	Called By:

	Others:

	Modify Record:
	
*********************************************************************/
void ExpFunCodeCheckOnOk(void)
{
	struct StpLabelBlk_Int *pTmp;

	pTmp=(struct StpLabelBlk_Int *)p_S_L_B;

	if(pTmp->Dat_Temp==SysPara.SysCode)
	{
		FocusIndex=MenuTable[FocusIndex].KeyOkIndex;
		CursorLocationPush(CursorLocation);
		CursorLocation=0;
		ExpFunBtnRedraw2();
		DrawMenu(FocusIndex);
	}
	else
	{

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -