// TabTriggerTimingDlg.cpp
//

#include "stdafx.h"
#include "sttrgdisplay.h"
#include "TabTriggerTimingDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CTabTriggerTimingDlg
CTabTriggerTimingDlg::CTabTriggerTimingDlg(CWnd* pParent /*=NULL*/)
	: CTabChildBase(CTabTriggerTimingDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CTabTriggerTimingDlg)
	//}}AFX_DATA_INIT
	m_szTabName = TEXT("Trigger Timing");

	//SliderCtrl
	m_SliderCtrlCount = 6;
	m_pSliderCtrlID = new UINT[m_SliderCtrlCount];
	m_pSliderCtrlID[0] = IDC_SLIDER_TRIGGER_TIMING_STROBE_START_DELAY;
	m_pSliderCtrlID[1] = IDC_SLIDER_TRIGGER_TIMING_STROBE_END_DELAY;
	m_pSliderCtrlID[2] = IDC_SLIDER_TRIGGER_TIMING_OUTPUT_PULSE_DELAY;
	m_pSliderCtrlID[3] = IDC_SLIDER_TRIGGER_TIMING_OUTPUT_PULSE_DURATION;
	m_pSliderCtrlID[4] = IDC_SLIDER_TRIGGER_TIMING_READOUT_DELAY;
	m_pSliderCtrlID[5] = IDC_SLIDER_TRIGGER_TIMING_LINE_DEBOUNCE_TIME;

	//StaticCtrl
	m_StaticCtrlCount = 6;
	m_pStaticCtrlID = new UINT[m_StaticCtrlCount];
	m_pStaticCtrlID[0] = IDC_STATIC_TRIGGER_TIMING_STROBE_START_DELAY_VALUE;
	m_pStaticCtrlID[1] = IDC_STATIC_TRIGGER_TIMING_STROBE_END_DELAY_VALUE;
	m_pStaticCtrlID[2] = IDC_STATIC_TRIGGER_TIMING_OUTPUT_PULSE_DELAY_VALUE;
	m_pStaticCtrlID[3] = IDC_STATIC_TRIGGER_TIMING_OUTPUT_PULSE_DURATION_VALUE;
	m_pStaticCtrlID[4] = IDC_STATIC_TRIGGER_TIMING_READOUT_DELAY_VALUE;
	m_pStaticCtrlID[5] = IDC_STATIC_TRIGGER_TIMING_LINE_DEBOUNCE_TIME;

	//EditCtrl
	m_EditCtrlCount = 6;
	m_pEditCtrlID = new UINT[m_EditCtrlCount];
	m_pEditCtrlID[0] = IDC_EDIT_TRIGGER_TIMING_STROBE_START_DELAY;
	m_pEditCtrlID[1] = IDC_EDIT_TRIGGER_TIMING_STROBE_END_DELAY;
	m_pEditCtrlID[2] = IDC_EDIT_TRIGGER_TIMING_OUTPUT_PULSE_DELAY;
	m_pEditCtrlID[3] = IDC_EDIT_TRIGGER_TIMING_OUTPUT_PULSE_DURATION;
	m_pEditCtrlID[4] = IDC_EDIT_TRIGGER_TIMING_READOUT_DELAY;
	m_pEditCtrlID[5] = IDC_EDIT_TRIGGER_TIMING_LINE_DEBOUNCE_TIME;
}

void CTabTriggerTimingDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CTabTriggerTimingDlg)
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CTabTriggerTimingDlg, CTabChildBase)
	//{{AFX_MSG_MAP(CTabTriggerTimingDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTabTriggerTimingDlg
