pdfs60appview.cpp
来自「Symbian界面设计的C++源代码例子:Designing and build」· C++ 代码 · 共 50 行
CPP
50 行
//
// PdfS60AppView.cpp
//
#include "PdfS60AppView.h"
// UI
#include "Pdf.hrh"
#include "PdfController.h"
// Other methods
void CPdfS60AppView:HandleCommandL(TInt aCommand)
{
switch (aCommand)
{
case EPdfCmdGoToPage:
// Other commands handled by the controller
iController->HandleCommandL(aCommand);
break;
// Avkon-specific commands can be handled here, like switching between full screen mode and
// normal screen mode. This command is Avkon-specific because the mechanism to set a full
// screen is Avkon-specific.
case EPdfCmdFullScreen:
case EPdfCmdNormalScreen:
CmdSetFullScreen(aCommand == EPdfCmdFullSCreen);
break;
// The AppUi handles other commands
// The AppUi itself will delegate most commands to the controller again.
default:
iAppUi->HandleCommandL(aCommand);
break;
}
}
void CPdfS60AppView:DrawNewPage() const
{
DrawNow();
UpdatePageNumber();
}
void CPdfS60AppView:SetController(CPdfController* aController)
{
iController = aController;
}
// etc.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?