📄 keyprocess.cpp
字号:
#include <vcl.h>
#include "math.h"
#include "stdlib.h"
#include "Sim_Valve.h"
//功能键功能模块
void TMainForm::Key_Func_Process()
{
if(m_Work_State==0) //工作状态
{
Work_Func_Key();
}
else if(m_Work_State==1) //组态设定状态时
{
Set_Func_Key();
}
else if(m_Work_State==2) //诊断状态时
{
Check_Func_Key();
}
}
//功能键接5秒功能,单片机需修改,加上FuncKeyProcess()中
void TMainForm::Key_Func5s_Process()
{
if(m_Auto_Init==1)
{
Set_Auto_Init_Stop();
}
else
{
if(m_Work_State==0) //当前工作状态,0:工作,1,设定
{ //进入设定状态
Set_Start();
}
else //前为设定状态,转成工作状态
{
Parm_Save(); //存贮工作参数
Set_Save(); //存贮设定参数
Check_Data_Save();
//进入工作状态
Work_Start();
}
}
}
void TMainForm::Key_FuncSub_Process()
{
if(m_Work_State==1) //设定状态时
{
Set_FuncAndMenu_Key();
}
else if(m_Work_State==2) //诊断状态时
{
Check_FuncAndSub_Key();
}
}
void TMainForm::Key_Sub_Process()
{
if(m_Work_State==1)
{
Set_Sub_Key();
}
else
{
Work_Sub_Key();
}
}
void TMainForm::Key_Add_Process()
{
if(m_Work_State==1)
{
Set_Add_Key();
}
else
{
Work_Add_Key();
}
}
void TMainForm::Key_Add5s_Process()
{
if(m_Work_State==1)
Set_Add5s_Key();
else if(m_Work_State==2) //诊断状态时
Check_Add5s_Key();
}
//---------------------------------------------------------------------------
void TMainForm::Key_FuncSubAdd_Process()
{
if(m_Work_State==0) //当前工作状态,0:工作,1,设定
{ //进入设定状态
Check_Start();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -