calendarui/editors/src/calenunifiededitor.cpp
branchRCL_3
changeset 78 356f28cd5ca0
parent 74 97232defd20e
child 86 ed599363c2d7
equal deleted inserted replaced
74:97232defd20e 78:356f28cd5ca0
   728                         }
   728                         }
   729                     else
   729                     else
   730                         {
   730                         {
   731                         iServices->IssueCommandL( ECalenAddAttachment );
   731                         iServices->IssueCommandL( ECalenAddAttachment );
   732                         }
   732                         }
       
   733                     }
       
   734                 else if ( ctrlid == ECalenEditorAllDayItem )
       
   735                     {
       
   736                     // Tap on AllDay field, Switch the status of AllDay field  
       
   737                     iUnifiedEditorControl->SetAllDayEventL(
       
   738                             !( iUnifiedEditorControl->IsAllDayEvent() ) );
       
   739                     }
       
   740                 else if ( ctrlid == ECalenEditorReminder )
       
   741                     {
       
   742                     TBool active;
       
   743                     if( iUnifiedEditorControl->IsAlarmActiveInForm() )
       
   744                         { 
       
   745                         SetAlarmFieldOnOffL( EFalse );           
       
   746                         active = EFalse;
       
   747                         } 
       
   748                     else
       
   749                         {
       
   750                         SetAlarmFieldOnOffL( ETrue );                
       
   751                         active = ETrue;
       
   752                         }
       
   753                     iUnifiedEditorControl->CheckAlarmActive( active );
       
   754                     }
       
   755                 else
       
   756                     {
       
   757                         keyResponse = CAknForm::OfferKeyEventL( aKeyEvent, aType );    
   733                     }
   758                     }
   734                 break;
   759                 break;
   735             case EKeyEscape:
   760             case EKeyEscape:
   736                 // Calendar relaunched from cmd line - close viewer
   761                 // Calendar relaunched from cmd line - close viewer
   737                 // NOTE: This was changed from EAknCmdExit to ECalenCmdCloseDialog since launching
   762                 // NOTE: This was changed from EAknCmdExit to ECalenCmdCloseDialog since launching