#if !defined(AFX_MEGATUNEDLG_H__EEA60A6E_4090_11D5_8540_000000000000__INCLUDED_)
#define AFX_MEGATUNEDLG_H__EEA60A6E_4090_11D5_8540_000000000000__INCLUDED_

// $Id$

//*****************************************
//******** PC Configurator V1.00 **********
//*** (C) - 2001 B.Bowling/A. Grippo ******
//** All derivatives from this software ***
//**  are required to keep this header ****
//*****************************************

#if _MSC_VER >= 1000
#pragma once
#endif

#include "AnalogMeter.h"
#include "BarMeter.h"

//------------------------------------------------------------------------------
// CMegatuneDlg dialog

class CMegatuneDlg:public CDialog
{
private:
   CAnalogMeter meterRPM, meterTP , meterPW1, meterDC1;
   CAnalogMeter meterMAP, meterMAT, meterPW2, meterDC2;
   CBarMeter    meterEGO;

   enum { on = 1, off = 0 };
   void timer(int);

   void SetPage(int pageNo);

// Construction
public:
   CMegatuneDlg(CWnd * pParent = NULL);                // standard constructor

// Dialog Data
   //{{AFX_DATA(CMegatuneDlg)
	enum { IDD = IDD_MEGATUNE_DIALOG };
	CStatic	m_pageNoText;
	CSpinButtonCtrl	m_pageNo;
	CEdit	m_statusLogging;
	CEdit	m_statusFilename;
	CEdit	m_statusSaved;
	CEdit	m_statusConnected;
	//}}AFX_DATA

   // ClassWizard generated virtual function overrides
   //{{AFX_VIRTUAL(CMegatuneDlg)
	protected:
      virtual void   DoDataExchange(CDataExchange * pDX);  // DDX/DDV support
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
protected:
   HICON       m_hIcon;
   CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
   UINT        m_IDalt1HotKey;
   UINT        m_IDalt2HotKey;
   UINT        m_IDaltRHotKey; // Run-time
   UINT        m_IDaltSHotKey; // conStants
   UINT        m_IDaltEHotKey; // Enrichments
   UINT        m_IDaltVHotKey; // VE Table
   UINT        m_IDctlSHotKey; // Save

   // Generated message map functions
   //{{AFX_MSG(CMegatuneDlg)
      virtual BOOL    OnInitDialog();
      afx_msg void    OnPaint();
      afx_msg HCURSOR OnQueryDragIcon();
      afx_msg void    OnConstants();
      afx_msg void    OnEnrichments();
      afx_msg void    OnRuntime();
      afx_msg void    OnVetable();
      afx_msg void    OnSetport();
      afx_msg void    OnTune();
      afx_msg void    OnSave();
      afx_msg void    OnSaveAs();
      afx_msg void    OnDump();
	afx_msg void OnContourPlot();
	afx_msg void OnAbout();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnOpen();
	afx_msg void OnDatalogC();
	afx_msg void OnDatalogF();
	afx_msg void OnDatalogX();
   afx_msg void OnDatalogR();
	afx_msg void OnDeltaPageNo(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnHexedit();
	afx_msg void OnCommlog();
	afx_msg void OnTableedit();
	afx_msg void OnVeExport();
	afx_msg void OnVeImport();
   afx_msg LRESULT OnHotKey(WPARAM wp, LPARAM);
	afx_msg void OnDestroy();
	afx_msg void OnGenerateTP();
	afx_msg void OnScaleVe();
	//}}AFX_MSG
   DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MEGATUNEDLG_H__EEA60A6E_4090_11D5_8540_000000000000__INCLUDED_)

