You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

349 lines
24 KiB
C++

#include "StdAfx.h"
#include "LanguageMgr.h"
#include "Propertie.h"
#include "PropertieMgr.h"
#include "AuthorityMgr.h"
#include "GlobalFunction.h"
#include "LogMgr.h"
#include "FileMgr.h"
#include "MyDlgView.h"
#define LANGUAGE_PARA_FILE _T("\\Language.bin")
CLanguageMgr *gLanguageMgr = new CLanguageMgr;
CLanguageMgr::CLanguageMgr(void)
{
m_bEnglishMode = false;//英文模式
}
CLanguageMgr::~CLanguageMgr(void)
{
}
CMFCPropertyGridProperty *CLanguageMgr::CreatGridProperty()
{
CString PropertyName;//属性名称
CString Description;//描述
CString Path = GetParDirName();//存储路径
CString Name;
CString GroupName;
CString ModuleName;
//-------------------------------------------------------------------------------//
PropertyName = _T("语言");
GroupName = PropertyName;
CMFCPropertyGridProperty* pGroup = new CMFCPropertyGridProperty(PropertyName);
//-------------------------------------------------------------------------------//
if(gAuthorityMgr->CheckAuthority(_Authority_Factory))
{
{
//添加属性变量映射
Name = _T("m_bEnglishMode");//变量名字
CPropertie *pPropertie = new CPropertie;
pPropertie->SetpVal((void*)&m_bEnglishMode);
pPropertie->SetType(_PROP_TYPE_BOOL);
pPropertie->SetpModule(this);
pPropertie->SetPath(Path);
pPropertie->SetName(Name);
pPropertie->WriteRead(true);//读取保存的属性
//添加属性显示
PropertyName = _T("英文模式");
Description = _T("英文模式");
pPropertie->SetGroupName(GroupName);
pPropertie->SetShowName(PropertyName);
CMFCPropertyGridProperty* p1 = new CMFCPropertyGridProperty(PropertyName, (_variant_t)m_bEnglishMode, Description);
pGroup->AddSubItem(p1);
gDevicePropertieMgr.Insert(p1, pPropertie);
}
}
return pGroup;
}
//软件打开时
void CLanguageMgr::OnAppInitialize()
{
//初始化语言容器
InitLanguageTxt();
//设置显示语言
UpdateLanguageTxt();
}
//参数变化时
void CLanguageMgr::OnPropertyChanged()
{
//设置显示语言
UpdateLanguageTxt();
}
//初始化语言容器
void CLanguageMgr::InitLanguageTxt()
{
gLogMgr->WriteDebugLog("Func--->CLanguageMgr::InitLanguageTxt");
m_LanguageTxtVec.clear();
CLanguageTxt LanguageTxt;
LanguageTxt.m_TxtName = "LANGUAGE_SELECT_ALL";LanguageTxt.m_TxtEnglish = "Select All";LanguageTxt.m_TxtChinese = "全选";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_MANUAL_ANNEAL";LanguageTxt.m_TxtEnglish = "Manual Anneal";LanguageTxt.m_TxtChinese = "手动退火";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_ADD_JOB";LanguageTxt.m_TxtEnglish = "Add Job";LanguageTxt.m_TxtChinese = "添加Job";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_START_JOB";LanguageTxt.m_TxtEnglish = "Job Start";LanguageTxt.m_TxtChinese = "开始Job";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PAUSE_JOB";LanguageTxt.m_TxtEnglish = "Job Pause";LanguageTxt.m_TxtChinese = "暂停Job";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_STOP_JOB";LanguageTxt.m_TxtEnglish = "Job Stop";LanguageTxt.m_TxtChinese = "终止Job";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_CANCEL_JOB";LanguageTxt.m_TxtEnglish = "Cancel Job";LanguageTxt.m_TxtChinese = "取消Job";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_JOB_QUEUE";LanguageTxt.m_TxtEnglish = "Job Queue";LanguageTxt.m_TxtChinese = "Job队列";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_SECS_STATE";LanguageTxt.m_TxtEnglish = "Secs State";LanguageTxt.m_TxtChinese = "Secs状态";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_COMM_STATE";LanguageTxt.m_TxtEnglish = "Comm State:";LanguageTxt.m_TxtChinese = "通信状态:";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_CTRL_STATE";LanguageTxt.m_TxtEnglish = "Control State:";LanguageTxt.m_TxtChinese = "控制状态:";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PROCESS_STATE";LanguageTxt.m_TxtEnglish = "Process State";LanguageTxt.m_TxtChinese = "过程状态:";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PORT1_STATE";LanguageTxt.m_TxtEnglish = "Port1 State";LanguageTxt.m_TxtChinese = "Port1状态:";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PORT2_STATE";LanguageTxt.m_TxtEnglish = "Port2 State";LanguageTxt.m_TxtChinese = "Port2状态:";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_LASER_POW_RET";LanguageTxt.m_TxtEnglish = "laser Beam result";LanguageTxt.m_TxtChinese = "光斑检测结果";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_CUR_PROCESS_RCP";LanguageTxt.m_TxtEnglish = "Current Process Recipe";LanguageTxt.m_TxtChinese = "当前工艺Recipe";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_JOB_TIME";LanguageTxt.m_TxtEnglish = "Job Time:";LanguageTxt.m_TxtChinese = "Job时间:";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PROCESS_TIME";LanguageTxt.m_TxtEnglish = "Process time:";LanguageTxt.m_TxtChinese = "工艺时间:";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_NO_WAFER";LanguageTxt.m_TxtEnglish = "NoWafer";LanguageTxt.m_TxtChinese = "";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_NO_SEL";LanguageTxt.m_TxtEnglish = "NoSelect";LanguageTxt.m_TxtChinese = "未选";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_UNTREATED";LanguageTxt.m_TxtEnglish = "Untreated";LanguageTxt.m_TxtChinese = "未处理";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_WAITING";LanguageTxt.m_TxtEnglish = "Waiting";LanguageTxt.m_TxtChinese = "等待";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PROCESSING";LanguageTxt.m_TxtEnglish = "Processing";LanguageTxt.m_TxtChinese = "工艺中";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_FINISHED";LanguageTxt.m_TxtEnglish = "Finished";LanguageTxt.m_TxtChinese = "完成";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_NO_FINISHED";LanguageTxt.m_TxtEnglish = "NoFinished";LanguageTxt.m_TxtChinese = "未完成";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_USER";LanguageTxt.m_TxtEnglish = "User:";LanguageTxt.m_TxtChinese = "用户:";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_AUTHORITY";LanguageTxt.m_TxtEnglish = "Authority:";LanguageTxt.m_TxtChinese = "权限:";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_LASER_SLEEP_TIME";LanguageTxt.m_TxtEnglish = "Laser Sleep Time:";LanguageTxt.m_TxtChinese = "休眠时间:";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_ACCOUNT";LanguageTxt.m_TxtEnglish = "Account";LanguageTxt.m_TxtChinese = "账户";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_ALARM";LanguageTxt.m_TxtEnglish = "Alarm";LanguageTxt.m_TxtChinese = "报警";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_INIT_DEV";LanguageTxt.m_TxtEnglish = "Dev Init";LanguageTxt.m_TxtChinese = "开机预热";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_POS_X";LanguageTxt.m_TxtEnglish = "RPosX";LanguageTxt.m_TxtChinese = "位置X";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_POS_Y";LanguageTxt.m_TxtEnglish = "RPosY";LanguageTxt.m_TxtChinese = "位置Y";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_POS_Z";LanguageTxt.m_TxtEnglish = "RPosZ";LanguageTxt.m_TxtChinese = "位置Z";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_FEEDBACK_X";LanguageTxt.m_TxtEnglish = "FPosX";LanguageTxt.m_TxtChinese = "光栅X";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_FEEDBACK_Y";LanguageTxt.m_TxtEnglish = "FPosY";LanguageTxt.m_TxtChinese = "光栅Y";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_FEEDBACK_Z";LanguageTxt.m_TxtEnglish = "FPosZ";LanguageTxt.m_TxtChinese = "光栅Z";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_CUR_POS";LanguageTxt.m_TxtEnglish = "Currect Pos(mm)";LanguageTxt.m_TxtChinese = "坐标(mm)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_LASER_POW_INFO";LanguageTxt.m_TxtEnglish = "Laser Pow(W)";LanguageTxt.m_TxtChinese = "激光功率信息(W)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PATH_POW";LanguageTxt.m_TxtEnglish = "Path Pow";LanguageTxt.m_TxtChinese = "光路功率";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_VALID_POW";LanguageTxt.m_TxtEnglish = "Wafer Power(W)";LanguageTxt.m_TxtChinese = "有效功率";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_GREEN_LASER_INFO";LanguageTxt.m_TxtEnglish = "Green Laser Info";LanguageTxt.m_TxtChinese = "绿光信息";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_FRE";LanguageTxt.m_TxtEnglish = "frequency(Hz)";LanguageTxt.m_TxtChinese = "频率(Hz)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_SET_CURR";LanguageTxt.m_TxtEnglish = "Set Curr(A)";LanguageTxt.m_TxtChinese = "设置电流(A)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_REAL_CURR";LanguageTxt.m_TxtEnglish = "Real Curr(A)";LanguageTxt.m_TxtChinese = "实际电流(A)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_REAL_CURR1";LanguageTxt.m_TxtEnglish = "Real Curr1(A)";LanguageTxt.m_TxtChinese = "实际电流1(A)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_REAL_CURR2";LanguageTxt.m_TxtEnglish = "Real Curr2(A)";LanguageTxt.m_TxtChinese = "实际电流2(A)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_REAL_VOL";LanguageTxt.m_TxtEnglish = "Real Voltage(V)";LanguageTxt.m_TxtChinese = "电压(V)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PULSE_DELAY";LanguageTxt.m_TxtEnglish = "Pulse Delay(ns)";LanguageTxt.m_TxtChinese = "脉冲延时(ns)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PULSE_W_NS";LanguageTxt.m_TxtEnglish = "Pulse W(ns)";LanguageTxt.m_TxtChinese = "脉冲宽度(ns)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_LASER_WATER_FLOW";LanguageTxt.m_TxtEnglish = "Water Flow";LanguageTxt.m_TxtChinese = "水流量";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RED_LASER_INFO";LanguageTxt.m_TxtEnglish = "Red Laser Info";LanguageTxt.m_TxtChinese = "红光信息";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PULSE_W_US";LanguageTxt.m_TxtEnglish = "Pulse W(us)";LanguageTxt.m_TxtChinese = "脉冲宽度(us)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_DIS_MEASURE";LanguageTxt.m_TxtEnglish = "Laser Distance Measure";LanguageTxt.m_TxtChinese = "激光测距仪";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_DIS_READ_VAL";LanguageTxt.m_TxtEnglish = "Read Val(mm)";LanguageTxt.m_TxtChinese = "读值(mm)";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_IO_SIGNAL";LanguageTxt.m_TxtEnglish = "I/O Signal";LanguageTxt.m_TxtChinese = "I/O 信号";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_IO_LIST";LanguageTxt.m_TxtEnglish = "IO List";LanguageTxt.m_TxtChinese = "IO 列表";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_MAINTENANCE";LanguageTxt.m_TxtEnglish = "Maintenance";LanguageTxt.m_TxtChinese = "调试功能";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_MAIN_LASER_STATE";LanguageTxt.m_TxtEnglish = "Main Laser";LanguageTxt.m_TxtChinese = "绿光状态";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RED_LASER_STATE";LanguageTxt.m_TxtEnglish = "Red Laser";LanguageTxt.m_TxtChinese = "红光状态";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_POW_CHECK";LanguageTxt.m_TxtEnglish = "Pow Check";LanguageTxt.m_TxtChinese = "功率点检";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PCS_CHECK";LanguageTxt.m_TxtEnglish = "Beam Check";LanguageTxt.m_TxtChinese = "光斑检测设置";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_CLOSE_LASER";LanguageTxt.m_TxtEnglish = "Close Laser";LanguageTxt.m_TxtChinese = "关闭激光";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_DEV_PAR";LanguageTxt.m_TxtEnglish = "Device Par";LanguageTxt.m_TxtChinese = "设备参数";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_GRAP_PAR";LanguageTxt.m_TxtEnglish = "Graphic Par";LanguageTxt.m_TxtChinese = "图形参数";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_GRAP_OP";LanguageTxt.m_TxtEnglish = "Graphic Operation";LanguageTxt.m_TxtChinese = "图形操作";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_OPEN";LanguageTxt.m_TxtEnglish = "Open";LanguageTxt.m_TxtChinese = "打开";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_SAVE";LanguageTxt.m_TxtEnglish = "Save";LanguageTxt.m_TxtChinese = "保存";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_EDIT_MODE";LanguageTxt.m_TxtEnglish = "Edit Mode";LanguageTxt.m_TxtChinese = "编辑模式";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_SHOW_IDX";LanguageTxt.m_TxtEnglish = "Show Idx";LanguageTxt.m_TxtChinese = "显示索引";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_FIRST_OBJ";LanguageTxt.m_TxtEnglish = "First Obj";LanguageTxt.m_TxtChinese = "第一个";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PER_OBJ";LanguageTxt.m_TxtEnglish = "Per Obj";LanguageTxt.m_TxtChinese = "前一个";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_AFTER_OBJ";LanguageTxt.m_TxtEnglish = "After Obj";LanguageTxt.m_TxtChinese = "后一个";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_SORT_ADJUST";LanguageTxt.m_TxtEnglish = "Sort Adjust";LanguageTxt.m_TxtChinese = "顺序调整";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_INSERT_IDX";LanguageTxt.m_TxtEnglish = "Insert Idx";LanguageTxt.m_TxtChinese = "插入索引";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_INSERT_EXT";LanguageTxt.m_TxtEnglish = "Insert";LanguageTxt.m_TxtChinese = "插入";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_REVERSED";LanguageTxt.m_TxtEnglish = "Reversed";LanguageTxt.m_TxtChinese = "逆序";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_S_SORT";LanguageTxt.m_TxtEnglish = "S Sort";LanguageTxt.m_TxtChinese = "S排序";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_SORT_DIR";LanguageTxt.m_TxtEnglish = "Dir";LanguageTxt.m_TxtChinese = "方向";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_S_SORT_EXT";LanguageTxt.m_TxtEnglish = "Sort";LanguageTxt.m_TxtChinese = "应用排序";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_POW_START";LanguageTxt.m_TxtEnglish = "Start";LanguageTxt.m_TxtChinese = "开始";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_POW_STOP";LanguageTxt.m_TxtEnglish = "Stop";LanguageTxt.m_TxtChinese = "停止";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_POW_SET";LanguageTxt.m_TxtEnglish = "Setup";LanguageTxt.m_TxtChinese = "设置";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_POW_COMMIT";LanguageTxt.m_TxtEnglish = "Commit";LanguageTxt.m_TxtChinese = "应用";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_POW_RECORD";LanguageTxt.m_TxtEnglish = "Record";LanguageTxt.m_TxtChinese = "记录";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_POW_CLOSE";LanguageTxt.m_TxtEnglish = "Close";LanguageTxt.m_TxtChinese = "关闭";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_LOAD";LanguageTxt.m_TxtEnglish = "Load";LanguageTxt.m_TxtChinese = "上料";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_UNLOAD";LanguageTxt.m_TxtEnglish = "UnLoad";LanguageTxt.m_TxtChinese = "退料";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_UNLOAD_SMIF";LanguageTxt.m_TxtEnglish = "UnLoad";LanguageTxt.m_TxtChinese = "料盒退出";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_MAPPING";LanguageTxt.m_TxtEnglish = "Load/Map";LanguageTxt.m_TxtChinese = "Load/Map";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_JOB_COMMIT";LanguageTxt.m_TxtEnglish = "Commit";LanguageTxt.m_TxtChinese = "生产确认";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PCS";LanguageTxt.m_TxtEnglish = "PCS";LanguageTxt.m_TxtChinese = "生产过程";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RECIPE_SET";LanguageTxt.m_TxtEnglish = "Recipe";LanguageTxt.m_TxtChinese = "Recipe设置";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_DEVICE_STATE";LanguageTxt.m_TxtEnglish = "Status";LanguageTxt.m_TxtChinese = "设备状态";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RECORD";LanguageTxt.m_TxtEnglish = "Record";LanguageTxt.m_TxtChinese = "加工记录";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_DEV_SETUP";LanguageTxt.m_TxtEnglish = "Setup";LanguageTxt.m_TxtChinese = "系统设置";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RCP_GROUP_NAME";LanguageTxt.m_TxtEnglish = "Group Name";LanguageTxt.m_TxtChinese = "组名称";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RCP_NAME";LanguageTxt.m_TxtEnglish = "Recipe Name";LanguageTxt.m_TxtChinese = "Recipe名称";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_COPY_RCP";LanguageTxt.m_TxtEnglish = "Copy Recipe";LanguageTxt.m_TxtChinese = "复制Recipe";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_PASTE_RCP";LanguageTxt.m_TxtEnglish = "Move Recipe";LanguageTxt.m_TxtChinese = "移动Recipe";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RESET_RCP";LanguageTxt.m_TxtEnglish = "Reset Recipe";LanguageTxt.m_TxtChinese = "重置Recipe";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_TRANSFER_USE";LanguageTxt.m_TxtEnglish = "Transfer Use";LanguageTxt.m_TxtChinese = "传片测试";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_WORK_JOB_USE";LanguageTxt.m_TxtEnglish = "Work Job Use";LanguageTxt.m_TxtChinese = "加工使用";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_ANNEAL_AREA";LanguageTxt.m_TxtEnglish = "Anneal Area";LanguageTxt.m_TxtChinese = "退火范围";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_AREA_IDX";LanguageTxt.m_TxtEnglish = "Area Idx";LanguageTxt.m_TxtChinese = "区域编号";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RCP_COMMIT";LanguageTxt.m_TxtEnglish = "Commit";LanguageTxt.m_TxtChinese = "应用Recipe";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RCP_GRP";LanguageTxt.m_TxtEnglish = "Recipe group";LanguageTxt.m_TxtChinese = "Recipe分组";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RCP_LIST";LanguageTxt.m_TxtEnglish = "Recipe List";LanguageTxt.m_TxtChinese = "Recipe列表";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_CUR_COPY_RCP";LanguageTxt.m_TxtEnglish = "Cur Copy Recipe";LanguageTxt.m_TxtChinese = "当前复制Recipe";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_CUR_SEL_RCP";LanguageTxt.m_TxtEnglish = "Cur Select Recipe";LanguageTxt.m_TxtChinese = "当前选择Recipe";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_INIT_XYZ";LanguageTxt.m_TxtEnglish = "Init XYZ";LanguageTxt.m_TxtChinese = "初始化XYZ";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_OPEN_LASER_LDD";LanguageTxt.m_TxtEnglish = "Open Laser Ldd";LanguageTxt.m_TxtChinese = "打开激光LDD";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_LASER1_POW_CHECK";LanguageTxt.m_TxtEnglish = "Laser1 Power Check";LanguageTxt.m_TxtChinese = "激光1点检";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_LASER2_POW_CHECK";LanguageTxt.m_TxtEnglish = "Laser2 Power Check";LanguageTxt.m_TxtChinese = "激光2点检";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_LASER_SPOT_CHECK";LanguageTxt.m_TxtEnglish = "Laser Beam Check";LanguageTxt.m_TxtChinese = "光斑检测";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_STEP_SET_BTN";LanguageTxt.m_TxtEnglish = "Step Set";LanguageTxt.m_TxtChinese = "步骤设置";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RECOVER_ALL_WAFER";LanguageTxt.m_TxtEnglish = "Recover All Wafer";LanguageTxt.m_TxtChinese = "回收所有wafer";
m_LanguageTxtVec.push_back(LanguageTxt);
LanguageTxt.m_TxtName = "LANGUAGE_RED_LASER_POW_CHECK";LanguageTxt.m_TxtEnglish = "Red Laser Power Check";LanguageTxt.m_TxtChinese = "红光点检";
m_LanguageTxtVec.push_back(LanguageTxt);
}
//获取TxtName 对应的名称
CString CLanguageMgr::GetLanguageTxt(CString TxtName)
{
CString Txt = "";
int size = m_LanguageTxtVec.size();
for(int k=0;k<size;k++)
{
CLanguageTxt &LanguageTxt = m_LanguageTxtVec[k];
if(TxtName == LanguageTxt.m_TxtName)
{
if(m_bEnglishMode)
Txt = LanguageTxt.m_TxtEnglish;
else
Txt = LanguageTxt.m_TxtChinese;
break;
}
}
return Txt;
}
//设置显示语言
void CLanguageMgr::UpdateLanguageTxt()
{
gLogMgr->WriteDebugLog("Func--->UpdateLanguageTxt");
gChildPCS->UpdateLanguageTxt();
gChildLaserPathState->UpdateLanguageTxt();
gChildSysParaSet->UpdateLanguageTxt();
gChildRecipe->UpdateLanguageTxt();
//GetFrame()->m_DlgDeviceMain.UpdateLanguageTxt();
}