mpxplugins/viewplugins/views/collectionviewhg/src/mpxcollectionviewhgcontainer.cpp
branchRCL_3
changeset 56 2cbbefa9af78
parent 53 3de6c4cf6b67
child 60 bdd9da0d70fe
equal deleted inserted replaced
53:3de6c4cf6b67 56:2cbbefa9af78
   799 
   799 
   800             TRect clientRect = ((CAknView*)iView)->ClientRect();
   800             TRect clientRect = ((CAknView*)iView)->ClientRect();
   801             SetRect( clientRect );
   801             SetRect( clientRect );
   802             iBgContext->SetRect(((CAknAppUi*)iCoeEnv->AppUi())->ApplicationRect());
   802             iBgContext->SetRect(((CAknAppUi*)iCoeEnv->AppUi())->ApplicationRect());
   803 
   803 
   804             // call HandleLbxItemAdditionL
   804  			if ( iCurrentViewType == EMPXViewMediawall )
   805             HandleLbxItemAdditionL();
   805 				{
       
   806 				PrepareTboneViewL();
       
   807 				}
       
   808 			else
       
   809 				{
       
   810 	            // call HandleLbxItemAdditionL
       
   811 	            HandleLbxItemAdditionL();
       
   812 				}
   806             }
   813             }
   807         );
   814         );
   808     if(iMediaWall)
   815     if(iMediaWall)
   809         iMediaWall->HandleResourceChange( aType );
   816         iMediaWall->HandleResourceChange( aType );
   810     if(iListWidget)
   817     if(iListWidget)
  1302                 }
  1309                 }
  1303             case EMPXViewTBone:
  1310             case EMPXViewTBone:
  1304                 {
  1311                 {
  1305                 RestoreSelectedAlbumItemL(mediaArray);
  1312                 RestoreSelectedAlbumItemL(mediaArray);
  1306                 PrepareMediaWallWithListL( mediaArray, count );
  1313                 PrepareMediaWallWithListL( mediaArray, count );
  1307                 // We need to adjust the CBA for this view.
       
  1308                 if( iCbaHandler )
       
  1309                     {
       
  1310                     iCbaHandler->UpdateCba();
       
  1311                     }
       
  1312                 break;
  1314                 break;
  1313                 }
  1315                 }
  1314             case EMPXViewList:
  1316             case EMPXViewList:
  1315                 {
  1317                 {
  1316                 PrepareListL(mediaArray, count);
  1318                 PrepareListL(mediaArray, count);
  1724 
  1726 
  1725 	// Now create the media wall & the list
  1727 	// Now create the media wall & the list
  1726 
  1728 
  1727     ((CAknAppUi*)iCoeEnv->AppUi())->StatusPane()->MakeVisible(EFalse);
  1729     ((CAknAppUi*)iCoeEnv->AppUi())->StatusPane()->MakeVisible(EFalse);
  1728     iThumbnailManager->SetSizeL( EAudioGridThumbnailSize );
  1730     iThumbnailManager->SetSizeL( EAudioGridThumbnailSize );
  1729 
  1731     if( iCbaHandler )
       
  1732         {
       
  1733         iCbaHandler->UpdateCba();
       
  1734         }
  1730     TRect clientRect = ((CAknView*)iView)->ClientRect();
  1735     TRect clientRect = ((CAknView*)iView)->ClientRect();
  1731 
  1736 
  1732     TAknLayoutRect mediawallLayout;
  1737     TAknLayoutRect mediawallLayout;
  1733     mediawallLayout.LayoutRect( clientRect, AknLayoutScalable_Apps::cf0_flow_pane(0) );
  1738     mediawallLayout.LayoutRect( clientRect, AknLayoutScalable_Apps::cf0_flow_pane(0) );
  1734 
  1739 
  4727         // Start animation now as next view activated is
  4732         // Start animation now as next view activated is
  4728         // now playing view. We will end animation in now playing view.
  4733         // now playing view. We will end animation in now playing view.
  4729         SetupTransitionType(KMPXInterviewTransition);
  4734         SetupTransitionType(KMPXInterviewTransition);
  4730         BeginFullScreenAnimation();
  4735         BeginFullScreenAnimation();
  4731         }
  4736         }
  4732     else if( !iLayoutSwitch && iMediaWall )
  4737     else if( !iLayoutSwitch && iMediaWall && ( iCurrentViewType == EMPXViewMediawall ) )
  4733         {
  4738         {
  4734         // Close mediawall "flip animation"
  4739         // Close mediawall "flip animation"
  4735         iMediaWall->StartOpeningAnimationL( EFalse );
  4740         iMediaWall->StartOpeningAnimationL( EFalse );
  4736         }
  4741         }
  4737 
  4742 
  4763 	if( songCount > 1 )
  4768 	if( songCount > 1 )
  4764 		{
  4769 		{
  4765 		listSize++;
  4770 		listSize++;
  4766 		indexAddition = 1;
  4771 		indexAddition = 1;
  4767 		}
  4772 		}
       
  4773 	currentList->Reset(); //clears any selection along with list reset	
  4768 	// Add space for shuffle item if list contains more than one item.
  4774 	// Add space for shuffle item if list contains more than one item.
  4769 	currentList->ResizeL( listSize );
  4775 	currentList->ResizeL( listSize );
  4770 
  4776 
  4771 	for ( TInt i = 0; i < songCount ; i++ )
  4777 	for ( TInt i = 0; i < songCount ; i++ )
  4772 		{
  4778 		{