📄 readicoappui.cpp
字号:
/*
============================================================================
Name : ReadICOAppUi.cpp
Author :
Copyright : Your copyright notice
Description : CReadICOAppUi implementation
============================================================================
*/
// INCLUDE FILES
#include <avkon.hrh>
#include <aknmessagequerydialog.h>
#include <aknnotewrappers.h>
#include <stringloader.h>
#include <f32file.h>
#include <s32file.h>
#include <hlplch.h>
#include <ReadICO_0xE672160B.rsg>
#include "ReadICO.hrh"
#include "ReadICO.pan"
#include "ReadICOApplication.h"
#include "ReadICOAppUi.h"
#include "ReadICOAppView.h"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CReadICOAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CReadICOAppUi::ConstructL()
{
// Initialise app UI with standard value.
BaseConstructL(CAknAppUi::EAknEnableSkin);
// Create view object
iAppView = CReadICOAppView::NewL(ApplicationRect() );
AddToStackL(iAppView);
}
// -----------------------------------------------------------------------------
// CReadICOAppUi::CReadICOAppUi()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CReadICOAppUi::CReadICOAppUi()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CReadICOAppUi::~CReadICOAppUi()
// Destructor.
// -----------------------------------------------------------------------------
//
CReadICOAppUi::~CReadICOAppUi()
{
if (iAppView)
{
delete iAppView;
iAppView = NULL;
}
}
// -----------------------------------------------------------------------------
// CReadICOAppUi::HandleCommandL()
// Takes care of command handling.
// -----------------------------------------------------------------------------
//
void CReadICOAppUi::HandleCommandL(TInt aCommand)
{
switch (aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
default:
Panic(EReadICOUi);
break;
}
}
// -----------------------------------------------------------------------------
// Called by the framework when the application status pane
// size is changed. Passes the new client rectangle to the
// AppView
// -----------------------------------------------------------------------------
//
void CReadICOAppUi::HandleStatusPaneSizeChange()
{
iAppView->SetRect(ClientRect() );
}
CArrayFix<TCoeHelpContext>* CReadICOAppUi::HelpContextL() const
{
return NULL;
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -