controlinterface.cpp
来自「本程序源码是为日本一家地震监测机构编写的」· C++ 代码 · 共 67 行
CPP
67 行
// ControlInterface.cpp: implementation of the CControlInterface class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CQuakeDemo.h"
#include "ControlInterface.h"
#include "QuakeView.h"
#include "CQuakeDemoDoc.h"
#include "DlgRateSet.h"
#include "DlgPageOne.h"
#include "DlgPageTwo.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CControlInterface::CControlInterface()
{
m_pView = NULL;
m_pDoc = NULL;
m_pRateSet = NULL;
m_pPageOne = NULL;
m_pPageTwo = NULL;
}
CControlInterface::~CControlInterface()
{
}
void CControlInterface::SetViewPointer(CQuakeView* pView)
{ASSERT(pView != NULL);m_pView = pView;}
void CControlInterface::SetDocPointer(CCQuakeDemoDoc* pDoc)
{ASSERT(pDoc != NULL);m_pDoc = pDoc;}
void CControlInterface::SetControlPointer(CDlgRateSet* pRateSet)
{ASSERT(pRateSet != NULL);m_pRateSet = pRateSet;}
void CControlInterface::SetPageOnePointer(CDlgPageOne* pPageOne)
{ASSERT(pPageOne != NULL);m_pPageOne = pPageOne;}
void CControlInterface::SetPageTwoPointer(CDlgPageTwo* pPageTwo)
{ASSERT(pPageTwo != NULL);m_pPageTwo = pPageTwo;}
void CControlInterface::InitInterface()
{
if(m_pPageOne != NULL)
m_pPageOne->Init();
if(m_pPageTwo != NULL)
m_pPageTwo->Init();
}
void CControlInterface::Update()
{
if(m_pPageOne != NULL)
m_pPageOne->Update();
if(m_pPageTwo != NULL)
m_pPageTwo->Update();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?