#if !defined(AFX_DLGSSPARAMS_H__F0CEAB66_B99A_459A_AA35_8BDCB0107489__INCLUDED_)
#define AFX_DLGSSPARAMS_H__F0CEAB66_B99A_459A_AA35_8BDCB0107489__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgSSParams.h : header file
//

#include <vector>
using namespace std;

#include "xShadeButton.h"
#include "StaticEx.h"

#include "6046DryEndDlg.h"


#define RANGE_CELLS	7
#define POWER_CELLS	101

/////////////////////////////////////////////////////////////////////////////
// CDlgSSParams dialog


class CDlgSSParams : public CDialog
{
// Construction
public:
	void AddPulseFile(CString fileName);
	CDlgSSParams(CWnd* pParent = NULL);   // standard constructor

	void	SetSensorIndex(UINT index);
	UINT	m_dSensorIndex;

	void	AddPulseFiles();
	vector<CString> m_vecPulseFiles;

	CMy6046DryEndDlg	*m_pMainWnd;
	CSystemConfig		*m_pConfig;

	DWORD				SetCurrentRange			( float range );
	DWORD				SetCurrentPower			( UINT  power );
	
	BOOL	m_bPingEnabled;

// Dialog Data
	//{{AFX_DATA(CDlgSSParams)
	enum { IDD = IDD_DLG_SSPARAMS };
	CComboBox	m_ctrlComboPulse;
	CxShadeButton	m_ctrlUpdate;
	CxShadeButton	m_ctrlRangeUp;
	CxShadeButton	m_ctrlRangeDown;
	CxShadeButton	m_ctrlPEHFSS;
	CxShadeButton	m_ctrlPowerUp;
	CxShadeButton	m_ctrlPowerDown;
	CStaticEx		m_ctrlPower;
	CStaticEx		m_ctrlRange;
	CString			m_strPower;
	CString			m_strPulse;
	CString			m_strRange;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgSSParams)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgSSParams)
	virtual void OnOK();
	afx_msg void OnPeHfss();
	afx_msg void OnPowerdownHfss();
	afx_msg void OnPowerupHfss();
	afx_msg void OnRangedownHfss();
	afx_msg void OnRangeupHfss();
	virtual BOOL OnInitDialog();
	afx_msg void OnUpdateHfss();
	afx_msg void OnDestroy();
	afx_msg void OnCancelMode();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	void SaveSettings();
	void LoadSettings();

	int   m_dRange, m_dPower; //index into arrays
	char  *m_pPulseFile;
	BOOL  bPingEnable;

	static int	 m_aiRange[RANGE_CELLS];
		   int   m_aiPower[POWER_CELLS];

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGSSPARAMS_H__F0CEAB66_B99A_459A_AA35_8BDCB0107489__INCLUDED_)
