293 for (TInt n=0; n<ELayerFlatN; n++) |
293 for (TInt n=0; n<ELayerFlatN; n++) |
294 { |
294 { |
295 iExtension->iBgContext->SetLayerImage( n, KAknsIIDNone ); |
295 iExtension->iBgContext->SetLayerImage( n, KAknsIIDNone ); |
296 } |
296 } |
297 |
297 |
298 TBool widescreenPaneUsed( |
298 CAknEnv* aknEnv = AVKONENV; |
299 R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL == |
299 |
300 AVKONENV->StatusPaneResIdForCurrentLayout( |
300 TInt usualSpLayout = |
301 R_AVKON_STATUS_PANE_LAYOUT_USUAL ) || |
301 aknEnv->StatusPaneResIdForCurrentLayout( |
302 R_AVKON_WIDESCREEN_PANE_LAYOUT_IDLE == |
302 R_AVKON_STATUS_PANE_LAYOUT_USUAL ); |
303 AVKONENV->StatusPaneResIdForCurrentLayout( |
303 |
304 R_AVKON_STATUS_PANE_LAYOUT_IDLE ) ); |
304 TInt idleSpLayout = |
|
305 aknEnv->StatusPaneResIdForCurrentLayout( |
|
306 R_AVKON_STATUS_PANE_LAYOUT_IDLE ); |
|
307 |
|
308 TBool widescreenPaneUsed = |
|
309 ( usualSpLayout == R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL ) || |
|
310 ( idleSpLayout == R_AVKON_WIDESCREEN_PANE_LAYOUT_IDLE ); |
305 |
311 |
306 // Check that if in landscape mode statuspane is changed to stacon pane |
312 // Check that if in landscape mode statuspane is changed to stacon pane |
307 TBool staconPaneUsedInLandscape = |
313 TBool staconPaneUsedInLandscape = |
308 ( ( R_AVKON_STATUS_PANE_LAYOUT_USUAL != |
314 ( usualSpLayout != R_AVKON_STATUS_PANE_LAYOUT_USUAL ) && |
309 AVKONENV->StatusPaneResIdForCurrentLayout( |
315 ( usualSpLayout != R_AVKON_STATUS_PANE_LAYOUT_USUAL_MIRRORED ); |
310 R_AVKON_STATUS_PANE_LAYOUT_USUAL ) ) && |
|
311 ( R_AVKON_STATUS_PANE_LAYOUT_USUAL_MIRRORED != |
|
312 AVKONENV->StatusPaneResIdForCurrentLayout( |
|
313 R_AVKON_STATUS_PANE_LAYOUT_USUAL ) ) ); |
|
314 |
316 |
315 TBool flatStatuspaneusedInLandscape = |
317 TBool flatStatuspaneusedInLandscape = |
316 ( R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT == |
318 ( usualSpLayout == R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT ) || |
317 AVKONENV->StatusPaneResIdForCurrentLayout( |
319 ( usualSpLayout == R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT ); |
318 R_AVKON_STATUS_PANE_LAYOUT_USUAL ) ); |
|
319 ( R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT == |
|
320 AVKONENV->StatusPaneResIdForCurrentLayout( |
|
321 R_AVKON_STATUS_PANE_LAYOUT_USUAL ) ); |
|
322 |
320 |
323 |
321 |
324 // TRect application_window = iAvkonAppUi->ApplicationRect(); |
322 // TRect application_window = iAvkonAppUi->ApplicationRect(); |
325 // This is sometimes needed before iAvkonAppUi->ApplicationRect() is updated |
323 // This is sometimes needed before iAvkonAppUi->ApplicationRect() is updated |
326 TRect application_window( KWholeScreen ); |
324 TRect application_window( KWholeScreen ); |
483 |
481 |
484 TBool staconPaneRight = EFalse; |
482 TBool staconPaneRight = EFalse; |
485 CEikStatusPaneBase* statusPane = CEikStatusPaneBase::Current(); |
483 CEikStatusPaneBase* statusPane = CEikStatusPaneBase::Current(); |
486 if (statusPane) |
484 if (statusPane) |
487 { |
485 { |
488 TInt currentStatusPaneLayoutResId = AVKONENV->StatusPaneResIdForCurrentLayout(statusPane->CurrentLayoutResId()); |
486 TInt currentStatusPaneLayoutResId = aknEnv->StatusPaneResIdForCurrentLayout(statusPane->CurrentLayoutResId()); |
489 |
487 |
490 staconPaneRight = ((currentStatusPaneLayoutResId == R_AVKON_STACON_PANE_LAYOUT_USUAL_SOFTKEYS_RIGHT) || |
488 staconPaneRight = ((currentStatusPaneLayoutResId == R_AVKON_STACON_PANE_LAYOUT_USUAL_SOFTKEYS_RIGHT) || |
491 (currentStatusPaneLayoutResId == R_AVKON_STACON_PANE_LAYOUT_EMPTY_SOFTKEYS_RIGHT) || |
489 (currentStatusPaneLayoutResId == R_AVKON_STACON_PANE_LAYOUT_EMPTY_SOFTKEYS_RIGHT) || |
492 (currentStatusPaneLayoutResId == R_AVKON_STACON_PANE_LAYOUT_IDLE_SOFTKEYS_RIGHT)); |
490 (currentStatusPaneLayoutResId == R_AVKON_STACON_PANE_LAYOUT_IDLE_SOFTKEYS_RIGHT)); |
493 |
491 |