camerauis/cameraapp/generic/src/CamStillPreCaptureContainer.cpp
changeset 3 8b2d6d0384b0
parent 0 1ddebce53859
child 7 dbec5787fa68
equal deleted inserted replaced
2:e8773a61782d 3:8b2d6d0384b0
     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".
   710         && iController.UiConfigManagerPtr()
   710         && iController.UiConfigManagerPtr()
   711         && iController.UiConfigManagerPtr()->IsAutoFocusSupported() )
   711         && iController.UiConfigManagerPtr()->IsAutoFocusSupported() )
   712     {
   712     {
   713     if ( aType == EEventKeyDown )
   713     if ( aType == EEventKeyDown )
   714       {
   714       {
       
   715       OstTrace0( CAMERAAPP_PERFORMANCE, DUP1_CCAMSTILLPRECAPTURECONTAINER_HANDLESHUTTERKEYEVENTL, "e_CAM_PRI_AF_LOCK 1" );
   715       PRINT( _L("Camera => CCamStillPreCaptureContainer::HandleHalfKeyEventL DOWN"))
   716       PRINT( _L("Camera => CCamStillPreCaptureContainer::HandleHalfKeyEventL DOWN"))
   716       PERF_MESSAGE_L2( EPerfMessageCaptureKeyHalfPressed );
   717       PERF_MESSAGE_L2( EPerfMessageCaptureKeyHalfPressed );
   717       // If the shutter key has been half pressed
   718       // If the shutter key has been half pressed
   718       iKeyShutter = ETrue; // Shutter key - first stage press -> start focussing...
   719       iKeyShutter = ETrue; // Shutter key - first stage press -> start focussing...
   719 
   720 
  1004                 AknLayoutUtils::EAknCbaLocationLeft;
  1005                 AknLayoutUtils::EAknCbaLocationLeft;
  1005     TAknLayoutRect parent;
  1006     TAknLayoutRect parent;
  1006     parent.LayoutRect( rect, AknLayoutScalable_Apps::cam6_mode_pane( cba ) );
  1007     parent.LayoutRect( rect, AknLayoutScalable_Apps::cam6_mode_pane( cba ) );
  1007     TAknLayoutRect l;
  1008     TAknLayoutRect l;
  1008     l.LayoutRect( parent.Rect(),
  1009     l.LayoutRect( parent.Rect(),
  1009                   AknLayoutScalable_Apps::cam6_mode_pane_g3( cba ) );
  1010                   AknLayoutScalable_Apps::main_camera4_pane_g3( 1 ) );
  1010     iFlashIconRect = l.Rect();
  1011     iFlashIconRect = l.Rect();
  1011     if( iFlashBitmap )
  1012     if( iFlashBitmap )
  1012       {
  1013       {
  1013       AknIconUtils::SetSize( iFlashBitmap, iFlashIconRect.Size() );
  1014       AknIconUtils::SetSize( iFlashBitmap, iFlashIconRect.Size() );
  1014       }
  1015       }