⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pathsimview.h

📁 信道仿真源代码
💻 H
字号:
// PathSimView.h : interface of the CPathSimView class
//
//////////////////////////////////////////////////////////////////////
// Copyright 2000.    Moe Wheatley AE4JY  <ae4jy@mindspring.com>
//
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either version 2
//of the License, or any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with this program; if not, write to the Free Software
//Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PATHSIMVIEW_H__22C08F8C_5014_11D4_B4E9_802650C10000__INCLUDED_)
#define AFX_PATHSIMVIEW_H__22C08F8C_5014_11D4_B4E9_802650C10000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "PlotData.h"
#include "IOCntrl.h"

class CPathSimView : public CFormView
{
protected: // create from serialization only
	CPathSimView();
	DECLARE_DYNCREATE(CPathSimView)

public:
	//{{AFX_DATA(CPathSimView)
	enum { IDD = IDD_PATHSIM_FORM };
	CStatic	m_NoiseRMSCtrl;
	CStatic	m_SigRMSCtrl;
	CStatic	m_SignalGainCtrl;
	CStatic	m_AWGNGainCtrl;
	CStatic	m_TestTextCtrl1;
	CStatic	m_TestTextCtrl2;
	CStatic	m_FFTFreqCtrl;
	CStatic	m_Bypass2Ctrl;
	CStatic	m_Bypass1Ctrl;
	CStatic	m_OutFileCtrl;
	CStatic	m_OutInfoCtrl;
	CStatic	m_InFileCtrl;
	CStatic	m_InInfoCtrl;
	CStatic	m_RMSoutCtrl;
	CStatic	m_AWGNrmsCtrl;
	CButton	m_StopCtrl;
	CButton	m_StartCtrl;
	BOOL	m_AWGNOn;
	BOOL	m_Path0On;
	BOOL	m_Path1On;
	BOOL	m_Path2On;
	double	m_Offset0;
	double	m_Offset1;
	double	m_Offset2;
	double	m_Delay1;
	double	m_Delay2;
	CString	m_SimTitle;
	int		m_TimeLimit;
	BOOL	m_UseDelayStart;
	int		m_DelayStartHour;
	int		m_DelayStartMin;
	CString	m_DiskFree;
	CString	m_DiskNeeded;
	int		m_SNRSetValue;
	double	m_Spread0;
	double	m_Spread1;
	double	m_Spread2;
	//}}AFX_DATA

// Attributes
public:
	CPathSimDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPathSimView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CPathSimView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

public:
	CPlotData* m_pCPlotData;
	CIOCntrl* m_pCIOCntrl;
	void OnExStart(){ OnStart();};
	void OnExStop(){ OnStop();};
protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CPathSimView)
	afx_msg void OnDestroy();
	afx_msg void OnStart();
	afx_msg void OnStop();
	afx_msg void OnInselect();
	afx_msg void OnOutselect();
	afx_msg void OnDeltaposSnrspin(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnKillfocusEdittitle();
	afx_msg void OnKillfocusEditruntime();
	afx_msg void OnUsedelaystart();
	afx_msg void OnKillfocusStarteditHour();
	afx_msg void OnKillfocusStarteditMin();
	afx_msg void OnKillfocusEditdelay1();
	afx_msg void OnKillfocusEditdelay2();
	afx_msg void OnKillfocusEditoffset0();
	afx_msg void OnKillfocusEditoffset1();
	afx_msg void OnKillfocusEditoffset2();
	afx_msg void OnKillfocusEditsnr();
	afx_msg void OnPathChange();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnKillfocusEditspread0();
	afx_msg void OnKillfocusEditspread1();
	afx_msg void OnKillfocusEditspread2();
	//}}AFX_MSG
	afx_msg LRESULT OnDataRdy(UINT x, LONG y);
	afx_msg LRESULT OnDone(UINT x, LONG y);
	afx_msg LRESULT OnError(UINT x, LONG y);
	DECLARE_MESSAGE_MAP()
private:
	void UpdateDiskInfo();
	void EnableAllCtrls(BOOL val);
};


#ifndef _DEBUG  // debug version in PathSimView.cpp
inline CPathSimDoc* CPathSimView::GetDocument()
   { return (CPathSimDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PATHSIMVIEW_H__22C08F8C_5014_11D4_B4E9_802650C10000__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -