125 TUid /* aCustomMessageId */, |
125 TUid /* aCustomMessageId */, |
126 const TDesC8& aCustomMessage) |
126 const TDesC8& aCustomMessage) |
127 { |
127 { |
128 TRACER("CGlxGridViewImp::DoMLViewActivateL()"); |
128 TRACER("CGlxGridViewImp::DoMLViewActivateL()"); |
129 |
129 |
|
130 TUint transitionID = (iUiUtility->ViewNavigationDirection()== |
|
131 EGlxNavigationForwards)?KActivateTransitionId:KFSDeActivateTransitionId; |
|
132 |
130 HBufC8* activationParam = HBufC8::NewLC(KMaxUidName); |
133 HBufC8* activationParam = HBufC8::NewLC(KMaxUidName); |
131 activationParam->Des().AppendNum(KGlxActivationCmdShowAll); |
134 activationParam->Des().AppendNum(KGlxActivationCmdShowAll); |
132 |
135 |
133 if (aCustomMessage.Compare(activationParam->Des()) == 0) |
136 if (aCustomMessage.Compare(activationParam->Des()) == 0) |
134 { |
137 { |
175 if(!iToolbar) |
178 if(!iToolbar) |
176 { |
179 { |
177 iToolbar = CAknToolbar::NewL(R_GLX_GRID_VIEW_TOOLBAR); |
180 iToolbar = CAknToolbar::NewL(R_GLX_GRID_VIEW_TOOLBAR); |
178 SetGridToolBar(iToolbar); |
181 SetGridToolBar(iToolbar); |
179 SetToolbarObserver(this); |
182 SetToolbarObserver(this); |
180 iToolbar->SetDimmed(ETrue); |
183 //Make the toolbar visible only when the medialist is populated |
181 iToolbar->SetToolbarVisibility(ETrue); |
184 iToolbar->SetToolbarVisibility(iMediaList->IsPopulated()); |
182 } |
185 } |
183 //Create gridview container |
186 //Create gridview container |
184 iGlxGridViewContainer = CGlxGridViewContainer::NewL(iMediaList, |
187 iGlxGridViewContainer = CGlxGridViewContainer::NewL(iMediaList, |
185 iUiUtility, *this, iToolbar); |
188 iUiUtility, *this, iToolbar); |
186 iEikonEnv->AppUi()->AddToStackL(*this,iGlxGridViewContainer); |
189 iEikonEnv->AppUi()->AddToStackL(*this,iGlxGridViewContainer); |
188 |
191 |
189 // Start Animating the view when launched from other views |
192 // Start Animating the view when launched from other views |
190 // except if launched from Camera App. |
193 // except if launched from Camera App. |
191 if (aCustomMessage.Compare(activationParam->Des()) != 0) |
194 if (aCustomMessage.Compare(activationParam->Des()) != 0) |
192 { |
195 { |
193 TUint transitionID = (iUiUtility->ViewNavigationDirection() |
|
194 == EGlxNavigationForwards) ? KActivateTransitionId |
|
195 : KFSDeActivateTransitionId; |
|
196 GfxTransEffect::BeginFullScreen( transitionID, TRect(), |
196 GfxTransEffect::BeginFullScreen( transitionID, TRect(), |
197 AknTransEffect::EParameterType, |
197 AknTransEffect::EParameterType, |
198 AknTransEffect::GfxTransParam( KPhotosUid, |
198 AknTransEffect::GfxTransParam( KPhotosUid, |
199 AknTransEffect::TParameter::EEnableEffects) ); |
199 AknTransEffect::TParameter::EEnableEffects) ); |
200 iIsTransEffectStarted = ETrue; |
200 GfxTransEffect::EndFullScreen(); |
201 } |
201 } |
202 CleanupStack::PopAndDestroy(activationParam); |
202 CleanupStack::PopAndDestroy(activationParam); |
203 } |
203 } |
204 |
204 |
205 // --------------------------------------------------------------------------- |
205 // --------------------------------------------------------------------------- |