|
1 /* |
|
2 * Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <eikdialg.h> |
|
20 #include <eikfpne.h> // reincluded |
|
21 #include <eiktxlbx.h> |
|
22 #include <eikon.hrh> |
|
23 #include <badesca.h> |
|
24 #include <coemain.h> |
|
25 #include <eikcapca.h> |
|
26 #include <eikcapc.h> |
|
27 #include <eiklabel.h> |
|
28 #include <eikedwin.h> |
|
29 #include <eikrted.h> |
|
30 #include <eikmfne.h> |
|
31 #include <eikseced.h> |
|
32 |
|
33 |
|
34 /** |
|
35 * @deprecated |
|
36 */ |
|
37 EXPORT_C void CEikDialog::SetListBoxCurrentItem(TInt aControlId, TInt aItem) |
|
38 { |
|
39 CEikTextListBox* listBox=(CEikTextListBox*)Control(aControlId); |
|
40 listBox->SetCurrentItemIndex(aItem); |
|
41 listBox->DrawNow(); |
|
42 } |
|
43 |
|
44 /** |
|
45 * @deprecated |
|
46 */ |
|
47 EXPORT_C TInt CEikDialog::ListBoxCurrentItem(TInt aControlId) const |
|
48 { |
|
49 return ((CEikTextListBox*)Control(aControlId))->CurrentItemIndex(); |
|
50 } |
|
51 |
|
52 /** |
|
53 * @deprecated |
|
54 */ |
|
55 EXPORT_C void CEikDialog::DeclareAutoTextEditorL(TInt aId,TDes* aText) |
|
56 { |
|
57 DeclareItemAuto(aId,EEikCtEdwin,aText); |
|
58 SetEdwinTextL(aId,aText); |
|
59 } |
|
60 |
|
61 /** |
|
62 * @deprecated |
|
63 */ |
|
64 EXPORT_C void CEikDialog::DeclareAutoNumberEditor(TInt aId,TInt* aNumber) |
|
65 { |
|
66 DeclareItemAuto(aId,EEikCtNumberEditor,aNumber); |
|
67 SetNumberEditorValue(aId,*aNumber); |
|
68 } |
|
69 |
|
70 /** |
|
71 * @deprecated |
|
72 */ |
|
73 EXPORT_C void CEikDialog::DeclareAutoRangeEditor(TInt aId,SEikRange* aRange) |
|
74 { |
|
75 DeclareItemAuto(aId,EEikCtRangeEditor,aRange); |
|
76 SetRangeEditorValue(aId,*aRange); |
|
77 } |
|
78 |
|
79 /** |
|
80 * @deprecated |
|
81 */ |
|
82 EXPORT_C void CEikDialog::DeclareAutoTimeEditor(TInt aId,TTime* aTime) |
|
83 { |
|
84 DeclareItemAuto(aId,EEikCtTimeEditor,aTime); |
|
85 SetTTimeEditorValue(aId,*aTime); |
|
86 } |
|
87 |
|
88 /** |
|
89 * @deprecated |
|
90 */ |
|
91 EXPORT_C void CEikDialog::DeclareAutoDateEditor(TInt aId,TTime* aDate) |
|
92 { |
|
93 DeclareItemAuto(aId,EEikCtDateEditor,aDate); |
|
94 SetTTimeEditorValue(aId,*aDate); |
|
95 } |
|
96 |
|
97 /** |
|
98 * @deprecated |
|
99 */ |
|
100 EXPORT_C void CEikDialog::DeclareAutoTimeAndDateEditor(TInt aId,TTime* aTimeAndDate) |
|
101 { |
|
102 DeclareItemAuto(aId,EEikCtTimeAndDateEditor,aTimeAndDate); |
|
103 SetTTimeEditorValue(aId,*aTimeAndDate); |
|
104 } |
|
105 |
|
106 /** |
|
107 * @deprecated |
|
108 */ |
|
109 EXPORT_C void CEikDialog::DeclareAutoDurationEditor(TInt aId,TTimeIntervalSeconds* aDuration) |
|
110 { |
|
111 DeclareItemAuto(aId,EEikCtDurationEditor,aDuration); |
|
112 SetDurationEditorValue(aId,*aDuration); |
|
113 } |
|
114 |
|
115 /** |
|
116 * @deprecated |
|
117 */ |
|
118 EXPORT_C void CEikDialog::DeclareAutoTimeOffsetEditor(TInt aId,TTimeIntervalSeconds* aTimeOffset) |
|
119 { |
|
120 DeclareItemAuto(aId,EEikCtTimeOffsetEditor,aTimeOffset); |
|
121 SetTimeOffsetEditorValue(aId,*aTimeOffset); |
|
122 } |
|
123 |
|
124 /** |
|
125 * @deprecated |
|
126 */ |
|
127 /*EXPORT_C void CEikDialog::DeclareAutoLatitudeEditor(TInt aId,SEikDegreesMinutesDirection* aLatitude) |
|
128 { |
|
129 DeclareItemAuto(aId,EEikCtLatitudeEditor,aLatitude); |
|
130 SetLatitudeEditorValue(aId,*aLatitude); |
|
131 } |
|
132 */ |
|
133 /** |
|
134 * @deprecated |
|
135 */ |
|
136 /*EXPORT_C void CEikDialog::DeclareAutoLongitudeEditor(TInt aId,SEikDegreesMinutesDirection* aLongitude) |
|
137 { |
|
138 DeclareItemAuto(aId,EEikCtLongitudeEditor,aLongitude); |
|
139 SetLongitudeEditorValue(aId,*aLongitude); |
|
140 } |
|
141 */ |
|
142 /** |
|
143 * @deprecated |
|
144 */ |
|
145 EXPORT_C void CEikDialog::DeclareAutoFixedPointEditor(TInt aId,TInt* aValue) |
|
146 { |
|
147 DeclareItemAuto(aId,EEikCtFxPtEd,aValue); |
|
148 TRAP_IGNORE(SetFixedPointEditorValueL(aId,*aValue)); |
|
149 } |
|
150 |
|
151 /** |
|
152 * @deprecated |
|
153 */ |
|
154 EXPORT_C void CEikDialog::DeclareAutoSecretEditor(TInt aId,TDes* aText) |
|
155 { |
|
156 DeclareItemAuto(aId,EEikCtSecretEd,aText); |
|
157 } |
|
158 |
|
159 |
|
160 /** |
|
161 * @deprecated |
|
162 */ |
|
163 //stay |
|
164 EXPORT_C void CEikDialog::AddAutoTextEditorL(const TDesC& aPrompt,TInt aId,TInt aFlags,TInt aWidthInChars,TInt aNoOfLines,TDes* aReturn) |
|
165 { |
|
166 CEikEdwin* edwin=(CEikEdwin*)CreateLineByTypeL(aPrompt,aId,EEikCtEdwin,aReturn); |
|
167 edwin->ConstructL(aFlags,aWidthInChars,aReturn->MaxLength(),aNoOfLines); |
|
168 edwin->SetTextL(aReturn); |
|
169 } |
|
170 |
|
171 /** |
|
172 * @deprecated |
|
173 */ |
|
174 EXPORT_C void CEikDialog::AddAutoGlobalTextEditorL(const TDesC& aPrompt,TInt aId,TInt aFlags,TInt aWidthInChars,TInt aNoOfLines,TInt aTextLimit,CGlobalText* aReturn,TInt aFontControlFlags,TInt aFontNameFlags) |
|
175 { |
|
176 CEikGlobalTextEditor* gtEditor=(CEikGlobalTextEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtGlobalTextEditor,aReturn); |
|
177 gtEditor->ConstructL(this,aNoOfLines,aTextLimit,aFlags,aFontControlFlags,aFontNameFlags); |
|
178 gtEditor->CalculateWidth(aWidthInChars); |
|
179 CEikEdwin::TSetContent content=(aFlags&CEikEdwin::EUserSuppliedText? CEikEdwin::EUseText : CEikEdwin::ECopyText); |
|
180 gtEditor->SetDocumentContentL(*aReturn,content); |
|
181 } |
|
182 |
|
183 /** |
|
184 * @deprecated |
|
185 */ |
|
186 EXPORT_C void CEikDialog::AddAutoRichTextEditorL(const TDesC& aPrompt,TInt aId,TInt aFlags,TInt aWidthInChars,TInt aNoOfLines,TInt aTextLimit,CGlobalText* aReturn,TInt aFontControlFlags,TInt aFontNameFlags) |
|
187 { |
|
188 CEikRichTextEditor* rtEditor=(CEikRichTextEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtRichTextEditor,aReturn); |
|
189 rtEditor->ConstructL(this,aNoOfLines,aTextLimit,aFlags,aFontControlFlags,aFontNameFlags); |
|
190 rtEditor->CalculateWidth(aWidthInChars); |
|
191 CEikEdwin::TSetContent content=(aFlags&CEikEdwin::EUserSuppliedText? CEikEdwin::EUseText : CEikEdwin::ECopyText); |
|
192 rtEditor->SetDocumentContentL(*aReturn,content); |
|
193 } |
|
194 |
|
195 /** |
|
196 * @deprecated |
|
197 */ |
|
198 //stay |
|
199 EXPORT_C void CEikDialog::AddAutoNumberEditorL(const TDesC& aPrompt,TInt aId,TInt aMin,TInt aMax,TInt* aReturn) |
|
200 { |
|
201 CEikNumberEditor* numEd=(CEikNumberEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtNumberEditor,aReturn); |
|
202 numEd->ConstructL(aMin,aMax,*aReturn); |
|
203 } |
|
204 |
|
205 /** |
|
206 * @deprecated |
|
207 */ |
|
208 EXPORT_C void CEikDialog::AddAutoRangeEditorL(const TDesC& aPrompt,TInt aId,TInt aMin,TInt aMax,HBufC* aSeparatorText,SEikRange* aReturn) |
|
209 { |
|
210 CEikRangeEditor* rangeEd=(CEikRangeEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtRangeEditor,aReturn); |
|
211 rangeEd->ConstructL(aMin,aMax,*aReturn, aSeparatorText); |
|
212 } |
|
213 |
|
214 /** |
|
215 * @deprecated |
|
216 */ |
|
217 EXPORT_C void CEikDialog::AddAutoTimeEditorL(const TDesC& aPrompt,TInt aId,const TTime& aMin,const TTime& aMax,TBool aNoSeconds,TTime* aReturn) |
|
218 { |
|
219 CEikTimeEditor* timeEd = (CEikTimeEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtTimeEditor,aReturn); |
|
220 timeEd->ConstructL(aMin,aMax,*aReturn,aNoSeconds); |
|
221 } |
|
222 |
|
223 /** |
|
224 * @deprecated |
|
225 */ |
|
226 EXPORT_C void CEikDialog::AddAutoDateEditorL(const TDesC& aPrompt,TInt aId,const TTime& aMin,const TTime& aMax, TBool aNoPopout,TTime* aReturn) |
|
227 { |
|
228 CEikDateEditor* dateEd = (CEikDateEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtDateEditor,aReturn); |
|
229 dateEd->ConstructL(aMin,aMax,*aReturn,aNoPopout); |
|
230 } |
|
231 |
|
232 /** |
|
233 * @deprecated |
|
234 */ |
|
235 EXPORT_C void CEikDialog::AddAutoTimeAndDateEditorL(const TDesC& aPrompt,TInt aId,const TTime& aMin,const TTime& aMax,TBool aNoSeconds,TBool aNoPopout,HBufC* aInterveningText,TTime* aReturn) |
|
236 { |
|
237 TUint32 flags=0; |
|
238 if(aNoSeconds) |
|
239 flags|=EEikTimeWithoutSecondsField; |
|
240 if(aNoPopout) |
|
241 flags|=EEikDateWithoutPopoutCalendar; |
|
242 CEikTimeAndDateEditor* timeAndDateEd = (CEikTimeAndDateEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtTimeAndDateEditor,aReturn); |
|
243 timeAndDateEd->ConstructL(aMin,aMax,*aReturn,flags,aInterveningText); |
|
244 } |
|
245 |
|
246 /** |
|
247 * @deprecated |
|
248 */ |
|
249 EXPORT_C void CEikDialog::AddAutoDurationEditorL(const TDesC& aPrompt,TInt aId,const TTimeIntervalSeconds& aMin,const TTimeIntervalSeconds& aMax,TBool aNoSeconds,TTimeIntervalSeconds* aReturn) |
|
250 { |
|
251 CEikDurationEditor* durationEd = (CEikDurationEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtDurationEditor,aReturn); |
|
252 durationEd->ConstructL(aMin,aMax,*aReturn,aNoSeconds); |
|
253 } |
|
254 |
|
255 /** |
|
256 * @deprecated |
|
257 */ |
|
258 EXPORT_C void CEikDialog::AddAutoTimeOffsetEditorL(const TDesC& aPrompt,TInt aId,const TTimeIntervalSeconds& aMin,const TTimeIntervalSeconds& aMax,TBool aNoSeconds,TTimeIntervalSeconds* aReturn) |
|
259 { |
|
260 CEikTimeOffsetEditor* timeOffsetEd = (CEikTimeOffsetEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtTimeOffsetEditor,aReturn); |
|
261 timeOffsetEd->ConstructL(aMin,aMax,*aReturn,aNoSeconds); |
|
262 } |
|
263 |
|
264 /** |
|
265 * @deprecated |
|
266 */ |
|
267 /*EXPORT_C void CEikDialog::AddAutoLatitudeEditorL(const TDesC& aPrompt,TInt aId,HBufC* aDegreeSign,HBufC* aMinuteSign, |
|
268 HBufC* aSecondSign,HBufC* aTextForNorth,TChar aKeyToMatchForNorth, |
|
269 HBufC* aTextForSouth,TChar aKeyToMatchForSouth, |
|
270 SEikDegreesMinutesDirection* aReturn,TInt aFlags) |
|
271 { |
|
272 CEikLatitudeEditor* latitudeEd = (CEikLatitudeEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtLatitudeEditor,aReturn); |
|
273 latitudeEd->ConstructL(aDegreeSign,aMinuteSign,aSecondSign,aTextForNorth,aKeyToMatchForNorth,aTextForSouth,aKeyToMatchForSouth,*aReturn,aFlags); |
|
274 } |
|
275 */ |
|
276 /** |
|
277 * @deprecated |
|
278 */ |
|
279 /*EXPORT_C void CEikDialog::AddAutoLongitudeEditorL(const TDesC& aPrompt,TInt aId,HBufC* aDegreeSign,HBufC* aMinuteSign, |
|
280 HBufC* aSecondSign,HBufC* aTextForEast,TChar aKeyToMatchForEast, |
|
281 HBufC* aTextForWest,TChar aKeyToMatchForWest, |
|
282 SEikDegreesMinutesDirection* aReturn,TInt aFlags) |
|
283 { |
|
284 CEikLongitudeEditor* longitudeEd = (CEikLongitudeEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtLongitudeEditor,aReturn); |
|
285 longitudeEd->ConstructL(aDegreeSign,aMinuteSign,aSecondSign,aTextForEast,aKeyToMatchForEast,aTextForWest,aKeyToMatchForWest,*aReturn,aFlags); |
|
286 } |
|
287 */ |
|
288 /** |
|
289 * @deprecated |
|
290 */ |
|
291 EXPORT_C void CEikDialog::AddAutoFloatEditorL(const TDesC& aPrompt,TInt aId,const TReal& aMin,const TReal& aMax,TReal* aReturn) |
|
292 { |
|
293 /* Reversed Build Thinning, reincluded eliminated CEikFixedPointEditor(EikCtl) */ |
|
294 CEikFloatingPointEditor* flPtEd=(CEikFloatingPointEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtFlPtEd,aReturn); |
|
295 flPtEd->ConstructL(aMin,aMax,18); |
|
296 flPtEd->SetValueL(aReturn); |
|
297 } |
|
298 |
|
299 /** |
|
300 * @deprecated |
|
301 */ |
|
302 EXPORT_C void CEikDialog::AddAutoFixedPointEditorL(const TDesC& aPrompt,TInt aId,TInt aMin,TInt aMax,TInt* aRetValue,TInt aDecimalPlaces) |
|
303 { |
|
304 /* Reversed Build Thinning, reincluded eliminated CEikFixedPointEditor(EikCtl) */ |
|
305 CEikFixedPointEditor* fixedEd = (CEikFixedPointEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtFxPtEd,aRetValue); |
|
306 fixedEd->ConstructL(aMin,aMax); |
|
307 fixedEd->SetDecimalPlaces(aDecimalPlaces); |
|
308 fixedEd->SetValueL(aRetValue); |
|
309 } |
|
310 |
|
311 /** |
|
312 * @deprecated |
|
313 */ |
|
314 EXPORT_C void CEikDialog::AddAutoSecretEditorL(const TDesC& aPrompt,TInt aId,TDes* aReturn) |
|
315 { |
|
316 CEikSecretEditor* secEd = (CEikSecretEditor*)CreateLineByTypeL(aPrompt,aId,EEikCtSecretEd,aReturn); |
|
317 secEd->SetMaxLength(aReturn->MaxLength()); |
|
318 } |
|
319 |
|
320 /** |
|
321 * @deprecated |
|
322 */ |
|
323 EXPORT_C void CEikDialog::SetLabelL(TInt aControlId, const TDesC& aDes) |
|
324 { |
|
325 CEikLabel* label=(CEikLabel*)Control(aControlId); |
|
326 label->SetTextL(aDes); |
|
327 label->DrawNow(); |
|
328 } |
|
329 |
|
330 /** |
|
331 * @deprecated |
|
332 */ |
|
333 EXPORT_C void CEikDialog::SetLabelL(TInt aControlId, TInt aResourceId) |
|
334 { |
|
335 HBufC* tmp=iCoeEnv->AllocReadResourceLC(aResourceId); |
|
336 SetLabelL(aControlId,tmp->Des()); |
|
337 CleanupStack::PopAndDestroy(); // tmp |
|
338 } |
|
339 |
|
340 /** |
|
341 * @deprecated |
|
342 */ |
|
343 EXPORT_C void CEikDialog::SetLabelReserveLengthL(TInt aControlId, TInt aLength) |
|
344 { |
|
345 ((CEikLabel*)Control(aControlId))->SetBufferReserveLengthL(aLength); |
|
346 } |
|
347 |
|
348 /** |
|
349 * @deprecated |
|
350 */ |
|
351 EXPORT_C void CEikDialog::GetLabelText(TDes& aDes, TInt aControlId) const |
|
352 { |
|
353 aDes.Copy(*(((CEikLabel*)Control(aControlId))->Text())); |
|
354 } |
|
355 |
|
356 /** |
|
357 * @deprecated |
|
358 */ |
|
359 EXPORT_C void CEikDialog::SetEdwinTextL(TInt aControlId, const TDesC* aDes) |
|
360 { |
|
361 CEikEdwin* edwin=(CEikEdwin*)Control(aControlId); |
|
362 edwin->SetTextL(aDes); |
|
363 edwin->DrawNow(); |
|
364 } |
|
365 |
|
366 /** |
|
367 * @deprecated |
|
368 */ |
|
369 EXPORT_C void CEikDialog::GetEdwinText(TDes& aDes,TInt aControlId) const |
|
370 { |
|
371 ((CEikEdwin*)Control(aControlId))->GetText(aDes); |
|
372 } |
|
373 |
|
374 /** |
|
375 * @deprecated |
|
376 */ |
|
377 EXPORT_C void CEikDialog::SetTextEditorTextL(TInt aControlId,const CGlobalText* aGlobalText) |
|
378 { |
|
379 CEikGlobalTextEditor* editor=(CEikGlobalTextEditor*)Control(aControlId); |
|
380 editor->SetDocumentContentL(*((CGlobalText*)aGlobalText)); //const cast due to edwin function |
|
381 editor->DrawNow(); |
|
382 } |
|
383 |
|
384 /** |
|
385 * @deprecated |
|
386 */ |
|
387 EXPORT_C void CEikDialog::GetTextEditorText(CGlobalText*& aGlobalText,TInt aControlId) |
|
388 { |
|
389 aGlobalText=((CEikGlobalTextEditor*)Control(aControlId))->GlobalText(); |
|
390 } |
|
391 |
|
392 /** |
|
393 * @deprecated |
|
394 */ |
|
395 EXPORT_C void CEikDialog::ResetSecretEditor(TInt aControlId) |
|
396 { |
|
397 ((CEikSecretEditor*)Control(aControlId))->Reset(); |
|
398 } |
|
399 |
|
400 /** |
|
401 * @deprecated |
|
402 */ |
|
403 EXPORT_C void CEikDialog::GetSecretEditorText(TDes& aDes,TInt aControlId) const |
|
404 { |
|
405 ((CEikSecretEditor*)Control(aControlId))->GetText(aDes); |
|
406 } |
|
407 |
|
408 /** |
|
409 * @deprecated |
|
410 */ |
|
411 EXPORT_C void CEikDialog::SetFloatingPointEditorValueL(TInt aControlId,const TReal* aValue) |
|
412 { |
|
413 /* Reversed Build Thinning, reincluded eliminated CEikFloatingPointEditor(EikCtl) */ |
|
414 CEikFloatingPointEditor* fltPtEd=(CEikFloatingPointEditor*)Control(aControlId); |
|
415 fltPtEd->SetValueL(aValue); |
|
416 fltPtEd->DrawNow(); |
|
417 } |
|
418 |
|
419 /** |
|
420 * @deprecated |
|
421 */ |
|
422 EXPORT_C TReal CEikDialog::FloatingPointEditorValue(TInt aControlId) const |
|
423 { |
|
424 /* Reversed Build Thinning, reincluded eliminated CEikFloatingPointEditor(EikCtl) */ |
|
425 return ((CEikFloatingPointEditor*)Control(aControlId))->Value(); |
|
426 } |
|
427 |
|
428 /** |
|
429 * @deprecated |
|
430 */ |
|
431 EXPORT_C void CEikDialog::SetFixedPointEditorValueL(TInt aControlId,TInt aValue) |
|
432 { |
|
433 /* Reversed Build Thinning, reincluded eliminated CEikFixedPointEditor(EikCtl) */ |
|
434 CEikFixedPointEditor* fixPtEd=(CEikFixedPointEditor*)Control(aControlId); |
|
435 fixPtEd->SetValueL(&aValue); |
|
436 fixPtEd->DrawNow(); |
|
437 } |
|
438 |
|
439 /** |
|
440 * @deprecated |
|
441 */ |
|
442 EXPORT_C TInt CEikDialog::FixedPointEditorValue(TInt aControlId) const |
|
443 { |
|
444 /* Reversed Build Thinning, reincluded eliminated CEikFixedPointEditor(EikCtl) */ |
|
445 return ((CEikFixedPointEditor*)Control(aControlId))->Value(); |
|
446 } |
|
447 /** |
|
448 * @deprecated |
|
449 */ |
|
450 EXPORT_C void CEikDialog::SetFixedPointEditorDecimal(TInt aControlId,TInt aDecimal) |
|
451 { |
|
452 /* Reversed Build Thinning, reincluded eliminated CEikFixedPointEditor(EikCtl) */ |
|
453 ((CEikFixedPointEditor*)Control(aControlId))->SetDecimalPlaces(aDecimal); |
|
454 } |
|
455 |
|
456 /** |
|
457 * @deprecated |
|
458 */ |
|
459 EXPORT_C TInt CEikDialog::FixedPointEditorDecimal(TInt aControlId) const |
|
460 { |
|
461 /* Reversed Build Thinning, reincluded eliminated CEikFixedPointEditor(EikCtl) */ |
|
462 return STATIC_CAST(CEikFixedPointEditor*,Control(aControlId))->DecimalPlaces(); |
|
463 } |
|
464 |
|
465 /** |
|
466 * @deprecated |
|
467 */ |
|
468 EXPORT_C void CEikDialog::SetNumberEditorMinAndMax(TInt aControlId, TInt aMinimumValue, TInt aMaximumValue) |
|
469 { |
|
470 CEikNumberEditor* numberEditor=(CEikNumberEditor*)Control(aControlId); |
|
471 numberEditor->SetMinimumAndMaximum(aMinimumValue, aMaximumValue); |
|
472 numberEditor->DrawNow(); |
|
473 } |
|
474 |
|
475 /** |
|
476 * @deprecated |
|
477 */ |
|
478 EXPORT_C void CEikDialog::SetNumberEditorValue(TInt aControlId, TInt aNumber) |
|
479 { |
|
480 CEikNumberEditor* numberEditor=(CEikNumberEditor*)Control(aControlId); |
|
481 numberEditor->SetNumber(aNumber); |
|
482 numberEditor->DrawNow(); |
|
483 } |
|
484 |
|
485 /** |
|
486 * @deprecated |
|
487 */ |
|
488 EXPORT_C TInt CEikDialog::NumberEditorValue(TInt aControlId) const |
|
489 { |
|
490 return ((CEikNumberEditor*)Control(aControlId))->Number(); |
|
491 } |
|
492 |
|
493 /** |
|
494 * @deprecated |
|
495 */ |
|
496 EXPORT_C void CEikDialog::SetFloatEditorMinAndMax(TInt aControlId,TInt aMin,TInt aMax) |
|
497 { |
|
498 /* Reversed Build Thinning, reincluded eliminated CEikFloatingPointEditor(EikCtl) */ |
|
499 CEikFloatingPointEditor* floatEditor=(CEikFloatingPointEditor*)Control(aControlId); |
|
500 floatEditor->SetMinMax(aMin,aMax); |
|
501 floatEditor->DrawNow(); |
|
502 } |
|
503 |
|
504 /** |
|
505 * @deprecated |
|
506 */ |
|
507 EXPORT_C void CEikDialog::SetFloatEditorValueL(TInt aControlId,TReal aFloat) |
|
508 { |
|
509 /* Reversed Build Thinning, reincluded eliminated CEikFloatingPointEditor(EikCtl) */ |
|
510 CEikFloatingPointEditor* floatEditor=(CEikFloatingPointEditor*)Control(aControlId); |
|
511 floatEditor->SetValueL(&aFloat); |
|
512 floatEditor->DrawNow(); |
|
513 } |
|
514 |
|
515 /** |
|
516 * @deprecated |
|
517 */ |
|
518 EXPORT_C TReal CEikDialog::FloatEditorValue(TInt aControlId) const |
|
519 { |
|
520 /* Reversed Build Thinning, reincluded eliminated CEikFloatingPointEditor(EikCtl) */ |
|
521 return ((CEikFloatingPointEditor*)Control(aControlId))->Value(); |
|
522 } |
|
523 |
|
524 /** |
|
525 * @deprecated |
|
526 */ |
|
527 EXPORT_C void CEikDialog::SetRangeEditorMinAndMax(TInt aControlId, TInt aMinimumValue, TInt aMaximumValue) |
|
528 { |
|
529 CEikRangeEditor* rangeEditor=(CEikRangeEditor*)Control(aControlId); |
|
530 rangeEditor->SetMinimumAndMaximum(aMinimumValue, aMaximumValue); |
|
531 rangeEditor->DrawNow(); |
|
532 } |
|
533 |
|
534 /** |
|
535 * @deprecated |
|
536 */ |
|
537 EXPORT_C void CEikDialog::SetRangeEditorValue(TInt aControlId, const SEikRange& aRange) |
|
538 { |
|
539 CEikRangeEditor* rangeEditor=(CEikRangeEditor*)Control(aControlId); |
|
540 rangeEditor->SetRange(aRange); |
|
541 rangeEditor->DrawNow(); |
|
542 } |
|
543 |
|
544 /** |
|
545 * @deprecated |
|
546 */ |
|
547 EXPORT_C SEikRange CEikDialog::RangeEditorValue(TInt aControlId) const |
|
548 { |
|
549 return ((CEikRangeEditor*)Control(aControlId))->Range(); |
|
550 } |
|
551 |
|
552 /** |
|
553 * @deprecated |
|
554 */ |
|
555 EXPORT_C void CEikDialog::SetTTimeEditorMinAndMax(TInt aControlId, const TTime& aMinimumTime, const TTime& aMaximumTime) |
|
556 { |
|
557 CEikTTimeEditor* tTimeEditor=(CEikTTimeEditor*)Control(aControlId); |
|
558 tTimeEditor->SetMinimumAndMaximum(aMinimumTime, aMaximumTime); |
|
559 tTimeEditor->DrawNow(); |
|
560 } |
|
561 |
|
562 /** |
|
563 * @deprecated |
|
564 */ |
|
565 EXPORT_C void CEikDialog::SetTTimeEditorValue(TInt aControlId, const TTime& aTime) |
|
566 { |
|
567 CEikTTimeEditor* tTimeEditor=(CEikTTimeEditor*)Control(aControlId); |
|
568 tTimeEditor->SetTTime(aTime); |
|
569 tTimeEditor->DrawNow(); |
|
570 } |
|
571 |
|
572 /** |
|
573 * @deprecated |
|
574 */ |
|
575 EXPORT_C TTime CEikDialog::TTimeEditorValue(TInt aControlId) const |
|
576 { |
|
577 return ((CEikTTimeEditor*)Control(aControlId))->GetTTime(); |
|
578 } |
|
579 |
|
580 /** |
|
581 * @deprecated |
|
582 */ |
|
583 EXPORT_C void CEikDialog::SetDurationEditorMinAndMax(TInt aControlId, const TTimeIntervalSeconds& aMinimumDuration, const TTimeIntervalSeconds& aMaximumDuration) |
|
584 { |
|
585 CEikDurationEditor* durationEditor=(CEikDurationEditor*)Control(aControlId); |
|
586 durationEditor->SetMinimumAndMaximum(aMinimumDuration, aMaximumDuration); |
|
587 durationEditor->DrawNow(); |
|
588 } |
|
589 |
|
590 /** |
|
591 * @deprecated |
|
592 */ |
|
593 EXPORT_C void CEikDialog::SetDurationEditorValue(TInt aControlId, const TTimeIntervalSeconds& aDuration) |
|
594 { |
|
595 CEikDurationEditor* durationEditor=(CEikDurationEditor*)Control(aControlId); |
|
596 durationEditor->SetDuration(aDuration); |
|
597 durationEditor->DrawNow(); |
|
598 } |
|
599 |
|
600 /** |
|
601 * @deprecated |
|
602 */ |
|
603 EXPORT_C TTimeIntervalSeconds CEikDialog::DurationEditorValue(TInt aControlId) const |
|
604 { |
|
605 return ((CEikDurationEditor*)Control(aControlId))->Duration(); |
|
606 } |
|
607 |
|
608 /** |
|
609 * @deprecated |
|
610 */ |
|
611 EXPORT_C void CEikDialog::SetTimeOffsetEditorMinAndMax(TInt aControlId, const TTimeIntervalSeconds& aMinimumTimeOffset, const TTimeIntervalSeconds& aMaximumTimeOffset) |
|
612 { |
|
613 CEikTimeOffsetEditor* timeOffsetEditor=(CEikTimeOffsetEditor*)Control(aControlId); |
|
614 timeOffsetEditor->SetMinimumAndMaximum(aMinimumTimeOffset, aMaximumTimeOffset); |
|
615 timeOffsetEditor->DrawNow(); |
|
616 } |
|
617 |
|
618 /** |
|
619 * @deprecated |
|
620 */ |
|
621 EXPORT_C void CEikDialog::SetTimeOffsetEditorValue(TInt aControlId, const TTimeIntervalSeconds& aTimeOffset) |
|
622 { |
|
623 CEikTimeOffsetEditor* timeOffsetEditor=(CEikTimeOffsetEditor*)Control(aControlId); |
|
624 timeOffsetEditor->SetTimeOffset(aTimeOffset); |
|
625 timeOffsetEditor->DrawNow(); |
|
626 } |
|
627 |
|
628 /** |
|
629 * @deprecated |
|
630 */ |
|
631 EXPORT_C TTimeIntervalSeconds CEikDialog::TimeOffsetEditorValue(TInt aControlId) const |
|
632 { |
|
633 return ((CEikTimeOffsetEditor*)Control(aControlId))->TimeOffset(); |
|
634 } |
|
635 |
|
636 /** |
|
637 * @deprecated |
|
638 */ |
|
639 /*EXPORT_C void CEikDialog::SetLatitudeEditorValue(TInt aControlId, const SEikDegreesMinutesDirection& aLatitude) |
|
640 { |
|
641 CEikLatitudeEditor* latitudeEditor=(CEikLatitudeEditor*)Control(aControlId); |
|
642 latitudeEditor->SetLatitude(aLatitude); |
|
643 latitudeEditor->DrawNow(); |
|
644 } |
|
645 */ |
|
646 /** |
|
647 * @deprecated |
|
648 */ |
|
649 /*EXPORT_C SEikDegreesMinutesDirection CEikDialog::LatitudeEditorValue(TInt aControlId) const |
|
650 { |
|
651 return ((CEikLatitudeEditor*)Control(aControlId))->Latitude(); |
|
652 } |
|
653 */ |
|
654 /** |
|
655 * @deprecated |
|
656 */ |
|
657 /*EXPORT_C void CEikDialog::SetLongitudeEditorValue(TInt aControlId, const SEikDegreesMinutesDirection& aLongitude) |
|
658 { |
|
659 CEikLongitudeEditor* longitudeEditor=(CEikLongitudeEditor*)Control(aControlId); |
|
660 longitudeEditor->SetLongitude(aLongitude); |
|
661 longitudeEditor->DrawNow(); |
|
662 } |
|
663 */ |
|
664 /** |
|
665 * @deprecated |
|
666 */ |
|
667 /*EXPORT_C SEikDegreesMinutesDirection CEikDialog::LongitudeEditorValue(TInt aControlId) const |
|
668 { |
|
669 return ((CEikLongitudeEditor*)Control(aControlId))->Longitude(); |
|
670 } |
|
671 */ |
|
672 /** |
|
673 * @deprecated |
|
674 */ |
|
675 EXPORT_C void CEikDialog::GetFileName(TFileName* /*aFileName*/,TInt /*aControlId*/) const |
|
676 {} |
|
677 |
|
678 /** |
|
679 * @deprecated |
|
680 */ |
|
681 EXPORT_C void CEikDialog::SetFileNameL(TInt /*aControlId*/, const TDesC* /*aFileName*/) |
|
682 {} |
|
683 |
|
684 /** |
|
685 * @deprecated |
|
686 */ |
|
687 EXPORT_C void CEikDialog::GetAutoValuesFromPage(CEikCapCArray* /*aLines*/) |
|
688 {} |
|
689 |
|
690 |