equal
deleted
inserted
replaced
293 // --------------------------------------------------------------------------- |
293 // --------------------------------------------------------------------------- |
294 // |
294 // |
295 void CFSEmailUiLauncherGridVisualiser::ResizeItemIcon( TBool aReduce ) |
295 void CFSEmailUiLauncherGridVisualiser::ResizeItemIcon( TBool aReduce ) |
296 { |
296 { |
297 TInt selectedItem( iCurrentLevel.iSelected ); |
297 TInt selectedItem( iCurrentLevel.iSelected ); |
|
298 |
298 TInt count = iCurrentLevel.iItemVisualData.Count(); |
299 TInt count = iCurrentLevel.iItemVisualData.Count(); |
299 if ( selectedItem < 0 || selectedItem >= count ) |
300 if ( selectedItem < 0 || selectedItem >= count ) |
300 { |
301 { |
301 return; // incorrect index |
302 return; // incorrect index |
302 } |
303 } |
303 |
|
304 if( selectedItem >= 0 ) |
304 if( selectedItem >= 0 ) |
305 { |
305 { |
306 TReal transition( KScaleNotSelected ); |
306 TReal transition( KScaleNotSelected ); |
307 if( !aReduce ) |
307 if( !aReduce ) |
308 { |
308 { |
1231 iTotalDragging = iTotalDragging + delta.iY; |
1231 iTotalDragging = iTotalDragging + delta.iY; |
1232 if (Abs(iTotalDragging) >= iPhysics->DragThreshold() || iIsDragging ) |
1232 if (Abs(iTotalDragging) >= iPhysics->DragThreshold() || iIsDragging ) |
1233 { |
1233 { |
1234 // Hide focus always when dragging. |
1234 // Hide focus always when dragging. |
1235 HandleButtonReleaseEvent(); |
1235 HandleButtonReleaseEvent(); |
1236 |
|
1237 iIsDragging = ETrue; |
1236 iIsDragging = ETrue; |
1238 |
1237 |
1239 iPhysics->RegisterPanningPosition( delta ); |
1238 iPhysics->RegisterPanningPosition( delta ); |
1240 iScrolled = ETrue; |
1239 iScrolled = ETrue; |
1241 } |
1240 } |
2783 count = iCurrentLevel.iItems.Count(); |
2782 count = iCurrentLevel.iItems.Count(); |
2784 if ( aItemId < 0 || aItemId >= count ) |
2783 if ( aItemId < 0 || aItemId >= count ) |
2785 { |
2784 { |
2786 return; // incorrect index |
2785 return; // incorrect index |
2787 } |
2786 } |
|
2787 |
2788 // Get the ID of the mailbox in case the user wants to delete it. |
2788 // Get the ID of the mailbox in case the user wants to delete it. |
2789 iMailboxToDelete = iCurrentLevel.iItems[aItemId].iMailBoxId; |
2789 iMailboxToDelete = iCurrentLevel.iItems[aItemId].iMailBoxId; |
2790 |
2790 |
2791 // Get the item position and use it to determine the position of the menu. |
2791 // Get the item position and use it to determine the position of the menu. |
2792 const TRect rect( |
2792 const TRect rect( |