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 // ----------------------------------------------------------------------------- |