📄 controlinterface.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -