📄 aknexnoteappui.cpp
字号:
/*
* ==============================================================================
* Name : aknexnoteappui.cpp
* Part of : Note example
* Interface :
* Description :
* Version :
*
* Copyright (c) 2004 - 2006 Nokia Corporation.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia Corporation.
* ==============================================================================
*/
// INCLUDE FILES
#include "AknExNoteAppUi.h"
#include "AknExNoteView.h"
#include "AknExNoteConstants.h"
// ========================= MEMBER FUNCTIONS ==================================
// -----------------------------------------------------------------------------
// CAknExNoteAppUi::CAknExNoteAppUi()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CAknExNoteAppUi::CAknExNoteAppUi()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CAknExNoteAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CAknExNoteAppUi::ConstructL()
{
// Initialise app UI with standard value.
BaseConstructL( EAknEnableSkin );
// Creates CAknExNoteView class object.
CAknExNoteView* view = new( ELeave ) CAknExNoteView;
// Push CAknExNoteView's pointer into CleanUpStack for safety object construction.
CleanupStack::PushL( view );
//Construct View
view->ConstructL();
// View is constructed correctly , Pop it's pointer from CleanUpStack
CleanupStack::Pop();
// Transfer ownership to CAknViewAppUi.
AddViewL( view );
ActivateLocalViewL( view->Id() );
}
// -----------------------------------------------------------------------------
// CAknExNoteAppUi::~CAknExNoteAppUi()
// Destructor.
// -----------------------------------------------------------------------------
//
CAknExNoteAppUi::~CAknExNoteAppUi()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CAknExNoteAppUi::HandleCommandL()
// Handles the commands.
// -----------------------------------------------------------------------------
//
void CAknExNoteAppUi::HandleCommandL( TInt aCommand )
{
switch ( aCommand )
{
case EEikCmdExit:
Exit();
break;
default:
break;
}
}
// ----------------------------------------------------------------------------
// void CAknExNoteAppUi::HandleResourceChangeL( TInt aType )
// Handles resource changes.
// ----------------------------------------------------------------------------
//
void CAknExNoteAppUi::HandleResourceChangeL( TInt aType )
{
CAknAppUi::HandleResourceChangeL( aType );
if ( aType == KEikDynamicLayoutVariantSwitch )
{
CAknView* view = View( KViewId );
view->HandleViewRectChange();
}
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -