// SDK_USBm_TOSHIBADlg.h : header file
//

#if !defined(AFX_SDK_USBM_TOSHIBADLG_H__0207F1DA_6E9B_434D_B340_5194EE4D0B3A__INCLUDED_)
#define AFX_SDK_USBM_TOSHIBADLG_H__0207F1DA_6E9B_434D_B340_5194EE4D0B3A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CSDK_USBm_TOSHIBADlg dialog
#include "SPdbUSBmDLL.h"

class CSDK_USBm_TOSHIBADlg : public CDialog
{
// Construction
public:
	CSDK_USBm_TOSHIBADlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CSDK_USBm_TOSHIBADlg)
	enum { IDD = IDD_SDK_USBM_TOSHIBA_DIALOG };
	CButton	m_btnAssign;
	CEdit	m_edSaveFileName;
	CEdit	m_edTimeAve;
	CEdit	m_edIntTime;
	CComboBox	m_cbChnlNum;
	CButton	m_btnGetDataCrnt;
	CButton	m_btnGetDataAll;
	CButton	m_btnClose;
	CButton	m_btnChkCnct;
	CButton	m_btnChkChnl;
	CString	m_strSaveFileName;
	CString	m_strChkChnl;
	CString	m_strChkCnct;
	int		m_iTimeAve;
	double	m_dIntTime;
	int		m_iTriggerMode;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSDK_USBm_TOSHIBADlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void DeactivateCtrls();
//	int SaveData(CString strName, float *fData, int iNum);
	short GetAndSaveData(CString strName, short sChnlID);
	short m_sPixelNum;		// CCD Pixel number, TOSHIBA 511: 2080 (32 dummy pixels + 2048 real pixels)
	short m_sTotChnlNum;	// Total Channel number
	short m_sCurChnl;		// Current Channel number
	short m_asChnIDs[MAX_USB_PORT_NUM];	// Channel IDs connected
	double m_adIntTime[MAX_USB_PORT_NUM];	// Integration Time per each channel
//	long m_alIntTime[MAX_USB_PORT_NUM];	// Integration Time per each channel
	BOOL m_bTriggerOld;	// Trigger mode (old)
	HICON m_hIcon;
	BOOL	m_bExtTrigger;
	int m_iTriggerModeOld;
	BOOL m_bTrgModeChange;
	// Generated message map functions
	//{{AFX_MSG(CSDK_USBm_TOSHIBADlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBtnClose();
	afx_msg void OnBtnAssign();
	afx_msg void OnBtnChkConnect();
	afx_msg void OnBtnChkChannels();
	afx_msg void OnClose();
	afx_msg void OnSelchangeCbChannelNum();
	afx_msg void OnChangeEditIntTime();
	afx_msg void OnBtnGetDataCurrentChnl();
	afx_msg void OnBtnGetDataAllChannels();
	afx_msg void OnBtnTrgmodeset();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void TrgModeChange(UINT nID);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SDK_USBM_TOSHIBADLG_H__0207F1DA_6E9B_434D_B340_5194EE4D0B3A__INCLUDED_)
