chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
This commit is contained in:
1 parent
2b0c2055ff
commit
164968b62e
6171 files changed
+191244
-191243
No files matched your search
@@ -1,4 +1,4 @@
|
||||
#include "stdafx.h"
|
||||
#include "stdafx.h"
|
||||
#include <DbWell.h>
|
||||
#include "DbSlopeRoof.h"
|
||||
#include <xtext.h>
|
||||
@@ -9,7 +9,7 @@ void HelpTwtLaw()
|
||||
XString sFile(256);
|
||||
sFile << g_csSysPath << _T("TwtLaw.chm");
|
||||
if((INT_PTR)ShellExecute(adsw_acadMainWnd(), _T("open"), sFile, NULL, NULL, SW_SHOWNORMAL)<=32) {
|
||||
adsout << _T("\n帮助文件TwtLaw.chm不存在,或您没有安装HTML帮助系统(安装IE 4.0或更高的版本)。");
|
||||
adsout << _T("\n帮助文件TwtLaw.chm不存在,或您没有安装HTML帮助系统(安装IE 4.0或更高的版本)。");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ void HelpTwt()
|
||||
XString sFile(256);
|
||||
sFile << g_csSysPath << _T("Twt.chm");
|
||||
if((INT_PTR)ShellExecute(adsw_acadMainWnd(), _T("open"), sFile, NULL, NULL, SW_SHOWNORMAL)<=32) {
|
||||
adsout << _T("\n帮助文件Twt.chm不存在,或您没有安装HTML帮助系统(安装IE 4.0或更高的版本)。");
|
||||
adsout << _T("\n帮助文件Twt.chm不存在,或您没有安装HTML帮助系统(安装IE 4.0或更高的版本)。");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ void HelpFlash()
|
||||
XString sFile(256);
|
||||
sFile << g_csSysPath << _T("flash.chm");
|
||||
if((INT_PTR)ShellExecute(adsw_acadMainWnd(), _T("open"), sFile, NULL, NULL, SW_SHOWNORMAL)<=32) {
|
||||
adsout << _T("\n帮助文件flash.chm不存在,或您没有安装HTML帮助系统(安装IE 4.0或更高的版本)。");
|
||||
adsout << _T("\n帮助文件flash.chm不存在,或您没有安装HTML帮助系统(安装IE 4.0或更高的版本)。");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ void HelpFlash()
|
||||
// XString sFile(256);
|
||||
// sFile << g_csSysPath.Left(g_csSysPath.GetLength() - 5) << _T("\\flash\\flash.htm");
|
||||
// if((int)ShellExecute(adsw_acadMainWnd(), _T("open"), sFile, NULL, NULL, SW_SHOWNORMAL)<=32) {
|
||||
// adsout << _T("\n帮助文件flash.htm不存在,或您没有安装HTML帮助系统(安装IE 4.0或更高的版本)。");
|
||||
// adsout << _T("\n帮助文件flash.htm不存在,或您没有安装HTML帮助系统(安装IE 4.0或更高的版本)。");
|
||||
// }
|
||||
//}
|
||||
|
||||
@@ -46,13 +46,13 @@ void FiltreErase()
|
||||
{
|
||||
PickSet ssAll(SS_FREE);
|
||||
|
||||
if(SelectEntities(_T("\n请选择删除范围<退出>:"), ssAll, RBList()) != RTNORM)
|
||||
if(SelectEntities(_T("\n请选择删除范围<退出>:"), ssAll, RBList()) != RTNORM)
|
||||
return;
|
||||
Entity entSel;
|
||||
PickSet ssSel(SS_FREE);
|
||||
ssSel += ssAll;
|
||||
|
||||
int ret = SelectEntity(_T("\n请选择指定类型的图元<删除>:"), entSel, RBList());
|
||||
int ret = SelectEntity(_T("\n请选择指定类型的图元<删除>:"), entSel, RBList());
|
||||
while(ret == RTNORM){
|
||||
BOOL bIsBlkMask = FALSE;
|
||||
ssAll.Redraw(4);
|
||||
@@ -71,7 +71,7 @@ void FiltreErase()
|
||||
|
||||
for(long i=0;i<len;i++){
|
||||
Entity ent = ssAll[i];
|
||||
if(bIsBlkMask){ //安图块名精细过滤
|
||||
if(bIsBlkMask){ //安图块名精细过滤
|
||||
if(ent.MatchBase(rbMask2))
|
||||
ssSel += ent;
|
||||
}
|
||||
@@ -81,7 +81,7 @@ void FiltreErase()
|
||||
}
|
||||
}
|
||||
ssSel.Redraw(3);
|
||||
ret = SelectEntity(_T("\n请选择指定类型的图元<删除>:"), entSel, RBList());
|
||||
ret = SelectEntity(_T("\n请选择指定类型的图元<删除>:"), entSel, RBList());
|
||||
}
|
||||
if(ret == RTCAN){
|
||||
ssSel.Redraw(4);
|
||||
@@ -122,7 +122,7 @@ void test2()
|
||||
// return;
|
||||
|
||||
TCHAR szName[256];
|
||||
ads_getstring(0, _T("\n请输入名字:"), szName);
|
||||
ads_getstring(0, _T("\n请输入名字:"), szName);
|
||||
AcDbBlockTable* pBlockTable = NULL;
|
||||
acdbCurDwg()->getBlockTable(pBlockTable, AcDb::kForRead);
|
||||
if(_tcsicmp(szName, _T("*")) == 0){
|
||||
@@ -158,7 +158,7 @@ void test2()
|
||||
}
|
||||
|
||||
//***************************************************************************************************
|
||||
// 旧图转化
|
||||
// 旧图转化
|
||||
//***************************************************************************************************
|
||||
void SetEntityLayer(Entity ent, const TCHAR* szLayer)
|
||||
{
|
||||
@@ -184,20 +184,20 @@ void ConverseOldDwg()
|
||||
Entity ent = ssAll[i];
|
||||
TCHAR szLay[256];
|
||||
ent.GetData(8, szLay);
|
||||
if(ent.Is(_T("ATS_PIPEVALVE")) && _tcsicmp(szLay, _T("GJ-阀门")) == 0){
|
||||
SetEntityLayer(ent, _T("EQUIP_阀门"));
|
||||
if(ent.Is(_T("ATS_PIPEVALVE")) && _tcsicmp(szLay, _T("GJ-阀门")) == 0){
|
||||
SetEntityLayer(ent, _T("EQUIP_阀门"));
|
||||
continue;
|
||||
}
|
||||
else if(ent.Is(_T("ATS_EQUIPMENT")) && _tcsicmp(szLay, _T("GJ")) == 0){
|
||||
SetEntityLayer(ent, _T("EQUIP_管件"));
|
||||
SetEntityLayer(ent, _T("EQUIP_管件"));
|
||||
continue;
|
||||
}
|
||||
else if(ent.Is(_T("ATS_EQUIPMENT")) && _tcsicmp(szLay, _T("EQ-喷淋")) == 0){
|
||||
SetEntityLayer(ent, _T("EQUIP_喷淋"));
|
||||
else if(ent.Is(_T("ATS_EQUIPMENT")) && _tcsicmp(szLay, _T("EQ-喷淋")) == 0){
|
||||
SetEntityLayer(ent, _T("EQUIP_喷淋"));
|
||||
continue;
|
||||
}
|
||||
else if(ent.Is(_T("ATS_EQUIPMENT")) && _tcsicmp(szLay, _T("EQ-消防")) == 0){
|
||||
SetEntityLayer(ent, _T("EQUIP_消防"));
|
||||
else if(ent.Is(_T("ATS_EQUIPMENT")) && _tcsicmp(szLay, _T("EQ-消防")) == 0){
|
||||
SetEntityLayer(ent, _T("EQUIP_消防"));
|
||||
continue;
|
||||
}
|
||||
else if(ent.Is(_T("ATS_EQUIPMENT"))){
|
||||
@@ -219,15 +219,15 @@ void ConverseOldDwg()
|
||||
TPipeInterface face;
|
||||
pEquip->GetInterface(0, face);
|
||||
AcDbObjectId nextPipeId = face.m_idPipe;
|
||||
CString csLay = _T("WELL_其它");
|
||||
CString csLay = _T("WELL_其它");
|
||||
OPENOBJ_BEGIN(nextPipeId, AcDb::kForRead, TDbPipe, pPipe);
|
||||
if(pPipe){
|
||||
if(pPipe->GetSysType() == TPipeSys::kRainWater)
|
||||
csLay = _T("WELL_雨水");
|
||||
csLay = _T("WELL_雨水");
|
||||
else if(pPipe->GetSysType() == TPipeSys::kDirtWater)
|
||||
csLay = _T("WELL_污水");
|
||||
csLay = _T("WELL_污水");
|
||||
else if(pPipe->GetSysType() == TPipeSys::kFeedWater)
|
||||
csLay = _T("WELL_给水");
|
||||
csLay = _T("WELL_给水");
|
||||
}
|
||||
OPENOBJ_END();
|
||||
bIsWell = TRUE;
|
||||
@@ -252,7 +252,7 @@ void ConverseOldDwg()
|
||||
}
|
||||
OPENOBJ_END();
|
||||
if(!bIsWell)
|
||||
SetEntityLayer(ent, _T("TWT_室外"));
|
||||
SetEntityLayer(ent, _T("TWT_室外"));
|
||||
else
|
||||
ssDel += ent;
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user