equal
deleted
inserted
replaced
422 case EAknSoftkeyEmpty: // so that it will not crash in stop-snooze case. |
422 case EAknSoftkeyEmpty: // so that it will not crash in stop-snooze case. |
423 { |
423 { |
424 // nothing to do |
424 // nothing to do |
425 } |
425 } |
426 break; |
426 break; |
|
427 case ECalenCmdFindPhoneNum: |
|
428 { |
|
429 cnt->OnCmdFindPhoneNumL(); |
|
430 } |
|
431 break; |
|
432 case ECalenCmdFindEmail: |
|
433 { |
|
434 cnt->OnCmdFindEmailL(); |
|
435 } |
|
436 break; |
|
437 case ECalenCmdFindURL: |
|
438 { |
|
439 cnt->OnCmdFindUrlL(); |
|
440 } |
|
441 break; |
427 default: |
442 default: |
428 if(cnt->GetFindItemMenu()->CommandIsValidL(aCommand)) |
443 if(cnt->GetFindItemMenu()->CommandIsValidL(aCommand)) |
429 { |
444 { |
430 CAknToolbar& toolbar = toolbarImpl->Toolbar(); |
445 CAknToolbar& toolbar = toolbarImpl->Toolbar(); |
431 toolbar.SetToolbarVisibility( EFalse ); |
446 toolbar.SetToolbarVisibility( EFalse ); |
482 { |
497 { |
483 case R_CALEN_EVENT_VIEW_MENUPANE: |
498 case R_CALEN_EVENT_VIEW_MENUPANE: |
484 case R_CALEN_EVENT_VIEW_LONGTAP_MENUPANE: |
499 case R_CALEN_EVENT_VIEW_LONGTAP_MENUPANE: |
485 { |
500 { |
486 CCalenEntryUtil* eventViewData = cnt->GetEventViewData(); |
501 CCalenEntryUtil* eventViewData = cnt->GetEventViewData(); |
487 |
|
488 if(eventViewData) |
502 if(eventViewData) |
489 { |
503 { |
490 if(eventViewData->EntryType() == CCalEntry::ETodo) |
504 if(eventViewData->EntryType() == CCalEntry::ETodo) |
491 { |
505 { |
492 if(eventViewData->Status() == CCalEntry::ETodoCompleted) |
506 if(eventViewData->Status() == CCalEntry::ETodoCompleted) |
509 if(!eventViewData->AttachmentCount()) |
523 if(!eventViewData->AttachmentCount()) |
510 { |
524 { |
511 aMenuPane->DeleteMenuItem(ECalenViewAttachmentList); |
525 aMenuPane->DeleteMenuItem(ECalenViewAttachmentList); |
512 } |
526 } |
513 } |
527 } |
514 cnt->GetFindItemMenu()->AddItemFindMenuL(cnt->GetItemFinder(),aMenuPane,EFindItemMenuPlaceHolder,KNullDesC); |
528 |
515 |
529 |
516 if(CCalenLocationUtil::IsMapProviderAvailableL()) |
530 if(CCalenLocationUtil::IsMapProviderAvailableL()) |
517 { |
531 { |
518 if(cnt->IsEventHasMapLocationL() || cnt->IsEventHasNoLocationTextL()) |
532 if(cnt->IsEventHasMapLocationL() || cnt->IsEventHasNoLocationTextL()) |
519 { |
533 { |