1 /* |
1 /* |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Control for displaying elapse/remaining record time |
14 * Description: Control for displaying elapse/remaining record time |
15 * in Navi Pane |
15 * in Navi Pane |
|
16 * |
|
17 * Copyright (c) 2007-2008 Nokia. All rights reserved. |
|
18 * This material, including documentation and any related computer |
|
19 * programs, is protected by copyright controlled by Nokia. All |
|
20 * rights are reserved. Copying, including reproducing, storing, |
|
21 * adapting or translating, any or all of this material requires the |
|
22 * prior written consent of Nokia. This material also contains |
|
23 * confidential information which may not be disclosed to others |
|
24 * without the prior written consent of Nokia. |
|
25 |
|
26 * |
16 * |
27 * |
17 */ |
28 */ |
18 |
29 |
19 |
30 |
20 // INCLUDE FILES |
31 // INCLUDE FILES |
241 iProgressBarRect.Rect().Size(), |
252 iProgressBarRect.Rect().Size(), |
242 EAspectRatioNotPreserved); |
253 EAspectRatioNotPreserved); |
243 |
254 |
244 // Create component bitmaps |
255 // Create component bitmaps |
245 TSize size; |
256 TSize size; |
246 if ( AknLayoutUtils::PenEnabled() ) |
257 if ( CamUtility::IsNhdDevice() ) |
247 { |
258 { |
248 size = iProgressIconRect.Rect().Size(); |
259 size = iProgressIconRect.Rect().Size(); |
249 } |
260 } |
250 else |
261 else |
251 { |
262 { |
361 break; |
372 break; |
362 } |
373 } |
363 |
374 |
364 DrawElapsedTimeText( aGc ); |
375 DrawElapsedTimeText( aGc ); |
365 DrawRemainingTimeText( aGc, skin ); |
376 DrawRemainingTimeText( aGc, skin ); |
366 if ( AknLayoutUtils::PenEnabled() ) |
377 if ( CamUtility::IsNhdDevice() ) |
367 { |
378 { |
368 aGc.BitBltMasked( iProgressIconRect.Rect().iTl, |
379 aGc.BitBltMasked( iProgressIconRect.Rect().iTl, |
369 icon, icon->SizeInPixels(), mask, ETrue ); |
380 icon, icon->SizeInPixels(), mask, ETrue ); |
370 } |
381 } |
371 else |
382 else |
372 { |
383 { |
373 aGc.BitBltMasked( iVidStorageIconRect.Rect().iTl, |
384 aGc.BitBltMasked( iVidStorageIconRect.Rect().iTl, |
374 icon, icon->SizeInPixels(), mask, ETrue ); |
385 icon, icon->SizeInPixels(), mask, ETrue ); |
375 } |
386 } |
376 if( CamUtility::IsNhdDevice() ) |
387 |
377 { |
388 DrawProgressBar( aGc ); |
378 // VGA layout doesn't use progress bar |
|
379 DrawProgressBar( aGc ); |
|
380 } |
|
381 } |
389 } |
382 |
390 |
383 // --------------------------------------------------------- |
391 // --------------------------------------------------------- |
384 // CCamNaviProgressBarModel::HandleControllerEventL |
392 // CCamNaviProgressBarModel::HandleControllerEventL |
385 // Handle an event from CCamAppController. |
393 // Handle an event from CCamAppController. |
541 TTime time( iRecordTimeElapsed.Int64() ); |
549 TTime time( iRecordTimeElapsed.Int64() ); |
542 time.FormatL( iElapsedTimeText, *iTimeFormat ); |
550 time.FormatL( iElapsedTimeText, *iTimeFormat ); |
543 |
551 |
544 time = iRecordTimeRemaining.Int64(); |
552 time = iRecordTimeRemaining.Int64(); |
545 time.FormatL( iRemainingTimeText, *iTimeFormat ); |
553 time.FormatL( iRemainingTimeText, *iTimeFormat ); |
546 if( !CamUtility::IsNhdDevice() ) |
|
547 { |
|
548 // VGA layout is using backslash instead of progress bar |
|
549 iElapsedTimeText.Append(_L(" /")); |
|
550 } |
|
551 |
554 |
552 if ( iElapsedTimeTextItem ) |
555 if ( iElapsedTimeTextItem ) |
553 { |
556 { |
554 iElapsedTimeTextItem->SetTextL( iElapsedTimeText ); |
557 iElapsedTimeTextItem->SetTextL( iElapsedTimeText ); |
555 } |
558 } |