00001 #if !defined(AFX_PREFERENCESDLG_H__E42A9827_1C70_4C4D_A234_4645C7FC5464__INCLUDED_) 00002 #define AFX_PREFERENCESDLG_H__E42A9827_1C70_4C4D_A234_4645C7FC5464__INCLUDED_ 00003 00004 #if _MSC_VER > 1000 00005 #pragma once 00006 #endif // _MSC_VER > 1000 00007 // PreferencesDlg.h : header file 00008 // 00009 00011 // CPreferencesDlg dialog 00012 00013 #include "GridCtrl_src/GridCtrl.h" 00014 00017 class CPreferencesDlg : public CDialog 00018 { 00019 // Construction 00020 public: 00021 CPreferencesDlg(CWnd* pParent = NULL); // standard constructor 00022 00023 // Dialog Data 00024 //{{AFX_DATA(CPreferencesDlg) 00025 enum { IDD = IDD_PREFERENCES }; 00026 double m_Scale; 00027 double m_ExaggerateWidths; 00028 double m_TimeWarp; 00029 double m_LaneWidth; 00030 double m_VehicleWidth; 00031 double m_VehicleLengthScale; 00032 double m_ShowVelocity; 00033 double m_ShowLegend; 00034 double m_TickLength; 00035 double m_TickStep; 00036 double m_Border_Top; 00037 double m_Border_Btm; 00038 double m_Border_Lhs; 00039 double m_Border_Rhs; 00040 //}}AFX_DATA 00041 CGridCtrl m_Grid; 00042 00043 // Overrides 00044 // ClassWizard generated virtual function overrides 00045 //{{AFX_VIRTUAL(CPreferencesDlg) 00046 protected: 00047 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00048 //}}AFX_VIRTUAL 00049 00050 // Implementation 00051 protected: 00052 00053 // Generated message map functions 00054 //{{AFX_MSG(CPreferencesDlg) 00055 virtual void OnOK(); 00056 //}}AFX_MSG 00057 DECLARE_MESSAGE_MAP() 00058 private: 00059 int m_nFixCols; 00060 int m_nFixRows; 00061 CStringArray m_sRowHeads; 00062 CStringArray m_sColHeads; 00063 int m_nCols; 00064 int m_nRows; 00065 00066 BOOL OnInitDialog(); 00067 void SetGridHeadings(); 00068 void SetCells(); 00069 void LoadSettingsIntoGrid(); 00070 void OnGridEndEdit(NMHDR *pNotifyStruct, LRESULT* pResult); 00071 double* MapRowToValue(int row); 00072 00073 double MIN_VIEW_SCALE; 00074 }; 00075 00076 //{{AFX_INSERT_LOCATION}} 00077 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00078 00079 #endif // !defined(AFX_PREFERENCESDLG_H__E42A9827_1C70_4C4D_A234_4645C7FC5464__INCLUDED_)