📄 noughtsandcrossesappui.cpp
字号:
/* Copyright (c) 2005, Nokia. All rights reserved */
// INCLUDE FILES
#include "noughtsandcrossesappui.h"
#include "noughtsandcrossessettingsview.h"
#include "noughtsandcrossesview.h"
#include <nac.rsg>
#include "nac.hrh"
#include <avkon.hrh>
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CNoughtsAndCrossesAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CNoughtsAndCrossesAppUi::ConstructL()
{
BaseConstructL(EAknEnableSkin);
iGameView = CNoughtsAndCrossesView::NewL();
iSettingsView = CNoughtsAndCrossesSettingsView::NewL();
// Transfer ownership to base class
AddViewL (iGameView);
AddViewL (iSettingsView);
SetDefaultViewL (*iGameView);
}
// -----------------------------------------------------------------------------
// CNoughtsAndCrossesAppUi::HandleCommandL()
// Takes care of command handling.
// -----------------------------------------------------------------------------
//
void CNoughtsAndCrossesAppUi::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EAknSoftkeyExit:
case EEikCmdExit:
{
Exit();
break;
}
default:
break;
}
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -