📄 mysunappui.cpp
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include "Mysun.pan"
#include "MysunAppUi.h"
#include "MysunAppView.h"
#include "Mysun.hrh"
void CMysunAppUi::ConstructL()
{
BaseConstructL(EAknEnableSkin);
iAppView = CMysunAppView::NewL(ClientRect());
AddToStackL(iAppView);
}
CMysunAppUi::CMysunAppUi()
{
// add any construction that cannot leave here
}
CMysunAppUi::~CMysunAppUi()
{
if (iAppView)
{
iEikonEnv->RemoveFromStack(iAppView);
delete iAppView;
iAppView = NULL;
}
}
void CMysunAppUi::HandleCommandL(TInt aCommand)
{
switch(aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case EMysunCommand1:
{
_LIT(message,"Failed to open");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
case EMysunCommand2:
{
_LIT(message,"Failed to add");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
case EMysunCommand3:
{
_LIT(message,"Failed to delete");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
case EMysunCommand4:
{
_LIT(message,"Success!");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
case EMysunCommand5:
{
_LIT(message,"Logon Success!");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
case EMysunCommand6:
{
_LIT(message,"Exit!!");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
default:
Panic(EMysunBasicUi);
break;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -