|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
#include "MyDlgView.h"
|
|
|
|
|
#include "GlobalDefine.h"
|
|
|
|
|
#include "RecipeMgr.h"
|
|
|
|
|
|
|
|
|
|
//double <20><><EFBFBD>Ϳؼ<CDBF><D8BC><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
class CDoubleParItem
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CDoubleParItem()
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
public:
|
|
|
|
|
int m_NameItemID;//<2F><><EFBFBD>ֿؼ<D6BF>ID
|
|
|
|
|
int m_ValItemID;//<2F><>ֵ<EFBFBD>ؼ<EFBFBD>ID
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CDlgChildRecipe : public CMyDlgView
|
|
|
|
|
{
|
|
|
|
|
DECLARE_DYNAMIC(CDlgChildRecipe)
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CDlgChildRecipe(CWnd* pParent = NULL); // <20><><EFBFBD><D7BC><EFBFBD>캯<EFBFBD><ECBAAF>
|
|
|
|
|
virtual ~CDlgChildRecipe();
|
|
|
|
|
virtual void UpdateLanguageTxt();
|
|
|
|
|
virtual void ChangeItemState();
|
|
|
|
|
virtual void SetTextCtrlItemID();
|
|
|
|
|
void InitDialogItem();
|
|
|
|
|
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
enum { IDD = IDD_CHILD_RECIPE };
|
|
|
|
|
protected:
|
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
|
|
|
|
|
virtual BOOL OnInitDialog();
|
|
|
|
|
void OnTimer(UINT nIDEvent);
|
|
|
|
|
void OnDrawEditRecipeList( NMHDR* pNMHDR, LRESULT* pResult );
|
|
|
|
|
void OnDrawEditRecipeInfoList( NMHDR* pNMHDR, LRESULT* pResult );
|
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
|
private:
|
|
|
|
|
void UpdateRecipeParInfo();
|
|
|
|
|
void InitParIDVec();
|
|
|
|
|
void UpdateAreaIdxCombo();
|
|
|
|
|
bool SaveCurSelRecipe();
|
|
|
|
|
void ResetEditRecipeItem();
|
|
|
|
|
void HideEditRecipeParItem();
|
|
|
|
|
private:
|
|
|
|
|
CString m_CurSelRecipeName;
|
|
|
|
|
vector<CDoubleParItem> m_DoubleParItemVec;//double <20><>ֵ<EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
CComboBox m_NewRecipeGroupComb;//<2F><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
|
|
|
|
CListCtrl m_GroupRecipeList;//Group recipe list
|
|
|
|
|
CListCtrl m_EditRecipeList;//Edit recipe list
|
|
|
|
|
CListCtrl m_EditRecipeInfoList;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>list
|
|
|
|
|
CListCtrl m_EditSubRecipeList;//Edit Sub recipe list
|
|
|
|
|
CComboBox m_EditRecipeParComb;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double m_EditRecipeParVal;
|
|
|
|
|
CString m_EditRecipeParName;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CEdit m_DoubleParEdit;//<2F><><EFBFBD>ڱ༭double<6C>ı༭<C4B1><E0BCAD>
|
|
|
|
|
CComboBox m_SelScanAreaComb;
|
|
|
|
|
CComboBox m_SelScanAreaIdxComb;
|
|
|
|
|
CComboBox m_SelBoolValComb;
|
|
|
|
|
CComboBox m_SelOffsetTableComb;
|
|
|
|
|
int m_row;//ѡ<><D1A1><EFBFBD><EFBFBD>
|
|
|
|
|
int m_col;//ѡ<><D1A1><EFBFBD><EFBFBD>
|
|
|
|
|
public:
|
|
|
|
|
afx_msg void OnBnClickedLaserPowCheck();
|
|
|
|
|
afx_msg void OnBnClickedRecipeNameBtn();
|
|
|
|
|
afx_msg void OnBnClickedGroupNameBtn();
|
|
|
|
|
afx_msg void OnBnClickedRecipeCopyBtn();
|
|
|
|
|
afx_msg void OnBnClickedRecipeMoveBtn();
|
|
|
|
|
afx_msg void OnBnClickedOpenViewDlgBtn();
|
|
|
|
|
afx_msg void OnBnClickedAddGroupBtn();
|
|
|
|
|
afx_msg void OnBnClickedDelGroupBtn();
|
|
|
|
|
afx_msg void OnBnClickedAddRecipeBtn();
|
|
|
|
|
afx_msg void OnBnClickedDelRecipeBtn();
|
|
|
|
|
afx_msg void OnBnClickedRecipeToEditBtn();
|
|
|
|
|
afx_msg void OnCbnSelchangeNewRecipeGroupCombo();
|
|
|
|
|
afx_msg void OnNMClickGroupRecipeList(NMHDR *pNMHDR, LRESULT *pResult);
|
|
|
|
|
afx_msg void OnNMClickEditRecipeList(NMHDR *pNMHDR, LRESULT *pResult);
|
|
|
|
|
afx_msg void OnNMClickEditSubRecipeList(NMHDR *pNMHDR, LRESULT *pResult);
|
|
|
|
|
afx_msg void OnBnClickedEditParSaveBtn();
|
|
|
|
|
afx_msg void OnBnClickedAddSubRecipeBtn();
|
|
|
|
|
afx_msg void OnBnClickedDelSubRecipeBtn();
|
|
|
|
|
afx_msg void OnBnClickedSubRecipeMoveUp();
|
|
|
|
|
afx_msg void OnBnClickedSubRecipeMoveDown();
|
|
|
|
|
afx_msg void OnCbnSelchangeSelScanAreaCombo();
|
|
|
|
|
afx_msg void OnCbnSelchangeSelOffsetTableCombo();
|
|
|
|
|
afx_msg void OnCbnSelchangeSelAreaIdxCombo();
|
|
|
|
|
afx_msg void OnCbnSelchangeSelBoolValCombo();
|
|
|
|
|
afx_msg void OnBnClickedRenameSubRecipeBtn();
|
|
|
|
|
afx_msg void OnBnClickedRcpCompareBtn();
|
|
|
|
|
afx_msg void OnEnKillfocusDoubleEdit();
|
|
|
|
|
afx_msg void OnBnClickedRcpHistoryBtn();
|
|
|
|
|
afx_msg void OnBnClickedRcpOffsetTab();
|
|
|
|
|
afx_msg void OnBnClickedUpdateRecipeBtn();
|
|
|
|
|
};
|