equal
deleted
inserted
replaced
98 default: |
98 default: |
99 return NULL; |
99 return NULL; |
100 } |
100 } |
101 } |
101 } |
102 |
102 |
|
103 void CPodcastListContainer::SetLongTapDetected(TBool aLongTapDetected) |
|
104 { |
|
105 iLongTapDetected = aLongTapDetected; |
|
106 } |
|
107 |
103 void CPodcastListContainer::HandleResourceChange(TInt aType) |
108 void CPodcastListContainer::HandleResourceChange(TInt aType) |
104 { |
109 { |
105 switch( aType ) |
110 switch( aType ) |
106 { |
111 { |
107 case KEikDynamicLayoutVariantSwitch: |
112 case KEikDynamicLayoutVariantSwitch: |
159 void CPodcastListContainer::HandlePointerEventL(const TPointerEvent& aPointerEvent) |
164 void CPodcastListContainer::HandlePointerEventL(const TPointerEvent& aPointerEvent) |
160 { |
165 { |
161 if (iPointerListener) |
166 if (iPointerListener) |
162 iPointerListener->PointerEventL(aPointerEvent); |
167 iPointerListener->PointerEventL(aPointerEvent); |
163 |
168 |
164 // Call base class HandlePointerEventL() |
169 // Call base class HandlePointerEventL() if not a long tap |
165 CCoeControl::HandlePointerEventL(aPointerEvent); |
170 if (!iLongTapDetected) |
|
171 { |
|
172 CCoeControl::HandlePointerEventL(aPointerEvent); |
|
173 } |
166 } |
174 } |
167 |
175 |
168 |
176 |
169 void CPodcastListContainer::SetPointerListener(MPointerListener *aPointerListener) |
177 void CPodcastListContainer::SetPointerListener(MPointerListener *aPointerListener) |
170 { |
178 { |
360 |
368 |
361 |
369 |
362 void CPodcastListView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */) |
370 void CPodcastListView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */) |
363 { |
371 { |
364 DP("CPodcastListView::HandleLongTapEventL BEGIN"); |
372 DP("CPodcastListView::HandleLongTapEventL BEGIN"); |
365 |
373 iListContainer->SetLongTapDetected(ETrue); |
366 const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1 |
374 const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1 |
367 TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems( |
375 TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems( |
368 iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight; |
376 iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight; |
369 |
377 |
370 if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight) |
378 if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight) |