⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 animationappui.cpp

📁 a Animation control of symbian
💻 CPP
字号:
/*
============================================================================
 Name		: AnimationAppUi.cpp
 Author	  : 
 Copyright   : Your copyright notice
 Description : CAnimationAppUi 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 <Animation_0xE5258D91.rsg>

#include "Animation_0xE5258D91.hlp.hrh"
#include "Animation.hrh"
#include "Animation.pan"
#include "AnimationApplication.h"
#include "AnimationAppUi.h"
#include "AnimationAppView.h"

_LIT( KFileName, "C:\\private\\E5258D91\\Animation.txt" );
_LIT( KText, "Hello World!");

// ============================ MEMBER FUNCTIONS ===============================


// -----------------------------------------------------------------------------
// CAnimationAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CAnimationAppUi::ConstructL()
	{
	// Initialise app UI with standard value.
	BaseConstructL(CAknAppUi::EAknEnableSkin);

	// Create view object
	iAppView = CAnimationAppView::NewL(TRect(TPoint(0,0),TSize(240,320)));
	iAppView->RestartCallBack();
	}
// -----------------------------------------------------------------------------
// CAnimationAppUi::CAnimationAppUi()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CAnimationAppUi::CAnimationAppUi()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CAnimationAppUi::~CAnimationAppUi()
// Destructor.
// -----------------------------------------------------------------------------
//
CAnimationAppUi::~CAnimationAppUi()
	{
	if ( iAppView )
		{
		delete iAppView;
		iAppView = NULL;
		}

	}

// -----------------------------------------------------------------------------
// CAnimationAppUi::HandleCommandL()
// Takes care of command handling.
// -----------------------------------------------------------------------------
//
void CAnimationAppUi::HandleCommandL( TInt aCommand )
	{
	switch( aCommand )
		{
		case EEikCmdExit:
		case EAknSoftkeyExit:
			Exit();
			break;

		case ECommand1:
			{}
			break;
		case ECommand2:
			{}
			break;
		case EHelp:
			{}
			break;
		case EAbout:
			{}
			break;
		default:
			Panic( EAnimationUi );
			break;
		}
	}
// -----------------------------------------------------------------------------
//  Called by the framework when the application status pane
//  size is changed.  Passes the new client rectangle to the
//  AppView
// -----------------------------------------------------------------------------
//
void CAnimationAppUi::HandleStatusPaneSizeChange()
	{
	iAppView->SetRect(TRect(TPoint(0,0),TSize(240,320)));
	} 


// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -