browserui/browser/FavouritesSrc/BrowserBookmarksView.cpp
branchRCL_3
changeset 55 08ffbd51e3fd
parent 52 25214794fad6
child 60 b149f0820e5a
equal deleted inserted replaced
52:25214794fad6 55:08ffbd51e3fd
  1283                 aMenuPane->SetItemDimmed( EWmlCmdMove, ETrue );
  1283                 aMenuPane->SetItemDimmed( EWmlCmdMove, ETrue );
  1284                 aMenuPane->SetItemDimmed( EWmlCmdMoveToFolder, ETrue );
  1284                 aMenuPane->SetItemDimmed( EWmlCmdMoveToFolder, ETrue );
  1285                 }
  1285                 }
  1286             if  ( ( item ) &&
  1286             if  ( ( item ) &&
  1287                               ( ( item->Uid() == KFavouritesAdaptiveItemsFolderUid ) ||
  1287                               ( ( item->Uid() == KFavouritesAdaptiveItemsFolderUid ) ||
  1288                                 ( item->ContextId() != NULL ) )
  1288                                 ( item->ContextId() != NULL ) || 
  1289                             )
  1289                                 (item->IsReadOnly()) )  //If the bookmarks are the default provided by operator
       
  1290                 )
  1290                 {
  1291                 {
  1291                 // We can't delete adaptive bookmarks folder,
  1292                 // We can't delete adaptive bookmarks folder,
  1292                 //   or seamless folders
  1293                 //   or seamless folders
  1293                 aMenuPane->SetItemDimmed( EWmlCmdDelete, ETrue );
  1294                 aMenuPane->SetItemDimmed( EWmlCmdDelete, ETrue );
  1294                 aMenuPane->SetItemDimmed( EWmlCmdMoveToFolder, ETrue );
  1295                 aMenuPane->SetItemDimmed( EWmlCmdMoveToFolder, ETrue );
  1295                 }
  1296                 }
  1296             if( item && item->IsFolder())
  1297             if( item && item->IsFolder())
  1297                 {
  1298                 {
  1298                 aMenuPane->SetItemDimmed( EWmlCmdMoveToFolder, ETrue );
  1299                 aMenuPane->SetItemDimmed( EWmlCmdMoveToFolder, ETrue );
  1299                 }
  1300                 }
       
  1301 
  1300 #endif                    
  1302 #endif                    
  1301             // downloads
  1303             // downloads
  1302             aMenuPane->SetItemDimmed( EWmlCmdDownloads, !ApiProvider().BrCtlInterface().BrowserSettingL( TBrCtlDefs::ESettingsNumOfDownloads ) );
  1304             aMenuPane->SetItemDimmed( EWmlCmdDownloads, !ApiProvider().BrCtlInterface().BrowserSettingL( TBrCtlDefs::ESettingsNumOfDownloads ) );
  1303 
  1305 
  1304             // edit
  1306             // edit
  1454             // edit bookmark
  1456             // edit bookmark
  1455             if (!item || aState.MarkedCount() > 0)
  1457             if (!item || aState.MarkedCount() > 0)
  1456                 {
  1458                 {
  1457                 aMenuPane->SetItemDimmed( EWmlCmdEditBookmark, ETrue );
  1459                 aMenuPane->SetItemDimmed( EWmlCmdEditBookmark, ETrue );
  1458                 }
  1460                 }
  1459             else if ( (item && (item->IsFolder() ||
  1461             else if (( (item && (item->IsFolder() ||
  1460                  item->Uid() == KFavouritesAdaptiveItemsFolderUid ||
  1462                  item->Uid() == KFavouritesAdaptiveItemsFolderUid ||
  1461                  item->ContextId() || aState.CurrentIsSpecial() || iInAdaptiveBookmarksFolder)))
  1463                  item->ContextId() || aState.CurrentIsSpecial() || iInAdaptiveBookmarksFolder)))
       
  1464 #ifdef BRDO_SINGLE_CLICK_ENABLED_FF                 
       
  1465                  ||(item->IsReadOnly())//If the bookmarks are readonly(set by the operator)
       
  1466 #endif              
       
  1467                  )
  1462                 {
  1468                 {
  1463                 aMenuPane->SetItemDimmed( EWmlCmdEditBookmark, ETrue );
  1469                 aMenuPane->SetItemDimmed( EWmlCmdEditBookmark, ETrue );
  1464                 }
  1470                 }
  1465 
  1471 
  1466             // rename
  1472             // rename
  2237             UpdateCbaL();
  2243             UpdateCbaL();
  2238             // Cancel editing, but leave entered text in place.
  2244             // Cancel editing, but leave entered text in place.
  2239             container->GotoPane()->CancelEditingL();
  2245             container->GotoPane()->CancelEditingL();
  2240 
  2246 
  2241             ApiProvider().FetchL( iEnteredURL->Des(), CBrowserLoadObserver::ELoadUrlTypeOther );
  2247             ApiProvider().FetchL( iEnteredURL->Des(), CBrowserLoadObserver::ELoadUrlTypeOther );
       
  2248             if ( !ApiProvider().Fetching() )
       
  2249               {
       
  2250                   container->SetGotoInactiveL();
       
  2251               }
  2242             }
  2252             }
  2243         }
  2253         }
  2244     }
  2254     }
  2245 // ----------------------------------------------------------------------------
  2255 // ----------------------------------------------------------------------------
  2246 // CBrowserBookmarksView::ExitAdaptiveBookmarks()
  2256 // CBrowserBookmarksView::ExitAdaptiveBookmarks()