369 CFsLayoutManager::LayoutMetricsRect( |
369 CFsLayoutManager::LayoutMetricsRect( |
370 currentSize, |
370 currentSize, |
371 mainIconMetrics, |
371 mainIconMetrics, |
372 rect, |
372 rect, |
373 mainIconVariety ); |
373 mainIconVariety ); |
374 // WORKAROUND FIX FOR LAYOUT PROBLEM -- RETURN THIS TO NORMAL WHEN LAYOUT'S ARE OK |
|
375 if (rect.iTl.iY < 15) |
|
376 { |
|
377 rect.Move(0, 15 - rect.iTl.iY); |
|
378 } |
|
379 // WORKAROUND FIX FOR LAYOUT PROBLEM -- RETURN THIS TO NORMAL WHEN LAYOUT'S ARE OK |
|
380 tpMainIconTl.SetTarget(TAlfRealPoint(rect.iTl)); |
374 tpMainIconTl.SetTarget(TAlfRealPoint(rect.iTl)); |
381 tpMainIconBr.SetTarget(TAlfRealPoint(rect.iBr)); |
375 tpMainIconBr.SetTarget(TAlfRealPoint(rect.iBr)); |
382 |
376 |
383 CFsLayoutManager::LayoutMetricsRect( |
377 CFsLayoutManager::LayoutMetricsRect( |
384 currentSize, |
378 currentSize, |
385 markIconMetrics, |
379 markIconMetrics, |
386 rect, |
380 rect, |
387 markIconVariety ); |
381 markIconVariety ); |
388 // WORKAROUND FIX FOR LAYOUT PROBLEM -- RETURN THIS TO NORMAL WHEN LAYOUT'S ARE OK |
|
389 if (rect.iTl.iY < 15) |
|
390 { |
|
391 rect.Move(0, 15 - rect.iTl.iY); |
|
392 } |
|
393 // WORKAROUND FIX FOR LAYOUT PROBLEM -- RETURN THIS TO NORMAL WHEN LAYOUT'S ARE OK |
|
394 tpMarkIconTl.SetTarget(TAlfRealPoint(rect.iTl)); |
382 tpMarkIconTl.SetTarget(TAlfRealPoint(rect.iTl)); |
395 tpMarkIconBr.SetTarget(TAlfRealPoint(rect.iBr)); |
383 tpMarkIconBr.SetTarget(TAlfRealPoint(rect.iBr)); |
396 |
384 |
397 CFsLayoutManager::LayoutMetricsRect( |
385 CFsLayoutManager::LayoutMetricsRect( |
398 currentSize, |
386 currentSize, |
399 menuIconMetrics, |
387 menuIconMetrics, |
400 rect, |
388 rect, |
401 menuIconVariety ); |
389 menuIconVariety ); |
402 // WORKAROUND FIX FOR LAYOUT PROBLEM -- RETURN THIS TO NORMAL WHEN LAYOUT'S ARE OK |
|
403 if (rect.iTl.iY < 15) |
|
404 { |
|
405 rect.Move(0, 15 - rect.iTl.iY); |
|
406 } |
|
407 // WORKAROUND FIX FOR LAYOUT PROBLEM -- RETURN THIS TO NORMAL WHEN LAYOUT'S ARE OK |
|
408 tpMenuIconTl.SetTarget(TAlfRealPoint(rect.iTl)); |
390 tpMenuIconTl.SetTarget(TAlfRealPoint(rect.iTl)); |
409 tpMenuIconBr.SetTarget(TAlfRealPoint(rect.iBr)); |
391 tpMenuIconBr.SetTarget(TAlfRealPoint(rect.iBr)); |
410 |
392 |
411 TRect textRect( currentSize ); |
393 TRect textRect( currentSize ); |
412 if (textMetrics == CFsLayoutManager::EFsLmListSingleDycRowTextPaneT1) |
394 if (textMetrics == CFsLayoutManager::EFsLmListSingleDycRowTextPaneT1) |
419 } |
401 } |
420 |
402 |
421 CFsLayoutManager::TFsText textInfo; |
403 CFsLayoutManager::TFsText textInfo; |
422 CFsLayoutManager::LayoutMetricsText(textRect, |
404 CFsLayoutManager::LayoutMetricsText(textRect, |
423 textMetrics, textInfo, textPaneVariety); |
405 textMetrics, textInfo, textPaneVariety); |
424 // WORKAROUND FIX FOR LAYOUT PROBLEM -- RETURN THIS TO NORMAL WHEN LAYOUT'S ARE OK |
|
425 if (textInfo.iTextRect.iTl.iY < 15) |
|
426 { |
|
427 textInfo.iTextRect.Move(0, 15 - textInfo.iTextRect.iTl.iY); |
|
428 } |
|
429 // WORKAROUND FIX FOR LAYOUT PROBLEM -- RETURN THIS TO NORMAL WHEN LAYOUT'S ARE OK |
|
430 tpTextTl.SetTarget(TAlfRealPoint(textInfo.iTextRect.iTl)); |
406 tpTextTl.SetTarget(TAlfRealPoint(textInfo.iTextRect.iTl)); |
431 tpTextBr.SetTarget(TAlfRealPoint(textInfo.iTextRect.iBr)); |
407 tpTextBr.SetTarget(TAlfRealPoint(textInfo.iTextRect.iBr)); |
432 |
408 |
433 TInt visualIconIndex = iLayout->FindVisual(iIconVisual); |
409 TInt visualIconIndex = iLayout->FindVisual(iIconVisual); |
434 if ( visualIconIndex != KErrNotFound ) |
410 if ( visualIconIndex != KErrNotFound ) |
555 iLayout->SetClipping(ETrue); |
531 iLayout->SetClipping(ETrue); |
556 |
532 |
557 if (!iIconVisual) |
533 if (!iIconVisual) |
558 { |
534 { |
559 iIconVisual = CAlfImageVisual::AddNewL(iOwnerControl,iLayout); |
535 iIconVisual = CAlfImageVisual::AddNewL(iOwnerControl,iLayout); |
560 iIconVisual->SetScaleMode( CAlfImageVisual::EScaleNormal ); |
536 iIconVisual->SetScaleMode( CAlfImageVisual::EScaleFitInside); |
561 iIconVisual->SetFlag( EAlfVisualFlagIgnorePointer ); |
537 iIconVisual->SetFlag( EAlfVisualFlagIgnorePointer ); |
562 } |
538 } |
563 |
539 |
564 if (!iViewportLayout) |
540 if (!iViewportLayout) |
565 { |
541 { |
577 } |
553 } |
578 |
554 |
579 if (!iIconMarked) |
555 if (!iIconMarked) |
580 { |
556 { |
581 iIconMarked = CAlfImageVisual::AddNewL( iOwnerControl, iLayout ); |
557 iIconMarked = CAlfImageVisual::AddNewL( iOwnerControl, iLayout ); |
582 iIconMarked->SetScaleMode( CAlfImageVisual::EScaleNormal); |
558 iIconMarked->SetScaleMode( CAlfImageVisual::EScaleFitInside); |
583 iIconMarked->SetFlag( EAlfVisualFlagIgnorePointer ); |
559 iIconMarked->SetFlag( EAlfVisualFlagIgnorePointer ); |
584 } |
560 } |
585 |
561 |
586 if (!iIconMenu) |
562 if (!iIconMenu) |
587 { |
563 { |
588 iIconMenu = |
564 iIconMenu = |
589 CAlfImageVisual::AddNewL(iOwnerControl, iLayout); |
565 CAlfImageVisual::AddNewL(iOwnerControl, iLayout); |
590 iIconMenu->SetScaleMode( CAlfImageVisual::EScaleNormal); |
566 iIconMenu->SetScaleMode( CAlfImageVisual::EScaleFitInside); |
591 iIconMenu->SetFlag( EAlfVisualFlagIgnorePointer ); |
567 iIconMenu->SetFlag( EAlfVisualFlagIgnorePointer ); |
592 } |
568 } |
593 |
569 |
594 iTextMarquee = new (ELeave) TFsMarqueeClet(iOwnerControl, *iViewportLayout, TFsMarqueeClet::EScrollFromRight, TFsMarqueeClet::EScrollForth); |
570 iTextMarquee = new (ELeave) TFsMarqueeClet(iOwnerControl, *iViewportLayout, TFsMarqueeClet::EScrollFromRight, TFsMarqueeClet::EScrollForth); |
595 } |
571 } |