142 // ----------------------------------------------------------------------------- |
142 // ----------------------------------------------------------------------------- |
143 // CCalenUnifiedEditorControl::SetDataToEditorL |
143 // CCalenUnifiedEditorControl::SetDataToEditorL |
144 // Set data to the collapsed unified editor |
144 // Set data to the collapsed unified editor |
145 // ----------------------------------------------------------------------------- |
145 // ----------------------------------------------------------------------------- |
146 // |
146 // |
147 void CCalenUnifiedEditorControl::SetDataToEditorL() |
147 void CCalenUnifiedEditorControl::SetDataToEditorL(TBool onLocaleUpdate) |
148 { |
148 { |
149 TRACE_ENTRY_POINT; |
149 TRACE_ENTRY_POINT; |
150 |
150 |
151 // Set Editor field values |
151 // Set Editor field values |
152 |
152 |
153 // Set data to EventType fields |
153 // Set data to EventType fields |
154 iEventTypeField->SetDataToEditorL(); |
154 iEventTypeField->SetDataToEditorL(); |
155 |
155 |
156 TPtrC subject = iUnifiedEditor.Edited().Summary().Left( |
156 TPtrC subject = iUnifiedEditor.Edited().Summary().Left( |
157 iUnifiedEditor.MaxTextEditorLength() ); |
157 iUnifiedEditor.MaxTextEditorLength() ); |
158 iUnifiedEditor.SetEditorTextL( ECalenEditorSubject, &subject ); |
158 |
|
159 if(!onLocaleUpdate) |
|
160 iUnifiedEditor.SetEditorTextL( ECalenEditorSubject, &subject ); |
159 |
161 |
160 |
162 |
161 |
163 |
162 // update duration for EndTime update, with StartTime change |
164 // update duration for EndTime update, with StartTime change |
163 UpdateMeetingDurationL(); |
165 UpdateMeetingDurationL(); |
244 |
246 |
245 if( CCalEntry::ETodo != iUnifiedEditor.GetEntryType() ) |
247 if( CCalEntry::ETodo != iUnifiedEditor.GetEntryType() ) |
246 { |
248 { |
247 TPtrC location = iUnifiedEditor.Edited().Location().Left( |
249 TPtrC location = iUnifiedEditor.Edited().Location().Left( |
248 iUnifiedEditor.MaxTextEditorLength() ); |
250 iUnifiedEditor.MaxTextEditorLength() ); |
249 iUnifiedEditor.SetEditorTextL( ECalenEditorPlace, &location ); |
251 |
|
252 if(!onLocaleUpdate) |
|
253 iUnifiedEditor.SetEditorTextL( ECalenEditorPlace, &location ); |
250 } |
254 } |
251 |
255 |
252 // TODO: Uncomment this when enabling attachment support |
256 // TODO: Uncomment this when enabling attachment support |
253 iUnifiedEditor.SetAttachmentNamesToEditorL(); |
257 iUnifiedEditor.SetAttachmentNamesToEditorL(); |
254 |
258 |
1429 ECalenEditorRepeatUntil, ECalenEditorRepeat ); |
1433 ECalenEditorRepeatUntil, ECalenEditorRepeat ); |
1430 |
1434 |
1431 } |
1435 } |
1432 |
1436 |
1433 iUnifiedEditor.TryChangeFocusToL( lastFocusedItem ); |
1437 iUnifiedEditor.TryChangeFocusToL( lastFocusedItem ); |
1434 SetDataToEditorL(); |
1438 SetDataToEditorL(ETrue); |
1435 iUnifiedEditor.UpdateFormL(); |
1439 iUnifiedEditor.UpdateFormL(); |
1436 TRACE_EXIT_POINT; |
1440 TRACE_EXIT_POINT; |
1437 } |
1441 } |
1438 |
1442 |
1439 TInt CCalenUnifiedEditorControl::GetCalendarIndexForEntryL() |
1443 TInt CCalenUnifiedEditorControl::GetCalendarIndexForEntryL() |