289 iHeaderLayout->SetOpacity( KFSInvisible ); |
289 iHeaderLayout->SetOpacity( KFSInvisible ); |
290 |
290 |
291 iListLayout = CAlfDeckLayout::AddNewL( *iControl, iParentLayout ); |
291 iListLayout = CAlfDeckLayout::AddNewL( *iControl, iParentLayout ); |
292 iListLayout->SetFlags(EAlfVisualFlagLayoutUpdateNotification|EAlfVisualFlagAutomaticLocaleMirroringEnabled); |
292 iListLayout->SetFlags(EAlfVisualFlagLayoutUpdateNotification|EAlfVisualFlagAutomaticLocaleMirroringEnabled); |
293 |
293 |
294 iTreeVisualizer = CFsTreeVisualizerBase::NewL(iControl, *iListLayout); |
294 iTreeVisualizer = CFsTreeVisualizerBase::NewL(iControl, *iListLayout, !iFullScreen); |
295 iTreeVisualizer->SetItemExpansionDelay( iAppUi.LayoutHandler()->ListItemExpansionDelay() ); |
295 iTreeVisualizer->SetItemExpansionDelay( iAppUi.LayoutHandler()->ListItemExpansionDelay() ); |
296 iTreeVisualizer->SetScrollTime( iAppUi.LayoutHandler()->ListScrollingTime() ); |
296 iTreeVisualizer->SetScrollTime( iAppUi.LayoutHandler()->ListScrollingTime() ); |
297 iTreeVisualizer->SetFadeInEffectTime( iAppUi.LayoutHandler()->CtrlBarListFadeEffectTime() ); |
297 iTreeVisualizer->SetFadeInEffectTime( iAppUi.LayoutHandler()->CtrlBarListFadeEffectTime() ); |
298 iTreeVisualizer->SetFadeOutEffectTime( iAppUi.LayoutHandler()->CtrlBarListFadeEffectTime() ); |
298 iTreeVisualizer->SetFadeOutEffectTime( iAppUi.LayoutHandler()->CtrlBarListFadeEffectTime() ); |
299 iTreeVisualizer->SetItemSeparatorSize( TSize(0, 0) ); |
299 iTreeVisualizer->SetItemSeparatorSize( TSize(0, 0) ); |
484 // folderlistview would be quickly drawn as fullscreen after HideListL |
484 // folderlistview would be quickly drawn as fullscreen after HideListL |
485 // call, effecting ugly flickering |
485 // call, effecting ugly flickering |
486 bgOpacity.SetTarget( 0, 0 ); |
486 bgOpacity.SetTarget( 0, 0 ); |
487 iParentLayout->SetOpacity( bgOpacity ); |
487 iParentLayout->SetOpacity( bgOpacity ); |
488 iTreeList->HideListL(); |
488 iTreeList->HideListL(); |
489 iTreeList->DisableKineticScrolling( EFalse ); |
489 //iTreeList->DisableKineticScrolling( EFalse ); |
490 ClearPopupSoftkeys(); |
490 ClearPopupSoftkeys(); |
491 iPopupListShown = EFalse; |
491 iPopupListShown = EFalse; |
492 } |
492 } |
493 |
493 |
494 // --------------------------------------------------------------------------- |
494 // --------------------------------------------------------------------------- |
629 opacity.SetValueNow( 1 ); |
629 opacity.SetValueNow( 1 ); |
630 //opacity.SetTarget( 1, iAppUi.LayoutHandler()->CtrlBarListFadeEffectTime() ); |
630 //opacity.SetTarget( 1, iAppUi.LayoutHandler()->CtrlBarListFadeEffectTime() ); |
631 iParentLayout->SetOpacity( opacity ); |
631 iParentLayout->SetOpacity( opacity ); |
632 iParentLayout->SetRect( iScreenRect, iAppUi.LayoutHandler()->CtrlBarListFadeEffectTime() ); |
632 iParentLayout->SetRect( iScreenRect, iAppUi.LayoutHandler()->CtrlBarListFadeEffectTime() ); |
633 iParentLayout->UpdateChildrenLayout(); |
633 iParentLayout->UpdateChildrenLayout(); |
634 iTreeList->DisableKineticScrolling( ETrue ); |
634 //iTreeList->DisableKineticScrolling( ETrue ); |
635 iTreeList->ShowListL( ETrue ); |
635 iTreeList->ShowListL( ETrue ); |
636 iTreeList->SetFocusedL( ETrue ); |
636 iTreeList->SetFocusedL( ETrue ); |
637 iFocusVisible = iAppUi.IsFocusShown(); |
637 iFocusVisible = iAppUi.IsFocusShown(); |
638 iTreeVisualizer->SetFocusVisibility( iFocusVisible ); |
638 iTreeVisualizer->SetFocusVisibility( iFocusVisible ); |
639 iPopupListShown = ETrue; |
639 iPopupListShown = ETrue; |
1562 // --------------------------------------------------------------------------- |
1562 // --------------------------------------------------------------------------- |
1563 // |
1563 // |
1564 void CFSEmailUiFolderListVisualiser::SetHeaderTextAttributesL() |
1564 void CFSEmailUiFolderListVisualiser::SetHeaderTextAttributesL() |
1565 { |
1565 { |
1566 iHeaderTextVisual->SetOpacity( KFSVisible ); |
1566 iHeaderTextVisual->SetOpacity( KFSVisible ); |
1567 CAlfTextStyle* textStyle = iAppUi.LayoutHandler()->FSTextStyleFromIdL( |
1567 CAlfTextStyle& textStyle = |
1568 EFSFontTypeNormalBold ); |
1568 iAppUi.LayoutHandler()->FSTextStyleFromLayoutL( |
1569 iHeaderTextVisual->SetTextStyle ( textStyle->Id() ); |
1569 AknLayoutScalable_Apps::main_sp_fs_ctrlbar_pane_t1(0)); |
|
1570 iHeaderTextVisual->SetTextStyle ( textStyle.Id() ); |
1570 iHeaderTextVisual->SetColor( iAppUi.LayoutHandler()-> |
1571 iHeaderTextVisual->SetColor( iAppUi.LayoutHandler()-> |
1571 ListNormalStateTextSkinColor() ); |
1572 ListNormalStateTextSkinColor() ); |
1572 iHeaderTextVisual->SetPadding( |
1573 iHeaderTextVisual->SetPadding( |
1573 iAppUi.LayoutHandler()->TitleCaptionPadding() ); |
1574 iAppUi.LayoutHandler()->TitleCaptionPadding() ); |
1574 |
1575 |
1923 // Returns ETrue if folder type is one of the "standard" folders |
1924 // Returns ETrue if folder type is one of the "standard" folders |
1924 // --------------------------------------------------------------------------- |
1925 // --------------------------------------------------------------------------- |
1925 // |
1926 // |
1926 TBool CFSEmailUiFolderListVisualiser::GetStandardFolderResouceIdAndIconL( const TInt aFolderType, TInt &aResourceId, CAlfTexture* &aIcon ) const |
1927 TBool CFSEmailUiFolderListVisualiser::GetStandardFolderResouceIdAndIconL( const TInt aFolderType, TInt &aResourceId, CAlfTexture* &aIcon ) const |
1927 { |
1928 { |
1928 FUNC_LOG; |
1929 FUNC_LOG; |
1929 TBool found(EFalse); |
1930 TBool found(EFalse); |
1930 if( aFolderType == EFSInbox ) |
1931 if( aFolderType == EFSInbox ) |
1931 { |
1932 { |
1932 if( iFullScreen ) |
1933 if( iFullScreen ) |
1933 { |
1934 { |
1934 aResourceId = R_FREESTYLE_EMAIL_UI_FOLDER_LIST_INBOX; |
1935 aResourceId = R_FREESTYLE_EMAIL_UI_FOLDER_LIST_INBOX; |
1935 aIcon = iIconArray[EFolderListIconInbox]; |
|
1936 } |
1936 } |
1937 else |
1937 else |
1938 { |
1938 { |
1939 aResourceId = R_FREESTYLE_EMAIL_UI_DROPDOWN_LIST_INBOX; |
1939 aResourceId = R_FREESTYLE_EMAIL_UI_DROPDOWN_LIST_INBOX; |
1940 // Get branded mailbox icon |
1940 // Get branded mailbox icon |
1941 aIcon = &iAppUi.FsTextureManager()->TextureByMailboxIdL( iActiveMailbox->GetId().PluginId(), |
1941 //aIcon = &iAppUi.FsTextureManager()->TextureByMailboxIdL( iActiveMailbox->GetId().PluginId(), |
1942 iActiveMailbox->GetId().Id(), |
1942 // iActiveMailbox->GetId().Id(), |
1943 iListIconSize); |
1943 // iListIconSize); |
1944 } |
1944 } |
|
1945 aIcon = iIconArray[EFolderListIconInbox]; |
1945 found = ETrue; |
1946 found = ETrue; |
1946 } |
1947 } |
1947 else if( aFolderType == EFSOutbox ) |
1948 else if( aFolderType == EFSOutbox ) |
1948 { |
1949 { |
1949 if( iFullScreen ) |
1950 if( iFullScreen ) |
1950 { |
1951 { |
1951 aResourceId = R_FREESTYLE_EMAIL_UI_FOLDER_LIST_OUTBOX; |
1952 aResourceId = R_FREESTYLE_EMAIL_UI_FOLDER_LIST_OUTBOX; |
1952 aIcon = iIconArray[EFolderListIconOutbox]; |
|
1953 } |
1953 } |
1954 else |
1954 else |
1955 { |
1955 { |
1956 aResourceId = R_FREESTYLE_EMAIL_UI_DROPDOWN_LIST_OUTBOX; |
1956 aResourceId = R_FREESTYLE_EMAIL_UI_DROPDOWN_LIST_OUTBOX; |
1957 } |
1957 } |
|
1958 aIcon = iIconArray[EFolderListIconOutbox]; |
1958 found = ETrue; |
1959 found = ETrue; |
1959 } |
1960 } |
1960 else if( aFolderType == EFSDraftsFolder ) |
1961 else if( aFolderType == EFSDraftsFolder ) |
1961 { |
1962 { |
1962 if( iFullScreen ) |
1963 if( iFullScreen ) |
1963 { |
1964 { |
1964 aResourceId = R_FREESTYLE_EMAIL_UI_FOLDER_LIST_DRAFTS; |
1965 aResourceId = R_FREESTYLE_EMAIL_UI_FOLDER_LIST_DRAFTS; |
1965 aIcon = iIconArray[EFolderListIconDrafts]; |
|
1966 } |
1966 } |
1967 else |
1967 else |
1968 { |
1968 { |
1969 aResourceId = R_FREESTYLE_EMAIL_UI_DROPDOWN_LIST_DRAFTS; |
1969 aResourceId = R_FREESTYLE_EMAIL_UI_DROPDOWN_LIST_DRAFTS; |
1970 } |
1970 } |
|
1971 aIcon = iIconArray[EFolderListIconDrafts]; |
1971 found = ETrue; |
1972 found = ETrue; |
1972 } |
1973 } |
1973 else if( aFolderType == EFSSentFolder ) |
1974 else if( aFolderType == EFSSentFolder ) |
1974 { |
1975 { |
1975 if( iFullScreen ) |
1976 if( iFullScreen ) |
1976 { |
1977 { |
1977 aResourceId = R_FREESTYLE_EMAIL_UI_FOLDER_LIST_SENT; |
1978 aResourceId = R_FREESTYLE_EMAIL_UI_FOLDER_LIST_SENT; |
1978 aIcon = iIconArray[EFolderListIconSent]; |
|
1979 } |
1979 } |
1980 else |
1980 else |
1981 { |
1981 { |
1982 aResourceId = R_FREESTYLE_EMAIL_UI_DROPDOWN_LIST_SENT; |
1982 aResourceId = R_FREESTYLE_EMAIL_UI_DROPDOWN_LIST_SENT; |
1983 } |
1983 } |
|
1984 aIcon = iIconArray[EFolderListIconSent]; |
1984 found = ETrue; |
1985 found = ETrue; |
1985 } |
1986 } |
1986 else if( aFolderType == EFSDeleted ) |
1987 else if( aFolderType == EFSDeleted ) |
1987 { |
1988 { |
1988 if( iFullScreen ) |
1989 if( iFullScreen ) |
1989 { |
1990 { |
1990 aResourceId = R_FREESTYLE_EMAIL_UI_FOLDER_LIST_DELETED; |
1991 aResourceId = R_FREESTYLE_EMAIL_UI_FOLDER_LIST_DELETED; |
1991 aIcon = iIconArray[EFolderListIconDeleted]; |
|
1992 } |
1992 } |
1993 else |
1993 else |
1994 { |
1994 { |
1995 aResourceId = R_FREESTYLE_EMAIL_UI_DROPDOWN_LIST_DELETED; |
1995 aResourceId = R_FREESTYLE_EMAIL_UI_DROPDOWN_LIST_DELETED; |
1996 } |
1996 } |
|
1997 aIcon = iIconArray[EFolderListIconDeleted]; |
1997 found = ETrue; |
1998 found = ETrue; |
1998 } |
1999 } |
1999 return found; |
2000 return found; |
2000 } |
2001 } |
2001 |
2002 |