mpxplugins/viewplugins/views/collectionviewhg/src/mpxcollectionviewhgimp.cpp
branchRCL_3
changeset 56 2cbbefa9af78
parent 53 3de6c4cf6b67
child 66 1f1dad4af8f8
equal deleted inserted replaced
53:3de6c4cf6b67 56:2cbbefa9af78
   306     delete iNewName;
   306     delete iNewName;
   307     delete iBottomIndex;
   307     delete iBottomIndex;
   308     delete iCurrentCba;
   308     delete iCurrentCba;
   309     delete iIncrementalOpenUtil;
   309     delete iIncrementalOpenUtil;
   310     delete iCachedSelectionIndex;
   310     delete iCachedSelectionIndex;
       
   311     delete iCurrentSelectedIndex;
   311     FeatureManager::UnInitializeLib();
   312     FeatureManager::UnInitializeLib();
   312     delete iOperatorMusicStoreName ;
   313     delete iOperatorMusicStoreName ;
   313     if ( iOperatorMusicStoreURI )
   314     if ( iOperatorMusicStoreURI )
   314         {
   315         {
   315         delete iOperatorMusicStoreURI;
   316         delete iOperatorMusicStoreURI;
  6977 void CMPXCollectionViewHgImp::DynInitMenuPaneL(
  6978 void CMPXCollectionViewHgImp::DynInitMenuPaneL(
  6978     TInt aResourceId,
  6979     TInt aResourceId,
  6979     CEikMenuPane* aMenuPane )
  6980     CEikMenuPane* aMenuPane )
  6980     {
  6981     {
  6981     MPX_FUNC( "CMPXCollectionViewHgImp::DynInitMenuPaneL" );
  6982     MPX_FUNC( "CMPXCollectionViewHgImp::DynInitMenuPaneL" );
  6982 
  6983     
       
  6984     if ( iContainer->IsTBoneView() )
       
  6985         {
       
  6986 	    //makesure mediawall is not flicking before handling long tap
       
  6987 	    TInt currentIndex( iContainer->CurrentLbxItemIndex() );
       
  6988 	    MPX_DEBUG2( "CMPXCollectionViewHgImp::DynInitMenuPaneL currentIndex = %d", currentIndex );
       
  6989 	    if (currentIndex == KErrNotFound)
       
  6990 	        {
       
  6991 	        MPX_DEBUG1( "DynInitMenuPaneL NOT handling stylus popup menu when flicking");        
       
  6992 	        DimAllOptions(aResourceId, aMenuPane);
       
  6993 	        return;
       
  6994 	        }
       
  6995         }
       
  6996         
  6983     CMPXCollectionViewListBoxArray* array =
  6997     CMPXCollectionViewListBoxArray* array =
  6984         static_cast<CMPXCollectionViewListBoxArray*>(
  6998         static_cast<CMPXCollectionViewListBoxArray*>(
  6985         iContainer->ListBoxArray() );
  6999         iContainer->ListBoxArray() );
  6986 	const CMPXMedia& containerMedia = array->ContainerMedia();
  7000 	const CMPXMedia& containerMedia = array->ContainerMedia();
  6987 
  7001 
  8530             aMenuPane->SetItemDimmed( EMPXCmdRename, ETrue );
  8544             aMenuPane->SetItemDimmed( EMPXCmdRename, ETrue );
  8531             aMenuPane->SetItemDimmed( EMPXCmdAlbumArt, ETrue );
  8545             aMenuPane->SetItemDimmed( EMPXCmdAlbumArt, ETrue );
  8532             aMenuPane->SetItemDimmed( EMPXCmdFindInMusicShop, ETrue );
  8546             aMenuPane->SetItemDimmed( EMPXCmdFindInMusicShop, ETrue );
  8533             aMenuPane->SetItemDimmed( EMPXCmdSongDetails, ETrue );
  8547             aMenuPane->SetItemDimmed( EMPXCmdSongDetails, ETrue );
  8534             aMenuPane->SetItemDimmed( EMPXCmdPlaylistDetails, ETrue );
  8548             aMenuPane->SetItemDimmed( EMPXCmdPlaylistDetails, ETrue );
       
  8549 			aMenuPane->SetItemDimmed( EMPXCmdUseAsCascade, ETrue ); 
  8535             break;
  8550             break;
  8536             }
  8551             }
  8537         case R_AVKON_MENUPANE_MARKABLE_LIST:
  8552         case R_AVKON_MENUPANE_MARKABLE_LIST:
  8538             {
  8553             {
  8539             aMenuPane->SetItemDimmed(EAknCmdEditListMenu, ETrue);
  8554             aMenuPane->SetItemDimmed(EAknCmdEditListMenu, ETrue);