diff -r ce1c7ad1f18b -r bcb43dc84c44 photosgallery/viewframework/views/gridview/src/glxgridviewimp.cpp --- a/photosgallery/viewframework/views/gridview/src/glxgridviewimp.cpp Mon Mar 15 12:40:30 2010 +0200 +++ b/photosgallery/viewframework/views/gridview/src/glxgridviewimp.cpp Wed Mar 31 21:31:03 2010 +0300 @@ -39,6 +39,11 @@ #include "glxgridviewmlobserver.h" // medialist observer for Hg Grid #include "glxgridviewcontainer.h" +// For transition effects +#include +#include +#include "glxgfxtranseffect.h" // For transition effects + const TInt KGlxToolbarButtonUnLatched = 0; // Toolbar mark button's unlatched state defined in the rss file // ======== MEMBER FUNCTIONS ======== @@ -129,6 +134,15 @@ { TRACER("CGlxGridViewImp::DoMLViewActivateL()"); + TUint transitionID = (iUiUtility->ViewNavigationDirection()== + EGlxNavigationForwards)?KActivateTransitionId:KFSDeActivateTransitionId; + + GfxTransEffect::BeginFullScreen( transitionID, TRect(), + AknTransEffect::EParameterType, + AknTransEffect::GfxTransParam( KPhotosUid, + AknTransEffect::TParameter::EEnableEffects) ); + GfxTransEffect::EndFullScreen(); + if(StatusPane()) { StatusPane()->MakeVisible(ETrue); @@ -261,6 +275,11 @@ void CGlxGridViewImp::HandleForegroundEventL(TBool aForeground) { TRACER("CGlxGridViewImp::HandleForegroundEventL()"); + if(iMMCState) + { + iMMCState = EFalse; + ProcessCommandL(EAknSoftkeyClose); + } CAknView::HandleForegroundEventL(aForeground); } @@ -274,6 +293,10 @@ { TRACER("CGlxGridViewImp::HandleGridEventsL()"); //do processcmd related event handling + if(EAknSoftkeyClose == aCmd) + { + iMMCState = ETrue; + } ProcessCommandL(aCmd); }