📄 ballappui.cpp
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include "Ball.pan"
#include "BallAppUi.h"
#include "BallAppView.h"
#include "Ball.hrh"
void CBallAppUi::ConstructL()
{
BaseConstructL(EAknEnableSkin);
iAppView = CBallAppView::NewL(ClientRect());
AddToStackL(iAppView);
}
CBallAppUi::CBallAppUi()
{
// add any construction that cannot leave here
}
CBallAppUi::~CBallAppUi()
{
if (iAppView)
{
iEikonEnv->RemoveFromStack(iAppView);
delete iAppView;
iAppView = NULL;
}
}
void CBallAppUi::HandleCommandL(TInt aCommand)
{
switch(aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case EBallCommand1:
{
_LIT(message,"Command 1");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
default:
Panic(EBallBasicUi);
break;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -