equal
deleted
inserted
replaced
132 UpdatePopupRects(); |
132 UpdatePopupRects(); |
133 iBgContext = CAknsFrameBackgroundControlContext::NewL( |
133 iBgContext = CAknsFrameBackgroundControlContext::NewL( |
134 KAknsIIDQsnFrPopup, |
134 KAknsIIDQsnFrPopup, |
135 iBgContextOuterRect, |
135 iBgContextOuterRect, |
136 iBgContextInnerRect, |
136 iBgContextInnerRect, |
137 ETrue ); |
137 EFalse ); |
138 iBgContext->SetFrameRects(iBgContextOuterRect, iBgContextInnerRect); |
138 iBgContext->SetFrameRects(iBgContextOuterRect, iBgContextInnerRect); |
139 iBgContext->SetCenter( KAknsIIDQsnFrPopupCenter ); |
139 iBgContext->SetCenter( KAknsIIDQsnFrPopupCenter ); |
140 |
140 |
141 TSLOG4( TSLOG_INFO, "view rect = %d %d %d %d", |
141 TSLOG4( TSLOG_INFO, "view rect = %d %d %d %d", |
142 iViewRect.iTl.iX, iViewRect.iTl.iY, |
142 iViewRect.iTl.iX, iViewRect.iTl.iY, |
307 TSLOG_CONTEXT( CTsAppView::SizeChanged, TSLOG_LOCAL ); |
307 TSLOG_CONTEXT( CTsAppView::SizeChanged, TSLOG_LOCAL ); |
308 TSLOG_IN(); |
308 TSLOG_IN(); |
309 iViewRect = Rect(); |
309 iViewRect = Rect(); |
310 UpdatePopupRects(); |
310 UpdatePopupRects(); |
311 iBgContext->SetFrameRects(iBgContextOuterRect, iBgContextInnerRect); |
311 iBgContext->SetFrameRects(iBgContextOuterRect, iBgContextInnerRect); |
|
312 iBgContext->SetParentPos(PositionRelativeToScreen()); |
312 if ( iFastSwapArea && iAppsHeading ) |
313 if ( iFastSwapArea && iAppsHeading ) |
313 { |
314 { |
314 RArray<TRect> rects; |
315 RArray<TRect> rects; |
315 // make sure that appending in GetRect cannot fail |
316 // make sure that appending in GetRect cannot fail |
316 if ( rects.Reserve( 2 ) == KErrNone ) |
317 if ( rects.Reserve( 2 ) == KErrNone ) |
454 void CTsAppView::HandleSwitchToForegroundEvent() |
455 void CTsAppView::HandleSwitchToForegroundEvent() |
455 { |
456 { |
456 TSLOG_CONTEXT( CTsAppView::HandleSwitchToForegroundEvent, TSLOG_LOCAL ); |
457 TSLOG_CONTEXT( CTsAppView::HandleSwitchToForegroundEvent, TSLOG_LOCAL ); |
457 TSLOG_IN(); |
458 TSLOG_IN(); |
458 |
459 |
|
460 // Check for layout updates |
|
461 CTsAppUi* appUi = static_cast<CTsAppUi*>(iCoeEnv->AppUi()); |
|
462 if ( iViewRect != appUi->ApplicationRect() && |
|
463 appUi->LayoutChangeAllowed() ) |
|
464 { |
|
465 HandleDeviceStateChanged( EOrientation ); |
|
466 } |
|
467 |
459 Window().Invalidate(Rect()); |
468 Window().Invalidate(Rect()); |
460 |
469 |
461 iEvtHandler->EnableEventHandling(ETrue); |
470 iEvtHandler->EnableEventHandling(ETrue); |
462 |
471 |
463 // Fade behind the pop-up |
472 // Fade behind the pop-up |
468 // Focus jumps back to fsw |
477 // Focus jumps back to fsw |
469 ChangeFocus( iFastSwapArea ); |
478 ChangeFocus( iFastSwapArea ); |
470 |
479 |
471 // Forward event to interested controls |
480 // Forward event to interested controls |
472 iFastSwapArea->HandleSwitchToForegroundEvent(); |
481 iFastSwapArea->HandleSwitchToForegroundEvent(); |
|
482 iFastSwapArea->UpdateComponentVisibility(); |
473 |
483 |
474 // Start animation |
484 // Start animation |
475 CTsAppUi* appui = |
485 CTsAppUi* appui = |
476 static_cast<CTsAppUi*>( iEikonEnv->AppUi() ); |
486 static_cast<CTsAppUi*>( iEikonEnv->AppUi() ); |
477 if ( appui->EffectsEnabled() ) |
487 if ( appui->EffectsEnabled() ) |
661 // |
671 // |
662 void CTsAppView::OrderFullWindowRedraw() |
672 void CTsAppView::OrderFullWindowRedraw() |
663 { |
673 { |
664 InvalidateWindows(this); |
674 InvalidateWindows(this); |
665 DrawNow(); |
675 DrawNow(); |
|
676 } |
|
677 |
|
678 |
|
679 // ----------------------------------------------------------------------------- |
|
680 // CTsAppView::EnableDragEvents |
|
681 // ----------------------------------------------------------------------------- |
|
682 // |
|
683 void CTsAppView::EnableDragEvents( TBool aEnable ) |
|
684 { |
|
685 iEvtHandler->EnableDragEventHandling( aEnable ); |
666 } |
686 } |
667 |
687 |
668 |
688 |
669 // ----------------------------------------------------------------------------- |
689 // ----------------------------------------------------------------------------- |
670 // CTsAppView::MoveOffset |
690 // CTsAppView::MoveOffset |