📄 myzoneview.cpp
字号:
#include <aknviewappui.h>
#include <myzone.rsg>
#include "myzoneview.h"
#include "MyZoneContainer.h"
CMyZoneView::CMyZoneView()
{
}
CMyZoneView::~CMyZoneView()
{
if(iContainer)
{
AppUi()->RemoveFromViewStack(*this,iContainer);
delete iContainer;
iContainer = NULL;
}
}
void CMyZoneView::ConstructL()
{
BaseConstructL(R_MYZONE_VIEW);
}
TUid CMyZoneView::Id()const
{
return KMyZoneViewId;
}
void CMyZoneView::DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, const TDesC8& aCustomMessage)
{
if(!iContainer)
{
iContainer = new(ELeave)CMyZoneContainer();
iContainer->SetMopParent(this);
iContainer->ConstructL(ClientRect());
AppUi()->AddToStackL(*this,iContainer);
}
}
void CMyZoneView::DoDeactivate()
{
if(iContainer)
{
AppUi()->RemoveFromViewStack(*this,iContainer);
delete iContainer;
iContainer = NULL;
}
}
void CMyZoneView::HandleCommandL(TInt aCommand)
{
switch(aCommand)
{
default:
{
AppUi()->HandleCommandL(aCommand);
}
break;
}
}
void CMyZoneView::HandleClientRectChange()
{
}
void CMyZoneView::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -