📄 gifanimationappui.cpp
字号:
/*
* ============================================================================
* Name : CGifAnimationAppUi from GifAnimationAppui.cpp
* Part of : GifAnimation
* Created : 31.01.2006 by ToBeReplacedByAuthor
* Implementation notes:
* Initial content was generated by Series 60 Application Wizard.
* Version :
* Copyright: ToBeReplacedByCopyright
* ============================================================================
*/
// INCLUDE FILES
#include "GifAnimationAppui.h"
#include "GifAnimationContainer.h"
#include <GifAnimation.rsg>
#include "GifAnimation.hrh"
#include <avkon.hrh>
// ================= MEMBER FUNCTIONS =======================
//
// ----------------------------------------------------------
// CGifAnimationAppUi::ConstructL()
//
// ----------------------------------------------------------
//
void CGifAnimationAppUi::ConstructL()
{
BaseConstructL();
iAppContainer = new (ELeave) CGifAnimationContainer;
iAppContainer->SetMopParent( this );
iAppContainer->ConstructL( ClientRect() );
AddToStackL( iAppContainer );
}
// ----------------------------------------------------
// CGifAnimationAppUi::~CGifAnimationAppUi()
// Destructor
// Frees reserved resources
// ----------------------------------------------------
//
CGifAnimationAppUi::~CGifAnimationAppUi()
{
if (iAppContainer)
{
RemoveFromStack( iAppContainer );
delete iAppContainer;
}
}
// ----------------------------------------------------
// CGifAnimationAppUi::HandleCommandL(TInt aCommand)
// takes care of command handling
// ----------------------------------------------------
//
void CGifAnimationAppUi::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EAknSoftkeyBack:
case EEikCmdExit:
{
Exit();
break;
}
case EGifAnimationCmdStart:
{
iAppContainer->StartL();
break;
}
case EGifAnimationCmdStop:
{
iAppContainer->Stop();
break;
}
default:
break;
}
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -