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

📄 simpleex_ui.cpp

📁 EMCC源代码 Symbian S60第二版
💻 CPP
字号:
// simpleEx_ui.cpp
//
// Copyright (c) Symbian Software Ltd 1999 - 2007.  All rights reserved.
//
/*=================================================================
      This file contains the application UI class for SimpleEx.
      Enhanced to contain active object for Chapter 9 example.
==================================================================*/

#include "SimpleEx.h"
#include "countdown.h"
/*-------------------------------------------------------------
     CSimpleExAppUi class
--------------------------------------------------------------*/

void CSimpleExAppUi::ConstructL()
	{
    BaseConstructL();
	           
    iAppView = CSimpleExAppView::NewL(ClientRect());
    iCountdown = CCountdown::NewL(iAppView);
    iAppView->UpdateScreenText(KSimpleExText);
	}


CSimpleExAppUi::~CSimpleExAppUi()
    {
     delete iAppView;
     delete iCountdown;
    }

void CSimpleExAppUi::HandleCommandL(TInt aCommand)
    {
    switch(aCommand)
        {
        case EEikCmdExit:
        case EAknSoftkeyExit:
            Exit();
            break;

        case ESimpleExCommand:
           iCountdown->StartCountdown();
           break;
        
        case ESimpleExStop:
           iCountdown->Stop();
           break;
     
        default:
        	; // Nothing to do
      }
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -