#if !defined(AFX_DLG7KSONARPARAMSMORE_H__40C84230_30BB_48EC_8AB7_27B73CD2E125__INCLUDED_)
#define AFX_DLG7KSONARPARAMSMORE_H__40C84230_30BB_48EC_8AB7_27B73CD2E125__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Dlg7kSonarParamsMore.h : header file
//

#include "6046DryEndDlg.h"
#include "xShadeButton.h"

/////////////////////////////////////////////////////////////////////////////
// CDlg7kSonarParamsMore dialog

class CDlg7kSonarParamsMore : public CDialog
{
// Construction
public:
	CDlg7kSonarParamsMore(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlg7kSonarParamsMore)
	enum { IDD = IDD_DLG_7KSONARMORE };
	CButton	m_ctrlCheckFlip;
	CButton			m_ctrlCheckFilters;
	CEdit			m_ctrlRangeMin;
	CEdit			m_ctrlRangeMax;
	CEdit			m_ctrlDepthMin;
	CEdit			m_ctrlDepthMax;
	CxShadeButton	m_ctrlUpdate;
	//}}AFX_DATA

	void			SetSensorIndex			(	int			index );

	void			InitControls			(	void );
	
	void			UpdateFilters			(	float			minRange, 
												float			maxRange,
												float			minDepth, 
												float			maxDepth,
												BOOL			state );

	UINT			m_uiSensorIndex;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlg7kSonarParamsMore)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	CSystemConfig		*m_pConfig;
	CMy6046DryEndDlg	*m_pMainWnd;

	float				m_fMinRange, m_fMaxRange, m_fMinDepth, m_fMaxDepth;

	// Generated message map functions
	//{{AFX_MSG(CDlg7kSonarParamsMore)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnButtonUpdate();
	afx_msg void OnChangeEditDepthmax();
	afx_msg void OnChangeEditDepthmin();
	afx_msg void OnChangeEditRangemax();
	afx_msg void OnChangeEditRangemin();
	afx_msg void OnCheckFilters();
	afx_msg void OnCheckFlip();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:

	void				SaveSettings	(	void );
	void				LoadSettings	(	void );
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLG7KSONARPARAMSMORE_H__40C84230_30BB_48EC_8AB7_27B73CD2E125__INCLUDED_)
