calendarui/editors/src/calenunifiededitorcontrol.cpp
branchRCL_3
changeset 36 9c5b1510919f
parent 30 d68a4b5d5885
child 48 bf573002ff72
equal deleted inserted replaced
30:d68a4b5d5885 36:9c5b1510919f
   809 //
   809 //
   810 void CCalenUnifiedEditorControl::OnEventTypeChangedL( CCalEntry::TType aNewEventType )
   810 void CCalenUnifiedEditorControl::OnEventTypeChangedL( CCalEntry::TType aNewEventType )
   811     {
   811     {
   812     TRACE_ENTRY_POINT;
   812     TRACE_ENTRY_POINT;
   813     
   813     
   814     // update Entry type of Edited entry
   814     if(iUnifiedEditor.GetEntryType() != aNewEventType)
   815     iUnifiedEditor.Edited().SetEntryType( aNewEventType );
   815     	{
   816 
   816 	    // update Entry type of Edited entry
   817     // Delete, previous entry type fields from editor
   817 	    iUnifiedEditor.Edited().SetEntryType( aNewEventType );
   818     DeletePreviousEntryTypeFieldsL();
   818 	
   819     
   819 	    // Delete, previous entry type fields from editor
   820     // Add new fiedls to editor
   820 	    DeletePreviousEntryTypeFieldsL();
   821     AddNewEntryTypeFieldsL( aNewEventType );
   821 	    
   822     iUnifiedEditor.SetEntryType( aNewEventType );
   822 	    // Add new fiedls to editor
   823 
   823 	    AddNewEntryTypeFieldsL( aNewEventType );
   824     // after changing the event type, update the fields with default values
   824 	    iUnifiedEditor.SetEntryType( aNewEventType );
   825     InitDefaultEditorsL();
   825 	
   826     SetDataToEditorL();
   826 	    // after changing the event type, update the fields with default values
   827     
   827 	    InitDefaultEditorsL();
   828     iUnifiedEditor.UpdateFormL();
   828 	    SetDataToEditorL();
       
   829 	    
       
   830 	    iUnifiedEditor.UpdateFormL();
       
   831 	  	}
   829     
   832     
   830     TRACE_EXIT_POINT;
   833     TRACE_EXIT_POINT;
   831     }
   834     }
   832 
   835 
   833 // -----------------------------------------------------------------------------
   836 // -----------------------------------------------------------------------------