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.

104 lines
3.7 KiB
C++

#pragma once
#include "MyBttom.h"
// CDlgTest 对话框
#include "DlgPane.h"
#ifdef __TBAR_CODE__
#include "tbarcode51.h"
#endif
class CDlgTest : public CDlgPane
{
DECLARE_DYNAMIC(CDlgTest)
public:
CDlgTest(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgTest();
virtual UINT GetIDD(){return CDlgTest::IDD;};
void SetCmdEditFocus();
#ifdef __TBAR_CODE__
CTbarcode51 &GetTbarcode51(){return m_Tbarcode51;};
#endif
int GetInput1();
// 对话框数据
enum { IDD = IDD_TEST_DLG };
private:
bool CheckPortNum();
void SetCaptionInputStr();
void ResetCmdInputStr();
private:
int m_PortNum;//测试的pci 端口号
CString m_PortState;//端口状态
double m_Input1;//测试输入1
//串口调试
int m_CommPort;//串口号
CString m_CommStr;//发送的内容
CString m_CommRev;//串口收到的内容
int m_MarkTimes;//加工次数
int m_CyclicTimes;//循环次数
CEdit m_CmdInputEdit;
CString m_CmdInputStr;//cmd 输入
#ifdef __TBAR_CODE__
CTbarcode51 m_Tbarcode51;//条码控件
#endif
CMyBttom m_SendToComBtn;
CMyBttom m_OpenPciPortBtn;
CMyBttom m_ClosePciPortBtn;
CMyBttom m_ReadPciPortBtn;
CMyBttom m_Test1Btn;
CMyBttom m_Test2Btn;
CMyBttom m_ObjCompSetBtn;
CMyBttom m_MarkAreaSetBtn;
CMyBttom m_CreatObjBtn;
CMyBttom m_ReadDxfBtn;
CMyBttom m_ReadMakBtn;
CMyBttom m_ReadObjBtn;
CMyBttom m_SaveObjBtn;
CMyBttom m_ReadPltBtn;
CMyBttom m_PciMarkBtn;
CMyBttom m_PciAreaMarkBtn;
CMyBttom m_CutByPlatformBtn;
CMyBttom m_CameraCatchBtn;
CMyBttom m_SetMarkBtn;
CMyBttom m_CameraCatchMarkBtn;
CMyBttom m_ObjToCCDModeBtn;
CMyBttom m_CreatVisionDataBtn;
CMyBttom m_AdjustProductPosBtn;
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
afx_msg BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedTestBtn1();
afx_msg void OnBnClickedOpenPort();
afx_msg void OnBnClickedClosePort();
afx_msg void OnBnClickedTestBtn2();
afx_msg void OnBnClickedReadPort();
afx_msg void OnBnClickedWriteToComm();
afx_msg BOOL PreTranslateMessage(MSG* pMsg);
afx_msg void OnEnChangeEdit();
afx_msg BOOL OnMouseWheel(UINT nFlags,short zDelta,CPoint pt);
afx_msg void OnBnClickedPlatformIni();
afx_msg void OnBnClickedMarkAreaDlg();
afx_msg void OnBnClickedObjCompDlg();
afx_msg void OnBnClickedCreatObjByLayerShape();
afx_msg void OnBnClickedReadDxfFile();
afx_msg void OnBnClickedReadPltFile();
afx_msg void OnBnClickedReadObjFile();
afx_msg void OnBnClickedSaveObjFile();
afx_msg void OnBnClickedPciMark();
afx_msg void OnBnClickedPciMultiAreaMark();
afx_msg void OnBnClickedCutByPlatfrom();
afx_msg void OnBnClickedCcdCatch();
afx_msg void OnBnClickedCcdCatchTwoMark();
afx_msg void OnBnClickedObjToCcdMode();
afx_msg void OnBnClickedSetMarkPt();
afx_msg void OnBnClickedCreatVisionData();
afx_msg void OnBnClickedOpenMak();
afx_msg void OnBnClickedAdjustProductPos();
};