pdfckonappui.cpp

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

CPP
46
字号
//
// PdfCKONAppUi.cpp
//

#include "PdfCKONappUi.h"

// UI
#include "PdfController.h"
#include "PdfCKONAppView.h"

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

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

	// Create the appview
    iAppView = new(ELeave) CPdfCKONAppView();
    iAppView->SetController(iController);
    // etc

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


void CPdfCKONAppUi::HandleCommandL(TInt aCommandId)
	{
	switch (aCommandId)
		{
	case EEikCmdExit:
		ExitL();
		break;

	// CKON-specific commands
	case EEikCmdFileOpen:
		CmdFileOpenL();
		break;

	// Handle common commands
	default:
		iController->HandleCommandL(aCommand);
		break;
		}
	}

⌨️ 快捷键说明

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