113 lines
3.2 KiB
C++
113 lines
3.2 KiB
C++
#if !defined(AFX_OPCREATESPTDLG_H__6AAF5C48_4AD1_47E4_B7F8_4C8DDA08791A__INCLUDED_)
|
|
#define AFX_OPCREATESPTDLG_H__6AAF5C48_4AD1_47E4_B7F8_4C8DDA08791A__INCLUDED_
|
|
|
|
#include "opcreatesptinfoview.h"
|
|
#include "opcreatesptreclistview.h"
|
|
#include "opselspttpdlg.h"
|
|
#include "opsortspttpdlg.h"
|
|
|
|
#include "opcreatesptframe.h"
|
|
|
|
#include "Medium.h"
|
|
#include "Script2D.h"
|
|
|
|
#include "floatedit.h"
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// opcreatesptdlg.h : header file
|
|
//
|
|
class CSptRecord;
|
|
class CFloatEdit;
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// COpCreateSptDlg dialog
|
|
|
|
class COpCreateSptDlg : public CDialog
|
|
{
|
|
// DECLARE_EASYSIZE
|
|
public:
|
|
COpSelSptTpDlg m_opSelSptTpDlg;
|
|
COpSortSptTpDlg m_opSortSptTpDlg;
|
|
|
|
COpCreateSptFrame* m_pOpCreateSptFrame;
|
|
|
|
COpCreateSptView* m_pOpCreateSptView;
|
|
// COpCreateSptInfoView* m_pOpCreateSptInfoView;
|
|
COpCreateSptRecListView* m_pOpCreateSptRecListView;
|
|
// Construction
|
|
public:
|
|
void InsertSptRecToRecListView(CSptRecord* pSptRecord);
|
|
void AdjustRecListColumnIndex(int iAR);
|
|
// COpCreateSptDlg(CWnd* pParent = NULL); // standard constructor
|
|
COpCreateSptDlg(CScript2D* const pNewScript, CLinkList<CMedium*>* pMedLinkList, INT_PTR* pRet, CWnd* pParent = NULL);
|
|
|
|
float GetDipoleSpt(){return m_fDipoleSep;}
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(COpCreateSptDlg)
|
|
enum { IDD = IDD_OP_SPT_DB_C };
|
|
CComboBox m_cmbArRunMethod;
|
|
CComboBox m_cmbMNCtrl;
|
|
CTabCtrl m_tpTab;
|
|
CTime m_edDeDate;
|
|
CString m_strStartLayer;
|
|
CString m_strEndLayer;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(COpCreateSptDlg)
|
|
public:
|
|
virtual BOOL Create(UINT nID, CWnd* pParentWnd);
|
|
virtual BOOL DestroyWindow();
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
void ShowLayerFilterInfo(BOOL bShow);
|
|
bool SetSptRctItemStatus(CSptRecord* pSpt);
|
|
void InitUIByLanguage(int iLanguage);
|
|
int GetMinEAmountFromArType(int iArrType);
|
|
// Generated message map functions
|
|
//{{AFX_MSG(COpCreateSptDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSelchangeTabOpTp(NMHDR* pNMHDR, LRESULT* pResult);
|
|
virtual void OnOK();
|
|
virtual void OnCancel();
|
|
afx_msg void OnSelchangeSptChamount();
|
|
afx_msg void OnSelchangeSptAr();
|
|
// afx_msg void OnSelchangeSptEamount();
|
|
afx_msg void OnGen();
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg void OnButtonLayerFilter();
|
|
afx_msg void OnSelchangeComboMnCtrl();
|
|
LRESULT UpdateDisplay(WPARAM wParam, LPARAM lParam);
|
|
|
|
//创建脚本测点线程
|
|
static UINT GenerateScriptTestThread(LPVOID lParam);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
private:
|
|
CScript2D* m_pNewScript;
|
|
CLinkList<CMedium*>* m_pMedLinkList;
|
|
INT_PTR* m_pRet;
|
|
float m_fSptSeprate;
|
|
CHandleProcessor m_handleProcessor;
|
|
bool m_bIsShowLayerFilter;
|
|
//这里只适合单一通道的情况
|
|
CChannel* m_pChannel;
|
|
int m_iStartLayer;
|
|
int m_iEndLayer;
|
|
std::vector<int> m_vtListOrder;
|
|
float m_fDipoleSep; //偶极间隔因子
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_OPCREATESPTDLG_H__6AAF5C48_4AD1_47E4_B7F8_4C8DDA08791A__INCLUDED_)
|