browserui/browser/BrowserAppSrc/BrowserContentViewToolbar.cpp
branchRCL_3
changeset 52 25214794fad6
parent 50 c9249d037530
equal deleted inserted replaced
50:c9249d037530 52:25214794fad6
   113     TBool zoomSlider = iBrowserContentView->ZoomSliderVisible();
   113     TBool zoomSlider = iBrowserContentView->ZoomSliderVisible();
   114     TBool contentDisplayed = iBrowserContentView->ApiProvider().ContentDisplayed();
   114     TBool contentDisplayed = iBrowserContentView->ApiProvider().ContentDisplayed();
   115     TBool wmlMode = iBrowserContentView->ApiProvider().WindowMgr().CurrentWindow()->WMLMode();
   115     TBool wmlMode = iBrowserContentView->ApiProvider().WindowMgr().CurrentWindow()->WMLMode();
   116     TBool DimHomePage = iBrowserContentView->ApiProvider().IsLaunchHomePageDimmedL();
   116     TBool DimHomePage = iBrowserContentView->ApiProvider().IsLaunchHomePageDimmedL();
   117     TBool searchMode = iBrowserContentView->ApiProvider().Preferences().SearchFeature();
   117     TBool searchMode = iBrowserContentView->ApiProvider().Preferences().SearchFeature();
   118 
   118     TBool embeddedMode = iBrowserContentView->ApiProvider().IsEmbeddedModeOn();
   119     
   119     TBool embeddedOperatorMenu = CBrowserAppUi::Static()->IsEmbeddedInOperatorMenu();
       
   120     iBrowserContentView->Toolbar()->SetItemDimmed(EWmlCmdFavourites, (embeddedMode || embeddedOperatorMenu), ETrue);
   120     // Extended Toolbar
   121     // Extended Toolbar
   121     iBrowserContentView->Toolbar()->SetItemDimmed( EWmlCmdToolbarExtensionContentView, 
   122     iBrowserContentView->Toolbar()->SetItemDimmed( EWmlCmdToolbarExtensionContentView, 
   122             (pageOverview), ETrue );
   123             (pageOverview), ETrue );
   123     iBrowserContentView->Toolbar()->HideItem( EWmlCmdToolbarExtensionContentView, 
   124     iBrowserContentView->Toolbar()->HideItem( EWmlCmdToolbarExtensionContentView, 
   124             (historyView || findKeywordPane), ETrue );
   125             (historyView || findKeywordPane), ETrue );
   179     TBool noMultiWin = ( !iBrowserContentView->ApiProvider().Preferences().UiLocalFeatureSupported( KBrowserMultipleWindows ) || 
   180     TBool noMultiWin = ( !iBrowserContentView->ApiProvider().Preferences().UiLocalFeatureSupported( KBrowserMultipleWindows ) || 
   180     	    iBrowserContentView->ApiProvider().IsEmbeddedModeOn() || 
   181     	    iBrowserContentView->ApiProvider().IsEmbeddedModeOn() || 
   181     	    iBrowserContentView->ApiProvider().WindowMgr().WindowCount() < 2);
   182     	    iBrowserContentView->ApiProvider().WindowMgr().WindowCount() < 2);
   182               
   183               
   183     iBrowserContentView->Toolbar()->ToolbarExtension()->SetItemDimmed( EWmlCmdFindKeyword, wmlMode );
   184     iBrowserContentView->Toolbar()->ToolbarExtension()->SetItemDimmed( EWmlCmdFindKeyword, wmlMode );
       
   185 
   184 //Disable page overview for TB9.2 
   186 //Disable page overview for TB9.2 
   185 //TODO: Removed this code when Downloads icon is available for extended toolbar    
       
   186 #ifdef BRDO_MULTITOUCH_ENABLED_FF
   187 #ifdef BRDO_MULTITOUCH_ENABLED_FF
   187     iBrowserContentView->Toolbar()->ToolbarExtension()->SetItemDimmed( EWmlCmdShowMiniature, true );
   188     TBool dimDownloads = iBrowserContentView->ApiProvider().BrCtlInterface().BrowserSettingL(TBrCtlDefs::ESettingsNumOfDownloads) ? EFalse : ETrue;
       
   189     iBrowserContentView->Toolbar()->ToolbarExtension()->SetItemDimmed( EWmlCmdDownloads, dimDownloads );
   188 #else
   190 #else
   189     iBrowserContentView->Toolbar()->ToolbarExtension()->SetItemDimmed( EWmlCmdShowMiniature, wmlMode );
   191     iBrowserContentView->Toolbar()->ToolbarExtension()->SetItemDimmed( EWmlCmdShowMiniature, wmlMode );
   190 #endif    
   192 #endif    
   191     iBrowserContentView->Toolbar()->ToolbarExtension()->SetItemDimmed( EWmlCmdShowSubscribeList, 
   193     iBrowserContentView->Toolbar()->ToolbarExtension()->SetItemDimmed( EWmlCmdShowSubscribeList, 
   192         (!subscribeToItems || wmlMode) );
   194         (!subscribeToItems || wmlMode) );