equal
deleted
inserted
replaced
296 { |
296 { |
297 ShowZoom(ETrue); |
297 ShowZoom(ETrue); |
298 iZoomSliderWidget.AddEventHandler(*this); |
298 iZoomSliderWidget.AddEventHandler(*this); |
299 iZoomSliderWidget.SetHandleKeyEvent(EFalse); |
299 iZoomSliderWidget.SetHandleKeyEvent(EFalse); |
300 iZoomSliderModel = (IMulSliderModel*) iZoomSliderWidget.model(); |
300 iZoomSliderModel = (IMulSliderModel*) iZoomSliderWidget.model(); |
|
301 |
|
302 if(iZoomSliderWidget.IsHidden()) |
|
303 { |
|
304 iEventHandler->SetZoomUiState(EUiOff); |
|
305 } |
|
306 else |
|
307 { |
|
308 iEventHandler->SetZoomUiState(EUiOn); |
|
309 } |
301 // Get size, return value tells us if it was available |
310 // Get size, return value tells us if it was available |
302 //We need this Value to calculate the size of the visual/Layout corresponding to the Zoom factor |
311 //We need this Value to calculate the size of the visual/Layout corresponding to the Zoom factor |
303 TSize imageSize; |
312 TSize imageSize; |
304 aItem.GetDimensions( imageSize ); |
313 aItem.GetDimensions( imageSize ); |
305 TSize maxVirtualImageSize = imageSize; |
314 TSize maxVirtualImageSize = imageSize; |
440 { |
449 { |
441 if(iTimer->IsActive()) |
450 if(iTimer->IsActive()) |
442 { |
451 { |
443 iTimer->Cancel(); |
452 iTimer->Cancel(); |
444 } |
453 } |
445 iZoomSliderWidget.ShowWidget( EFalse, 0 ); |
|
446 iZoomSliderWidget.RemoveEventHandler(*this); |
454 iZoomSliderWidget.RemoveEventHandler(*this); |
447 iZoomBackKey->MakeVisible( EFalse ); |
455 iZoomBackKey->MakeVisible( EFalse ); |
448 iTextureMgr->RemoveZoomList(); |
456 iTextureMgr->RemoveZoomList(); |
449 |
457 |
450 iImageVisual->SetImage(*iImageTexture); |
458 iImageVisual->SetImage(*iImageTexture); |
617 return; |
625 return; |
618 } |
626 } |
619 |
627 |
620 TRect rect; |
628 TRect rect; |
621 rect = AlfUtil::ScreenSize(); |
629 rect = AlfUtil::ScreenSize(); |
622 if ( (rect.Width() != iScreenSize.iWidth) && ( rect.Height() != iScreenSize.iHeight) && (Activated()) ) |
630 if ( (rect.Width() != iScreenSize.iWidth) && ( rect.Height() != iScreenSize.iHeight)) |
623 { |
631 { |
624 //notify slider about Orientation Change |
632 //notify slider about Orientation Change |
625 iZoomSliderWidget.ContainerLayout().Owner().VisualLayoutUpdated(aVisual); |
633 iZoomSliderWidget.ContainerLayout().Owner().VisualLayoutUpdated(aVisual); |
626 //when the Phone is tilted,Height becomes the width and vice versa. So update with the new dimensions |
634 //when the Phone is tilted,Height becomes the width and vice versa. So update with the new dimensions |
627 iScreenSize.iWidth = rect.Width(); |
635 iScreenSize.iWidth = rect.Width(); |
629 iDisplay->SetVisibleArea(TRect(TPoint(0,0),iScreenSize)); |
637 iDisplay->SetVisibleArea(TRect(TPoint(0,0),iScreenSize)); |
630 |
638 |
631 //[TODO]: Use the Maths engine ro arrive at this figure (virtual and viewport sizes). else there might be problems in fringe conditions |
639 //[TODO]: Use the Maths engine ro arrive at this figure (virtual and viewport sizes). else there might be problems in fringe conditions |
632 iViewPort->SetVirtualSize(TAlfRealSize(iScreenSize.iWidth,iScreenSize.iHeight), 0); |
640 iViewPort->SetVirtualSize(TAlfRealSize(iScreenSize.iWidth,iScreenSize.iHeight), 0); |
633 iViewPort->SetViewportSize(TAlfRealSize(iScreenSize.iWidth,iScreenSize.iHeight), 0); |
641 iViewPort->SetViewportSize(TAlfRealSize(iScreenSize.iWidth,iScreenSize.iHeight), 0); |
634 |
642 if(Activated()) |
635 iEventHandler->OrientationChanged(rect); |
643 { |
|
644 iEventHandler->OrientationChanged(rect); |
|
645 } |
636 } |
646 } |
637 } |
647 } |
638 |
648 |
639 // --------------------------------------------------------------------------- |
649 // --------------------------------------------------------------------------- |
640 // ShowUi |
650 // ShowUi |
960 } |
970 } |
961 } |
971 } |
962 } |
972 } |
963 } |
973 } |
964 |
974 |
965 |
975 // --------------------------------------------------------------------------- |
|
976 // ZoomUiState |
|
977 // --------------------------------------------------------------------------- |
|
978 // |
|
979 EXPORT_C TUiState CGlxZoomControl::ZoomUiState() |
|
980 { |
|
981 TRACER("CGlxFullScreenViewImp::GetUiState"); |
|
982 return iEventHandler->ZoomUiState(); |
|
983 } |
966 // End of File |
984 // End of File |