photosgallery/viewframework/views/gridview/src/glxgridviewimp.cpp
branchRCL_3
changeset 47 f9e827349359
parent 35 420f6808bf21
child 56 b023a8d2866a
equal deleted inserted replaced
35:420f6808bf21 47:f9e827349359
   131           EGlxNavigationForwards)?KActivateTransitionId:KFSDeActivateTransitionId; 
   131           EGlxNavigationForwards)?KActivateTransitionId:KFSDeActivateTransitionId; 
   132     
   132     
   133     HBufC8* activationParam = HBufC8::NewLC(KMaxUidName);
   133     HBufC8* activationParam = HBufC8::NewLC(KMaxUidName);
   134     activationParam->Des().AppendNum(KGlxActivationCmdShowAll);    
   134     activationParam->Des().AppendNum(KGlxActivationCmdShowAll);    
   135 
   135 
   136     //Do not animate the view if launched from camera application.
   136     // Start Animating the view when launched from other views 
       
   137     // except if launched from Camera App.
   137     if (aCustomMessage.Compare(activationParam->Des()) != 0) 
   138     if (aCustomMessage.Compare(activationParam->Des()) != 0) 
   138         {    
   139         {
   139         GfxTransEffect::BeginFullScreen( transitionID, TRect(),
   140         GfxTransEffect::BeginFullScreen( transitionID, TRect(),
   140                                     AknTransEffect::EParameterType, 
   141                                     AknTransEffect::EParameterType, 
   141                                     AknTransEffect::GfxTransParam( KPhotosUid,
   142                                     AknTransEffect::GfxTransParam( KPhotosUid,
   142                                     AknTransEffect::TParameter::EEnableEffects) );	
   143                                     AknTransEffect::TParameter::EEnableEffects) );	
   143         GfxTransEffect::EndFullScreen();
   144         GfxTransEffect::EndFullScreen();
   144         }
   145         }
   145 	
   146     else
       
   147     	{
       
   148 		// Launched from Camera App, Check if there is any existing filter
       
   149     	// and clear the 'MaxCount' filter, if supported to show all images.
       
   150 		GLX_DEBUG1("CGlxGridViewImp::DoMLViewActivateL() - "
       
   151 				"Launched From Camera");
       
   152 		CMPXFilter* filter = iMediaList->Filter();
       
   153 		if (filter && filter->IsSupported(KGlxFilterGeneralMaxCount))
       
   154 			{
       
   155 			GLX_DEBUG1( "CGlxGridViewImp::DoMLViewActivateL()- "
       
   156 					"Clear MaxCount filter");
       
   157 			filter->SetTObjectValueL<TInt> (KGlxFilterGeneralMaxCount, 0);
       
   158 			iMediaList->SetFilterL(filter);
       
   159 			}
       
   160     	}
       
   161     
   146 	CleanupStack::PopAndDestroy(activationParam);
   162 	CleanupStack::PopAndDestroy(activationParam);
   147 	
   163 	
   148 	if(StatusPane())
   164 	if(StatusPane())
   149 		{
   165 		{
   150 		StatusPane()->MakeVisible(ETrue);
   166 		StatusPane()->MakeVisible(ETrue);