void SVResString::loadSVSEViewStrings(MAPNODE &objNode) { string szSE(""), szNoData(""), szDisable(""), szTitle(""), szAdd(""), szAddTip(""), szDelSelTip(""), szRefresh(""), szEnable(""); FindNodeValue(objNode, "IDS_SE", szSE); // SE FindNodeValue(objNode, "IDS_NO_Date", szNoData); // 无历史数据 FindNodeValue(objNode, "IDS_Disable", szDisable); // 禁止 FindNodeValue(objNode, "IDS_SE_List_Title", szTitle); // SE 列表 FindNodeValue(objNode, "IDS_Add_SE", szAdd); // 添加 SE FindNodeValue(objNode, "IDS_Add_SE_Tip", szAddTip); // 添加(配置) 新的SE FindNodeValue(objNode, "IDS_Delete_SE_Tip", szDelSelTip); // FindNodeValue(objNode, "IDS_Refresh", szRefresh); // 刷新 FindNodeValue(objNode, "IDS_Enable", szEnable); // 允许 m_lsResource["IDS_SE"] = szSE; m_lsResource["IDS_NO_Date"] = szNoData; m_lsResource["IDS_Disable"] = szDisable; m_lsResource["IDS_SE_List_Title"] = szTitle; m_lsResource["IDS_Add_SE"] = szAdd; m_lsResource["IDS_Add_SE_Tip"] = szAddTip; m_lsResource["IDS_Delete_SE_Tip"] = szDelSelTip; m_lsResource["IDS_Refresh"] = szRefresh; m_lsResource["IDS_Enable"] = szEnable; }
void SVResString::loadAddDeviceStrings(MAPNODE &objNode) { string szTitle(""), szCancelAddTip(""), szAddTip(""), szCancelEditTip(""), szBack(""), szBackTip(""), szHostHelp(""), szHostTip(""), szQuickAddTitle(""), szQuickAddCancelTip(""), szConfigErr(""), szQuickAdd(""); FindNodeValue(objNode, "IDS_Add_Device_Title", szTitle); FindNodeValue(objNode, "IDS_Cancel_Add_Device_Tip", szCancelAddTip); FindNodeValue(objNode, "IDS_Add_Device_Tip", szAddTip); FindNodeValue(objNode, "IDS_Cancel_Edit_Device_Tip", szCancelEditTip); FindNodeValue(objNode, "IDS_Back_One_Step", szBack); FindNodeValue(objNode, "IDS_Back_Device_List_Tip", szBackTip); FindNodeValue(objNode, "IDS_Host_Label_Help", szHostHelp); FindNodeValue(objNode, "IDS_Host_Label_Error", szHostTip); FindNodeValue(objNode, "IDS_Quick_Add_Monitor_Title", szQuickAddTitle); FindNodeValue(objNode, "IDS_Cancel_Add_Monitor_Tip", szQuickAddCancelTip); FindNodeValue(objNode, "IDS_Monitor_Templet_Error", szConfigErr); FindNodeValue(objNode, "IDS_Quick_Add", szQuickAdd); m_lsResource["IDS_Add_Device_Title"] = szTitle; m_lsResource["IDS_Cancel_Add_Device_Tip"] = szCancelAddTip; m_lsResource["IDS_Add_Device_Tip"] = szAddTip; m_lsResource["IDS_Cancel_Edit_Device_Tip"] = szCancelEditTip; m_lsResource["IDS_Back_One_Step"] = szBack; m_lsResource["IDS_Back_Device_List_Tip"] = szBackTip; m_lsResource["IDS_Host_Label_Help"] = szHostHelp; m_lsResource["IDS_Host_Label_Error"] = szHostTip; m_lsResource["IDS_Quick_Add_Monitor_Title"] = szQuickAddTitle; m_lsResource["IDS_Cancel_Add_Monitor_Tip"] = szQuickAddCancelTip; m_lsResource["IDS_Monitor_Templet_Error"] = szConfigErr; m_lsResource["IDS_Quick_Add"] = szQuickAdd; }
void SVResString::loadAddSVSEStrings(MAPNODE &objNode) { string szName(""), szNameHelp(""), szNameTip(""), szMainTitle(""), szTitle(""), szEditTitle(""), szHost(""), szHostHelp(""), szHostTip(""), szAdvTitle(""), szDescription(""), szDescriptionHelp(""); FindNodeValue(objNode, "IDS_SE_Label", szName); FindNodeValue(objNode, "IDS_SE_Label_Tip", szNameHelp); FindNodeValue(objNode, "IDS_SE_Label_Error", szNameTip); FindNodeValue(objNode, "IDS_Basic_Option", szMainTitle); FindNodeValue(objNode, "IDS_Add_SE_Title", szTitle); FindNodeValue(objNode, "IDS_Edit_SE_Title", szEditTitle); FindNodeValue(objNode, "IDS_Host_Name", szHost); FindNodeValue(objNode, "IDS_Host_Name_Tip", szHostHelp); FindNodeValue(objNode, "IDS_Host_Name_Error", szHostTip); FindNodeValue(objNode, "IDS_Advance_Option", szAdvTitle); FindNodeValue(objNode, "IDS_Description", szDescription); FindNodeValue(objNode, "IDS_Desc_Help", szDescriptionHelp); m_lsResource["IDS_SE_Label"] = szName; m_lsResource["IDS_SE_Label_Tip"] = szNameHelp; m_lsResource["IDS_SE_Label_Error"] = szNameTip; m_lsResource["IDS_Basic_Option"] = szMainTitle; m_lsResource["IDS_Add_SE_Title"] = szTitle; m_lsResource["IDS_Edit_SE_Title"] = szEditTitle; m_lsResource["IDS_Host_Name"] = szHost; m_lsResource["IDS_Host_Name_Tip"] = szHostHelp; m_lsResource["IDS_Host_Name_Error"] = szHostTip; m_lsResource["IDS_Advance_Option"] = szAdvTitle; m_lsResource["IDS_Description"] = szDescription; m_lsResource["IDS_Desc_Help"] = szDescriptionHelp; }
void ConEmuAbout::OnInfo_About(LPCWSTR asPageName /*= NULL*/) { InitCommCtrls(); bool bOk = false; if (!asPageName && sLastOpenTab[0]) { // Reopen last active tab asPageName = sLastOpenTab; } ReloadSysInfo(); { DontEnable de; if (!mp_DpiAware) mp_DpiAware = new CDpiForDialog(); HWND hParent = (ghOpWnd && IsWindowVisible(ghOpWnd)) ? ghOpWnd : ghWnd; // Modal dialog (CreateDialog) INT_PTR iRc = CDynDialog::ExecuteDialog(IDD_ABOUT, hParent, aboutProc, (LPARAM)asPageName); bOk = (iRc != 0 && iRc != -1); mh_AboutDlg = NULL; if (mp_DpiAware) mp_DpiAware->Detach(); #ifdef _DEBUG // Any problems with dialog resource? if (!bOk) DisplayLastError(L"DialogBoxParam(IDD_ABOUT) failed"); #endif } if (!bOk) { CEStr szTitle(gpConEmu->GetDefaultTitle(), L" ", CLngRc::getRsrc(lng_DlgAbout/*"About"*/)); DontEnable de; MSGBOXPARAMS mb = {sizeof(MSGBOXPARAMS), ghWnd, g_hInstance, pAbout, szTitle.ms_Val, MB_USERICON, MAKEINTRESOURCE(IMAGE_ICON), 0, NULL, LANG_NEUTRAL }; MSetter lInCall(&gnInMsgBox); // Use MessageBoxIndirect instead of MessageBox to show our icon instead of std ICONINFORMATION MessageBoxIndirect(&mb); } }
void SVResString::loadAddGroupStrings(MAPNODE &objNode) { string szName(""), szNameHelp(""), szTitle(""), szAddTip(""), szSaveTip(""), szCancelEditTip(""), szNameErr(""), szEditTitle(""); FindNodeValue(objNode, "IDS_Group_Name", szName); FindNodeValue(objNode, "IDS_Group_Name_Help", szNameHelp); FindNodeValue(objNode, "IDS_Add_Group_Title", szTitle); FindNodeValue(objNode, "IDS_Add_Group_Tip", szAddTip); FindNodeValue(objNode, "IDS_Save_Group_Tip", szSaveTip); FindNodeValue(objNode, "IDS_Cancel_Group_Edit_Tip", szCancelEditTip); FindNodeValue(objNode, "IDS_Group_Name_Error", szNameErr); FindNodeValue(objNode, "IDS_Edit_Group_Title", szEditTitle); m_lsResource["IDS_Group_Name"] = szName; m_lsResource["IDS_Group_Name_Help"] = szNameHelp; m_lsResource["IDS_Add_Group_Title"] = szTitle; m_lsResource["IDS_Add_Group_Tip"] = szAddTip; m_lsResource["IDS_Save_Group_Tip"] = szSaveTip; m_lsResource["IDS_Cancel_Group_Edit_Tip"] = szCancelEditTip; m_lsResource["IDS_Group_Name_Error"] = szNameErr; m_lsResource["IDS_Edit_Group_Title"] = szEditTitle; }
void SVResString::loadBatchAddStrings(MAPNODE &objNode) { string szTitle(""), szSetSucc(""), szAffirmDelete(""), szMsg(""), szCancel(""), szAddGroup(""), szClose(""), szList(""), szAddDevice(""), szAddMonitor(""), szEnable(""), szDisable(""), szPaste(""), szRefresh(""); FindNodeValue(objNode, "IDS_Batch_Add", szTitle); FindNodeValue(objNode, "IDS_SetAlertConditionSuccess", szSetSucc); FindNodeValue(objNode, "IDS_AffirmDelete", szAffirmDelete); FindNodeValue(objNode, "IDS_MessagePrompt", szMsg); FindNodeValue(objNode, "IDS_ConfirmCancel", szCancel); FindNodeValue(objNode, "IDS_AddGroup", szAddGroup); FindNodeValue(objNode, "IDS_Right_AddDevice", szAddDevice); FindNodeValue(objNode, "IDS_AddMonitor", szAddMonitor); FindNodeValue(objNode, "IDS_Enable_Monitor", szEnable); FindNodeValue(objNode, "IDS_DisableMonitor", szDisable); FindNodeValue(objNode, "IDS_Close" , szClose); FindNodeValue(objNode, "IDS_Paste" , szPaste); FindNodeValue(objNode, "IDS_Right_Refresh" , szRefresh); FindNodeValue(objNode, "IDS_DownloadList", szList); m_lsResource["IDS_Batch_Add"] = szTitle; m_lsResource["IDS_SetAlertConditionSuccess"] = szSetSucc; m_lsResource["IDS_AffirmDelete"] = szAffirmDelete; m_lsResource["IDS_MessagePrompt"] = szMsg; m_lsResource["IDS_ConfirmCancel"] = szCancel; m_lsResource["IDS_AddGroup"] = szAddGroup; m_lsResource["IDS_Right_AddDevice"] = szAddDevice; m_lsResource["IDS_AddMonitor"] = szAddMonitor; m_lsResource["IDS_Enable_Monitor"] = szEnable; m_lsResource["IDS_DisableMonitor"] = szDisable; m_lsResource["IDS_Close"] = szClose; m_lsResource["IDS_Paste"] = szPaste; m_lsResource["IDS_Right_Refresh"] = szRefresh; m_lsResource["IDS_DownloadList"] = szList; }
void SVResString::loadAddMonitorStrings(MAPNODE &objNode) { string szCancelTip(""), szTitle(""), szConditionTitle(""), szAddTip(""), szCancelEditTip(""), szBackTip(""), szBatchAddTip(""), szContinueAdd(""), szContinueAddTip(""), szSetAlert(""), szSetAlertTip(""), szDevice(""), szDeviceHelp(""), szMonitor(""), szMonitorHelp(""), szCheckErr(""), szCheckHelp(""), szDesc(""), szDescHelp(""), szFreq(""), szFreqHelp(""), szFreqErr(""), szPlan(""), szPlanHelp(""), szReport(""), szReportHelp(""), szErrName(""); FindNodeValue(objNode, "IDS_Cancle_Add_Monitor_Tip", szCancelTip); FindNodeValue(objNode, "IDS_Add_Monitor_Title", szTitle); FindNodeValue(objNode, "IDS_Alert_Condition_Title", szConditionTitle); FindNodeValue(objNode, "IDS_Add_Monitor_Tip", szAddTip); FindNodeValue(objNode, "IDS_Cancel_Current_Edit_Tip", szCancelEditTip); FindNodeValue(objNode, "IDS_Back_Monitor_List_Tip", szBackTip); FindNodeValue(objNode, "IDS_Batch_Add_Tip", szBatchAddTip); FindNodeValue(objNode, "IDS_Continue_Add", szContinueAdd); FindNodeValue(objNode, "IDS_Continue_Add_Tip", szContinueAddTip); FindNodeValue(objNode, "IDS_Set_Default_Alert", szSetAlert); FindNodeValue(objNode, "IDS_Set_Default_Alert_Tip", szSetAlertTip); FindNodeValue(objNode, "IDS_Device_Name", szDevice); FindNodeValue(objNode, "IDS_Device_Name_Help", szDeviceHelp); FindNodeValue(objNode, "IDS_Monitor_Label", szMonitor); FindNodeValue(objNode, "IDS_Monitor_Label_Help", szMonitorHelp); FindNodeValue(objNode, "IDS_Check_Error", szCheckErr); FindNodeValue(objNode, "IDS_Check_Err_Help", szCheckHelp); FindNodeValue(objNode, "IDS_Monitor_Desc", szDesc); FindNodeValue(objNode, "IDS_Monitor_Desc_Help", szDescHelp); FindNodeValue(objNode, "IDS_Error_Freq", szFreq); FindNodeValue(objNode, "IDS_Error_Freq_Help", szFreqHelp); FindNodeValue(objNode, "IDS_Numbic_Error", szFreqErr); FindNodeValue(objNode, "IDS_Plan", szPlan); FindNodeValue(objNode, "IDS_PlanHelp", szPlanHelp); FindNodeValue(objNode, "IDS_Report_Desc", szReport); FindNodeValue(objNode, "IDS_Report_Desc_Help", szReportHelp); FindNodeValue(objNode, "IDS_Monitor_Label_Error", szErrName); m_lsResource["IDS_Cancle_Add_Monitor_Tip"] = szCancelTip; m_lsResource["IDS_Add_Monitor_Title"] = szTitle; m_lsResource["IDS_Add_Monitor_Tip"] = szAddTip; m_lsResource["IDS_Cancel_Current_Edit_Tip"] = szCancelEditTip; m_lsResource["IDS_Back_Monitor_List_Tip"] = szBackTip; m_lsResource["IDS_Batch_Add_Tip"] = szBatchAddTip; m_lsResource["IDS_Continue_Add"] = szContinueAdd; m_lsResource["IDS_Continue_Add_Tip"] = szContinueAddTip; m_lsResource["IDS_Set_Default_Alert"] = szSetAlert; m_lsResource["IDS_Set_Default_Alert_Tip"] = szSetAlertTip; m_lsResource["IDS_Device_Name"] = szDevice; m_lsResource["IDS_Device_Name_Help"] = szDeviceHelp; m_lsResource["IDS_Monitor_Label"] = szMonitor; m_lsResource["IDS_Monitor_Label_Help"] = szMonitorHelp; m_lsResource["IDS_Check_Error"] = szCheckErr; m_lsResource["IDS_Check_Err_Help"] = szCheckHelp; m_lsResource["IDS_Monitor_Desc"] = szDesc; m_lsResource["IDS_Monitor_Desc_Help"] = szDescHelp; m_lsResource["IDS_Error_Freq"] = szFreq; m_lsResource["IDS_Error_Freq_Help"] = szFreqHelp; m_lsResource["IDS_Numbic_Error"] = szFreqErr; m_lsResource["IDS_Plan"] = szPlan; m_lsResource["IDS_PlanHelp"] = szPlanHelp; m_lsResource["IDS_Report_Desc"] = szReport; m_lsResource["IDS_Report_Desc_Help"] = szReportHelp; m_lsResource["IDS_Monitor_Label_Error"] = szErrName; }