📄 ldcno17songappui.cpp
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include "Ldcno17song.pan"
#include "Ldcno17songAppUi.h"
#include "HelloView.h"
#include "WorldView.h"
#include "Ldcno17song.hrh"
#include "Ldcno17songApplication.h" //for CEikApplication
void CLdcno17songAppUi::ConstructL()
{
BaseConstructL(EAknEnableSkin);
// iAppView = CLdcno17songAppView::NewL(ClientRect());
// AddToStackL(iAppView);
m_pHelloView = CHelloView::NewL();
AddViewL(m_pHelloView);
m_pWorldView = CWorldView::NewL();
AddViewL(m_pWorldView);
}
CLdcno17songAppUi::CLdcno17songAppUi()
{
// add any construction that cannot leave here
}
CLdcno17songAppUi::~CLdcno17songAppUi()
{
// if (iAppView)
// {
// iEikonEnv->RemoveFromStack(iAppView);
// delete iAppView;
// iAppView = NULL;
// }
}
void CLdcno17songAppUi::HandleCommandL(TInt aCommand)
{
switch(aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case ELdcno17songCommand1:
{
ActivateLocalViewL(KViewId1);
}
break;
case ELdcno17songCommand2:
{
ActivateLocalViewL(KViewId2);
}
break;
default:
Panic(ELdcno17songBasicUi);
break;
}
}
void CLdcno17songAppUi::GetAppPath(TDes& aPath) // 新增加!!
{
TFileName appFullName;
appFullName = Application()->AppFullName();
TParsePtr parse(appFullName);
aPath.Copy(parse.DriveAndPath());
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -