📄 s60uiexampleappui.cpp
字号:
// Copyright (c) 2006 Nokia Corporation.
#include <e32std.h>
#include "S60UIExample.pan"
#include "S60UIExampleAppUi.h"
#include "S60UIExampleInitialView.h"
#include "S60UIExamplePlayView.h"
#include "S60UIExampleModel.h"
// -----------------------------------------------------------------------------
// CS60UIExampleAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CS60UIExampleAppUi::ConstructL()
{
// Initialise app UI
BaseConstructL();
// Create a model to hold data
iModel = CS60UIExampleModel::NewL();
// Creates views
iAppInitialView = CS60UIExampleInitialView::NewL(*iModel);
iAppPlayView = CS60UIExamplePlayView::NewL(*iModel);
// Transfer ownership to base class
AddViewL(iAppInitialView);
AddViewL(iAppPlayView);
SetDefaultViewL(*iAppInitialView);
}
CS60UIExampleAppUi::~CS60UIExampleAppUi()
{
delete iModel;
}
// -----------------------------------------------------------------------------
// CS60UIExampleAppUi::HandleCommandL()
// Takes care of command handling.
// -----------------------------------------------------------------------------
//
void CS60UIExampleAppUi::HandleCommandL(TInt aCommand)
{
switch (aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
default:
Panic(ES60UIExampleBasicUi);
break;
}
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -