//{{AFX_INCLUDES() #include "msflexgrid.h" //}}AFX_INCLUDES #if !defined(AFX_MEDIUMDIALOG_H__3AD734ED_24F8_42C6_A9A8_5AECCF776669__INCLUDED_) #define AFX_MEDIUMDIALOG_H__3AD734ED_24F8_42C6_A9A8_5AECCF776669__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // MediumDialog.h : header file // ///////////////////////////////////////////////////////////////////////////// // CMediumDialog dialog //#include "Medium.h" //const int precision = 2; class CMediumDialog : public CDialog // this dialog-based class is used to gets the parameters of the new cmedium object from user by using "medium profile dialog". { // Construction public: //CMedium* medium; BOOL clickable;// when user only clicks without move the button of medium / this variable is set. // BYTE CurrentSubChip; // float signal; // float attenuation; // float delay; CFIR*** H;//H[i][j]->hn[k] is a double number that shows one of FIR coeficients "H" is a two dimentional FIR filter matrix that each H[i][j] shows a FIR filter between Tx[i] and Rx[j]. CMediumDialog(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CMediumDialog) enum { IDD = IDD_DMediumProfile }; CMSFlexGrid FlexGridHij;// a Microsoft FlexGrid object used for showing the "H" matrix . int NumRx;// number of receivers. int NumTx;// number of transmitters. //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMediumDialog) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CMediumDialog) virtual BOOL OnInitDialog();// called when a new medium profile dialog is opened by user. afx_msg void OnDblClickMSFLEXGRIDTransFunc();// called when user double-clicks the flexGrid object of this dialog. afx_msg void OnNew();// called when user clicks "reset" button on this dialog to reset medium. afx_msg void OnImportHij();// called when user clicks "import" button on this dialog to import a previously-made FIR filter matrix from its file . afx_msg void OnExportHij();// called when user clicks "export" button on this dialog to export current FIR filter matrix to a file. DECLARE_EVENTSINK_MAP() //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MEDIUMDIALOG_H__3AD734ED_24F8_42C6_A9A8_5AECCF776669__INCLUDED_)