#if !defined(AFX_SIMSHOWDIALOG_H__71D08722_8784_4B1D_9C56_694ABB7694C9__INCLUDED_) #define AFX_SIMSHOWDIALOG_H__71D08722_8784_4B1D_9C56_694ABB7694C9__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // SimShowDialog.h : header file // ///////////////////////////////////////////////////////////////////////////// // CSimShowDialog dialog class CSimShowDialog : public CDialog // this class is in affiliated with simshowdialog and shows and models the events and the data in its dialog box. { // Construction public: BOOL* tracked;// an arry (size = no. of recievers)that contains the state of the recievers . void EventShow();// this function shows the events (acquisition and tracking) that hapenned to Tx's and Rx's and the listbox of dialog . BOOL* acq;// an array (size no. of recievers*)that contains the acquisition state of the Rxs. int ClocksPerInterrupt;// this variable changes when user changes its volume bar then it causes that the no. of excution int m_nTimer;// the public return value of dialog's timer . BOOL timer;// off the timer is virtually off on = the timer is virtually on // int ClkChip; // int ClkBit; CSim* sim;// the pointer to the main Csim object of the simulation . CSimShowDialog(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CSimShowDialog) enum { IDD = IDD_SimShowDialog }; CEdit m_TxState;// to access to the transmitter state Editbox for disabling or enabling . CEdit m_RxState;// to access to the reciever state Editbox for desabling or enabling . CListBox events;// to access to the events Listbox for desabling or enabling . CButton ResumePause;// to access to the button that can resume or pause the action of simulation on the dialog box. int ClockBit;// shows the bit position of the simulation . int ClockChip;// shows the chip position of the simulation . int ClockByte;// shows the byte position of the simulation . int ClockSubChip;// shows the subchip position of the simulation . int MasterSpeed;// this variable changes when user changes the masterspeed volume bar . int SlaveSpeed0;// this variable changes when user changes the slavespeed 0 volume bar . int SlaveSpeed1;//this variable changes when user changes the slavespeed 1 volume bar . int ListSwitch;// radio variable that switches the List box object on or off. int RxSwitch;// radio button variable that switches the Rx state Editbox on or off. int TxSwitch;// radio button variable that switches the Tx state Editbox on or off. int RxID;// to set to show the state of the recievers RxID. int TxID;// used to set to show the state of the transmitter with this TxID. CString RxState;// a string that contains the state of the reciever with the ID=RxID CString TxState;// a string that contains the state of the transmitter with the ID= TxID //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CSimShowDialog) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CSimShowDialog) virtual BOOL OnInitDialog();// to set some inihat values of this object like timer and states of buttons . afx_msg void OnTimer(UINT nIDEvent);// this message function is called when the timer of this object interrupts. afx_msg void OnBResumePause();// calls when user clicks the resume/pause button. afx_msg void OnReleasedcaptureSMasterSpeed(NMHDR* pNMHDR, LRESULT* pResult);// called when user changes masterspeed volume bar . afx_msg void OnReleasedcaptureSSlaveSpeed0(NMHDR* pNMHDR, LRESULT* pResult);// called when user changes slave speed 0 volume bar . afx_msg void OnReleasedcaptureSSlaveSpeed1(NMHDR* pNMHDR, LRESULT* pResult);// called when user chainges slave speed 1 volume bar . afx_msg void OnRToff();// called when user switch off the transmitter state by choosing transmitter state group box "off" radio button. afx_msg void OnRTon();// called when user switch on the transmitter state by choosing transmitter state group box "on" radio button. afx_msg void OnRRoff();// called when user switch off the reciever state by choosing reciever state group box "off" radio button. afx_msg void OnRRon();// called when user switch on the reciever state by choosing reciever state group box "on" radio button. afx_msg void OnRLoff();// called when user switch off the Listbox by choosing event show groupbox "off" radio button . afx_msg void OnRLon();// called when user switch on the Listbox by choosing event show groupbox "on" radio button . //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SIMSHOWDIALOG_H__71D08722_8784_4B1D_9C56_694ABB7694C9__INCLUDED_)