emailuis/emailui/src/FreestyleEmailUiFolderListVisualiser.cpp
branchRCL_3
changeset 20 efd4f1afd43e
parent 18 6b8f3b30d0ec
child 23 dcf0eedfc1a3
equal deleted inserted replaced
18:6b8f3b30d0ec 20:efd4f1afd43e
   420         CleanupStack::PopAndDestroy( emptyListText );
   420         CleanupStack::PopAndDestroy( emptyListText );
   421 
   421 
   422         iTreeVisualizer->RefreshListViewL();
   422         iTreeVisualizer->RefreshListViewL();
   423         }
   423         }
   424     
   424     
   425     ResizeListIcons();
   425     if ( iFullScreen )
   426     ResizeListItemsL();
   426     	{
   427     
   427     	StartScrollingListItemsL();
       
   428     	}
   428 	}
   429 	}
   429 
   430 
   430 // ---------------------------------------------------------------------------
   431 // ---------------------------------------------------------------------------
   431 // CFSEmailUiFolderListVisualiser::PopulateFolderListDeferred
   432 // CFSEmailUiFolderListVisualiser::PopulateFolderListDeferred
   432 // ---------------------------------------------------------------------------
   433 // ---------------------------------------------------------------------------
   680     FUNC_LOG;
   681     FUNC_LOG;
   681     iCustomMessageId = KFolderListSelectFolder;
   682     iCustomMessageId = KFolderListSelectFolder;
   682     iCurrentFolderId = aFolderId;
   683     iCurrentFolderId = aFolderId;
   683     DoShowInPopupL( aButton, aCallback, NULL );
   684     DoShowInPopupL( aButton, aCallback, NULL );
   684     
   685     
   685     ResizeListIcons();
   686     StartScrollingListItemsL();
   686     ResizeListItemsL();
       
   687     
       
   688     }
   687     }
   689 
   688 
   690 // ---------------------------------------------------------------------------
   689 // ---------------------------------------------------------------------------
   691 // CFSEmailUiFolderListVisualiser::ShowSortListPopupL
   690 // CFSEmailUiFolderListVisualiser::ShowSortListPopupL
   692 // ---------------------------------------------------------------------------
   691 // ---------------------------------------------------------------------------
  1328 // ---------------------------------------------------------------------------
  1327 // ---------------------------------------------------------------------------
  1329 //
  1328 //
  1330 void CFSEmailUiFolderListVisualiser::FadeOut( TBool aDirectionOut )
  1329 void CFSEmailUiFolderListVisualiser::FadeOut( TBool aDirectionOut )
  1331 	{
  1330 	{
  1332     FUNC_LOG;
  1331     FUNC_LOG;
  1333     if ( aDirectionOut && iTreeVisualizer != NULL )
  1332     if ( aDirectionOut )
  1334         {
  1333     	{
  1335         iTreeVisualizer->HideList();
  1334     	if ( iTreeVisualizer != NULL )
  1336         }
  1335     		{
       
  1336 			iTreeVisualizer->HideList();
       
  1337     		}
       
  1338     	
       
  1339 		if ( iTitleCaptionVisible && iHeaderTextVisual )
       
  1340 			{
       
  1341 			iTitleCaptionVisible = EFalse;
       
  1342 			iHeaderTextVisual->SetOpacity( KFSInvisible );
       
  1343 			}
       
  1344     	}
  1337 	}
  1345 	}
  1338 
  1346 
  1339 // ---------------------------------------------------------------------------
  1347 // ---------------------------------------------------------------------------
  1340 // Handle commands
  1348 // Handle commands
  1341 // ---------------------------------------------------------------------------
  1349 // ---------------------------------------------------------------------------
  2798     FUNC_LOG;
  2806     FUNC_LOG;
  2799 	TInt arraySize = iListItemVisulizers.Count();
  2807 	TInt arraySize = iListItemVisulizers.Count();
  2800 	for( TInt i = 0 ; i < arraySize ; i++ )
  2808 	for( TInt i = 0 ; i < arraySize ; i++ )
  2801 		{
  2809 		{
  2802 		SetItemVisualizerPropertiesL( iListItemVisulizers[i] );
  2810 		SetItemVisualizerPropertiesL( iListItemVisulizers[i] );
       
  2811 		}
       
  2812 	}
       
  2813 
       
  2814 // ---------------------------------------------------------------------------
       
  2815 // Start scrolling
       
  2816 // ---------------------------------------------------------------------------
       
  2817 //
       
  2818 void CFSEmailUiFolderListVisualiser::StartScrollingListItemsL()
       
  2819 	{
       
  2820     FUNC_LOG;
       
  2821 	TInt arraySize = iListItemVisulizers.Count();
       
  2822 	for( TInt i = 0 ; i < arraySize ; i++ )
       
  2823 		{
       
  2824 		iListItemVisulizers[i]->MarqueeL( EFsTextMarqueeForth, 30, 1000, 500, 1 ); // same values as in CFsTreeVisualizerBase constructor
  2803 		}
  2825 		}
  2804 	}
  2826 	}
  2805 
  2827 
  2806 // ---------------------------------------------------------------------------
  2828 // ---------------------------------------------------------------------------
  2807 // Optimises the screen rect by the list content
  2829 // Optimises the screen rect by the list content