equal
deleted
inserted
replaced
57 #include <avkon.mbg> |
57 #include <avkon.mbg> |
58 #include <AknsDrawUtils.h> |
58 #include <AknsDrawUtils.h> |
59 #include <AknUtils.h> |
59 #include <AknUtils.h> |
60 #include <layoutmetadata.cdl.h> |
60 #include <layoutmetadata.cdl.h> |
61 #include <AknLayout2ScalableDef.h> |
61 #include <AknLayout2ScalableDef.h> |
62 #include <AknLayoutScalable_Apps.cdl.h> |
62 #include <aknlayoutscalable_apps.cdl.h> |
63 |
63 |
64 |
64 |
65 |
65 |
66 using namespace AknTouchGestureFw; |
66 using namespace AknTouchGestureFw; |
67 using namespace HgVgConstants; |
67 using namespace HgVgConstants; |
507 iButtonsHit = HandleButtons(aEvent); |
507 iButtonsHit = HandleButtons(aEvent); |
508 |
508 |
509 if (iScrollBar && iScrollBar->HandlePointerEventL(aEvent)) |
509 if (iScrollBar && iScrollBar->HandlePointerEventL(aEvent)) |
510 { |
510 { |
511 iScrollBarHit = ETrue; |
511 iScrollBarHit = ETrue; |
512 } |
512 } |
513 |
|
514 if (aEvent.iType == TPointerEvent::EButton1Up) |
513 if (aEvent.iType == TPointerEvent::EButton1Up) |
515 { |
514 { |
516 iScrollBarHit = EFalse; |
515 iScrollBarHit = EFalse; |
517 } |
516 // need to draw once at this point if animation is not going |
518 |
517 // on because the state has changed (when finger is lifted popup must disappear) |
519 |
518 if (!iAnimationTimer->IsActive()) |
|
519 { |
|
520 DrawOpenVG(); |
|
521 } |
|
522 } |
|
523 |
520 } |
524 } |
521 |
525 |
522 |
526 |
523 } |
527 } |
524 |
528 |
2021 } |
2025 } |
2022 else if (iMediaWallStyle == EHgVgMediaWallStyleCoverflowFullScreen || |
2026 else if (iMediaWallStyle == EHgVgMediaWallStyleCoverflowFullScreen || |
2023 iMediaWallStyle == EHgVgMediaWallStyleGrid) |
2027 iMediaWallStyle == EHgVgMediaWallStyleGrid) |
2024 { |
2028 { |
2025 // when scrollbar is being dragged we draw letter popup |
2029 // when scrollbar is being dragged we draw letter popup |
2026 if (iLetterPopup && (iScrollBarHit || (iKeyScrollingState != ENoKeyScrolling && dist >= 2.0f))) |
2030 if (iLetterPopup && (iScrollBarHit || (iKeyScrollingState != ENoKeyScrolling && dist > KDrawLetterPopupDistance))) |
2027 { |
2031 { |
2028 iLetterPopup->Draw(iRect, KMaxLetterPopupOpacity); |
2032 iLetterPopup->Draw(iRect, KMaxLetterPopupOpacity); |
2029 } |
2033 } |
2030 |
2034 else |
2031 // when close to target item, we draw titles |
2035 { |
2032 if (dist <= KTitleDrawDistance) |
2036 DrawTitles(1.0f); |
2033 { |
|
2034 DrawTitles(1.0f - dist / KTitleDrawDistance); |
|
2035 } |
2037 } |
2036 } |
2038 } |
2037 } |
2039 } |
2038 } |
2040 } |
2039 |
2041 |
2323 TSize(iRect.Height(), iRect.Height()))); |
2325 TSize(iRect.Height(), iRect.Height()))); |
2324 |
2326 |
2325 // in full screen, enable blurring on flip/zoom |
2327 // in full screen, enable blurring on flip/zoom |
2326 iRenderer->EnableBlurOnFlip(ETrue, KDefaultBlurDeviation, |
2328 iRenderer->EnableBlurOnFlip(ETrue, KDefaultBlurDeviation, |
2327 KDefaultBlurDeviation); |
2329 KDefaultBlurDeviation); |
2328 |
2330 |
2329 InitLabelsL(1); |
2331 InitLabelsL(Layout_Meta_Data::IsLandscapeOrientation() ? 1 : 0); |
2330 |
2332 |
2331 InitPopupL(0); |
2333 InitPopupL(0); |
2332 |
2334 |
2333 InitButtonsL(); |
2335 InitButtonsL(); |
2334 |
2336 |