166 |
166 |
167 // Refresh the progress bar |
167 // Refresh the progress bar |
168 UpdateProgressBarGraphics(); |
168 UpdateProgressBarGraphics(); |
169 |
169 |
170 iMode = EUninitialized; |
170 iMode = EUninitialized; |
171 iLabels[ETextDownloadState]->MakeVisible( ETrue ); |
171 // suppress download text per UI spec |
|
172 iLabels[ETextDownloadState]->MakeVisible( EFalse ); |
172 iLabels[ETextArtist]->MakeVisible( EFalse ); |
173 iLabels[ETextArtist]->MakeVisible( EFalse ); |
173 iLabels[ETextTrack]->MakeVisible( EFalse ); |
174 iLabels[ETextTrack]->MakeVisible( EFalse ); |
174 iLabels[ETextElapsedTime]->MakeVisible( EFalse ); |
175 iLabels[ETextElapsedTime]->MakeVisible( EFalse ); |
175 iLabels[ETextRemainingTime]->MakeVisible( EFalse ); |
176 iLabels[ETextRemainingTime]->MakeVisible( EFalse ); |
176 iDisplayAlbumArt = EFalse; |
177 iDisplayAlbumArt = EFalse; |
329 { |
330 { |
330 ASSERT( aLabel >= 0 && aLabel < iLabels.Count() ); |
331 ASSERT( aLabel >= 0 && aLabel < iLabels.Count() ); |
331 CMPXPlaybackViewInfoLabel* label = iLabels[aLabel]; |
332 CMPXPlaybackViewInfoLabel* label = iLabels[aLabel]; |
332 if(aLabel == ETextDownloadState) |
333 if(aLabel == ETextDownloadState) |
333 { |
334 { |
|
335 /* |
334 iSliderPaneRect = iLayout->IndicatorLayout( Rect(), ESliderPane ); |
336 iSliderPaneRect = iLayout->IndicatorLayout( Rect(), ESliderPane ); |
335 iLayout->LayoutLabel( |
337 iLayout->LayoutLabel( |
336 iLabels[ETextDownloadState], iSliderPaneRect, ETextDownloadState ); |
338 iLabels[ETextDownloadState], iSliderPaneRect, ETextDownloadState ); |
337 |
339 |
338 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
340 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
379 switch ( iMode ) |
384 switch ( iMode ) |
380 { |
385 { |
381 case EUninitialized: |
386 case EUninitialized: |
382 { |
387 { |
383 // Set label visibility |
388 // Set label visibility |
384 iLabels[ETextDownloadState]->MakeVisible( ETrue ); |
389 //iLabels[ETextDownloadState]->MakeVisible( EFalse ); |
385 iLabels[ETextArtist]->MakeVisible( ETrue ); |
390 iLabels[ETextArtist]->MakeVisible( ETrue ); |
386 iLabels[ETextTrack]->MakeVisible( ETrue ); |
391 iLabels[ETextTrack]->MakeVisible( ETrue ); |
387 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
392 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
388 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
393 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
389 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
394 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
390 break; |
395 break; |
391 } |
396 } |
392 case ENoTracksMode: |
397 case ENoTracksMode: |
393 { |
398 { |
394 // Set label visibility |
399 // Set label visibility |
395 iLabels[ETextDownloadState]->MakeVisible( ETrue ); |
400 //iLabels[ETextDownloadState]->MakeVisible( ETrue ); |
396 iLabels[ETextArtist]->MakeVisible( EFalse ); |
401 iLabels[ETextArtist]->MakeVisible( EFalse ); |
397 iLabels[ETextTrack]->MakeVisible( EFalse ); |
402 iLabels[ETextTrack]->MakeVisible( EFalse ); |
398 //iLabels[ETextEmpty]->MakeVisible( ETrue ); |
403 //iLabels[ETextEmpty]->MakeVisible( ETrue ); |
399 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
404 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
400 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
405 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
402 break; |
407 break; |
403 } |
408 } |
404 case EStopMode: |
409 case EStopMode: |
405 { |
410 { |
406 // Fixed the layout for Download label and time label are overlaped in position |
411 // Fixed the layout for Download label and time label are overlaped in position |
407 iLabels[ETextDownloadState]->MakeVisible( EFalse ); |
412 //iLabels[ETextDownloadState]->MakeVisible( EFalse ); |
408 iLabels[ETextTrack]->MakeVisible( ETrue ); |
413 iLabels[ETextTrack]->MakeVisible( ETrue ); |
409 iLabels[ETextArtist]->MakeVisible( ETrue ); |
414 iLabels[ETextArtist]->MakeVisible( ETrue ); |
410 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
415 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
411 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
416 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
412 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
417 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
413 break; |
418 break; |
414 } |
419 } |
415 case EInitialising: |
420 case EInitialising: |
416 { |
421 { |
417 iLabels[ETextDownloadState]->MakeVisible( ETrue ); |
422 //iLabels[ETextDownloadState]->MakeVisible( ETrue ); |
418 iLabels[ETextTrack]->MakeVisible( ETrue ); |
423 iLabels[ETextTrack]->MakeVisible( ETrue ); |
419 iLabels[ETextArtist]->MakeVisible( ETrue ); |
424 iLabels[ETextArtist]->MakeVisible( ETrue ); |
420 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
425 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
421 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
426 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
422 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
427 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
423 break; |
428 break; |
424 } |
429 } |
425 case EMediaKeySkipping: |
430 case EMediaKeySkipping: |
426 { |
431 { |
427 iLabels[ETextDownloadState]->MakeVisible( ETrue ); |
432 //iLabels[ETextDownloadState]->MakeVisible( ETrue ); |
428 iLabels[ETextTrack]->MakeVisible( ETrue ); |
433 iLabels[ETextTrack]->MakeVisible( ETrue ); |
429 iLabels[ETextArtist]->MakeVisible( ETrue ); |
434 iLabels[ETextArtist]->MakeVisible( ETrue ); |
430 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
435 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
431 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
436 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
432 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
437 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
433 break; |
438 break; |
434 } |
439 } |
435 case EInvalidMode: |
440 case EInvalidMode: |
436 { |
441 { |
437 iLabels[ETextDownloadState]->MakeVisible( EFalse ); |
442 //iLabels[ETextDownloadState]->MakeVisible( EFalse ); |
438 iLabels[ETextTrack]->MakeVisible( EFalse ); |
443 iLabels[ETextTrack]->MakeVisible( EFalse ); |
439 iLabels[ETextArtist]->MakeVisible( EFalse ); |
444 iLabels[ETextArtist]->MakeVisible( EFalse ); |
440 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
445 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
441 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
446 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
442 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
447 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
444 break; |
449 break; |
445 } |
450 } |
446 case EBufferingMode: |
451 case EBufferingMode: |
447 { |
452 { |
448 // Set label visibility |
453 // Set label visibility |
449 iLabels[ETextDownloadState]->MakeVisible( EFalse ); |
454 //iLabels[ETextDownloadState]->MakeVisible( EFalse ); |
450 iLabels[ETextArtist]->MakeVisible( ETrue ); |
455 iLabels[ETextArtist]->MakeVisible( ETrue ); |
451 iLabels[ETextTrack]->MakeVisible( ETrue ); |
456 iLabels[ETextTrack]->MakeVisible( ETrue ); |
452 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
457 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
453 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
458 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
454 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
459 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
455 break; |
460 break; |
456 } |
461 } |
457 default: |
462 default: |
458 { |
463 { |
459 // Set label visibility |
464 // Set label visibility |
460 iLabels[ETextDownloadState]->MakeVisible( EFalse ); |
465 //iLabels[ETextDownloadState]->MakeVisible( EFalse ); |
461 iLabels[ETextArtist]->MakeVisible( ETrue ); |
466 iLabels[ETextArtist]->MakeVisible( ETrue ); |
462 iLabels[ETextTrack]->MakeVisible( ETrue ); |
467 iLabels[ETextTrack]->MakeVisible( ETrue ); |
463 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
468 //iLabels[ETextEmpty]->MakeVisible( EFalse ); |
464 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
469 iLabels[ETextElapsedTime]->MakeVisible( ETrue && iPrerollCompleted); |
465 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
470 iLabels[ETextRemainingTime]->MakeVisible( ETrue && iPrerollCompleted); |
1471 iLabels[ETextTrack], myRect, ETextTrack ); |
1476 iLabels[ETextTrack], myRect, ETextTrack ); |
1472 iLayout->LayoutLabel( |
1477 iLayout->LayoutLabel( |
1473 iLabels[ETextPlaylistCount], myRect, ETextPlaylistCount ); |
1478 iLabels[ETextPlaylistCount], myRect, ETextPlaylistCount ); |
1474 //iLayout->LayoutLabel( |
1479 //iLayout->LayoutLabel( |
1475 // iLabels[ETextEmpty], myRect, ETextEmpty ); |
1480 // iLabels[ETextEmpty], myRect, ETextEmpty ); |
1476 iLayout->LayoutLabel( |
1481 // suppress download text per UI spec |
1477 iLabels[ETextDownloadState], iSliderPaneRect, ETextDownloadState ); |
1482 //iLayout->LayoutLabel( |
|
1483 // iLabels[ETextDownloadState], iSliderPaneRect, ETextDownloadState ); |
1478 |
1484 |
1479 if ( iFMTXMode ) |
1485 if ( iFMTXMode ) |
1480 { |
1486 { |
1481 iLayout->LayoutLabel( |
1487 iLayout->LayoutLabel( |
1482 iLabels[ETextFMFrequency], myRect, ETextFMFrequency ); |
1488 iLabels[ETextFMFrequency], myRect, ETextFMFrequency ); |