diff -r 2f259fa3e83a -r 8ca85d2f0db7 uifw/EikStd/dlgsrc/aknformphysics.cpp --- a/uifw/EikStd/dlgsrc/aknformphysics.cpp Tue Feb 02 01:00:49 2010 +0200 +++ b/uifw/EikStd/dlgsrc/aknformphysics.cpp Fri Feb 19 23:04:46 2010 +0200 @@ -23,7 +23,7 @@ #include #include #include - +#include "akntrace.h" // ======== MEMBER FUNCTIONS ======== @@ -55,11 +55,13 @@ CAknFormPhysics* CAknFormPhysics::NewL( CEikDialogPage& aParent, CAknRecordingGc& aRecordingGc ) { + _AKNTRACE_FUNC_ENTER; CAknFormPhysics* self = new ( ELeave ) CAknFormPhysics( aParent, aRecordingGc ); CleanupStack::PushL( self ); self->ConstructL(); CleanupStack::Pop( self ); + _AKNTRACE_FUNC_EXIT; return self; } @@ -70,7 +72,9 @@ // CAknFormPhysics::~CAknFormPhysics() { + _AKNTRACE_FUNC_ENTER; delete iPhysics; + _AKNTRACE_FUNC_EXIT; } @@ -81,10 +85,12 @@ void CAknFormPhysics::InitPhysicsL( const TSize& aWorldSize, const TSize& aViewSize, const TPoint& aViewCenter ) { + _AKNTRACE_FUNC_ENTER; iPhysics->InitPhysicsL( aWorldSize, aViewSize, EFalse ); iViewCenter = aViewCenter; iWorldSize = aWorldSize; iViewSize = aViewSize; + _AKNTRACE_FUNC_EXIT; } @@ -94,8 +100,10 @@ // void CAknFormPhysics::Stop() { + _AKNTRACE_FUNC_ENTER; iPhysics->StopPhysics(); iPhysics->ResetFriction(); + _AKNTRACE_FUNC_EXIT; } @@ -106,6 +114,7 @@ TBool CAknFormPhysics::StartFlick( const TPoint& aLength, const TTime& aStartTime ) { + _AKNTRACE_FUNC_ENTER; if ( PhysicsAllowed() ) { TPoint drag( aLength ); @@ -119,6 +128,7 @@ } PhysicEmulationEnded(); + _AKNTRACE_FUNC_EXIT; return EFalse; } @@ -159,10 +169,12 @@ // void CAknFormPhysics::SetPanningPosition( const TPoint& aDelta ) { + _AKNTRACE_FUNC_ENTER; if ( PhysicsAllowed() && iPhysics ) { iPhysics->RegisterPanningPosition( aDelta ); } + _AKNTRACE_FUNC_EXIT; } @@ -174,6 +186,9 @@ TBool aDrawNow, TUint /*aFlags*/ ) { + _AKNTRACE_FUNC_ENTER; + _AKNTRACE( "The Position of aNewPosition are: ( %d, %d ) ", + aNewPosition.iX, aNewPosition.iY ); if ( !PhysicsAllowed() ) { return; @@ -200,6 +215,7 @@ msg.Format( _L( "%dfps" ), fps ); iParent.ScrollCacheByPixels( iViewCenter.iY, msg, aDrawNow ); + _AKNTRACE_FUNC_EXIT; } @@ -209,8 +225,10 @@ // void CAknFormPhysics::PhysicEmulationEnded() { + _AKNTRACE_FUNC_ENTER; iParent.Synchronize(); iFrameCount = -1; + _AKNTRACE_FUNC_EXIT; }