📄 orchelpview.cpp
字号:
/* Copyright (c) 2007, Nokia. All rights reserved */
#include <akntitle.h>
#include "orcerAppUi.h"
#include "ORCHelpView.h"
#include "ORCHelpContainer.h"
#include "orcer.hrh"
#include "orcer.rsg"
CORCHelpView* CORCHelpView::NewL()
{
CORCHelpView* self = NewLC();
CleanupStack::Pop(self);
return self;
}
CORCHelpView* CORCHelpView::NewLC()
{
CORCHelpView* self = new (ELeave) CORCHelpView();
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
void CORCHelpView::ConstructL()
{
BaseConstructL(R_HELP_VIEW);
}
CORCHelpView::CORCHelpView()
{
m_pAppContainer = NULL;
}
CORCHelpView::~CORCHelpView()
{
}
TUid CORCHelpView::Id() const
{
return TUid::Uid(EORCHelpViewID);
}
void CORCHelpView::HandleCommandL(TInt aCommand)
{//Martin
switch(aCommand) {
case EAknSoftkeyBack://返回
AppUi()->ActivateLocalViewL(TUid::Uid(EORCLoginViewID));
break;
default:
AppUi()->HandleCommandL(aCommand);
break;
}
}
void CORCHelpView::HandleClientRectChange()
{
}
void CORCHelpView::DoActivateL(const TVwsViewId&, TUid, const TDesC8&)
{
m_pAppContainer = new( ELeave ) CORCHelpContainer();
m_pAppContainer->SetMopParent(this);
m_pAppContainer->ConstructL(TRect(TPoint(0, 44), TSize(176, 144)));
AppUi()->AddToStackL( *this, m_pAppContainer );
//Martin
TBuf<32> buf;
CEikonEnv::Static()->ReadResource(buf, R_RECORD_HELP);
CEikStatusPane* sp=iEikonEnv->AppUiFactory()->StatusPane();
CAknTitlePane* tp=(CAknTitlePane*)sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle));
tp->SetTextL(buf);
}
void CORCHelpView::DoDeactivate()
{
if(m_pAppContainer)
{
AppUi()->RemoveFromStack( m_pAppContainer );
delete m_pAppContainer;
m_pAppContainer = NULL;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -