emailuis/uicomponents/src/fstreevisualizerbase.cpp
branchRCL_3
changeset 52 efd4f1afd43e
parent 26 67369d1b217f
child 60 d620048b4810
equal deleted inserted replaced
29:6b8f3b30d0ec 52:efd4f1afd43e
    76 #include "muicscrollbar.h"
    76 #include "muicscrollbar.h"
    77 #include "cuicaknscrollbaradapter.h"
    77 #include "cuicaknscrollbaradapter.h"
    78 #include "cuicscrollbar.h"
    78 #include "cuicscrollbar.h"
    79 
    79 
    80 #include <aknphysics.h>
    80 #include <aknphysics.h>
       
    81 #include <touchfeedback.h> // for MTouchFeedback
    81 
    82 
    82 
    83 
    83 //CONSTANTS
    84 //CONSTANTS
    84 const TInt KDefaultShadowWidth = 4;
    85 const TInt KDefaultShadowWidth = 4;
    85 const TInt KFSListDefaultSelectorBorderWidth = 0;
    86 const TInt KFSListDefaultSelectorBorderWidth = 0;
  1550         TPointerEvent::TType type = aEvent.PointerEvent().iType;
  1551         TPointerEvent::TType type = aEvent.PointerEvent().iType;
  1551         const TInt id(EventItemId(aEvent));
  1552         const TInt id(EventItemId(aEvent));
  1552         INFO_1("visual: $%x", aEvent.Visual());
  1553         INFO_1("visual: $%x", aEvent.Visual());
  1553         if (KErrNotFound != id || type == TPointerEvent::EDrag ||
  1554         if (KErrNotFound != id || type == TPointerEvent::EDrag ||
  1554                 type  == TPointerEvent::EButtonRepeat ||
  1555                 type  == TPointerEvent::EButtonRepeat ||
  1555                 type  == TPointerEvent::EButton1Up)
  1556                 type  == TPointerEvent::EButton1Up ||
       
  1557                 type  == TPointerEvent::EButton1Down)
  1556             {
  1558             {
  1557             switch (type)
  1559             switch (type)
  1558                 {
  1560                 {
  1559                 case TPointerEvent::EButton1Down:
  1561                 case TPointerEvent::EButton1Down:
  1560                     {
  1562                     {
  4076                 iFocusVisible = ETrue;
  4078                 iFocusVisible = ETrue;
  4077 
  4079 
  4078                 if ( iMarqueeType != EFsTextMarqueeNone )
  4080                 if ( iMarqueeType != EFsTextMarqueeNone )
  4079                     {
  4081                     {
  4080                     vis = iTreeData->ItemVisualizer( iFocusedItem );
  4082                     vis = iTreeData->ItemVisualizer( iFocusedItem );
  4081                     vis->MarqueeL( iMarqueeType, iMarqueeSpeed,
  4083                     if (vis)
  4082                     		iMarqueStartDelay, iMarqueCycleStartDelay,
  4084                         {
  4083                             iMarqueeRepetitions );
  4085                         vis->MarqueeL( iMarqueeType, iMarqueeSpeed,
       
  4086                     	        iMarqueStartDelay, iMarqueCycleStartDelay,
       
  4087                                 iMarqueeRepetitions );
       
  4088                         }
  4084                     }
  4089                     }
  4085                 }
  4090                 }
  4086             else
  4091             else
  4087                 {
  4092                 {
  4088                 TAlfTimedValue opacity;
  4093                 TAlfTimedValue opacity;
  5205             {
  5210             {
  5206             iVisualizerObserver->TreeVisualizerEventL(
  5211             iVisualizerObserver->TreeVisualizerEventL(
  5207                 MFsTreeVisualizerObserver::EFsTreeItemTouchAction, aItemId, aPoint );
  5212                 MFsTreeVisualizerObserver::EFsTreeItemTouchAction, aItemId, aPoint );
  5208             }
  5213             }
  5209         }
  5214         }
       
  5215     // Added for tactile feedback
       
  5216     MTouchFeedback* feedback = MTouchFeedback::Instance();
       
  5217     if( feedback )
       
  5218         {
       
  5219         feedback->InstantFeedback( ETouchFeedbackBasic );
       
  5220         }
  5210     }
  5221     }
  5211 
  5222 
  5212 // CFsTreeVisualizerBase::CDragHandler
  5223 // CFsTreeVisualizerBase::CDragHandler
  5213 
  5224 
  5214 // ---------------------------------------------------------------------------
  5225 // ---------------------------------------------------------------------------