browserui/browser/BrowserAppSrc/BrowserContentView.cpp
changeset 37 481242ead638
parent 33 97c9f46387be
child 46 5dedbccec665
equal deleted inserted replaced
33:97c9f46387be 37:481242ead638
   280         {
   280         {
   281         MakeZoomSliderVisibleL( EFalse );
   281         MakeZoomSliderVisibleL( EFalse );
   282         }
   282         }
   283     switch ( aCommand )
   283     switch ( aCommand )
   284         {
   284         {
       
   285 #ifdef BRDO_SINGLE_CLICK_ENABLED_FF		
       
   286         case EWmlCmdSetAsHomePage:
       
   287             {
       
   288             HBufC* url = ApiProvider().BrCtlInterface().PageInfoLC(TBrCtlDefs::EPageInfoUrl);
       
   289             if ( url && url->Length() && TBrowserDialogs::ConfirmQueryYesNoL(R_BROWSER_QUERY_SET_AS_HOME_PAGE))
       
   290                 {
       
   291                 ApiProvider().Preferences().SetHomePageUrlL(url->Des());
       
   292                 ApiProvider().Preferences().SetHomePageTypeL( EWmlSettingsHomePageAddress );
       
   293                 }
       
   294             CleanupStack::PopAndDestroy(); // url
       
   295             break;
       
   296             } 
       
   297 #endif			      
   285         case EWmlCmdFavourites:
   298         case EWmlCmdFavourites:
   286             {
   299             {
   287             ApiProvider().SetViewToBeActivatedIfNeededL(
   300             ApiProvider().SetViewToBeActivatedIfNeededL(
   288                 KUidBrowserBookmarksViewId );
   301                 KUidBrowserBookmarksViewId );
   289             break;
   302             break;
   319             break;
   332             break;
   320             }
   333             }
   321         case EWmlCmdGoToAddress:
   334         case EWmlCmdGoToAddress:
   322 		case EWmlCmdGoToAddressAndSearch:
   335 		case EWmlCmdGoToAddressAndSearch:
   323             {
   336             {
       
   337 #ifdef BRDO_SINGLE_CLICK_ENABLED_FF            
       
   338             CEikButtonGroupContainer* cba = Cba()->Current();
       
   339             CEikCba* eikCba = static_cast<CEikCba*>( cba->ButtonGroup() );
       
   340             if( eikCba )
       
   341                 {
       
   342                 eikCba->EnableItemSpecificSoftkey( EFalse );
       
   343                 }
       
   344 #endif  
   324 			iContainer->GotoPane()->SetGotoPaneActiveL();
   345 			iContainer->GotoPane()->SetGotoPaneActiveL();
   325             LaunchGotoAddressEditorL();
   346             LaunchGotoAddressEditorL();
   326             break;
   347             break;
   327             }
   348             }
   328 
   349 
  1388             {
  1409             {
  1389             aMenuPane->SetItemDimmed( EWmlCmdSendAddressViaUnifiedMessage, ETrue );
  1410             aMenuPane->SetItemDimmed( EWmlCmdSendAddressViaUnifiedMessage, ETrue );
  1390             }
  1411             }
  1391 
  1412 
  1392         // set as home page
  1413         // set as home page
  1393         aMenuPane->SetItemDimmed( EWmlCmdSetAsHomePage, ETrue);
  1414         //aMenuPane->SetItemDimmed( EWmlCmdSetAsHomePage, ETrue);
       
  1415 
  1394 
  1416 
  1395         // pop-up blocking
  1417         // pop-up blocking
  1396         if ( ApiProvider().IsEmbeddedModeOn() || ApiProvider().WindowMgr().CurrentWindow()->WMLMode())
  1418         if ( ApiProvider().IsEmbeddedModeOn() || ApiProvider().WindowMgr().CurrentWindow()->WMLMode())
  1397             {
  1419             {
  1398             aMenuPane->SetItemDimmed( EWmlCmdBlockPopups, ETrue );
  1420             aMenuPane->SetItemDimmed( EWmlCmdBlockPopups, ETrue );