phonesettings/pslncallimageplugin/src/PslnCallImagePlugin.cpp
changeset 1 838b0a10d15b
parent 0 5f000ab63145
child 3 8871b09be73b
equal deleted inserted replaced
0:5f000ab63145 1:838b0a10d15b
   334     	}
   334     	}
   335    else if ( aResourceId == R_PSLN_CI_BASIC_MENUPANE )
   335    else if ( aResourceId == R_PSLN_CI_BASIC_MENUPANE )
   336     	{
   336     	{
   337     	TInt active = static_cast<CPslnCallImagePluginContainer*>
   337     	TInt active = static_cast<CPslnCallImagePluginContainer*>
   338                     (iContainer)->CurrentSelectionIndexL();
   338                     (iContainer)->CurrentSelectionIndexL();
   339         // Set menu item as Apply, if:
   339         // Set menu item is used when inactive item is focused and it 
   340         // a) 'None' is selected
   340 		// activates the focused item.
   341         // b) highlight is on inactive selection
   341     	if ( active != iContainer->iListBox->CurrentItemIndex() )
   342     	if ( active != iContainer->iListBox->CurrentItemIndex() && 
   342     		{
   343     	    ( active == EPlsnCallImageNone || 
       
   344     	      active ==  EPlsnCallImageThemeImage ) )
       
   345         	{
       
   346         	aMenuPane->SetItemDimmed( EPslnCmdAppActivate, EFalse );
   343         	aMenuPane->SetItemDimmed( EPslnCmdAppActivate, EFalse );
   347         	aMenuPane->SetItemDimmed( EPslnCmdAppDownload, ETrue );
   344         	aMenuPane->SetItemDimmed( EPslnCmdAppDownload, ETrue );
   348         	}
   345         	}
   349         else if ( ( active == iContainer->iListBox->CurrentItemIndex() ) && 
   346         else if ( ( active == iContainer->iListBox->CurrentItemIndex() ) && 
   350             ( active == EPlsnCallImageNone ||
   347             ( active == EPlsnCallImageNone ||