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 "TPipeCanalJig.h"
|
||||
#include "TVirtualPipeCanal.h"
|
||||
#include "DbPipeCanal.h"
|
||||
@@ -27,8 +27,8 @@ void DrawPipeCanal1()
|
||||
|
||||
AcDbLine *pLine = new AcDbLine;
|
||||
XPoint ptS,ptE;
|
||||
acedGetPoint(NULL,_T("\n请选择起点<退出>:"),ptS);
|
||||
acedGetPoint(NULL,_T("\n请选择终点<退出>:"),ptE);
|
||||
acedGetPoint(NULL,_T("\n请选择起点<退出>:"),ptS);
|
||||
acedGetPoint(NULL,_T("\n请选择终点<退出>:"),ptE);
|
||||
pLine->setStartPoint(ptS);
|
||||
pLine->setEndPoint(ptE);
|
||||
AddToCurrentSpace(pLine,Adesk::kTrue);
|
||||
@@ -39,20 +39,20 @@ void DrawPipeCanal1()
|
||||
}
|
||||
}
|
||||
|
||||
//绘制方沟
|
||||
//绘制方沟
|
||||
void DrawPipeCanal()
|
||||
{
|
||||
int nKey = 0;
|
||||
|
||||
XPoint ptS,ptE;
|
||||
// double dWidth = 5*DocGetPScale();
|
||||
// acedGetReal(_T("\n请输入方沟宽度(500mm):"),&dWidth);
|
||||
// acedGetReal(_T("\n请输入方沟宽度(500mm):"),&dWidth);
|
||||
// int nStyle = 1;
|
||||
// acedGetInt(_T("\n请输入方沟样式(1-5):"),&nStyle);
|
||||
// acedGetInt(_T("\n请输入方沟样式(1-5):"),&nStyle);
|
||||
// if (nStyle < 1 || nStyle > 5)
|
||||
// nStyle = 1;
|
||||
|
||||
// 绘制方沟对话框实现 zxl 2012.10.11 modify
|
||||
// 绘制方沟对话框实现 zxl 2012.10.11 modify
|
||||
double dWidth = 5*DocGetPScale();
|
||||
int nStyle = 1;
|
||||
CTemporaryResourceOverride vTemp;
|
||||
@@ -63,7 +63,7 @@ void DrawPipeCanal()
|
||||
pDlg->ShowWindow(SW_SHOW);
|
||||
}
|
||||
|
||||
int nEs = acedGetPoint(NULL,_T("\n请选择方沟起点<退出>:"),ptS);
|
||||
int nEs = acedGetPoint(NULL,_T("\n请选择方沟起点<退出>:"),ptS);
|
||||
// cet 2012.3.26 add
|
||||
if (nEs != RTNORM)
|
||||
{
|
||||
@@ -81,8 +81,8 @@ void DrawPipeCanal()
|
||||
dWidth = pDlg->m_dCanalWidth;
|
||||
}
|
||||
|
||||
xg_setvar(_T("CMDECHO"), 0); // 关闭回显
|
||||
static bool bUseDial = false; // 记录刻度盘上次是否使用
|
||||
xg_setvar(_T("CMDECHO"), 0); // 关闭回显
|
||||
static bool bUseDial = false; // 记录刻度盘上次是否使用
|
||||
|
||||
TPipeCanalJig jig;
|
||||
jig.EnableDial(bUseDial); // cet 2012.3.26 add
|
||||
@@ -104,12 +104,12 @@ void DrawPipeCanal()
|
||||
// cet 2014.4.21 modify
|
||||
// pCanal->setLayer(InitLayer(LAY_PIPE_RAIN));
|
||||
pCanal->setLayer(InitLayer(LAY_TWT_BOX_DRAIN));
|
||||
pCanal->setColor(AcCmColor()); //随层
|
||||
pCanal->setColor(AcCmColor()); //随层
|
||||
|
||||
//cet 2012.3.26 modify 控制刻度盘使用
|
||||
//jig.setDispPrompt(_T("\n请选择下一点[回退(u)]:"));
|
||||
//cet 2012.3.26 modify 控制刻度盘使用
|
||||
//jig.setDispPrompt(_T("\n请选择下一点[回退(u)]:"));
|
||||
//jig.SetKeyword(_T("u "));
|
||||
jig.setDispPrompt(_T("\n请选择下一点[启用刻度盘(A)/禁用刻度盘(S)/回退(U)]:"));
|
||||
jig.setDispPrompt(_T("\n请选择下一点[启用刻度盘(A)/禁用刻度盘(S)/回退(U)]:"));
|
||||
jig.SetKeyword(_T("A S U"));
|
||||
|
||||
jig.SetPipeCanalPtr(pCanal);
|
||||
@@ -134,7 +134,7 @@ void DrawPipeCanal()
|
||||
|
||||
AcGeVector3d vtDir;
|
||||
jig.SetVtBefore(vtDir);
|
||||
nEs = acedGetPoint(NULL,_T("\n请选择方沟起点<退出>:"),ptS);
|
||||
nEs = acedGetPoint(NULL,_T("\n请选择方沟起点<退出>:"),ptS);
|
||||
if (nEs != RTNORM)
|
||||
break;
|
||||
if (pDlg != NULL)
|
||||
@@ -193,7 +193,7 @@ int TPipeCanalJig::DoIt(int *pKeyIndex)
|
||||
}
|
||||
else if (nRet == RTKWORD)
|
||||
{
|
||||
// cet 2012.3.26 modify 控制刻度盘的使用
|
||||
// cet 2012.3.26 modify 控制刻度盘的使用
|
||||
// if (m_arBeforePt.length() > 0)
|
||||
// {
|
||||
// m_ptS = m_arBeforePt.last();
|
||||
@@ -229,21 +229,21 @@ int TPipeCanalJig::DoIt(int *pKeyIndex)
|
||||
AcEdJig::DragStatus TPipeCanalJig::GetPoint(XPoint &pt)
|
||||
{
|
||||
AcEdJig::DragStatus sta = acquirePoint(pt,m_ptS);
|
||||
// cet 2012.3.26 add 不使用刻度盘
|
||||
// cet 2012.3.26 add 不使用刻度盘
|
||||
if (!m_bUseDial)
|
||||
{
|
||||
m_ptE = pt;
|
||||
return sta;
|
||||
}
|
||||
|
||||
//得到起点和终点的连线向量
|
||||
//得到起点和终点的连线向量
|
||||
AcGeVector3d vtNorm = AcGeVector3d::kZAxis;
|
||||
AcGeVector3d vt = pt - m_ptS;
|
||||
if (vt.isZeroLength())
|
||||
return kNoChange;
|
||||
vt = vt.orthoProject(vtNorm);
|
||||
|
||||
//得到起始方向向量
|
||||
//得到起始方向向量
|
||||
AcGeVector3d vtT = AcGeVector3d::kXAxis;
|
||||
if (!m_vtBefore.isZeroLength())
|
||||
{
|
||||
@@ -251,7 +251,7 @@ AcEdJig::DragStatus TPipeCanalJig::GetPoint(XPoint &pt)
|
||||
vtT.normalize();
|
||||
}
|
||||
|
||||
//按固定角度旋转
|
||||
//按固定角度旋转
|
||||
int nIndex = (int)((vt.angleTo(vtT) + m_dAverageAng/2)/ m_dAverageAng);
|
||||
|
||||
CString sText;
|
||||
@@ -310,7 +310,7 @@ Adesk::Boolean TPipeCanalJig::update()
|
||||
m_pVirtual->SetCenPoint(m_ptS);
|
||||
m_pVirtual->SetPanState(FALSE);
|
||||
m_pVirtual->SetAverageAng(m_dAverageAng);
|
||||
// cet 2012.3.26 add 是否使用刻度盘
|
||||
// cet 2012.3.26 add 是否使用刻度盘
|
||||
m_pVirtual->EnabelDrawWatch(m_bUseDial);
|
||||
}
|
||||
return Adesk::kTrue;
|
||||
|
||||
Reference in new issue
Block a user