equal
deleted
inserted
replaced
937 case EEventItemSingleClicked: |
937 case EEventItemSingleClicked: |
938 { |
938 { |
939 ShowContextMenuL(); |
939 ShowContextMenuL(); |
940 break; |
940 break; |
941 } |
941 } |
|
942 #if 0 |
|
943 case EEventEmptyAreaClicked: //An empty area of non-empty listbox was clicked |
|
944 case EEventEmptyListClicked: //An empty listbox was clicked |
|
945 { |
|
946 ProcessEmptyAreaClickL(); |
|
947 break; |
|
948 } |
|
949 #endif |
|
950 |
942 case EEventItemClicked: //Happens after focus changed |
951 case EEventItemClicked: //Happens after focus changed |
943 break; |
952 break; |
944 |
953 |
945 case EEventPanningStarted: |
954 case EEventPanningStarted: |
946 case EEventFlickStarted: |
955 case EEventFlickStarted: |
991 iControl->FocusChanged( EDrawNow ); |
1000 iControl->FocusChanged( EDrawNow ); |
992 } |
1001 } |
993 |
1002 |
994 if ( AknLayoutUtils::PenEnabled() ) |
1003 if ( AknLayoutUtils::PenEnabled() ) |
995 { |
1004 { |
996 if ( iContainer && !iControl->ContactsMarked() && iPointerEventInspector->FocusableItemPointed() ) |
1005 // Longtap detection is currently not needed here |
997 { |
1006 #if 0 |
998 iContainer->LongTapDetectorL().PointerEventL( aPointerEvent ); |
1007 // If at some point we need to enable longtap detection here, then need |
999 } |
1008 // to implement a way to prevent passing the event to longtap detector |
|
1009 // when a command item is tapped. Because command items should not have the |
|
1010 // longtap animation. |
|
1011 if ( iContainer |
|
1012 && <tapped item is not a command item> // <-- implement this logic by any means |
|
1013 && !iControl->ContactsMarked() && iPointerEventInspector->FocusableItemPointed() ) |
|
1014 { |
|
1015 iContainer->LongTapDetectorL().PointerEventL( aPointerEvent ); |
|
1016 } |
|
1017 #endif |
|
1018 |
1000 // ece has stylus menu for empty state, no need to initiate touch feedback |
1019 // ece has stylus menu for empty state, no need to initiate touch feedback |
1001 // context menu disabled as well |
1020 // context menu disabled as well |
1002 #if 0 |
1021 #if 0 |
1003 if ( iControl->NumberOfContacts()==0) |
1022 if ( iControl->NumberOfContacts()==0) |
1004 { |
1023 { |
1066 ( R_PHONEBOOK2_NAMESLIST_CONTEXT_MENUBAR ); |
1085 ( R_PHONEBOOK2_NAMESLIST_CONTEXT_MENUBAR ); |
1067 #endif |
1086 #endif |
1068 } |
1087 } |
1069 } |
1088 } |
1070 } |
1089 } |
|
1090 |
|
1091 #if 0 |
|
1092 // -------------------------------------------------------------------------- |
|
1093 // CPbk2NamesListExView::ProcessEmptyAreaClickL |
|
1094 // -------------------------------------------------------------------------- |
|
1095 // |
|
1096 void CPbk2NamesListExView::ProcessEmptyAreaClickL() |
|
1097 { |
|
1098 if ( iStylusPopupMenuLaunched ) |
|
1099 { |
|
1100 // Absorb EButton1Up event if we already launched the stylus |
|
1101 // popup menu |
|
1102 iStylusPopupMenuLaunched = EFalse; |
|
1103 } |
|
1104 else if ( !iPointerEventInspector->SearchFieldPointed() && |
|
1105 !iSelectionModifierUsed ) |
|
1106 { |
|
1107 if ( iControl->NumberOfContacts() == 0 ) |
|
1108 { |
|
1109 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
|
1110 if ( feedback ) |
|
1111 { |
|
1112 feedback->InstantFeedback( ETouchFeedbackBasic ); |
|
1113 } |
|
1114 HandleCommandL( EPbk2CmdCreateNew ); |
|
1115 } |
|
1116 } |
|
1117 } |
|
1118 #endif |
1071 |
1119 |
1072 // -------------------------------------------------------------------------- |
1120 // -------------------------------------------------------------------------- |
1073 // CPbk2NamesListExView::GetViewSpecificMenuFilteringFlagsL |
1121 // CPbk2NamesListExView::GetViewSpecificMenuFilteringFlagsL |
1074 // -------------------------------------------------------------------------- |
1122 // -------------------------------------------------------------------------- |
1075 // |
1123 // |
1650 // |
1698 // |
1651 void CPbk2NamesListExView::HandleLongTapEventL( |
1699 void CPbk2NamesListExView::HandleLongTapEventL( |
1652 const TPoint& /*aPenEventLocation*/, |
1700 const TPoint& /*aPenEventLocation*/, |
1653 const TPoint& /*aPenEventScreenLocation*/ ) |
1701 const TPoint& /*aPenEventScreenLocation*/ ) |
1654 { |
1702 { |
1655 //no implementation needed for single tap |
1703 //no implementation needed currently |
1656 } |
1704 } |
1657 |
1705 |
1658 // -------------------------------------------------------------------------- |
1706 // -------------------------------------------------------------------------- |
1659 // CPbk2NamesListExView::Reset |
1707 // CPbk2NamesListExView::Reset |
1660 // -------------------------------------------------------------------------- |
1708 // -------------------------------------------------------------------------- |