#if !defined(AFX_TXDIALOG_H__AF0CD0D1_A654_49C5_8EE9_68620FCDA95D__INCLUDED_) #define AFX_TXDIALOG_H__AF0CD0D1_A654_49C5_8EE9_68620FCDA95D__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // TxDialog.h : header file // ///////////////////////////////////////////////////////////////////////////// // CTxDialog dialog class CTxDialog : public CDialog // this CDialog derivative class is in affiliated with transmitter profile . { // Construction public: // CCode* code; // it isn't necessary because we access to all codes from the pointer of CSim* CSim* sim; // this variable point to the CSim class , the address of current simulation object . CTx* tx; // get a CTx pointer class to access to the new CTx defined object. CTxDialog(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CTxDialog) enum { IDD = IDD_DTransmitterProfile }; CEdit m_StartTime; // to desable or enable the starttime EditBox ofthe transmision of a transmitter(CTx) CEdit m_ProcDelay; // to desable or enable procedure delay EditBox of transmision between every two frame that is sent. CButton LoadFile; //to work with Loadfile button in a (transmitter profile ). CButton LoadData; //to desable or enable LoadData button in a (transmitter profile ). CButton LoadBinFile;// to work with Load Binary File in a (transmitter profile ). CButton Ready4Tx;// to desable or enable Ready 4 transmission button in a (transmitter profile ). CComboBox ComboOOC;// to work with OOC Combo box ina transmitter profile dialog . int BufferSize;// to set the button size of a transmitter . int PacketSize;// to set the packet size of a transmitter . int PayloadSize;// to set the payload size of a transmitter. BYTE TxID;// TxID is a static var that contains (shows0 the ID of the current transmitter profile. int WindowSize;// to set the window size of the current transmitter object. CString OOC;// it contains the string of selected OOC in ComboBox. int HeaderSize;// to set the header size of the current transmitter . int CRCSize;// to set the CRC size of the current transmitter . int UsedBufferSize;// shows the size of the buffer that is used by transmitter . BYTE OOCNum;// shows the inddex of the OOC code that is select for current transmitter object. int RndProcDelay;// in affiliated by random processdelay Radio Box 0=off 1=on int RndStartTime;// in affiliated by random starttime Radio Box 0=off 1=on int ProcDelay;// to get the delay of process among frames from user. int StartTime;// to get the starttime of transmmision of current transmitter object. //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTxDialog) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CTxDialog) virtual BOOL OnInitDialog();// set the variables comes from CTx*Tx object to the EditBoxes of transmitter profile dialog. afx_msg void OnROff();// off the random process delay. afx_msg void OnROn();// on the random process delay . afx_msg void OnBLoadFile();// open a Cfile dialog object to get a file afx_msg void OnBLoadBinaryFile();// open a Cfile dialog object to get a file as abionary tile . afx_msg void OnChangeEHeaderSize();// change the header size of transmitter as soon as you change the header size Edit Box . afx_msg void OnChangeEPayloadSize();// change the payload size of transmitter as soon as you change the payload size Edit Box. afx_msg void OnChangeEcrc();// change the CRC size of transmitter as soon as you change the CRC size Edit Box. afx_msg void OnSelendokComboOOC();// change the selected item of Combo Box if it can be done (never been selected befor). afx_msg void OnBLoadData();// open a CData dialog object to get data directly from user as character. afx_msg void OnROff2();// off the random start time + enable m-start time CEdit object or binary (0,1) afx_msg void OnROn2();// on the random start time + disable m-start time CEdit object afx_msg void OnChangeEProcDelay();// change the process delay as soon as you change the process delay. afx_msg void OnChangeEStartTime();// change the start time of transmission as soon as its Editbox changes by user. afx_msg void OnChangeEBufferSize();// change the buffer size of transmitter as soon as its Editbox changes by user. afx_msg void OnChangeEWindowSize();// change the window size of transmitter as soon as its Editbox changes by user. afx_msg void OnBShowBuffer();// open a showbuffer dialog to show the contant of transmitter buffer to user . //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_TXDIALOG_H__AF0CD0D1_A654_49C5_8EE9_68620FCDA95D__INCLUDED_)