pdfs60appui.cpp

来自「Symbian界面设计的C++源代码例子:Designing and build」· C++ 代码 · 共 45 行

CPP
45
字号
//
// PdfS60AppUi.cpp
//

#include "PdfS60AppUi.h"

#include "PdfController.h"
#include "PdfS60AppView.h"

void CPdfS60AppUi::ConstructL()
	{
	// Other statements

	// Create the controller
    iController = CPdfController::NewL();

	// Create the AppView
	iAppView = new(ELeave) CPdfS60AppView();
	iAppView->SetController(iController);
	// etc.

	// Tell the controller about the AppView
	iController->SetAppView(iAppView);

	// etc.
	}

void CPdfS60AppUi::HandleCommandL(TInt aCommandId)
	{
	switch (aCommandId)
		{
	// The AppUi handles the exit command
	case EAknSoftKeyExit:
	case EEikCmdExit:
		ExitL();
		break;
    
    // there are no S60 specific commands to be handled in the AppUi

	// The controller handles all other commands
	default:
		iController->HandleCommandL(aCommand);
		break;
		}
	}

⌨️ 快捷键说明

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