browserui/browser/FavouritesSrc/BrowserBookmarksView.cpp
branchRCL_3
changeset 37 25214794fad6
parent 36 c9249d037530
child 39 08ffbd51e3fd
equal deleted inserted replaced
36:c9249d037530 37:25214794fad6
  1116     iAdaptiveBookmarksCurrentSetting =
  1116     iAdaptiveBookmarksCurrentSetting =
  1117                             ApiProvider().Preferences().AdaptiveBookmarks();
  1117                             ApiProvider().Preferences().AdaptiveBookmarks();
  1118     iEnteredURL = NULL;
  1118     iEnteredURL = NULL;
  1119 BROWSER_LOG( ( _L("delete iEnteredUrl 3") ) );
  1119 BROWSER_LOG( ( _L("delete iEnteredUrl 3") ) );
  1120     iCursorPos = -1;
  1120     iCursorPos = -1;
  1121 
  1121  
  1122        
       
  1123     //Since the webcore will be reading the bookmark information in background
  1122     //Since the webcore will be reading the bookmark information in background
  1124     //thread, its important to refresh when the thread notifies the fresh data.
  1123     //thread, its important to refresh when the thread notifies the fresh data.
  1125     //Call to GetItemsLC above, which inturn calls ManualBMSortL will set iRefresh to false
  1124     //Call to GetItemsLC above, which inturn calls ManualBMSortL will set iRefresh to false
  1126     //Make it true so that latest FavIcon db info is shown     
  1125     //Make it true so that latest FavIcon db info is shown     
  1127     iRefresh = ETrue;
  1126     iRefresh = ETrue;
  1128 
  1127 
       
  1128     Toolbar()->HideItem( EWmlCmdAddBookmark, ETrue , EFalse);
       
  1129     
       
  1130     //disable both the goto items and activate one of them depending on availability of search feature during bookmarks activation 
       
  1131     Toolbar()->HideItem( EWmlCmdGoToAddress, ETrue , EFalse);
       
  1132     Toolbar()->HideItem( EWmlCmdGoToAddressAndSearch, ETrue , EFalse ); 
       
  1133 
       
  1134 #ifndef BRDO_SINGLE_CLICK_ENABLED_FF
       
  1135     Toolbar()->HideItem( EWmlCmdDelete, ETrue , EFalse);
       
  1136 #else
       
  1137     Toolbar()->HideItem( EWmlCmdPreferences, ETrue , EFalse);
       
  1138 #endif
       
  1139     
       
  1140     Cba()->MakeVisible( EFalse);
       
  1141     StatusPane()->MakeVisible( EFalse );
       
  1142     
  1129     if (iPenEnabled)
  1143     if (iPenEnabled)
  1130         {
  1144         {
  1131         Toolbar()->SetToolbarObserver(this);
  1145         Toolbar()->SetToolbarObserver(this);
  1132         }
  1146         }      
  1133     if ( ApiProvider().Preferences().SearchFeature() )
       
  1134         {
       
  1135         Toolbar()->HideItem( EWmlCmdGoToAddress, ETrue, ETrue );
       
  1136         }
       
  1137     else
       
  1138         {
       
  1139         Toolbar()->HideItem( EWmlCmdGoToAddressAndSearch, ETrue, EFalse );
       
  1140         }
       
  1141     }
  1147     }
  1142 
  1148 
  1143 // ----------------------------------------------------------------------------
  1149 // ----------------------------------------------------------------------------
  1144 // CBrowserBookmarksView::HandleListBoxEventL
  1150 // CBrowserBookmarksView::HandleListBoxEventL
  1145 // ----------------------------------------------------------------------------
  1151 // ----------------------------------------------------------------------------
  2115 PERFLOG_LOCAL_INIT
  2121 PERFLOG_LOCAL_INIT
  2116 PERFLOG_STOPWATCH_START
  2122 PERFLOG_STOPWATCH_START
  2117     LOG_ENTERFN("CBrowserBookmarksView::DoActivateL");
  2123     LOG_ENTERFN("CBrowserBookmarksView::DoActivateL");
  2118     LOG_WRITE_FORMAT(" aCustomMessageId: %d", aCustomMessageId);
  2124     LOG_WRITE_FORMAT(" aCustomMessageId: %d", aCustomMessageId);
  2119 
  2125 
       
  2126     Toolbar()->HideItem( EWmlCmdAddBookmark, EFalse , ETrue);
       
  2127 
       
  2128 #ifndef BRDO_SINGLE_CLICK_ENABLED_FF
       
  2129     Toolbar()->HideItem( EWmlCmdDelete, EFalse , ETrue);
       
  2130 #else
       
  2131     Toolbar()->HideItem( EWmlCmdPreferences, EFalse , ETrue);
       
  2132 #endif    
       
  2133     
       
  2134     if ( ApiProvider().Preferences().SearchFeature() )
       
  2135         {
       
  2136         Toolbar()->HideItem( EWmlCmdGoToAddressAndSearch, EFalse, ETrue);
       
  2137         }
       
  2138     else
       
  2139         {
       
  2140         Toolbar()->HideItem( EWmlCmdGoToAddress, EFalse, ETrue);
       
  2141         }
       
  2142     
       
  2143     Cba()->MakeVisible( ETrue);
       
  2144     
  2120     StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL );
  2145     StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL );
  2121     StatusPane()->MakeVisible( ETrue );
  2146     StatusPane()->MakeVisible( ETrue );
  2122     ApiProvider().Display().ClearMessageInfo();
  2147     ApiProvider().Display().ClearMessageInfo();
  2123 
  2148 
  2124     iAdaptiveBookmarksFolderWasActive = EFalse;
  2149     iAdaptiveBookmarksFolderWasActive = EFalse;