📄 ldn02appui.cpp
字号:
/* Copyright (c) 2009, Nokia. All rights reserved */
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include "LDN02Application.h"
#include "LDN02.pan"
#include "LDN02AppUi.h"
#include "LDN02.hrh"
#include "HelloView.h"
#include "WorldView.h"
#include "common.h"
void CLDN02AppUi::ConstructL()
{
BaseConstructL(EAknEnableSkin);
m_pHelloView = CHelloView::NewL();
AddViewL(m_pHelloView);
m_pWorldView = CWorldView::NewL(m_pHelloView);
AddViewL(m_pWorldView);
SetDefaultViewL(*m_pHelloView);
}
CLDN02AppUi::CLDN02AppUi()
{
// add any construction that cannot leave here
m_pHelloView = NULL;
m_pWorldView = NULL;
}
CLDN02AppUi::~CLDN02AppUi()
{
}
void CLDN02AppUi::HandleCommandL(TInt aCommand)
{
switch(aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case ELDN02Command1:
{
_LIT(message,"Command 1");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
default:
Panic(ELDN02BasicUi);
break;
}
}
void CLDN02AppUi::GetAppPath(TDes& aPath)
{
TFileName appFullName;
appFullName = Application()->AppFullName();
TParsePtr parse(appFullName);
aPath.Copy(parse.DriveAndPath());
}
//the end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -