equal
deleted
inserted
replaced
239 { |
239 { |
240 iItems[aIndex]->SetFlags( CHgItem::EHgItemFlagMarked ); |
240 iItems[aIndex]->SetFlags( CHgItem::EHgItemFlagMarked ); |
241 if( iMarkingObserver ) |
241 if( iMarkingObserver ) |
242 { |
242 { |
243 TRAP_IGNORE( iMarkingObserver->HandleMarkingL( aIndex, ETrue ) ); |
243 TRAP_IGNORE( iMarkingObserver->HandleMarkingL( aIndex, ETrue ) ); |
244 } |
244 } |
245 } |
245 } |
246 } |
246 } |
247 } |
247 } |
248 |
248 |
249 // ----------------------------------------------------------------------------- |
249 // ----------------------------------------------------------------------------- |
250 // CHgScroller::UnMark() |
250 // CHgScroller::UnMark() |
251 // ----------------------------------------------------------------------------- |
251 // ----------------------------------------------------------------------------- |
590 iPointerDown = ETrue; |
590 iPointerDown = ETrue; |
591 HandleDownEventL( aEvent ); |
591 HandleDownEventL( aEvent ); |
592 |
592 |
593 if( iDetector |
593 if( iDetector |
594 && iSelectedIndex != KErrNotFound |
594 && iSelectedIndex != KErrNotFound |
595 && !HasHighlight() |
595 && !HasHighlight() |
|
596 && !(iFlags & EHgScrollerSelectionMode) |
596 && iActionMenu->InitMenuL() ) |
597 && iActionMenu->InitMenuL() ) |
597 { |
598 { |
598 iDetector->PointerEventL( aEvent ); |
599 iDetector->PointerEventL( aEvent ); |
599 } |
600 } |
600 } |
601 } |
1193 TRAP_IGNORE( iSelectionObserver->HandleOpenL( iSelectedIndex ); ) |
1194 TRAP_IGNORE( iSelectionObserver->HandleOpenL( iSelectedIndex ); ) |
1194 return EKeyWasConsumed; |
1195 return EKeyWasConsumed; |
1195 } |
1196 } |
1196 else if( iItemCount ) |
1197 else if( iItemCount ) |
1197 { |
1198 { |
1198 iSelectedIndex = iCurrentRow; |
1199 iSelectedIndex = CurrentIndex(); |
1199 FitSelectionToView(); |
1200 FitSelectionToView(); |
1200 iShowHighlight = ETrue; |
1201 iShowHighlight = ETrue; |
1201 iDrawUtils->EnableMarquee(HasHighlight()); |
1202 iDrawUtils->EnableMarquee(HasHighlight()); |
1202 DrawDeferred(); |
1203 DrawDeferred(); |
1203 if( iSelectionObserver ) |
1204 if( iSelectionObserver ) |
1730 iIndicatorManager = CHgIndicatorManager::NewL(); |
1731 iIndicatorManager = CHgIndicatorManager::NewL(); |
1731 delete iScrollbar; iScrollbar = NULL; |
1732 delete iScrollbar; iScrollbar = NULL; |
1732 iScrollbar = CHgScrollbar::NewL(*this); |
1733 iScrollbar = CHgScrollbar::NewL(*this); |
1733 InitScrollbarL(); |
1734 InitScrollbarL(); |
1734 InitGraphicsL(); |
1735 InitGraphicsL(); |
|
1736 |
|
1737 HandleSizeChanged(); |
|
1738 DrawDeferred(); |
1735 } |
1739 } |
1736 ) |
1740 ) |
1737 } |
1741 } |
1738 |
1742 |
1739 // --------------------------------------------------------------------------- |
1743 // --------------------------------------------------------------------------- |
1741 // --------------------------------------------------------------------------- |
1745 // --------------------------------------------------------------------------- |
1742 // |
1746 // |
1743 void CHgScroller::HandleLongTapEventL( const TPoint& /*aPenEventLocation*/, |
1747 void CHgScroller::HandleLongTapEventL( const TPoint& /*aPenEventLocation*/, |
1744 const TPoint& aPenEventScreenLocation) |
1748 const TPoint& aPenEventScreenLocation) |
1745 { |
1749 { |
1746 if( iActionMenu ) |
1750 if( iActionMenu && !(iFlags & EHgScrollerSelectionMode) ) |
1747 { |
1751 { |
1748 iOldWinPos = DrawableWindow()->OrdinalPosition(); |
1752 iOldWinPos = DrawableWindow()->OrdinalPosition(); |
1749 iActionMenu->ShowMenuL(aPenEventScreenLocation); |
1753 iActionMenu->ShowMenuL(aPenEventScreenLocation); |
1750 iPointerDown = EFalse; |
1754 iPointerDown = EFalse; |
1751 } |
1755 } |