ldcno17appui.cpp

来自「SYmbian GUI 多视图实例」· C++ 代码 · 共 102 行

CPP
102
字号
/* Copyright (c) 2008, Nokia. All rights reserved */

#include <avkon.hrh>
#include <aknnotewrappers.h> 

#include "LDCNO17.pan"
#include "LDCNO17AppUi.h"
//#include "LDCNO17AppView.h"
#include "HelloView.h"
#include "WorldView.h"
#include "Face2View.h"
#include "Face3View.h"
#include "Face4View.h"
#include "Face5View.h"

#include "LDCNO17.hrh"


void CLDCNO17AppUi::ConstructL()
    {
    BaseConstructL(EAknEnableSkin);

//    iAppView = CLDCNO17AppView::NewL(ClientRect());    
//    AddToStackL(iAppView);
	m_pHelloView = CHelloView::NewL();
	AddViewL(m_pHelloView);

	m_pWorldView = CWorldView::NewL();
	AddViewL(m_pWorldView);

	m_pFace2View = CFace2View::NewL();
	AddViewL(m_pFace2View);

	m_pFace3View = CFace3View::NewL();
	AddViewL(m_pFace3View);
	
	m_pFace4View = CFace4View::NewL();
	AddViewL(m_pFace4View);

	m_pFace5View = CFace5View::NewL();
	AddViewL(m_pFace5View);
    }

CLDCNO17AppUi::CLDCNO17AppUi()                              
    {
    // add any construction that cannot leave here
    }

CLDCNO17AppUi::~CLDCNO17AppUi()
    {
//    if (iAppView)
        {
//        iEikonEnv->RemoveFromStack(iAppView);
//        delete iAppView;
//        iAppView = NULL;
        }
    }

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

        case ELDCNO17Command1:
            {
  			ActivateLocalViewL(KViewId2);
            }
            break;
		case ELDCNO17Command2:
            {
			ActivateLocalViewL(KViewId3); 	
            }
            break;
		case ELDCNO17Command3:
            {
			ActivateLocalViewL(KViewId4);	
            }
            break;
		case ELDCNO17Command4:
            {
			ActivateLocalViewL(KViewId5);	
            }
            break;
		case ELDCNO17Command5:
            {
			ActivateLocalViewL(KViewId6);	
            }
            break;

        default:
            Panic(ELDCNO17BasicUi);
            break;
        }
    }



⌨️ 快捷键说明

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