📄 roidsappui.cpp
字号:
/*
============================================================================
Name : RoidsAppUi.cpp
Author : Twm Davies
Copyright : Twm Davies
Description : CRoidsAppUi implementation
============================================================================
*/
// INCLUDE FILES
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include <stringloader.h>
#include <RoidsS60.rsg>
#include <f32file.h>
#include <s32file.h>
#include "Roids.pan"
#include "RoidsAppUi.h"
#include "RoidsContainer.h"
#include "Roids.hrh"
#include "mathutils.h"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CRoidsAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CRoidsAppUi::ConstructL()
{
CAknAppUiBase::SetFullScreenApp(ETrue);
BaseConstructL();
iAppContainer=new(ELeave) CRoidsContainer;
iAppContainer->ConstructL(ApplicationRect());
AddToStackL(iAppContainer);
}
// -----------------------------------------------------------------------------
// CRoidsAppUi::CRoidsAppUi()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CRoidsAppUi::CRoidsAppUi()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CRoidsAppUi::~CRoidsAppUi()
// Destructor.
// -----------------------------------------------------------------------------
//
CRoidsAppUi::~CRoidsAppUi()
{
if ( iAppContainer )
{
RemoveFromStack(iAppContainer);
delete iAppContainer;
iAppContainer = NULL;
}
}
// -----------------------------------------------------------------------------
// CRoidsAppUi::HandleCommandL()
// Takes care of command handling.
// -----------------------------------------------------------------------------
//
void CRoidsAppUi::HandleCommandL(TInt aCommand)
{
switch (aCommand)
{
case ECommand1:
iEikonEnv->InfoWinL(_L("-=Roids=-"),_L("www.twmdesign.co.uk"));
break;
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
default:
// Panic(0);
break;
}
}
// -----------------------------------------------------------------------------
// Called by the framework when the application status pane
// size is changed. Passes the new client rectangle to the
// AppView
// -----------------------------------------------------------------------------
//
void CRoidsAppUi::HandleStatusPaneSizeChange()
{
iAppContainer->SetRect( ClientRect() );
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -