browserui/browser/BrowserAppSrc/BrowserContentView.cpp
changeset 37 481242ead638
parent 33 97c9f46387be
child 46 5dedbccec665
--- a/browserui/browser/BrowserAppSrc/BrowserContentView.cpp	Mon Jan 18 20:22:00 2010 +0200
+++ b/browserui/browser/BrowserAppSrc/BrowserContentView.cpp	Tue Feb 02 00:12:41 2010 +0200
@@ -282,6 +282,19 @@
         }
     switch ( aCommand )
         {
+#ifdef BRDO_SINGLE_CLICK_ENABLED_FF		
+        case EWmlCmdSetAsHomePage:
+            {
+            HBufC* url = ApiProvider().BrCtlInterface().PageInfoLC(TBrCtlDefs::EPageInfoUrl);
+            if ( url && url->Length() && TBrowserDialogs::ConfirmQueryYesNoL(R_BROWSER_QUERY_SET_AS_HOME_PAGE))
+                {
+                ApiProvider().Preferences().SetHomePageUrlL(url->Des());
+                ApiProvider().Preferences().SetHomePageTypeL( EWmlSettingsHomePageAddress );
+                }
+            CleanupStack::PopAndDestroy(); // url
+            break;
+            } 
+#endif			      
         case EWmlCmdFavourites:
             {
             ApiProvider().SetViewToBeActivatedIfNeededL(
@@ -321,6 +334,14 @@
         case EWmlCmdGoToAddress:
 		case EWmlCmdGoToAddressAndSearch:
             {
+#ifdef BRDO_SINGLE_CLICK_ENABLED_FF            
+            CEikButtonGroupContainer* cba = Cba()->Current();
+            CEikCba* eikCba = static_cast<CEikCba*>( cba->ButtonGroup() );
+            if( eikCba )
+                {
+                eikCba->EnableItemSpecificSoftkey( EFalse );
+                }
+#endif  
 			iContainer->GotoPane()->SetGotoPaneActiveL();
             LaunchGotoAddressEditorL();
             break;
@@ -1390,7 +1411,8 @@
             }
 
         // set as home page
-        aMenuPane->SetItemDimmed( EWmlCmdSetAsHomePage, ETrue);
+        //aMenuPane->SetItemDimmed( EWmlCmdSetAsHomePage, ETrue);
+
 
         // pop-up blocking
         if ( ApiProvider().IsEmbeddedModeOn() || ApiProvider().WindowMgr().CurrentWindow()->WMLMode())