📄 point24appui.cpp
字号:
/*
========================================================================
Name : Point24AppUi.cpp
Author : luomao2000
Copyright : luomao2000@tom.com
Reserved
Description :
========================================================================
*/
#include <eikmenub.h>
#include <akncontext.h>
#include <akntitle.h>
#include <Point24.rsg>
#include "Point24AppUi.h"
#include "Point24.hrh"
#include "Point24ContainerView.h"
/**
* Construct the CPoint24AppUi instance
*/
CPoint24AppUi::CPoint24AppUi()
{
}
/**
* The appui's destructor removes the container from the control
* stack and destroys it.
*/
CPoint24AppUi::~CPoint24AppUi()
{
}
void CPoint24AppUi::InitializeContainersL()
{
iPoint24ContainerView = CPoint24ContainerView::NewL();
AddViewL( iPoint24ContainerView );
SetDefaultViewL( *iPoint24ContainerView );
}
/**
* Handle a command for this appui (override)
* @param aCommand command id to be handled
*/
void CPoint24AppUi::HandleCommandL( TInt aCommand )
{
TBool commandHandled = EFalse;
switch ( aCommand )
{ // code to dispatch to the AppUi's menu and CBA commands is generated here
default:
break;
}
if ( !commandHandled )
{
if ( aCommand == EAknSoftkeyExit || aCommand == EEikCmdExit )
{
Exit();
}
}
}
/**
* Override of the HandleResourceChangeL virtual function
*/
void CPoint24AppUi::HandleResourceChangeL( TInt aType )
{
CAknViewAppUi::HandleResourceChangeL( aType );
}
/**
* Override of the HandleKeyEventL virtual function
* @return EKeyWasConsumed if event was handled, EKeyWasNotConsumed if not
* @param aKeyEvent
* @param aType
*/
TKeyResponse CPoint24AppUi::HandleKeyEventL(
const TKeyEvent& aKeyEvent,
TEventCode aType )
{
// The inherited HandleKeyEventL is private and cannot be called
return EKeyWasNotConsumed;
}
/**
* Override of the HandleViewDeactivation virtual function
*
* @param aViewIdToBeDeactivated
* @param aNewlyActivatedViewId
*/
void CPoint24AppUi::HandleViewDeactivation(
const TVwsViewId& aViewIdToBeDeactivated,
const TVwsViewId& aNewlyActivatedViewId )
{
CAknViewAppUi::HandleViewDeactivation(
aViewIdToBeDeactivated,
aNewlyActivatedViewId );
}
/**
* @brief Completes the second phase of Symbian object construction.
* Put initialization code that could leave here.
*/
void CPoint24AppUi::ConstructL()
{
BaseConstructL( EAknEnableSkin );
InitializeContainersL();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -