equal
deleted
inserted
replaced
26 #include <MPbk2ViewExplorer.h> |
26 #include <MPbk2ViewExplorer.h> |
27 #include <CPbk2AppViewBase.h> |
27 #include <CPbk2AppViewBase.h> |
28 #include <CPbk2AppUiBase.h> |
28 #include <CPbk2AppUiBase.h> |
29 #include <CPbk2UIExtensionManager.h> |
29 #include <CPbk2UIExtensionManager.h> |
30 #include <MPbk2Command.h> |
30 #include <MPbk2Command.h> |
31 #include <pbk2commands.rsg> |
31 #include <Pbk2Commands.rsg> |
32 #include <pbk2uicontrols.rsg> |
32 #include <Pbk2UIControls.rsg> |
33 #include <CPbk2ViewState.h> |
33 #include <CPbk2ViewState.h> |
34 #include <CPbk2PhonebookInfoDlg.h> |
34 #include <CPbk2PhonebookInfoDlg.h> |
35 #include <TPbk2StoreContactAnalyzer.h> |
35 #include <TPbk2StoreContactAnalyzer.h> |
36 #include <MPbk2ContactNameFormatter.h> |
36 #include <MPbk2ContactNameFormatter.h> |
37 #include <CPbk2StoreProperty.h> |
37 #include <CPbk2StoreProperty.h> |
509 { |
509 { |
510 if ( aControl.NumberOfContacts() == 0 ) |
510 if ( aControl.NumberOfContacts() == 0 ) |
511 { |
511 { |
512 aMenuPane->SetItemDimmed( EPbk2CmdDeleteMe, ETrue ); |
512 aMenuPane->SetItemDimmed( EPbk2CmdDeleteMe, ETrue ); |
513 } |
513 } |
514 break; |
514 if ( aControl.ContactsMarked() ) |
515 } |
515 { |
516 |
516 aMenuPane->SetItemSpecific( EPbk2CmdDeleteMe, EFalse ); |
|
517 } |
|
518 break; |
|
519 } |
|
520 |
517 case R_PHONEBOOK2_NAMELIST_CALL_CONTACT_MENU: |
521 case R_PHONEBOOK2_NAMELIST_CALL_CONTACT_MENU: |
518 { |
522 { |
519 // Weed out commands not meant to be used with marked items |
523 // Weed out commands not meant to be used with marked items |
520 if ( aControl.ContactsMarked() ) |
524 if ( aControl.ContactsMarked() ) |
521 { |
525 { |
542 aMenuPane->SetItemDimmed( EPbk2CmdGoToURL, ETrue ); |
546 aMenuPane->SetItemDimmed( EPbk2CmdGoToURL, ETrue ); |
543 } |
547 } |
544 |
548 |
545 if ( aControl.ContactsMarked() ) |
549 if ( aControl.ContactsMarked() ) |
546 { |
550 { |
|
551 aMenuPane->SetItemDimmed( EPbk2CmdSend, ETrue ); |
547 aMenuPane->SetItemDimmed( EPbk2CmdGoToURL, ETrue ); |
552 aMenuPane->SetItemDimmed( EPbk2CmdGoToURL, ETrue ); |
548 } |
553 } |
549 break; |
554 break; |
550 } |
555 } |
551 |
556 |
1125 CleanupStack::PopAndDestroy( presentationContact ); |
1130 CleanupStack::PopAndDestroy( presentationContact ); |
1126 } |
1131 } |
1127 return index; |
1132 return index; |
1128 } |
1133 } |
1129 |
1134 |
1130 // -------------------------------------------------------------------------- |
|
1131 // CPbk2CommandHandler::CommandStore |
|
1132 // -------------------------------------------------------------------------- |
|
1133 // |
|
1134 EXPORT_C CPbk2CommandStore* CPbk2CommandHandler::CommandStore() |
|
1135 { |
|
1136 return iCommandStore; |
|
1137 } |
|
1138 |
|
1139 // End of File |
1135 // End of File |