equal
deleted
inserted
replaced
332 iVolumeControlGroup->AppendL( iVolumeControl ); |
332 iVolumeControlGroup->AppendL( iVolumeControl ); |
333 |
333 |
334 iGestureControlGroup = &iEnv->NewControlGroupL( KShwGestureControlGroupId ); |
334 iGestureControlGroup = &iEnv->NewControlGroupL( KShwGestureControlGroupId ); |
335 |
335 |
336 // construct the gesture control group |
336 // construct the gesture control group |
337 iShwGestureControl = CShwGestureControl::NewL(*iEnv,*iDisplay,*this); |
337 iShwGestureControl = CShwGestureControl::NewL(*iEnv,*iDisplay); |
338 iGestureControlGroup->AppendL( iShwGestureControl ); |
338 iGestureControlGroup->AppendL( iShwGestureControl ); |
339 |
339 |
340 GestureHelper::CGestureControl* gestureControl = GestureHelper::CGestureControl::NewLC( |
340 GestureHelper::CGestureControl* gestureControl = GestureHelper::CGestureControl::NewLC( |
341 *iShwGestureControl, *iEnv, *iDisplay, KGestureControlGroupId ); |
341 *iShwGestureControl, *iEnv, *iDisplay, KGestureControlGroupId ); |
342 iGestureControl = gestureControl; |
342 iGestureControl = gestureControl; |
416 if ( AppUi()->PopupToolbar() ) |
416 if ( AppUi()->PopupToolbar() ) |
417 { |
417 { |
418 AppUi()->PopupToolbar()->SetToolbarVisibility( EFalse ); |
418 AppUi()->PopupToolbar()->SetToolbarVisibility( EFalse ); |
419 AppUi()->PopupToolbar()->MakeVisible(EFalse); |
419 AppUi()->PopupToolbar()->MakeVisible(EFalse); |
420 } |
420 } |
|
421 iHdmiActive = EFalse; |
421 // reset failure flag |
422 // reset failure flag |
422 iEngineStartFailed = EFalse; |
423 iEngineStartFailed = EFalse; |
423 |
424 |
424 iHdmiController = CGlxHdmiController::NewL(); |
425 iHdmiController = CGlxHdmiController::NewL(); |
425 // Engine related construction |
426 // Engine related construction |
460 |
461 |
461 iTicker = CShwTicker::NewL(*this); |
462 iTicker = CShwTicker::NewL(*this); |
462 |
463 |
463 InitializeShwFurnitureL(); |
464 InitializeShwFurnitureL(); |
464 iUiUtility->Display()->SetVisibleArea(TRect(TPoint(0,0),AlfUtil::ScreenSize())); |
465 iUiUtility->Display()->SetVisibleArea(TRect(TPoint(0,0),AlfUtil::ScreenSize())); |
|
466 // We will require to act on events ONLY when the view is active. |
|
467 // So listen to them only when the view is active. |
|
468 iShwGestureControl->AddObserver(this); |
|
469 |
465 } |
470 } |
466 |
471 |
467 // ----------------------------------------------------------------------------- |
472 // ----------------------------------------------------------------------------- |
468 // From CGlxViewBase |
473 // From CGlxViewBase |
469 // DoViewDeactivate. |
474 // DoViewDeactivate. |
549 //need to also close the list |
554 //need to also close the list |
550 iFilteredList->Close(); |
555 iFilteredList->Close(); |
551 //set to NULL to prevent double delete |
556 //set to NULL to prevent double delete |
552 iFilteredList = NULL; |
557 iFilteredList = NULL; |
553 } |
558 } |
|
559 iShwGestureControl->RemoveObserver(this); |
554 iDisplay->Roster().Hide( *iGestureControlGroup ); |
560 iDisplay->Roster().Hide( *iGestureControlGroup ); |
555 |
561 |
556 if(iTicker) |
562 if(iTicker) |
557 { |
563 { |
558 delete iTicker; |
564 delete iTicker; |
717 { |
723 { |
718 // cancel the progress bar |
724 // cancel the progress bar |
719 iWaitDialog->ProcessFinishedL(); |
725 iWaitDialog->ProcessFinishedL(); |
720 } |
726 } |
721 iShwState = EShwPlay; |
727 iShwState = EShwPlay; |
|
728 SetImage(); |
|
729 iHdmiActive = ETrue; |
722 ReplaceCommandSetL(R_SHW_SOFTKEYS_END_PAUSE,R_SHW_SOFTKEYS_END_PAUSE); |
730 ReplaceCommandSetL(R_SHW_SOFTKEYS_END_PAUSE,R_SHW_SOFTKEYS_END_PAUSE); |
723 ShowShwFurnitureL(); |
731 ShowShwFurnitureL(); |
724 } |
732 } |
725 |
733 |
726 // --------------------------------------------------------------------------- |
734 // --------------------------------------------------------------------------- |
1017 // it's been filtered out so just use the first item |
1025 // it's been filtered out so just use the first item |
1018 focusIndex = 0; |
1026 focusIndex = 0; |
1019 } |
1027 } |
1020 } |
1028 } |
1021 iFilteredList->SetFocusL( NGlxListDefs::EAbsolute, focusIndex ); |
1029 iFilteredList->SetFocusL( NGlxListDefs::EAbsolute, focusIndex ); |
1022 SetImage(); |
|
1023 iHdmiActive = ETrue; |
|
1024 // iContextUtility->PublishPhotoContextL(item.Uri()); |
1030 // iContextUtility->PublishPhotoContextL(item.Uri()); |
1025 } |
1031 } |
1026 |
1032 |
1027 |
1033 |
1028 // ----------------------------------------------------------------------------- |
1034 // ----------------------------------------------------------------------------- |
1049 // act on timer cancelled |
1055 // act on timer cancelled |
1050 // ----------------------------------------------------------------------------- |
1056 // ----------------------------------------------------------------------------- |
1051 // |
1057 // |
1052 void CShwSlideshowView::HandleTickCancelled() |
1058 void CShwSlideshowView::HandleTickCancelled() |
1053 { |
1059 { |
1054 |
1060 TRACER("CShwSlideshowView::HandleTickCancelled()"); |
1055 } |
1061 } |
1056 |
1062 |
1057 // ----------------------------------------------------------------------------- |
1063 // ----------------------------------------------------------------------------- |
1058 // HandleShwGestureEventL. |
1064 // HandleShwGestureEventL. |
1059 // act on gestures |
1065 // act on gestures |
1061 // |
1067 // |
1062 void CShwSlideshowView::HandleShwGestureEventL(MShwGestureObserver::TShwGestureEventType aType) |
1068 void CShwSlideshowView::HandleShwGestureEventL(MShwGestureObserver::TShwGestureEventType aType) |
1063 { |
1069 { |
1064 TRACER("CShwSlideshowView::HandleShwGestureEventL"); |
1070 TRACER("CShwSlideshowView::HandleShwGestureEventL"); |
1065 GLX_LOG_INFO( "CShwSlideshowView::HandleShwGestureEventL" ); |
1071 GLX_LOG_INFO( "CShwSlideshowView::HandleShwGestureEventL" ); |
|
1072 |
|
1073 // If there is no Engine, the vehicle is handicapped and there is no way to know |
|
1074 // whether it is possible for it to PROPERLY respond to events. |
|
1075 // So it is safer to not do so. |
|
1076 if (NULL == iEngine) |
|
1077 { |
|
1078 return ; |
|
1079 } |
|
1080 |
1066 iTicker->CancelTicking(); |
1081 iTicker->CancelTicking(); |
1067 switch(aType) |
1082 switch(aType) |
1068 { |
1083 { |
1069 case ETapEvent: |
1084 case ETapEvent: |
1070 { |
1085 { |