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". |
707 } |
707 } |
708 else if ( iStandbyModeActive ) |
708 else if ( iStandbyModeActive ) |
709 { |
709 { |
710 PRINT( _L("Camera <> CCamStillPreCaptureView::UpdateCbaL: Setting standby softkeys..") ); |
710 PRINT( _L("Camera <> CCamStillPreCaptureView::UpdateCbaL: Setting standby softkeys..") ); |
711 if( KErrNone == appui->StandbyStatus() ) |
711 if( KErrNone == appui->StandbyStatus() ) |
|
712 { |
712 SetSoftKeysL( R_CAM_SOFTKEYS_OPTIONS_EXIT__CONTINUE ); |
713 SetSoftKeysL( R_CAM_SOFTKEYS_OPTIONS_EXIT__CONTINUE ); |
713 else |
714 } |
714 SetSoftKeysL( R_CAM_SOFTKEYS_OPTIONS_EXIT ); |
715 else if( appui->IsRecoverableStatus() ) |
|
716 { |
|
717 SetSoftKeysL( R_CAM_SOFTKEYS_OPTIONS_EXIT ); |
|
718 } |
715 } |
719 } |
716 else if( iInfoListBoxActive ) |
720 else if( iInfoListBoxActive ) |
717 { |
721 { |
718 if( !iForceAvkonCBA ) |
722 if( !iForceAvkonCBA ) |
719 { |
723 { |
1280 // fixed toolbar is used only with touch devices |
1284 // fixed toolbar is used only with touch devices |
1281 if ( iController.IsTouchScreenSupported() ) |
1285 if ( iController.IsTouchScreenSupported() ) |
1282 { |
1286 { |
1283 UpdateToolbarIconsL(); |
1287 UpdateToolbarIconsL(); |
1284 if( aToolbar ) |
1288 if( aToolbar ) |
1285 { |
1289 { |
1286 if ( iEmbedded /* && appUi->IsSecondCameraEnabled()*/ ) |
1290 if ( iEmbedded /* && appUi->IsSecondCameraEnabled()*/ ) |
|
1291 { |
|
1292 // Dim mode switch icon and disable tooltip |
|
1293 aToolbar->SetItemDimmed( ECamCmdNewVideo, ETrue, ETrue ); |
|
1294 |
|
1295 CAknButton* videoModeButton = static_cast<CAknButton*>( |
|
1296 aToolbar->ControlOrNull( ECamCmdNewVideo ) ); |
|
1297 if ( videoModeButton ) |
1287 { |
1298 { |
1288 aToolbar->SetItemDimmed(ECamCmdNewVideo, ETrue, ETrue); |
1299 videoModeButton->SetDimmedHelpTextL( KNullDesC ); |
1289 } |
1300 } |
1290 CAknToolbarExtension* extension = aToolbar->ToolbarExtension(); |
1301 |
1291 |
1302 |
1292 if( extension ) |
1303 |
|
1304 if ( appUi && appUi->IsSecondCameraEnabled() ) |
1293 { |
1305 { |
1294 |
1306 aToolbar->SetItemDimmed( ECamCmdPhotos, ETrue, ETrue ); |
1295 if ( iEmbedded ) |
1307 CAknButton* photosButton = static_cast<CAknButton*>( |
|
1308 aToolbar->ControlOrNull( ECamCmdPhotos ) ); |
|
1309 if ( photosButton ) |
1296 { |
1310 { |
1297 extension->HideItemL( ECamCmdNewVideo, ETrue ); |
1311 // do not show tooltip for dimmed item |
1298 extension->HideItemL( ECamCmdTimeLapseSlider, ETrue ); |
1312 photosButton->SetDimmedHelpTextL( KNullDesC ); |
1299 extension->HideItemL( ECamCmdPhotos, ETrue ); |
|
1300 } |
|
1301 else |
|
1302 { |
|
1303 extension->HideItemL( ECamCmdNewVideo, EFalse ); |
|
1304 extension->HideItemL( ECamCmdToggleFacetracking, EFalse ); |
|
1305 extension->HideItemL( ECamCmdPhotos, EFalse ); |
|
1306 } |
|
1307 if(aResourceId == ECamCmdToolbarExtension) |
|
1308 { |
|
1309 appUi->ZoomPane()->MakeVisible(EFalse,ETrue); |
|
1310 } |
1313 } |
1311 } |
1314 } |
1312 } |
1315 } |
|
1316 CAknToolbarExtension* extension = aToolbar->ToolbarExtension(); |
|
1317 |
|
1318 if( extension ) |
|
1319 { |
|
1320 |
|
1321 if ( iEmbedded ) |
|
1322 { |
|
1323 extension->HideItemL( ECamCmdNewVideo, ETrue ); |
|
1324 extension->HideItemL( ECamCmdTimeLapseSlider, ETrue ); |
|
1325 extension->HideItemL( ECamCmdPhotos, ETrue ); |
|
1326 } |
|
1327 else |
|
1328 { |
|
1329 extension->HideItemL( ECamCmdNewVideo, EFalse ); |
|
1330 extension->HideItemL( ECamCmdToggleFacetracking, EFalse ); |
|
1331 extension->HideItemL( ECamCmdPhotos, EFalse ); |
|
1332 } |
|
1333 if(aResourceId == ECamCmdToolbarExtension) |
|
1334 { |
|
1335 appUi->ZoomPane()->MakeVisible(EFalse,ETrue); |
|
1336 } |
|
1337 } |
|
1338 } |
1313 } |
1339 } |
1314 |
1340 |
1315 PRINT2( _L("Camera <= CCamStillPreCaptureView::DynInitToolbarL(%d, 0x%X)" ), aResourceId, aToolbar ); |
1341 PRINT2( _L("Camera <= CCamStillPreCaptureView::DynInitToolbarL(%d, 0x%X)" ), aResourceId, aToolbar ); |
1316 } |
1342 } |
1317 |
1343 |