1 /* |
1 /* |
2 * Copyright (c) 2007-2008 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". |
1189 UpdateToolbarIconsL(); |
1189 UpdateToolbarIconsL(); |
1190 if( aToolbar ) |
1190 if( aToolbar ) |
1191 { |
1191 { |
1192 if ( iEmbedded /* && appUi->IsSecondCameraEnabled()*/ ) |
1192 if ( iEmbedded /* && appUi->IsSecondCameraEnabled()*/ ) |
1193 { |
1193 { |
|
1194 // Dim mode switch icon and disable tooltip |
1194 aToolbar->SetItemDimmed(ECamCmdNewPhoto, ETrue, ETrue); |
1195 aToolbar->SetItemDimmed(ECamCmdNewPhoto, ETrue, ETrue); |
|
1196 CAknButton* imageModeButton = static_cast<CAknButton*>( |
|
1197 aToolbar->ControlOrNull( ECamCmdNewPhoto ) ); |
|
1198 if ( imageModeButton ) |
|
1199 { |
|
1200 imageModeButton->SetDimmedHelpTextL( KNullDesC ); |
|
1201 } |
|
1202 |
|
1203 if ( appUi && appUi->IsSecondCameraEnabled() ) |
|
1204 { |
|
1205 aToolbar->SetItemDimmed( ECamCmdPhotos, ETrue, ETrue ); |
|
1206 CAknButton* photosButton = static_cast<CAknButton*>( |
|
1207 aToolbar->ControlOrNull( ECamCmdPhotos ) ); |
|
1208 if ( photosButton ) |
|
1209 { |
|
1210 // do not show tooltip for dimmed item |
|
1211 photosButton->SetDimmedHelpTextL( KNullDesC ); |
|
1212 } |
|
1213 } |
1195 } |
1214 } |
1196 CAknToolbarExtension* extension = aToolbar->ToolbarExtension(); |
1215 CAknToolbarExtension* extension = aToolbar->ToolbarExtension(); |
1197 if( extension ) |
1216 if( extension ) |
1198 { |
1217 { |
1199 if ( iEmbedded ) |
1218 if ( iEmbedded ) |
1200 { |
1219 { |
1201 extension->HideItemL( ECamCmdNewPhoto, ETrue ); |
1220 extension->HideItemL( ECamCmdNewPhoto, ETrue ); |
1202 extension->HideItemL( ECamCmdPhotos, ETrue ); |
1221 extension->HideItemL( ECamCmdPhotos, ETrue ); |
1203 } |
1222 } |
1204 else |
1223 else |
1205 { |
1224 { |
1206 extension->HideItemL( ECamCmdNewPhoto, EFalse ); |
1225 extension->HideItemL( ECamCmdNewPhoto, EFalse ); |