photosgallery/viewframework/views/metadatadialog/src/glxmetadatacontainer.cpp
changeset 1 9ba538e329bd
parent 0 4e91876724a2
child 3 9a9c174934f5
equal deleted inserted replaced
0:4e91876724a2 1:9ba538e329bd
   541 void CGlxMetadataContainer::ViewDynInitMenuPaneL(TInt aMenuId, CEikMenuPane* aMenuPane)
   541 void CGlxMetadataContainer::ViewDynInitMenuPaneL(TInt aMenuId, CEikMenuPane* aMenuPane)
   542     {
   542     {
   543     if( aMenuId == R_METADATA_MENU )
   543     if( aMenuId == R_METADATA_MENU )
   544         {
   544         {
   545         //Set dim the options based on the utem selected
   545         //Set dim the options based on the utem selected
   546         //Edit option will be available only for ENameItem,EDescriptionItem,ETagsItem,EAlbumItem
       
   547         //Viewdetails option will be availble only for the license item
   546         //Viewdetails option will be availble only for the license item
   548         //Delete option will be available only for the location item	
   547         //Delete option will be available only for the location item	
   549         //aMenuPane->SetItemDimmed(KGlxEditBoundMenuCommandId,IsItemModifiable());
       
   550         aMenuPane->SetItemDimmed(KGlxViewBoundMenuCommandId,IsLicenseItem());
   548         aMenuPane->SetItemDimmed(KGlxViewBoundMenuCommandId,IsLicenseItem());
   551         aMenuPane->SetItemDimmed(KGlxDeleteBoundMenuCommandId,IsLocationItem());
   549         //location info will be enabled if the item has a location info
       
   550 		aMenuPane->SetItemDimmed(KGlxDeleteBoundMenuCommandId,IsLocationItem());
   552         aMenuPane->SetItemDimmed(EGlxCmdAiwShowMap,IsLocationItem());
   551         aMenuPane->SetItemDimmed(EGlxCmdAiwShowMap,IsLocationItem());
   553         }
   552         }
   554         
   553         
   555     
   554     
   556     }
   555     }