equal
deleted
inserted
replaced
456 TSLOG_CONTEXT( CTsAppView::HandleSwitchToForegroundEvent, TSLOG_LOCAL ); |
456 TSLOG_CONTEXT( CTsAppView::HandleSwitchToForegroundEvent, TSLOG_LOCAL ); |
457 TSLOG_IN(); |
457 TSLOG_IN(); |
458 |
458 |
459 Window().Invalidate(Rect()); |
459 Window().Invalidate(Rect()); |
460 |
460 |
|
461 iEvtHandler->EnableEventHandling(ETrue); |
|
462 |
461 // Fade behind the pop-up |
463 // Fade behind the pop-up |
462 iPopupFader.FadeBehindPopup( this, NULL, ETrue ); |
464 iPopupFader.FadeBehindPopup( this, NULL, ETrue ); |
463 |
465 |
464 DrawDeferred(); // otherwise some parts may not be drawn properly |
466 DrawDeferred(); // otherwise some parts may not be drawn properly |
465 |
467 |
600 { |
602 { |
601 if( TPointerEvent::EButton1Down == aPointerEvent.iType ) |
603 if( TPointerEvent::EButton1Down == aPointerEvent.iType ) |
602 { |
604 { |
603 LaunchFeedback(ETouchFeedbackBasic, TTouchFeedbackType( |
605 LaunchFeedback(ETouchFeedbackBasic, TTouchFeedbackType( |
604 ETouchFeedbackVibra | ETouchFeedbackAudio), aPointerEvent); |
606 ETouchFeedbackVibra | ETouchFeedbackAudio), aPointerEvent); |
605 } |
607 if ( !( iFastSwapArea->Rect().Contains(aPointerEvent.iParentPosition) || |
|
608 iAppsHeading->Rect().Contains(aPointerEvent.iParentPosition) |
|
609 ) ) |
|
610 { |
|
611 //move task switcher to background |
|
612 iEvtHandler->EnableEventHandling(EFalse); |
|
613 iEikonEnv->EikAppUi()->HandleCommandL(EAknSoftkeyExit); |
|
614 } |
|
615 } |
606 iFastSwapArea->HandlePointerEventL(aPointerEvent); |
616 iFastSwapArea->HandlePointerEventL(aPointerEvent); |
607 } |
617 } |
608 |
618 |
609 // ----------------------------------------------------------------------------- |
619 // ----------------------------------------------------------------------------- |
610 // CTsAppView::DataChanged |
620 // CTsAppView::DataChanged |
658 |
668 |
659 // ----------------------------------------------------------------------------- |
669 // ----------------------------------------------------------------------------- |
660 // CTsAppView::MoveOffset |
670 // CTsAppView::MoveOffset |
661 // ----------------------------------------------------------------------------- |
671 // ----------------------------------------------------------------------------- |
662 // |
672 // |
663 void CTsAppView::MoveOffset(const TPoint& aOffset) |
673 void CTsAppView::MoveOffset(const TPoint& aOffset, TBool aDrawNow) |
664 { |
674 { |
665 DrawDeferred(); |
675 if ( aDrawNow ) |
666 iFastSwapArea->MoveOffset(aOffset); |
676 { |
|
677 DrawDeferred(); |
|
678 } |
|
679 iFastSwapArea->MoveOffset(aOffset, aDrawNow); |
667 } |
680 } |
668 |
681 |
669 // ----------------------------------------------------------------------------- |
682 // ----------------------------------------------------------------------------- |
670 // CTsAppView::TapL |
683 // CTsAppView::TapL |
671 // ----------------------------------------------------------------------------- |
684 // ----------------------------------------------------------------------------- |
675 if(iFastSwapArea->Rect().Contains(aPoint)) |
688 if(iFastSwapArea->Rect().Contains(aPoint)) |
676 { |
689 { |
677 iFastSwapArea->TapL(aPoint); |
690 iFastSwapArea->TapL(aPoint); |
678 DrawNow(); |
691 DrawNow(); |
679 } |
692 } |
680 else if( !iAppsHeading->Rect().Contains(aPoint)) |
|
681 { |
|
682 //move task switcher to background |
|
683 iEikonEnv->EikAppUi()->HandleCommandL(EAknSoftkeyExit); |
|
684 } |
|
685 } |
693 } |
686 |
694 |
687 // ----------------------------------------------------------------------------- |
695 // ----------------------------------------------------------------------------- |
688 // CTsAppView::LongTapL |
696 // CTsAppView::LongTapL |
689 // ----------------------------------------------------------------------------- |
697 // ----------------------------------------------------------------------------- |
691 void CTsAppView::LongTapL(const TPoint& aPoint) |
699 void CTsAppView::LongTapL(const TPoint& aPoint) |
692 { |
700 { |
693 if(iFastSwapArea->Rect().Contains(aPoint)) |
701 if(iFastSwapArea->Rect().Contains(aPoint)) |
694 { |
702 { |
695 iFastSwapArea->LongTapL(aPoint); |
703 iFastSwapArea->LongTapL(aPoint); |
696 } |
|
697 else if( !iAppsHeading->Rect().Contains(aPoint)) |
|
698 { |
|
699 //move task switcher to background |
|
700 iEikonEnv->EikAppUi()->HandleCommandL(EAknSoftkeyExit); |
|
701 } |
704 } |
702 } |
705 } |
703 |
706 |
704 // ----------------------------------------------------------------------------- |
707 // ----------------------------------------------------------------------------- |
705 // CTsAppView::DragL() |
708 // CTsAppView::DragL() |
715 if( iFastSwapArea->Rect().Contains(aEvent.StartPosition()) || |
718 if( iFastSwapArea->Rect().Contains(aEvent.StartPosition()) || |
716 iAppsHeading->Rect().Contains(aEvent.StartPosition()) ) |
719 iAppsHeading->Rect().Contains(aEvent.StartPosition()) ) |
717 { |
720 { |
718 iFastSwapArea->DragL(aEvent); |
721 iFastSwapArea->DragL(aEvent); |
719 } |
722 } |
720 else |
|
721 { |
|
722 //move task switcher to background |
|
723 iEikonEnv->EikAppUi()->HandleCommandL(EAknSoftkeyExit); |
|
724 } |
|
725 } |
723 } |
726 |
724 |
727 // ----------------------------------------------------------------------------- |
725 // ----------------------------------------------------------------------------- |
728 // CTsAppView::Stop |
726 // CTsAppView::Stop |
729 // ----------------------------------------------------------------------------- |
727 // ----------------------------------------------------------------------------- |