uifw/eikctl/src/EIKMFNE.CPP
changeset 14 3320e4e6e8bb
parent 0 2f259fa3e83a
equal deleted inserted replaced
0:2f259fa3e83a 14:3320e4e6e8bb
   153     CEikMfne* iEditor; // not owned
   153     CEikMfne* iEditor; // not owned
   154     CAknExtendedInputCapabilities::CAknExtendedInputCapabilitiesProvider*
   154     CAknExtendedInputCapabilities::CAknExtendedInputCapabilitiesProvider*
   155         iExtendedInputCapabilitiesProvider;
   155         iExtendedInputCapabilitiesProvider;
   156     TInt iClipGcToRect; // Mainly for 0/1 values
   156     TInt iClipGcToRect; // Mainly for 0/1 values
   157     TInt iDisablePenInput; // Mainly for 0/1 values
   157     TInt iDisablePenInput; // Mainly for 0/1 values
       
   158     TBool iTwiceTap;   
   158     TBool iCursorShown; 
   159     TBool iCursorShown; 
   159     TBool iFingerSupport;
   160     TBool iFingerSupport;
   160     TInt iFingerParam;
   161     TInt iFingerParam;
   161     TBool iHighlightAll; 
   162     TBool iHighlightAll; 
   162     TBool iTouchActivated;
   163     TBool iTouchActivated;
  2250                 }
  2251                 }
  2251             leftPositionOfThisField+=widthOfThisFieldInPixels;
  2252             leftPositionOfThisField+=widthOfThisFieldInPixels;
  2252             }
  2253             }
  2253         if (newField==ENullIndex)
  2254         if (newField==ENullIndex)
  2254             newField=iCurrentField;
  2255             newField=iCurrentField;
       
  2256         if ( aPointerEvent.iType == TPointerEvent::EButton1Down )
       
  2257             {
       
  2258             iExtension->iTwiceTap = ( iExtension->iFingerSupport ? ETrue : 
       
  2259                 newField == iCurrentField );            
       
  2260             }
  2255 
  2261 
  2256         if (iExtension && aPointerEvent.iType == TPointerEvent::EButton1Down)
  2262         if (iExtension && aPointerEvent.iType == TPointerEvent::EButton1Down)
  2257             {
  2263             {
  2258             // Edit feedback on down event in current field, 
  2264             // Edit feedback on down event in current field, 
  2259             // Edit feedback when changing fields
  2265             // Edit feedback when changing fields
  2260             TTouchLogicalFeedback feedback = ETouchFeedbackEdit;
  2266             TTouchLogicalFeedback feedback = 
       
  2267                 ( iExtension->iTwiceTap ? ETouchFeedbackEditor : ETouchFeedbackEditor );
  2261             iExtension->iFeedback->InstantFeedback( this, feedback );
  2268             iExtension->iFeedback->InstantFeedback( this, feedback );
  2262             }
  2269             }
  2263         TBool createPopoutIfRequired=((newField==iCurrentField) && aPointerEvent.iType==TPointerEvent::EButton1Down && IsFocused());
  2270         TBool createPopoutIfRequired=((newField==iCurrentField) && aPointerEvent.iType==TPointerEvent::EButton1Down && IsFocused());
  2264         TBool dataAltered=EFalse;
  2271         TBool dataAltered=EFalse;
  2265         TBool error=EFalse;
  2272         TBool error=EFalse;
  2270         ReportEventL( MCoeControlObserver::EEventStateChanged );
  2277         ReportEventL( MCoeControlObserver::EEventStateChanged );
  2271         ReportUpdate();
  2278         ReportUpdate();
  2272         }
  2279         }
  2273     else if ( aPointerEvent.iType == TPointerEvent::EButton1Up )
  2280     else if ( aPointerEvent.iType == TPointerEvent::EButton1Up )
  2274         {
  2281         {
  2275         if ( iExtension && !iExtension->iDisablePenInput )
  2282         if ( iExtension && !iExtension->iDisablePenInput && iExtension->iTwiceTap )
  2276             {
  2283             {
  2277             iExtension->iFeedback->InstantFeedback( this,
  2284             iExtension->iFeedback->InstantFeedback( this,
  2278                 ETouchFeedbackEdit,
  2285                 ETouchFeedbackEditor,
  2279                 ETouchFeedbackVibra,
  2286                 ETouchFeedbackVibra,
  2280                 aPointerEvent );
  2287                 aPointerEvent );
  2281             LaunchPenInputL();
  2288             LaunchPenInputL();
  2282             }
  2289             }
  2283         }
  2290         }