#if !defined(AFX_DLGSSPARAMS2_H__268A4A13_8083_486C_898C_06129AB88B1A__INCLUDED_)
#define AFX_DLGSSPARAMS2_H__268A4A13_8083_486C_898C_06129AB88B1A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgSSParams2.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


/////////////////////////////////////////////////////////////////////////////
// CDlgSSParams2 dialog

class CDlgSSParams2 : public CDialog
{
// Construction
public:
	void AddPulseFile(CString fileName);
	CDlgSSParams2(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(CDlgSSParams2)
	enum { IDD = IDD_DLG_SSPARAMS2 };
	CComboBox	m_ctrlComboPulse;
	CxShadeButton	m_ctrlUpdate;
	CxShadeButton	m_ctrlRangeUp;
	CxShadeButton	m_ctrlRangeDown;
	CxShadeButton	m_ctrlPowerUp;
	CxShadeButton	m_ctrlPowerDown;
	CxShadeButton	m_ctrlPELFSS;
	CStaticEx		m_ctrlPower;
	CString			m_strPower;
	CString			m_strRange;
	CStaticEx		m_ctrlRange;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgSSParams2)
	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(CDlgSSParams2)
	virtual void OnOK();
	afx_msg void OnRangeupLfss();
	afx_msg void OnRangedownLfss();
	afx_msg void OnPowerupLfss();
	afx_msg void OnPowerdownLfss();
	afx_msg void OnPeLfss();
	virtual BOOL OnInitDialog();
	afx_msg void OnUpdateLfss();
	afx_msg void OnDoubleclickedRangedownLfss();
	afx_msg void OnDoubleclickedRangeupLfss();
	afx_msg void OnDoubleclickedPowerdownLfss();
	afx_msg void OnDoubleclickedPowerupLfss();
	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_DLGSSPARAMS2_H__268A4A13_8083_486C_898C_06129AB88B1A__INCLUDED_)
