equal
deleted
inserted
replaced
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Application UI class |
14 * Description: Application UI class |
15 * Version : %version: MM_176.1.28.1.65 % << Don't touch! Updated by Synergy at check-out. |
15 * Version : %version: MM_176.1.28.1.67 % << Don't touch! Updated by Synergy at check-out. |
16 * Version : %version: MM_176.1.28.1.65 % << Don't touch! Updated by Synergy at check-out. |
16 * Version : %version: MM_176.1.28.1.67 % << Don't touch! Updated by Synergy at check-out. |
17 * |
17 * |
18 */ |
18 */ |
19 |
19 |
20 #include <e32base.h> |
20 #include <e32base.h> |
21 #include <e32cmn.h> |
21 #include <e32cmn.h> |
94 |
94 |
95 TInt appUiFlags = AknLayoutUtils::PenEnabled() ? |
95 TInt appUiFlags = AknLayoutUtils::PenEnabled() ? |
96 EAknEnableSkin | EAknSingleClickCompatible : |
96 EAknEnableSkin | EAknSingleClickCompatible : |
97 EAknEnableSkin | EAknEnableMSK; |
97 EAknEnableSkin | EAknEnableMSK; |
98 BaseConstructL( appUiFlags ); |
98 BaseConstructL( appUiFlags ); |
99 |
99 //hide Menu from TS at startup |
|
100 HideApplicationFromFSW( ETrue ); |
|
101 isHiddenFromFS = ETrue; |
100 FeatureManager::InitializeLibL(); |
102 FeatureManager::InitializeLibL(); |
101 iIsKastorEffectStarted = EFalse; |
103 iIsKastorEffectStarted = EFalse; |
102 StartLayoutSwitchFullScreen( AknTransEffect::EApplicationStart ); |
104 StartLayoutSwitchFullScreen( AknTransEffect::EApplicationStart ); |
103 |
105 |
104 RefreshUiPanesL( ETrue ); |
106 RefreshUiPanesL( ETrue ); |
1795 iToolbar->SetToolbarVisibility( EFalse ); |
1797 iToolbar->SetToolbarVisibility( EFalse ); |
1796 } |
1798 } |
1797 |
1799 |
1798 if( iCurrentContainer != aWidgetContainer ) |
1800 if( iCurrentContainer != aWidgetContainer ) |
1799 { |
1801 { |
1800 TBool highlightVisibleBefore = iCurrentContainer != NULL && |
1802 // We want a highlight to be visible while switching between |
1801 iCurrentContainer->IsHighlightVisible(); |
1803 // grid and list views but no highlight should be visible |
|
1804 // after opening a folder. |
|
1805 TBool highlightVisibleBefore = |
|
1806 iCurrentContainer && |
|
1807 aWidgetContainer && |
|
1808 iCurrentContainer->IsHighlightVisible() && |
|
1809 iCurrentContainer->WidgetType() != aWidgetContainer->WidgetType(); |
1802 |
1810 |
1803 HandleWidgetChangeRefreshL( aWidgetContainer ); |
1811 HandleWidgetChangeRefreshL( aWidgetContainer ); |
1804 |
1812 |
1805 if ( highlightVisibleBefore ) |
1813 if ( highlightVisibleBefore ) |
1806 { |
1814 { |
1807 iCurrentContainer->SetHighlightVisibilityL( ETrue ); |
1815 iCurrentContainer->SetHighlightVisibilityL( ETrue ); |
1808 } |
1816 } |
1809 } |
1817 } |
1810 else |
1818 else |
1811 { |
1819 { |
1812 HandleNoWidgetChangeRefreshL(); |
1820 HandleNoWidgetChangeRefreshL(); |
1813 } |
1821 } |
2971 // |
2979 // |
2972 void CMmAppUi::HandleFullOrPartialForegroundGainedL() |
2980 void CMmAppUi::HandleFullOrPartialForegroundGainedL() |
2973 { |
2981 { |
2974 DEBUG(("_Mm_:CMmAppUi::HandleWsEventL " |
2982 DEBUG(("_Mm_:CMmAppUi::HandleWsEventL " |
2975 "- KAknFullOrPartialForegroundGained")); |
2983 "- KAknFullOrPartialForegroundGained")); |
|
2984 //show Menu in TS when launched for the first time |
|
2985 if( isHiddenFromFS ) |
|
2986 { |
|
2987 HideApplicationFromFSW( EFalse ); |
|
2988 isHiddenFromFS = EFalse; |
|
2989 } |
|
2990 |
2976 if (iCurrentContainer && iCurrentSuiteModel ) |
2991 if (iCurrentContainer && iCurrentSuiteModel ) |
2977 { |
2992 { |
2978 iCurrentContainer->HandleForegroundGainedL(); |
2993 iCurrentContainer->HandleForegroundGainedL(); |
2979 iDummyContainer->MakeVisible( EFalse ); |
2994 iDummyContainer->MakeVisible( EFalse ); |
2980 iCurrentContainer->MakeVisible( ETrue ); |
2995 iCurrentContainer->MakeVisible( ETrue ); |