⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s60uiexampleappui.cpp

📁 《Symbian S60第3版手机程序开发与实用教程》光盘源代码
💻 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);

    // Transfer ownership to base class
    AddViewL(iAppInitialView);

    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 + -