// TabShutterGainDlg.cpp
//

#include "stdafx.h"
#include "StTrgDisplay.h"
#include "TabShutterGainDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTabShutterGainDlg
CTabShutterGainDlg::CTabShutterGainDlg(CWnd* pParent /*=NULL*/)
	: CTabChildBase(CTabShutterGainDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CTabShutterGainDlg)
	//}}AFX_DATA_INIT
	m_szTabName = TEXT("Shutter/Gain");

	//SliderCtrl
	m_SliderCtrlCount = 8;
	m_pSliderCtrlID = new UINT[m_SliderCtrlCount];
	m_pSliderCtrlID[0] = IDC_SLIDER_EXPOSURE;
	m_pSliderCtrlID[1] = IDC_SLIDER_CDS_GAIN;
	m_pSliderCtrlID[2] = IDC_SLIDER_DIGITAL_GAIN;
	m_pSliderCtrlID[3] = IDC_SLIDER_ALC_TARGET_LEVEL;
	m_pSliderCtrlID[4] = IDC_SLIDER_AE_MIN_EXPOSURE;
	m_pSliderCtrlID[5] = IDC_SLIDER_AE_MAX_EXPOSURE;
	m_pSliderCtrlID[6] = IDC_SLIDER_AGC_MIN_GAIN;
	m_pSliderCtrlID[7] = IDC_SLIDER_AGC_MAX_GAIN;

	//EditCtrl
	m_EditCtrlCount = 8;
	m_pEditCtrlID = new UINT[m_EditCtrlCount];
	m_pEditCtrlID[0] = IDC_EDIT_EXPOSURE;
	m_pEditCtrlID[1] = IDC_EDIT_CDS_GAIN;
	m_pEditCtrlID[2] = IDC_EDIT_DIGITAL_GAIN;
	m_pEditCtrlID[3] = IDC_EDIT_ALC_TARGET_LEVEL;
	m_pEditCtrlID[4] = IDC_EDIT_AE_MIN_EXPOSURE;
	m_pEditCtrlID[5] = IDC_EDIT_AE_MAX_EXPOSURE;
	m_pEditCtrlID[6] = IDC_EDIT_AGC_MIN_GAIN;
	m_pEditCtrlID[7] = IDC_EDIT_AGC_MAX_GAIN;
	
	//StaticCtrl
	m_StaticCtrlCount = 8;
	m_pStaticCtrlID = new UINT[m_StaticCtrlCount];
	m_pStaticCtrlID[0] = IDC_STATIC_EXPOSURE_VALUE;
	m_pStaticCtrlID[1] = IDC_STATIC_CDS_GAIN_VALUE;
	m_pStaticCtrlID[2] = IDC_STATIC_DIGITAL_GAIN_VALUE;
	m_pStaticCtrlID[3] = IDC_STATIC_AE_MIN_EXPOSURE;
	m_pStaticCtrlID[4] = IDC_STATIC_AE_MAX_EXPOSURE;
	m_pStaticCtrlID[5] = IDC_STATIC_AGC_MIN_GAIN;
	m_pStaticCtrlID[6] = IDC_STATIC_AGC_MAX_GAIN;
	m_pStaticCtrlID[7] = IDC_STATIC_ADJUSTMENT_DIGITAL_GAIN;



	//ComboBoxCtrl
	m_ComboBoxCtrlCount = 2;
	m_pComboBoxCtrlID = new UINT[m_ComboBoxCtrlCount];
	m_pComboBoxCtrlID[0] = IDC_COMBO_ALC_MODE;
	m_pComboBoxCtrlID[1] = IDC_COMBO_ADJUSTMENT_DIGITAL_GAIN;
}

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

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

/////////////////////////////////////////////////////////////////////////////
// CTabShutterGainDlg



