uifw/eikctl/src/EIKMFNE.CPP
branchRCL_3
changeset 72 a5e7a4f63858
parent 59 978afdc0236f
equal deleted inserted replaced
64:85902f042028 72:a5e7a4f63858
   149 
   149 
   150 void CEikTimeEditorExtension::ConstructL()
   150 void CEikTimeEditorExtension::ConstructL()
   151     {
   151     {
   152     }
   152     }
   153 
   153 
   154 void CEikTimeEditorExtension::HandleInputCapabilitiesEventL( TInt aEvent, TAny* /*aParams*/ )
   154 void CEikTimeEditorExtension::HandleInputCapabilitiesEventL( TInt aEvent, TAny* aParams )
   155 	{
   155 	{
   156     switch ( aEvent )
   156     switch ( aEvent )
   157         {
   157         {
   158         case CAknExtendedInputCapabilities::MAknEventObserver::EChangeAmPm:
   158         case CAknExtendedInputCapabilities::MAknEventObserver::EChangeAmPm:
   159         	if ( iEditor )
   159         	if ( iEditor )
   211 
   211 
   212 void CEikTimeAndDateEditorExtension::ConstructL()
   212 void CEikTimeAndDateEditorExtension::ConstructL()
   213     {
   213     {
   214     }
   214     }
   215 
   215 
   216 void CEikTimeAndDateEditorExtension::HandleInputCapabilitiesEventL( TInt aEvent, TAny* /*aParams*/ )
   216 void CEikTimeAndDateEditorExtension::HandleInputCapabilitiesEventL( TInt aEvent, TAny* aParams )
   217 	{
   217 	{
   218     switch ( aEvent )
   218     switch ( aEvent )
   219         {
   219         {
   220         case CAknExtendedInputCapabilities::MAknEventObserver::EChangeAmPm:
   220         case CAknExtendedInputCapabilities::MAknEventObserver::EChangeAmPm:
   221         	if ( iEditor )
   221         	if ( iEditor )
  2051                     {
  2051                     {
  2052                     iExtension->iFingerSupport = ( TBool )( aFeatureParam );
  2052                     iExtension->iFingerSupport = ( TBool )( aFeatureParam );
  2053                     iExtension->iDisablePenInput = !( iExtension->iFingerSupport );                    
  2053                     iExtension->iDisablePenInput = !( iExtension->iFingerSupport );                    
  2054                     iExtension->iFingerParam = aFeatureParam; 
  2054                     iExtension->iFingerParam = aFeatureParam; 
  2055                     iExtension->iHighlightAll = ( iExtension->iFingerSupport &&
  2055                     iExtension->iHighlightAll = ( iExtension->iFingerSupport &&
  2056                         !iExtension->iTouchActivated &&
       
  2057                         aFeatureParam == EnableWithAllHighlight );                  
  2056                         aFeatureParam == EnableWithAllHighlight );                  
  2058                     }
  2057                     }
  2059                 else
  2058                 else
  2060                     {
  2059                     {
  2061                     ret = KErrGeneral;
  2060                     ret = KErrGeneral;
  4088     }
  4087     }
  4089     
  4088     
  4090 EXPORT_C void CEikTimeEditor::HandlePointerEventL(const TPointerEvent& aPointerEvent) 
  4089 EXPORT_C void CEikTimeEditor::HandlePointerEventL(const TPointerEvent& aPointerEvent) 
  4091     { 
  4090     { 
  4092     CEikTTimeEditor::HandlePointerEventL(aPointerEvent); 
  4091     CEikTTimeEditor::HandlePointerEventL(aPointerEvent); 
  4093     // If touch input is disabled or qwerty key board is opened, AM/PM will change when
       
  4094     // user taps at AM/PM filed; else touch input will be opened. 
       
  4095     if ( aPointerEvent.iType == TPointerEvent::EButton1Up &&
       
  4096          ( ( iExtension->iExtendedInputCapabilities->Capabilities() & 
       
  4097            CAknExtendedInputCapabilities::EInputEditorQwertyInputActive ) ||
       
  4098          iExtension->iDisablePenInput || iExtension->iPartialScreenInput ) )
       
  4099         {
       
  4100         TAmPmName amName( EAm );
       
  4101         TAmPmName pmName( EPm );
       
  4102         if ( !IsUninitialised() && 
       
  4103             ( !iFields[iCurrentField]->FieldText().Compare( amName ) ||
       
  4104              !iFields[iCurrentField]->FieldText().Compare( pmName ) ) )
       
  4105             {
       
  4106             ChangeAmPm();
       
  4107             }
       
  4108         }
       
  4109     }   
  4092     }   
  4110 
  4093 
  4111 EXPORT_C void* CEikTimeEditor::ExtensionInterface( TUid /*aInterface*/ )
  4094 EXPORT_C void* CEikTimeEditor::ExtensionInterface( TUid /*aInterface*/ )
  4112     {
  4095     {
  4113     return NULL;
  4096     return NULL;
  4497     }
  4480     }
  4498 
  4481 
  4499 EXPORT_C void CEikTimeAndDateEditor::HandlePointerEventL(const TPointerEvent& aPointerEvent) 
  4482 EXPORT_C void CEikTimeAndDateEditor::HandlePointerEventL(const TPointerEvent& aPointerEvent) 
  4500     { 
  4483     { 
  4501     CEikTTimeEditor::HandlePointerEventL(aPointerEvent); 
  4484     CEikTTimeEditor::HandlePointerEventL(aPointerEvent); 
  4502     // If touch input is disabled or qwerty key board is opened, AM/PM will change when
       
  4503     // user taps at AM/PM filed; else touch input will be opened. 
       
  4504     if ( aPointerEvent.iType == TPointerEvent::EButton1Up &&
       
  4505          ( ( iExtension->iExtendedInputCapabilities->Capabilities() & 
       
  4506            CAknExtendedInputCapabilities::EInputEditorQwertyInputActive ) ||
       
  4507            iExtension->iDisablePenInput || iExtension->iPartialScreenInput ) )
       
  4508         {
       
  4509         TAmPmName amName( EAm );
       
  4510         TAmPmName pmName( EPm );
       
  4511         if ( !IsUninitialised() && 
       
  4512             ( !iFields[iCurrentField]->FieldText().Compare( amName ) ||
       
  4513              !iFields[iCurrentField]->FieldText().Compare( pmName ) ) )
       
  4514             {
       
  4515             ChangeAmPm();
       
  4516             }
       
  4517         }
       
  4518     }
  4485     }
  4519 
  4486 
  4520 EXPORT_C void* CEikTimeAndDateEditor::ExtensionInterface( TUid /*aInterface*/ )
  4487 EXPORT_C void* CEikTimeAndDateEditor::ExtensionInterface( TUid /*aInterface*/ )
  4521     {
  4488     {
  4522     return NULL;
  4489     return NULL;