photosgallery/viewframework/views/metadatadialog/src/glxmetadatacontainer.cpp
branchRCL_3
changeset 12 ce1c7ad1f18b
parent 11 71da52165949
child 13 bcb43dc84c44
equal deleted inserted replaced
11:71da52165949 12:ce1c7ad1f18b
   957             {
   957             {
   958             iRenameCompleted = EFalse;
   958             iRenameCompleted = EFalse;
   959             iAvkonAppUi->ProcessCommandL(EGlxCmdRenameCompleted);
   959             iAvkonAppUi->ProcessCommandL(EGlxCmdRenameCompleted);
   960             }
   960             }
   961         }
   961         }
   962     //updation of tags and albums list based on the medialist callback.
   962     
   963     if(aList == iTagMediaList ||  aList == iAlbumMediaList)
   963     TMPXAttribute titleAttrib(KMPXMediaGeneralTitle);
   964         {
   964     TIdentityRelation< TMPXAttribute > match ( &TMPXAttribute::Match );
   965         for (TInt i = aAttributes.Count() - 1; i >= 0 ; i--)
   965 
       
   966     if (KErrNotFound != aAttributes.Find(titleAttrib, match))
       
   967         {
       
   968         if (aList == iTagMediaList)
   966             {
   969             {
   967             TMPXAttribute titleAtrribute (KMPXMediaGeneralTitle);
   970             UpdateTagsL();
   968             for (TInt i = aAttributes.Count() - 1; i >= 0 ; i--)
   971             }
   969                 { 
   972         else if (aList == iAlbumMediaList)
   970                 if( titleAtrribute == aAttributes[i] )
   973             {
   971                     {
   974             UpdateAlbumsL();
   972                     if(aList == iTagMediaList)
       
   973 						{     
       
   974 						UpdateTagsL();
       
   975 						}
       
   976 					else if(aList == iAlbumMediaList)
       
   977 						{
       
   978 						UpdateAlbumsL();
       
   979 						}          
       
   980                     }           
       
   981                 }
       
   982           
       
   983             }
   975             }
   984         }
   976         }
   985     
   977     
   986     }
   978     }
   987 
   979 
  1095     iMarquee = ETrue;
  1087     iMarquee = ETrue;
  1096     ListBox()->UseLogicalToVisualConversion(ETrue);
  1088     ListBox()->UseLogicalToVisualConversion(ETrue);
  1097     ListBox()->ItemDrawer()->ColumnData()->SetMarqueeParams (KMarqueeLoopCount,
  1089     ListBox()->ItemDrawer()->ColumnData()->SetMarqueeParams (KMarqueeLoopCount,
  1098             KMarqueeScrollAmount, KMarqueeScrollDelay, KMarqueeScrollInterval);
  1090             KMarqueeScrollAmount, KMarqueeScrollDelay, KMarqueeScrollInterval);
  1099     ListBox()->ItemDrawer()->ColumnData()->EnableMarqueeL(ETrue);
  1091     ListBox()->ItemDrawer()->ColumnData()->EnableMarqueeL(ETrue);
       
  1092     
       
  1093     //Fetch the current item index
       
  1094     TInt index = ListBox()->CurrentItemIndex();
       
  1095 
       
  1096     //Reset the disable marquee flag, so that marquee effect can continue (this is normally reset by 
       
  1097     //base class of glxmetaDatadialog::HandlePointerEventL()
       
  1098     ListBox()->ItemDrawer()->ClearFlags(CListItemDrawer::EDisableMarquee);
       
  1099     
       
  1100     //This is the function which actually starts marquee effect. It is anyway being called from base
       
  1101     //implementation of OfferKeyEventL(), but for pointer event, we have to call
       
  1102     //this function
       
  1103     ListBox()->DrawItem(index);
  1100     }    
  1104     }    
  1101 // ----------------------------------------------------------------------------
  1105 // ----------------------------------------------------------------------------
  1102 // HandleCommandCompleteL
  1106 // HandleCommandCompleteL
  1103 // ----------------------------------------------------------------------------
  1107 // ----------------------------------------------------------------------------
  1104 // 
  1108 //