photosgallery/viewframework/commandhandlers/commandhandlerbase/src/glxmedialistcommandhandler.cpp
branchRCL_3
changeset 14 ce1c7ad1f18b
parent 0 4e91876724a2
child 18 bcb43dc84c44
equal deleted inserted replaced
13:71da52165949 14:ce1c7ad1f18b
   165 	        }
   165 	        }
   166 	    else
   166 	    else
   167 	        {
   167 	        {
   168     		TInt num_items = aMenuPane->NumberOfItemsInPane();
   168     		TInt num_items = aMenuPane->NumberOfItemsInPane();
   169     		TBool atLeastOneEnabledSupportedItem = EFalse;
   169     		TBool atLeastOneEnabledSupportedItem = EFalse;
   170     		
       
   171     		//CGlxUiUtility* uiUtility  = CGlxUiUtility::UtilityL();
       
   172             //CleanupClosePushL(*uiUtility);
       
   173             
   170             
   174     		// Iterate through menu pane
   171     		// Iterate through menu pane
   175     		for ( TInt i = 0; i < num_items; i++)
   172     		for ( TInt i = 0; i < num_items; i++)
   176     			{
   173     			{
   177     			CEikMenuPaneItem::SData& item = aMenuPane->ItemDataByIndexL(i);
   174     			CEikMenuPaneItem::SData& item = aMenuPane->ItemDataByIndexL(i);
   190     				aMenuPane->SetItemDimmed( item.iCommandId, isDisabled);
   187     				aMenuPane->SetItemDimmed( item.iCommandId, isDisabled);
   191     				
   188     				
   192     				atLeastOneEnabledSupportedItem = atLeastOneEnabledSupportedItem || (!isDisabled);
   189     				atLeastOneEnabledSupportedItem = atLeastOneEnabledSupportedItem || (!isDisabled);
   193         	        }
   190         	        }
   194     			}
   191     			}
   195     			
       
   196     	   // CleanupStack::PopAndDestroy(uiUtility);
       
   197     			
   192     			
   198     	    if ( atLeastOneEnabledSupportedItem )
   193     	    if ( atLeastOneEnabledSupportedItem )
   199     	        {
   194     	        {
   200     			DoDynInitMenuPaneL(aResourceId, aMenuPane);
   195     			DoDynInitMenuPaneL(aResourceId, aMenuPane);
   201     			}
   196     			}
   383 // -----------------------------------------------------------------------------
   378 // -----------------------------------------------------------------------------
   384 //	
   379 //	
   385 EXPORT_C const MGlxMediaList& CGlxMediaListCommandHandler::MediaList() const
   380 EXPORT_C const MGlxMediaList& CGlxMediaListCommandHandler::MediaList() const
   386 	{
   381 	{
   387 	return const_cast<CGlxMediaListCommandHandler*>(this)->MediaList();
   382 	return const_cast<CGlxMediaListCommandHandler*>(this)->MediaList();
   388 	//return iMediaListProvider->MediaList();
       
   389 	}
   383 	}
   390 
   384 
   391 // -----------------------------------------------------------------------------
   385 // -----------------------------------------------------------------------------
   392 // Default implementation of elaborate filtering returns EFalse for "not disabled"
   386 // Default implementation of elaborate filtering returns EFalse for "not disabled"
   393 // -----------------------------------------------------------------------------
   387 // -----------------------------------------------------------------------------