// TabIODlg.cpp
//

#include "stdafx.h"
#include "sttrgdisplay.h"
#include "TabIODlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTabIODlg
CTabIODlg::CTabIODlg(CWnd* pParent /*=NULL*/)
	: CTabChildBase(CTabIODlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CTabIODlg)
	//}}AFX_DATA_INIT
	m_szTabName = TEXT("IO");

	//ComboBoxCtrl
	m_ComboBoxCtrlCount = 19;
	m_pComboBoxCtrlID = new UINT[m_ComboBoxCtrlCount];
	m_pComboBoxCtrlID[0] = IDC_COMBO_IO_DIR_0;
	m_pComboBoxCtrlID[1] = IDC_COMBO_IO_DIR_1;
	m_pComboBoxCtrlID[2] = IDC_COMBO_IO_DIR_2;
	m_pComboBoxCtrlID[3] = IDC_COMBO_IO_DIR_3;

	m_pComboBoxCtrlID[4] = IDC_COMBO_IO_POL_0;
	m_pComboBoxCtrlID[5] = IDC_COMBO_IO_POL_1;
	m_pComboBoxCtrlID[6] = IDC_COMBO_IO_POL_2;
	m_pComboBoxCtrlID[7] = IDC_COMBO_IO_POL_3;

	m_pComboBoxCtrlID[8] = IDC_COMBO_IO_STATUS_0;
	m_pComboBoxCtrlID[9] = IDC_COMBO_IO_STATUS_1;
	m_pComboBoxCtrlID[10] = IDC_COMBO_IO_STATUS_2;
	m_pComboBoxCtrlID[11] = IDC_COMBO_IO_STATUS_3;

	m_pComboBoxCtrlID[12] = IDC_COMBO_IO_MODE_0;
	m_pComboBoxCtrlID[13] = IDC_COMBO_IO_MODE_1;
	m_pComboBoxCtrlID[14] = IDC_COMBO_IO_MODE_2;
	m_pComboBoxCtrlID[15] = IDC_COMBO_IO_MODE_3;

	m_pComboBoxCtrlID[16] = IDC_COMBO_LED_RED;
	m_pComboBoxCtrlID[17] = IDC_COMBO_LED_GREEN;
	m_pComboBoxCtrlID[18] = IDC_COMBO_RESET_SWITCH;

	//StaticCtrl
	m_StaticCtrlCount = 10;
	m_pStaticCtrlID = new UINT[m_StaticCtrlCount];
	m_pStaticCtrlID[0] = IDC_EDIT_CAMERA_TYPE;
	m_pStaticCtrlID[1] = IDC_EDIT_FPGA_VERSION;
	m_pStaticCtrlID[2] = IDC_EDIT_FIRM_VERSION;
	m_pStaticCtrlID[3] = IDC_EDIT_SDK_VERSION;
	m_pStaticCtrlID[4] = IDC_EDIT_SW_STATUS_1;
	m_pStaticCtrlID[5] = IDC_EDIT_SW_STATUS_2;
	m_pStaticCtrlID[6] = IDC_EDIT_SW_STATUS_3;
	m_pStaticCtrlID[7] = IDC_EDIT_SW_STATUS_4;
	m_pStaticCtrlID[8] = IDC_EDIT_TEMPERATURE;
	m_pStaticCtrlID[9] = IDC_STATIC_TEMPERATURE;
}

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

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

/////////////////////////////////////////////////////////////////////////////
// CTabIODlg



