uifw/EikStd/coctlsrc/EIKEDWIN.CPP
changeset 14 3320e4e6e8bb
parent 0 2f259fa3e83a
equal deleted inserted replaced
0:2f259fa3e83a 14:3320e4e6e8bb
   137 
   137 
   138 // Unicode for euro sign
   138 // Unicode for euro sign
   139 const TInt KEuroSign = 0x20AC;
   139 const TInt KEuroSign = 0x20AC;
   140 const TInt KSegmSize = 1024;
   140 const TInt KSegmSize = 1024;
   141 
   141 
   142 
   142 const TInt KMicroSecondsDelay = 500000;
   143 
   143 
   144 const TInt KNormalAnimPlayTimes = 2;
   144 const TInt KNormalAnimPlayTimes = 2;
   145 const TInt KInfiniteAnimPlayTimes = 0x7ffff;
   145 const TInt KInfiniteAnimPlayTimes = 0x7ffff;
   146 const TInt KAdditionalPixels = 0x400;
   146 const TInt KAdditionalPixels = 0x400;
   147 
   147 
  2703                     if ( !IsReadOnly() && !iEdwinExtension->iDragging &&
  2703                     if ( !IsReadOnly() && !iEdwinExtension->iDragging &&
  2704                         !iEdwinExtension->iPhysicsHandler->DraggingStarted()   
  2704                         !iEdwinExtension->iPhysicsHandler->DraggingStarted()   
  2705                         )
  2705                         )
  2706                         {
  2706                         {
  2707                         iEdwinFepSupport->iFeedback->InstantFeedback( this,
  2707                         iEdwinFepSupport->iFeedback->InstantFeedback( this,
  2708                             ETouchFeedbackEdit, ETouchFeedbackVibra,
  2708                             ETouchFeedbackEditor, ETouchFeedbackVibra,
  2709                             aPointerEvent );
  2709                             aPointerEvent );
  2710                         }
  2710                         }
  2711                     }
  2711                     }
  2712                 else // Kinetic scrolling not enabled
  2712                 else // Kinetic scrolling not enabled
  2713                     {
  2713                     {
  2718                             iEdwinUserFlags & CEikEdwin::EReadOnly |
  2718                             iEdwinUserFlags & CEikEdwin::EReadOnly |
  2719                             iEdwinUserFlags & CEikEdwin::EAvkonNotEditable ) ) ) )
  2719                             iEdwinUserFlags & CEikEdwin::EAvkonNotEditable ) ) ) )
  2720                         {
  2720                         {
  2721                         iEdwinFepSupport->iFeedback->InstantFeedback(
  2721                         iEdwinFepSupport->iFeedback->InstantFeedback(
  2722                             this,
  2722                             this,
  2723                             ETouchFeedbackEdit,
  2723                             ETouchFeedbackEditor,
  2724                             ETouchFeedbackVibra,
  2724                             ETouchFeedbackVibra,
  2725                             aPointerEvent );
  2725                             aPointerEvent );
  2726                         iEdwinFepSupport->iSelectionIsCancel = EFalse;
  2726                         iEdwinFepSupport->iSelectionIsCancel = EFalse;
  2727                         }
  2727                         }
  2728                     } 
  2728                     } 
  6067             iTextView->SetViewL(docPos, yPos, yPosQ);
  6067             iTextView->SetViewL(docPos, yPos, yPosQ);
  6068             UpdateVertScrollBarThumbL();
  6068             UpdateVertScrollBarThumbL();
  6069             UpdateHorizScrollBarThumb();// can also change horizontally
  6069             UpdateHorizScrollBarThumb();// can also change horizontally
  6070             }
  6070             }
  6071             break;
  6071             break;
  6072         case EEikScrollThumbReleaseVert:
       
  6073             {
       
  6074             if ( KineticScrollingEnabled() )
       
  6075                 {
       
  6076                 RestoreCursorState();
       
  6077                 }
       
  6078             }
       
  6079             break;
       
  6080         case EEikScrollUp:
  6072         case EEikScrollUp:
  6081         case EEikScrollDown:            
  6073         case EEikScrollDown:            
  6082         case EEikScrollPageUp:
  6074         case EEikScrollPageUp:
  6083         case EEikScrollPageDown:            
  6075         case EEikScrollPageDown:            
  6084         case EEikScrollThumbDragVert:
  6076         case EEikScrollThumbDragVert:
  6085             {
  6077             {
  6086             if ( KineticScrollingEnabled() )
  6078             if ( KineticScrollingEnabled() )
  6087                 {
  6079                 {
  6088                 StoreCursorState();
       
  6089                 HandleScrollEventWithPhysics( aScrollBar );
  6080                 HandleScrollEventWithPhysics( aScrollBar );
  6090                 break;
  6081                 break;
  6091                 }
  6082                 }
  6092             
  6083             
  6093             TRect viewRect( AdjustedViewRect() );            
  6084             TRect viewRect( AdjustedViewRect() );