equal
deleted
inserted
replaced
230 } |
230 } |
231 break; |
231 break; |
232 } |
232 } |
233 case R_PHONEBOOK2_RCL_MENU: |
233 case R_PHONEBOOK2_RCL_MENU: |
234 { |
234 { |
235 if ( Pbk2NlxMenuFiltering::RclCmdSelectOptSelected( aControl ) || |
235 if ( aControl.ContactsMarked() || |
236 Pbk2NlxMenuFiltering::AddToFavoritesCmdSelected( aControl ) || |
236 !(iNamesListExViewRef && iNamesListExViewRef->IsRclOnL())) |
237 aControl.ContactsMarked() || |
|
238 !(iNamesListExViewRef && iNamesListExViewRef->IsRclOnL())) |
|
239 { |
237 { |
240 DimItem( aMenuPane, EPbk2CmdRcl ); |
238 DimItem( aMenuPane, EPbk2CmdRcl ); |
241 } |
239 } |
242 break; |
240 break; |
243 } |
241 } |
349 break; |
347 break; |
350 } |
348 } |
351 #endif |
349 #endif |
352 case R_AVKON_MENUPANE_MARKABLE_LIST_IMPLEMENTATION: |
350 case R_AVKON_MENUPANE_MARKABLE_LIST_IMPLEMENTATION: |
353 { |
351 { |
354 MPbk2ContactUiControl2* tempControl = |
352 |
355 reinterpret_cast<MPbk2ContactUiControl2*> |
|
356 (aControl.ContactUiControlExtension |
|
357 (KMPbk2ContactUiControlExtension2Uid )); |
|
358 |
|
359 if ( tempControl->FocusedCommandItem() && |
|
360 aControl.ContactsMarked() ) |
|
361 { |
|
362 DimItem( aMenuPane, EAknCmdMark ); |
|
363 DimItem( aMenuPane, EAknMarkAll ); |
|
364 } |
|
365 if ( Pbk2NlxMenuFiltering::AddToFavoritesCmdSelected( aControl ) ) |
353 if ( Pbk2NlxMenuFiltering::AddToFavoritesCmdSelected( aControl ) ) |
366 { |
354 { |
367 DimItem( aMenuPane, EAknCmdMark ); |
355 DimItem( aMenuPane, EAknCmdMark ); |
368 } |
356 } |
369 if ( Pbk2NlxMenuFiltering::MyCardCmdSelected( aControl ) ) |
357 if ( Pbk2NlxMenuFiltering::MyCardCmdSelected( aControl ) ) |
409 break; |
397 break; |
410 } |
398 } |
411 case R_PHONEBOOK2_NAMESLIST_DELETE_MENU: |
399 case R_PHONEBOOK2_NAMESLIST_DELETE_MENU: |
412 { |
400 { |
413 // show delete mycard if mycard command is focused / tapped and |
401 // show delete mycard if mycard command is focused / tapped and |
414 // mycard is available |
402 // mycard is available and there aren't any marked contacts. |
415 if( !Pbk2NlxMenuFiltering::MyCardCmdSelected( aControl ) || |
403 if( !Pbk2NlxMenuFiltering::MyCardCmdSelected( aControl ) || |
416 !MyCardLink() ) |
404 !MyCardLink() || |
|
405 aControl.ContactsMarked() ) |
417 { |
406 { |
418 DimItem( aMenuPane, EPbk2CmdDeleteMyCard ); |
407 DimItem( aMenuPane, EPbk2CmdDeleteMyCard ); |
419 } |
408 } |
420 break; |
409 break; |
421 } |
410 } |