equal
deleted
inserted
replaced
37 // User Includes |
37 // User Includes |
38 #include "glxgridviewimp.h" |
38 #include "glxgridviewimp.h" |
39 #include "glxgridviewmlobserver.h" // medialist observer for Hg Grid |
39 #include "glxgridviewmlobserver.h" // medialist observer for Hg Grid |
40 #include "glxgridviewcontainer.h" |
40 #include "glxgridviewcontainer.h" |
41 |
41 |
|
42 // For transition effects |
|
43 #include <AknTransEffect.h> |
|
44 #include <GfxTransEffect/GfxTransEffect.h> |
|
45 #include "glxgfxtranseffect.h" // For transition effects |
|
46 |
42 const TInt KGlxToolbarButtonUnLatched = 0; // Toolbar mark button's unlatched state defined in the rss file |
47 const TInt KGlxToolbarButtonUnLatched = 0; // Toolbar mark button's unlatched state defined in the rss file |
43 |
48 |
44 // ======== MEMBER FUNCTIONS ======== |
49 // ======== MEMBER FUNCTIONS ======== |
45 |
50 |
46 // --------------------------------------------------------------------------- |
51 // --------------------------------------------------------------------------- |
127 TUid /* aCustomMessageId */, |
132 TUid /* aCustomMessageId */, |
128 const TDesC8& /*aCustomMessage*/) |
133 const TDesC8& /*aCustomMessage*/) |
129 { |
134 { |
130 TRACER("CGlxGridViewImp::DoMLViewActivateL()"); |
135 TRACER("CGlxGridViewImp::DoMLViewActivateL()"); |
131 |
136 |
|
137 TUint transitionID = (iUiUtility->ViewNavigationDirection()== |
|
138 EGlxNavigationForwards)?KActivateTransitionId:KFSDeActivateTransitionId; |
|
139 |
|
140 GfxTransEffect::BeginFullScreen( transitionID, TRect(), |
|
141 AknTransEffect::EParameterType, |
|
142 AknTransEffect::GfxTransParam( KPhotosUid, |
|
143 AknTransEffect::TParameter::EEnableEffects) ); |
|
144 GfxTransEffect::EndFullScreen(); |
|
145 |
132 if(StatusPane()) |
146 if(StatusPane()) |
133 { |
147 { |
134 StatusPane()->MakeVisible(ETrue); |
148 StatusPane()->MakeVisible(ETrue); |
135 CEikStatusPane* statusPane = iEikonEnv->AppUiFactory()->StatusPane(); |
149 CEikStatusPane* statusPane = iEikonEnv->AppUiFactory()->StatusPane(); |
136 CAknTitlePane* titlePane = ( CAknTitlePane* )statusPane->ControlL( |
150 CAknTitlePane* titlePane = ( CAknTitlePane* )statusPane->ControlL( |
259 // --------------------------------------------------------------------------- |
273 // --------------------------------------------------------------------------- |
260 // |
274 // |
261 void CGlxGridViewImp::HandleForegroundEventL(TBool aForeground) |
275 void CGlxGridViewImp::HandleForegroundEventL(TBool aForeground) |
262 { |
276 { |
263 TRACER("CGlxGridViewImp::HandleForegroundEventL()"); |
277 TRACER("CGlxGridViewImp::HandleForegroundEventL()"); |
|
278 if(iMMCState) |
|
279 { |
|
280 iMMCState = EFalse; |
|
281 ProcessCommandL(EAknSoftkeyClose); |
|
282 } |
264 CAknView::HandleForegroundEventL(aForeground); |
283 CAknView::HandleForegroundEventL(aForeground); |
265 } |
284 } |
266 |
285 |
267 // --------------------------------------------------------------------------- |
286 // --------------------------------------------------------------------------- |
268 // From MGlxHandleGridEvents |
287 // From MGlxHandleGridEvents |
272 // |
291 // |
273 void CGlxGridViewImp::HandleGridEventsL(TInt aCmd) |
292 void CGlxGridViewImp::HandleGridEventsL(TInt aCmd) |
274 { |
293 { |
275 TRACER("CGlxGridViewImp::HandleGridEventsL()"); |
294 TRACER("CGlxGridViewImp::HandleGridEventsL()"); |
276 //do processcmd related event handling |
295 //do processcmd related event handling |
|
296 if(EAknSoftkeyClose == aCmd) |
|
297 { |
|
298 iMMCState = ETrue; |
|
299 } |
277 ProcessCommandL(aCmd); |
300 ProcessCommandL(aCmd); |
278 } |
301 } |
279 |
302 |
280 // --------------------------------------------------------------------------- |
303 // --------------------------------------------------------------------------- |
281 // From MGlxHandleButtonMark |
304 // From MGlxHandleButtonMark |