equal
deleted
inserted
replaced
157 { |
157 { |
158 |
158 |
159 // Set the windows size |
159 // Set the windows size |
160 SetRect ( aRect ); |
160 SetRect ( aRect ); |
161 |
161 |
162 #ifdef MEDIAWALL_ORIENTATION_FIX |
162 #ifdef MEDIAWALL_ORIENTATION_FIX |
163 TSize screenSize = iCoeEnv->ScreenDevice()->SizeInPixels(); |
163 TSize screenSize = iCoeEnv->ScreenDevice()->SizeInPixels(); |
164 if (aRect == TRect(TPoint(0,0), screenSize) |
164 if (aRect == TRect(TPoint(0,0), screenSize) |
165 && iMediaWallStyle == EHgVgMediaWallStyleCoverflowFullScreen) |
165 && iMediaWallStyle == EHgVgMediaWallStyleCoverflowFullScreen) |
166 { |
166 { |
|
167 TPixelsAndRotation sizeAndRotation; |
|
168 iCoeEnv->ScreenDevice()->GetDefaultScreenSizeAndRotation(sizeAndRotation); |
|
169 iRotatedDraw = sizeAndRotation.iRotation != CFbsBitGc::EGraphicsOrientationNormal; |
|
170 |
167 Window().FixNativeOrientation(); |
171 Window().FixNativeOrientation(); |
168 } |
172 } |
169 #endif |
173 #endif |
170 |
174 |
171 } |
175 } |
863 |
867 |
864 possibleKeyScrollingState = EKeyScrollingRight; |
868 possibleKeyScrollingState = EKeyScrollingRight; |
865 handled = ETrue; |
869 handled = ETrue; |
866 } break; |
870 } break; |
867 case EKeyEnter: |
871 case EKeyEnter: |
|
872 case EKeyOK: |
868 { |
873 { |
869 if( iSelectedIndex != KErrNotFound && iSelectionObserver ) |
874 if( iSelectedIndex != KErrNotFound && iSelectionObserver ) |
870 { |
875 { |
871 TRAP_IGNORE( DoStartOpeningAnimationL( ); ) |
876 TRAP_IGNORE( DoStartOpeningAnimationL( ); ) |
872 return EKeyWasConsumed; |
877 return EKeyWasConsumed; |
873 } |
878 } |
874 return EKeyWasNotConsumed; |
879 return EKeyWasNotConsumed; |
875 } |
880 } |
876 default: |
881 default: |
1105 |
1110 |
1106 if (!DrawAll()) |
1111 if (!DrawAll()) |
1107 return NULL; |
1112 return NULL; |
1108 |
1113 |
1109 #ifdef MEDIAWALL_ORIENTATION_FIX |
1114 #ifdef MEDIAWALL_ORIENTATION_FIX |
1110 return iEGL->GetSurfaceToBitmap(iRect, |
1115 return iEGL->GetSurfaceToBitmap( |
1111 iMediaWallStyle == EHgVgMediaWallStyleCoverflowFullScreen); |
1116 iRect, |
|
1117 iRotatedDraw && (iMediaWallStyle == EHgVgMediaWallStyleCoverflowFullScreen) ); |
1112 #else |
1118 #else |
1113 return iEGL->GetSurfaceToBitmap(iRect, EFalse); |
1119 return iEGL->GetSurfaceToBitmap(iRect, EFalse); |
1114 #endif |
1120 #endif |
1115 |
1121 |
1116 } |
1122 } |
1588 |
1594 |
1589 iScrollBar->SetViewPosition( TPoint(iSelectedIndex, 0) ); |
1595 iScrollBar->SetViewPosition( TPoint(iSelectedIndex, 0) ); |
1590 |
1596 |
1591 #ifdef MEDIAWALL_ORIENTATION_FIX |
1597 #ifdef MEDIAWALL_ORIENTATION_FIX |
1592 iScrollBar->EnableLandscapeRendering( |
1598 iScrollBar->EnableLandscapeRendering( |
1593 iMediaWallStyle == CHgVgMediaWall::EHgVgMediaWallStyleCoverflowFullScreen ); |
1599 iRotatedDraw |
|
1600 && (iMediaWallStyle == CHgVgMediaWall::EHgVgMediaWallStyleCoverflowFullScreen) ); |
1594 #endif |
1601 #endif |
1595 |
1602 |
1596 } |
1603 } |
1597 |
1604 |
1598 // --------------------------------------------------------------------------- |
1605 // --------------------------------------------------------------------------- |
2437 |
2444 |
2438 InitButtonsL(); |
2445 InitButtonsL(); |
2439 |
2446 |
2440 InitScrollBarL(EFalse); |
2447 InitScrollBarL(EFalse); |
2441 |
2448 |
2442 #ifdef MEDIAWALL_ORIENTATION_FIX |
2449 #ifdef MEDIAWALL_ORIENTATION_FIX |
2443 iRenderer->EnableLandscapeMode(ETrue); |
2450 iRenderer->EnableLandscapeMode(iRotatedDraw); |
2444 iAlbumLabel->EnableLandscapeRendering(ETrue); |
2451 iAlbumLabel->EnableLandscapeRendering(iRotatedDraw); |
2445 iArtistLabel->EnableLandscapeRendering(ETrue); |
2452 iArtistLabel->EnableLandscapeRendering(iRotatedDraw); |
2446 iEmptyLabel->EnableLandscapeRendering(ETrue); |
2453 iEmptyLabel->EnableLandscapeRendering(iRotatedDraw); |
2447 iSkinRenderer->EnableLanscapeRendering(ETrue); |
2454 iSkinRenderer->EnableLanscapeRendering(iRotatedDraw); |
2448 iScrollBar->EnableLandscapeRendering(ETrue); |
2455 iScrollBar->EnableLandscapeRendering(iRotatedDraw); |
2449 iHideSKButton->EnableLandscapeRendering(ETrue); |
2456 iHideSKButton->EnableLandscapeRendering(iRotatedDraw); |
2450 iLetterPopup->EnableLandscapeRendering(ETrue); |
2457 iLetterPopup->EnableLandscapeRendering(iRotatedDraw); |
2451 #endif |
2458 #endif |
2452 |
2459 |
2453 } |
2460 } |
2454 |
2461 |
2455 // ----------------------------------------------------------------------------- |
2462 // ----------------------------------------------------------------------------- |