equal
deleted
inserted
replaced
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". |
392 // which we have to ignore) |
392 // which we have to ignore) |
393 else if ( aType == EEventKey && |
393 else if ( aType == EEventKey && |
394 aKeyEvent.iCode == EKeyOK && |
394 aKeyEvent.iCode == EKeyOK && |
395 aKeyEvent.iRepeats == 0 ) |
395 aKeyEvent.iRepeats == 0 ) |
396 { |
396 { |
397 if( !iController.IsDemandKeyRelease() ) |
397 iView.HandleCommandL( EAknSoftkeySelect ); |
398 { |
|
399 // Forward selection key event if button has been released |
|
400 // after last video capture |
|
401 iView.HandleCommandL( EAknSoftkeySelect ); |
|
402 } |
|
403 return EKeyWasConsumed; // indicate key press was processed |
398 return EKeyWasConsumed; // indicate key press was processed |
404 } |
399 } |
405 // stop video or sequence if get applications key press (short or long) |
400 // stop video or sequence if get applications key press (short or long) |
406 // in touch also send key stops |
401 // in touch also send key stops |
407 else if( aKeyEvent.iCode == EKeyApplication || |
402 else if( aKeyEvent.iCode == EKeyApplication || |
625 |
620 |
626 TInt cba = AknLayoutUtils::CbaLocation() == |
621 TInt cba = AknLayoutUtils::CbaLocation() == |
627 AknLayoutUtils::EAknCbaLocationLeft? |
622 AknLayoutUtils::EAknCbaLocationLeft? |
628 AknLayoutUtils::EAknCbaLocationLeft : 0; |
623 AknLayoutUtils::EAknCbaLocationLeft : 0; |
629 |
624 |
630 if ( AknLayoutUtils::PenEnabled() ) |
625 if ( CamUtility::IsNhdDevice() ) |
631 { |
626 { |
632 vidProgressPane.LayoutRect( Rect(), |
627 vidProgressPane.LayoutRect( Rect(), |
633 AknLayoutScalable_Apps::vid4_progress_pane( |
628 AknLayoutScalable_Apps::vid4_progress_pane( |
634 Layout_Meta_Data::IsLandscapeOrientation() ) ); |
629 Layout_Meta_Data::IsLandscapeOrientation() ) ); |
635 |
630 |
685 TInt cba = AknLayoutUtils::CbaLocation() == |
680 TInt cba = AknLayoutUtils::CbaLocation() == |
686 AknLayoutUtils::EAknCbaLocationLeft? |
681 AknLayoutUtils::EAknCbaLocationLeft? |
687 AknLayoutUtils::EAknCbaLocationLeft : 0; |
682 AknLayoutUtils::EAknCbaLocationLeft : 0; |
688 |
683 |
689 |
684 |
690 if ( AknLayoutUtils::PenEnabled() ) |
685 if ( CamUtility::IsNhdDevice() ) |
691 { |
686 { |
692 vidProgressPane.LayoutRect( |
687 vidProgressPane.LayoutRect( |
693 Rect(), |
688 Rect(), |
694 AknLayoutScalable_Apps::vid4_progress_pane( |
689 AknLayoutScalable_Apps::vid4_progress_pane( |
695 Layout_Meta_Data::IsLandscapeOrientation() ) ); |
690 Layout_Meta_Data::IsLandscapeOrientation() ) ); |