121 (iTypefacePrimaryStyleId); |
121 (iTypefacePrimaryStyleId); |
122 CAlfTextStyle* styleSecondary = CGlxInfoBubble::Env().TextStyleManager().TextStyle |
122 CAlfTextStyle* styleSecondary = CGlxInfoBubble::Env().TextStyleManager().TextStyle |
123 (iTypefaceSecondaryStyleId); |
123 (iTypefaceSecondaryStyleId); |
124 styleSecondary->SetTextSizeInPixels (14, 0); |
124 styleSecondary->SetTextSizeInPixels (14, 0); |
125 stylePrimary->SetTextSizeInPixels (21, 0); |
125 stylePrimary->SetTextSizeInPixels (21, 0); |
126 |
|
127 iBubbleTextTitle->SetTextStyle (iTypefacePrimaryStyleId); |
126 iBubbleTextTitle->SetTextStyle (iTypefacePrimaryStyleId); |
128 |
127 |
129 TAlfTimedValue opacity; |
128 TAlfTimedValue opacity; |
130 opacity.SetTarget(1, 500); |
129 opacity.SetTarget(1, 500); |
131 iBubbleTextTitle->SetOpacity(opacity); |
130 iBubbleTextTitle->SetOpacity(opacity); |
132 |
|
133 // iBubbleTextTitle->iOpacity.Set (1); |
|
134 iBubbleTextTitle->SetColor (KRgbBlack); |
131 iBubbleTextTitle->SetColor (KRgbBlack); |
135 |
|
136 iBubbleTextSubTitle->SetTextStyle (iTypefaceSecondaryStyleId); |
132 iBubbleTextSubTitle->SetTextStyle (iTypefaceSecondaryStyleId); |
137 |
|
138 opacity.SetTarget(1, 500); |
133 opacity.SetTarget(1, 500); |
139 iBubbleTextSubTitle->SetOpacity(opacity); |
134 iBubbleTextSubTitle->SetOpacity(opacity); |
140 |
|
141 // iBubbleTextSubTitle->iOpacity.Set (1); |
|
142 iBubbleTextSubTitle->SetColor (KRgbBlack); |
135 iBubbleTextSubTitle->SetColor (KRgbBlack); |
143 |
136 |
144 } |
137 } |
145 |
138 |
146 // --------------------------------------------------------------------------- |
139 // --------------------------------------------------------------------------- |
388 ResetBubbleComponent(); |
381 ResetBubbleComponent(); |
389 |
382 |
390 //assign the params |
383 //assign the params |
391 //setting the texts value and image brush boundary |
384 //setting the texts value and image brush boundary |
392 iBubbleTextTitle->SetTextL(aTitle); |
385 iBubbleTextTitle->SetTextL(aTitle); |
393 //to-check |
|
394 //iBubbleTextTitle->SetChanged(); |
|
395 iBubbleTextSubTitle->SetTextL(aSubTitle); |
386 iBubbleTextSubTitle->SetTextL(aSubTitle); |
396 _LIT(KNullDesc,""); |
387 _LIT(KNullDesc,""); |
397 iTempTitleText->SetTextL(KNullDesc()); |
388 iTempTitleText->SetTextL(KNullDesc()); |
398 iTempTitleText->SetTextL(aTitle); |
389 iTempTitleText->SetTextL(aTitle); |
399 |
390 |
400 //loading the texture for thumbanil image |
391 //loading the texture for thumbanil image |
401 UpdateTextureL(aTexture); |
392 UpdateTextureL(aTexture); |
402 //to-check |
|
403 //iInfoDeck->Changed(); |
|
404 TRect rect; |
393 TRect rect; |
405 AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane, rect); |
394 AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane, rect); |
406 iScreenWidth = rect.Width(); |
395 iScreenWidth = rect.Width(); |
407 iScreenHeight = rect.Height(); |
396 iScreenHeight = rect.Height(); |
408 |
397 |
444 iPositionOffset=0; |
433 iPositionOffset=0; |
445 LoadTailAssemblyL(EMbmGlxiconsQgn_graf_mediatag_bubble_corner_br,EMbmGlxiconsQgn_graf_mediatag_bubble_side_t); |
434 LoadTailAssemblyL(EMbmGlxiconsQgn_graf_mediatag_bubble_corner_br,EMbmGlxiconsQgn_graf_mediatag_bubble_side_t); |
446 DrawBubbleFourthQuadL(aPos); |
435 DrawBubbleFourthQuadL(aPos); |
447 } |
436 } |
448 //to-check |
437 //to-check |
449 // iInfoBubble->SetChanged(); |
|
450 |
438 |
451 //all texture loaded |
439 //all texture loaded |
452 //now find the width of bubblle and create layout based on these visuals. |
440 //now find the width of bubblle and create layout based on these visuals. |
453 //optimize logic for tail allignment towards centre of the focussed item |
441 //optimize logic for tail allignment towards centre of the focussed item |
454 TInt bubblewidth = iInfoDeck->Size().iX.Target(); |
442 TInt bubblewidth = iInfoDeck->Size().iX.Target(); |
486 } |
474 } |
487 |
475 |
488 TAlfTimedValue opacity; |
476 TAlfTimedValue opacity; |
489 opacity.SetTarget(0.9, 500); |
477 opacity.SetTarget(0.9, 500); |
490 iInfoBubble->SetOpacity(opacity); |
478 iInfoBubble->SetOpacity(opacity); |
491 |
|
492 //iInfoBubble->iOpacity.Set(0.9, 1000); |
|
493 iInfoDeck->SetPos(iBubbleRectDrawPoint); |
479 iInfoDeck->SetPos(iBubbleRectDrawPoint); |
494 CreateItemContainerLayoutL(); |
480 CreateItemContainerLayoutL(); |
495 |
481 |
496 //Setting properies for Layouts |
482 //Setting properies for Layouts |
497 iInfoDeck->MoveToFront(); |
483 iInfoDeck->MoveToFront(); |
498 |
|
499 // TAlfTimedValue opacity; |
|
500 opacity.SetTarget(0, 500); |
484 opacity.SetTarget(0, 500); |
501 iInfoDeck->SetOpacity(opacity); |
485 iInfoDeck->SetOpacity(opacity); |
502 |
|
503 // iInfoDeck->iOpacity.Set(0); |
|
504 |
|
505 opacity.SetTarget(1.0, 800); |
486 opacity.SetTarget(1.0, 800); |
506 iInfoDeck->SetOpacity(opacity); |
487 iInfoDeck->SetOpacity(opacity); |
507 //iInfoDeck->iOpacity.Set(1.0,800); |
|
508 |
|
509 opacity.SetTarget(1.0, 500); |
488 opacity.SetTarget(1.0, 500); |
510 iInfoBubble->SetOpacity(opacity); |
489 iInfoBubble->SetOpacity(opacity); |
511 //iInfoBubble->iOpacity.Set(1.0); |
|
512 |
|
513 iInfoBubbleContainer->MoveToFront(); |
490 iInfoBubbleContainer->MoveToFront(); |
514 //to-check |
|
515 // iInfoDeck->SetChanged(); |
|
516 |
|
517 /// @todo would need to reposition the tail as well somehow!!! |
|
518 |
|
519 } |
491 } |
520 |
492 |
521 void CGlxInfoBubble::DrawBubbleFirstQuadL(TPoint aReferencepos) |
493 void CGlxInfoBubble::DrawBubbleFirstQuadL(TPoint aReferencepos) |
522 { |
494 { |
523 |
495 |