browserui/browser/FavouritesSrc/BrowserBookmarksView.cpp
changeset 37 481242ead638
parent 33 97c9f46387be
child 45 dbd79466b1ed
--- a/browserui/browser/FavouritesSrc/BrowserBookmarksView.cpp	Mon Jan 18 20:22:00 2010 +0200
+++ b/browserui/browser/FavouritesSrc/BrowserBookmarksView.cpp	Tue Feb 02 00:12:41 2010 +0200
@@ -494,6 +494,14 @@
             {
             iSoftKeyUpdate = EFalse;
             DimToolbarButtons(ETrue);
+#ifdef BRDO_SINGLE_CLICK_ENABLED_FF            
+            CEikButtonGroupContainer* cba = Cba()->Current();
+            CEikCba* eikCba = static_cast<CEikCba*>( cba->ButtonGroup() );
+            if( eikCba )
+                {
+                eikCba->EnableItemSpecificSoftkey( EFalse );
+                }
+#endif            
             TheContainer()->SetGotoActiveL();
             break;
             }
@@ -1158,8 +1166,15 @@
         {
         switch ( aEventType )
             {
+#ifdef BRDO_SINGLE_CLICK_ENABLED_FF
+            case MEikListBoxObserver::EEventEmptyListClicked:
+                return;
+#endif
             case MEikListBoxObserver::EEventEnterKeyPressed:
             case MEikListBoxObserver::EEventItemDoubleClicked:
+#ifdef BRDO_SINGLE_CLICK_ENABLED_FF
+            case MEikListBoxObserver::EEventItemSingleClicked:
+#endif                
                 {
                 if ( iManualItemMovingGoingOn )
                     {
@@ -1235,16 +1250,30 @@
                 {
                 aMenuPane->SetItemDimmed( EWmlCmdManageBookmarks, ETrue );
                 }
+#ifdef BRDO_SINGLE_CLICK_ENABLED_FF
+            // add bookmark
+            if ( iInAdaptiveBookmarksFolder )
+                {
+                aMenuPane->SetItemDimmed( EWmlCmdAddBookmark, ETrue );
+                }
+
+            // create folder
+            if ( iCurrentFolder != KFavouritesRootUid || iInAdaptiveBookmarksFolder )
+                {
+                aMenuPane->SetItemDimmed( EWmlCmdNewFolder, ETrue );
+                }
+#endif    
 
             if ( iInAdaptiveBookmarksFolder && aState.IsEmpty() )
                 {
                 aMenuPane->SetItemDimmed( EWmlCmdBmActions, ETrue );
                 }
-
+#ifndef BRDO_SINGLE_CLICK_ENABLED_FF
             if (!item)
                 {
                 aMenuPane->SetItemDimmed( EWmlCmdMarkUnmark, ETrue );
                 }
+#endif				
 /*
             if (BRDO_BROWSER_UPDATE_UI_FF)
                {
@@ -1327,13 +1356,13 @@
 
                 aMenuPane->SetItemDimmed( EWmlCmdSetAsHomePage, dimSaveAsHomePage );
                 }
-
+#ifndef BRDO_SINGLE_CLICK_ENABLED_FF
             // add bookmark
             if ( iInAdaptiveBookmarksFolder )
                 {
                 aMenuPane->SetItemDimmed( EWmlCmdAddBookmark, ETrue );
                 }
-
+#endif            
             // set preferred/unpreferred
             if ( !iContainer->Listbox()->CurrentItem() )
                 {
@@ -1421,13 +1450,13 @@
                 {
                 aMenuPane->SetItemDimmed( EWmlCmdMoveToFolder, ETrue );
                 }
-
+#ifndef BRDO_SINGLE_CLICK_ENABLED_FF
             // create folder
             if ( iCurrentFolder != KFavouritesRootUid || iInAdaptiveBookmarksFolder )
                 {
                 aMenuPane->SetItemDimmed( EWmlCmdNewFolder, ETrue );
                 }
-
+#endif            
 
             break;
             }