equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2010 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". |
170 switch( operation ) |
170 switch( operation ) |
171 { |
171 { |
172 case ECamCapturing: |
172 case ECamCapturing: |
173 { |
173 { |
174 iRecordState = ECamRecording; |
174 iRecordState = ECamRecording; |
175 iFileTypeIndicator->SetRect(iFileTypeIndicatorVidcapPosition); |
|
176 iResolutionIndicators[iCurrentIndicator]->SetRect(iResolutionIndicatorVidcapPosition); |
175 iResolutionIndicators[iCurrentIndicator]->SetRect(iResolutionIndicatorVidcapPosition); |
177 break; |
176 break; |
178 } |
177 } |
179 case ECamPaused: |
178 case ECamPaused: |
180 { |
179 { |
537 TInt variant = Layout_Meta_Data::IsLandscapeOrientation(); |
536 TInt variant = Layout_Meta_Data::IsLandscapeOrientation(); |
538 vidProgressPane.LayoutRect( rect, |
537 vidProgressPane.LayoutRect( rect, |
539 AknLayoutScalable_Apps::vid4_progress_pane( variant ) ); |
538 AknLayoutScalable_Apps::vid4_progress_pane( variant ) ); |
540 layoutRect.LayoutRect( vidProgressPane.Rect(), |
539 layoutRect.LayoutRect( vidProgressPane.Rect(), |
541 AknLayoutScalable_Apps::vid4_progress_pane_g2() ); |
540 AknLayoutScalable_Apps::vid4_progress_pane_g2() ); |
542 |
|
543 TAknLayoutRect vidIndicatorPane; |
|
544 vidIndicatorPane.LayoutRect( rect, |
|
545 AknLayoutScalable_Apps::vid4_indicators_pane( variant ) ); |
|
546 |
|
547 fileTypeIconLayout.LayoutRect( vidIndicatorPane.Rect(), |
|
548 AknLayoutScalable_Apps::vid4_indicators_pane_g2() ); |
|
549 } |
541 } |
550 else |
542 else |
551 { |
543 { |
552 TInt cba = AknLayoutUtils::CbaLocation() == |
544 TInt cba = AknLayoutUtils::CbaLocation() == |
553 AknLayoutUtils::EAknCbaLocationLeft; |
545 AknLayoutUtils::EAknCbaLocationLeft; |
556 layoutRect.LayoutRect( vidProgressPane.Rect(), |
548 layoutRect.LayoutRect( vidProgressPane.Rect(), |
557 AknLayoutScalable_Apps::vid6_indi_pane_g2( cba ) );// type |
549 AknLayoutScalable_Apps::vid6_indi_pane_g2( cba ) );// type |
558 fileTypeIconLayout = layoutRect; |
550 fileTypeIconLayout = layoutRect; |
559 } |
551 } |
560 |
552 |
561 iFileTypeIndicatorVidcapPosition = layoutRect.Rect(); |
553 iFileTypeIndicator->SetRect( layoutRect.Rect() ); |
562 iFileTypeIndicator->SetRect( fileTypeIconLayout.Rect() ); |
554 iFileTypeIndicatorPosition = layoutRect.Rect(); |
563 iFileTypeIndicatorPosition = fileTypeIconLayout.Rect(); |
|
564 // Initialise the indicator |
555 // Initialise the indicator |
565 SetFileTypeIndicator(); |
556 SetFileTypeIndicator(); |
566 } |
557 } |
567 |
558 |
568 // ---------------------------------------------------- |
559 // ---------------------------------------------------- |