photosgallery/viewframework/views/listview/src/glxlistviewimp.cpp
branchRCL_3
changeset 24 ea65f74e6de4
parent 23 b023a8d2866a
equal deleted inserted replaced
23:b023a8d2866a 24:ea65f74e6de4
   180 void CGlxListViewImp::DoMLViewActivateL(const TVwsViewId& /* aPrevViewId */, 
   180 void CGlxListViewImp::DoMLViewActivateL(const TVwsViewId& /* aPrevViewId */, 
   181         TUid /* aCustomMessageId */, const TDesC8& /* aCustomMessage */)
   181         TUid /* aCustomMessageId */, const TDesC8& /* aCustomMessage */)
   182     {
   182     {
   183     TRACER("CGlxListViewImp::DoMLViewActivateL");  
   183     TRACER("CGlxListViewImp::DoMLViewActivateL");  
   184     
   184     
   185     TUint transitionID = (iUiUtility->ViewNavigationDirection()==
       
   186          EGlxNavigationForwards)?KActivateTransitionId:KDeActivateTransitionId;
       
   187 		
       
   188     //Do the activate animation only for views other than mainlist view and
       
   189 	//on backward navigation from any other views to main list view, since 
       
   190 	//for the app start the animation effect is by default provided.
       
   191     if (iMediaList->IdSpaceId(0) != KGlxIdSpaceIdRoot || 
       
   192            transitionID == KDeActivateTransitionId) 
       
   193         {
       
   194     	GfxTransEffect::BeginFullScreen( transitionID, TRect(),
       
   195                                    AknTransEffect::EParameterType, 
       
   196                          AknTransEffect::GfxTransParam( KPhotosUid, 
       
   197                          AknTransEffect::TParameter::EEnableEffects) );   
       
   198     	GfxTransEffect::EndFullScreen();
       
   199     	}
       
   200     
       
   201     iNextViewActivationEnabled = ETrue;
   185     iNextViewActivationEnabled = ETrue;
   202     if(StatusPane())
   186     if(StatusPane())
   203         {
   187         {
   204         StatusPane()->MakeVisible(ETrue);
   188         StatusPane()->MakeVisible(ETrue);
   205         CEikStatusPane* statusPane = iEikonEnv->AppUiFactory()->StatusPane();
   189         CEikStatusPane* statusPane = iEikonEnv->AppUiFactory()->StatusPane();
   304 
   288 
   305     iPreviewTNBinding = CGlxPreviewThumbnailBinding::NewL(*this);
   289     iPreviewTNBinding = CGlxPreviewThumbnailBinding::NewL(*this);
   306     CreateListL();
   290     CreateListL();
   307     iProgressIndicator = CGlxProgressIndicator::NewL(*this);
   291     iProgressIndicator = CGlxProgressIndicator::NewL(*this);
   308     iMMCNotifier = CGlxMMCNotifier::NewL(*this);
   292     iMMCNotifier = CGlxMMCNotifier::NewL(*this);
       
   293     
       
   294     TUint transitionID = (iUiUtility->ViewNavigationDirection()==
       
   295              EGlxNavigationForwards)?KActivateTransitionId:KDeActivateTransitionId;
       
   296     		
       
   297 	//Do the activate animation only for views other than mainlist view and
       
   298 	//on backward navigation from any other views to main list view, since 
       
   299 	//for the app start the animation effect is by default provided.
       
   300 	if (iMediaList->IdSpaceId(0) != KGlxIdSpaceIdRoot || 
       
   301 		   transitionID == KDeActivateTransitionId) 
       
   302 		{
       
   303 		GfxTransEffect::BeginFullScreen( transitionID, TRect(),
       
   304 								   AknTransEffect::EParameterType, 
       
   305 						 AknTransEffect::GfxTransParam( KPhotosUid, 
       
   306 						 AknTransEffect::TParameter::EEnableEffects) ); 
       
   307 		iIsTransEffectStarted = ETrue;
       
   308 		}
       
   309         
   309     }
   310     }
   310 
   311 
   311 // ---------------------------------------------------------------------------
   312 // ---------------------------------------------------------------------------
   312 // From CAknView
   313 // From CAknView
   313 // View deactivation function.
   314 // View deactivation function.