// TabTriggerModeDlg.cpp
//

#include "stdafx.h"
#include "sttrgdisplay.h"
#include "TabTriggerModeDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTabTriggerModeDlg
CTabTriggerModeDlg::CTabTriggerModeDlg(CWnd* pParent /*=NULL*/)
	: CTabChildBase(CTabTriggerModeDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CTabTriggerModeDlg)
	//}}AFX_DATA_INIT
	m_szTabName = TEXT("Trigger Mode");
	
	//SliderCtrl
	m_SliderCtrlCount = 2;
	m_pSliderCtrlID = new UINT[m_SliderCtrlCount];
	m_pSliderCtrlID[0] = IDC_SLIDER_TRIGGER_DELAY;
	m_pSliderCtrlID[1] = IDC_SLIDER_TRIGGER_TIMER_PERIOD;

	//ComboBoxCtrl
	m_ComboBoxCtrlCount = 11;
	m_pComboBoxCtrlID = new UINT[m_ComboBoxCtrlCount];
	m_pComboBoxCtrlID[0] = IDC_COMBO_SENSOR_SHUTTER_MODE;
	m_pComboBoxCtrlID[1] = IDC_COMBO_EXPOSURE_MODE;
	m_pComboBoxCtrlID[2] = IDC_COMBO_TRIGGER_SELECTOR;
	m_pComboBoxCtrlID[3] = IDC_COMBO_TRIGGER_MODE;
	m_pComboBoxCtrlID[4] = IDC_COMBO_TRIGGER_SOURCE;
	m_pComboBoxCtrlID[5] = IDC_COMBO_TRIGGER_OVERLAP;
	m_pComboBoxCtrlID[6] = IDC_COMBO_TRIGGER_EXPOSURE_END;
	m_pComboBoxCtrlID[7] = IDC_COMBO_TRIGGER_WAIT_HD;
	m_pComboBoxCtrlID[8] = IDC_COMBO_TRIGGER_WAIT_READ_OUT;
	m_pComboBoxCtrlID[9] = IDC_COMBO_NOISE_REDUCTION;
	m_pComboBoxCtrlID[10] = IDC_COMBO_TRIGGER_CAMERA_MEMORY;

	//ButtonCtrl
	m_ButtonCtrlCount = 6;
	m_pButtonCtrlID = new UINT[m_ButtonCtrlCount];
	m_pButtonCtrlID[0] = IDC_BUTTON_TRIGGER_SOFTWARE_FRAME_START;
	m_pButtonCtrlID[1] = IDC_BUTTON_TRIGGER_SOFTWARE_EXPOSURE_START;
	m_pButtonCtrlID[2] = IDC_BUTTON_TRIGGER_SOFTWARE_EXPOSURE_END;
	m_pButtonCtrlID[3] = IDC_BUTTON_TRIGGER_SOFTWARE_SENSOR_READ_OUT_START;
	m_pButtonCtrlID[4] = IDC_BUTTON_RESET_COUNTER;
	m_pButtonCtrlID[5] = IDC_CHECK_TRIGGER_TIMER_ON;

	//EditCtrl
	m_EditCtrlCount = 2;
	m_pEditCtrlID = new UINT[m_EditCtrlCount];
	m_pEditCtrlID[0] = IDC_EDIT_TRIGGER_DELAY;
	m_pEditCtrlID[1] = IDC_EDIT_TRIGGER_TIMER_PERIOD;

	
	//StaticCtrl
	m_StaticCtrlCount = 2;
	m_pStaticCtrlID = new UINT[m_StaticCtrlCount];
	m_pStaticCtrlID[0] = IDC_STATIC_TRIGGER_DELAY;
	m_pStaticCtrlID[1] = IDC_STATIC_TRIGGER_TIMER_PERIOD;
}

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

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

/////////////////////////////////////////////////////////////////////////////
// CTabTriggerModeDlg
