|
1 /* |
|
2 * Copyright (c) 2002-2004 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 |
|
20 // This header file contains the customisation implementation identity for Adaptation_Layer_AppApacLayout |
|
21 // It was generated by hand, not by layout compiler. |
|
22 // This file may be manually modified. |
|
23 // This customisation implements the interface defined in AppLayout.cdl |
|
24 |
|
25 // ___Instructions___ |
|
26 // 1. use Adaptation_Layer_AknLayout_Elaf as an example |
|
27 // 2. fill in the implementations for the global methods (see section "Adaptation Layer Implementation" below") |
|
28 // 3. do not modify KDataLookup |
|
29 // 4. then remove the "NULL, //" from the lines in KCdlImpl at the BOTTOM of this file |
|
30 // |
|
31 // Notes: |
|
32 // - if there is NULL in the bottom table, then the implementation in other CDL instance will be used (the ones generated from LAY files) |
|
33 // - ensure that the instances are in the packs in the correct order in packages.mk (with adaptation layer after LAY file instances) |
|
34 |
|
35 |
|
36 #include "Adaptation_Layer_AppApacLayout.h" |
|
37 #include "AknLayout2AdaptationDecode.h" |
|
38 #include "AknLayoutScalable_Avkon.cdl.h" |
|
39 #include "AknLayoutScalable_Apps.cdl.h" |
|
40 |
|
41 // |
|
42 // panic |
|
43 // |
|
44 |
|
45 enum TAdaptation_Layer_AppApacLayout_Panic |
|
46 { |
|
47 EParamsOutsideKnownRange, |
|
48 ELayoutLineMissing |
|
49 }; |
|
50 |
|
51 void Panic(TAdaptation_Layer_AppApacLayout_Panic aCode) |
|
52 { |
|
53 _LIT(KLayoutPanic, "Layout Avkon AppApac Adaptation Layer panic"); |
|
54 User::Panic(KLayoutPanic, aCode); |
|
55 } |
|
56 |
|
57 namespace Adaptation_Layer_AppApacLayout |
|
58 { |
|
59 |
|
60 extern const TUint KDataLookup[AppApacLayout::E_TApiId_TableSize]; |
|
61 |
|
62 |
|
63 // |
|
64 // Helpers |
|
65 // |
|
66 |
|
67 TAknLayoutTableLimits Limits() { return AknLayoutAdaptationDecode::TableLimits(KDataLookup); } |
|
68 |
|
69 TAknWindowLineLayout WindowLine0f() { return AknLayoutAdaptationDecode::WindowLine0f(KDataLookup); } |
|
70 TAknWindowLineLayout WindowTable0f(TInt aLineIndex) { return AknLayoutAdaptationDecode::WindowTable0f(KDataLookup, aLineIndex); } |
|
71 TAknWindowLineLayout WindowLine1f(TInt aParam0) { return AknLayoutAdaptationDecode::WindowLine1f(KDataLookup, aParam0); } |
|
72 |
|
73 TAknTextLineLayout TextLine0f() { return AknLayoutAdaptationDecode::TextLine0f(KDataLookup); } |
|
74 TAknTextLineLayout TextLine1f(TInt aParam0) { return AknLayoutAdaptationDecode::TextLine1f(KDataLookup, aParam0); } |
|
75 TAknTextLineLayout TextLine2f(TInt aParam0,TInt aParam1) { return AknLayoutAdaptationDecode::TextLine2f(KDataLookup, aParam0, aParam1); } |
|
76 |
|
77 TAknTextLineLayout TextTable1f(TInt aLineIndex, TInt aParam0) { return AknLayoutAdaptationDecode::TextTable1f(KDataLookup, aLineIndex, aParam0); } |
|
78 TAknTextLineLayout TextTable0f(TInt aLineIndex) { return AknLayoutAdaptationDecode::TextTable0f(KDataLookup, aLineIndex); } |
|
79 |
|
80 TAknMultiLineTextLayout MultiLineTextLine1f(TInt aParam0) { return AknLayoutAdaptationDecode::MultiLineTextLine1f(KDataLookup, aParam0); } |
|
81 TAknMultiLineTextLayout MultiLineTextLine3f(TInt aParam0,TInt aParam1,TInt aParam2) { return AknLayoutAdaptationDecode::MultiLineTextLine3f(KDataLookup, aParam0, aParam1, aParam2); } |
|
82 |
|
83 inline TAknWindowComponentLayout DoCompose(TAknWindowComponentLayout aLine1, TAknWindowComponentLayout aLine2) |
|
84 { |
|
85 return TAknWindowComponentLayout::Compose(aLine1, aLine2); |
|
86 } |
|
87 |
|
88 inline TAknTextComponentLayout DoComposeText(TAknWindowComponentLayout aLine1, TAknTextComponentLayout aLine2) |
|
89 { |
|
90 return TAknWindowComponentLayout::ComposeText(aLine1, aLine2); |
|
91 } |
|
92 |
|
93 inline TAknWindowComponentLayout DoIntersect(TAknWindowComponentLayout aLine, TAknWindowComponentLayout aLine2) |
|
94 { |
|
95 return TAknWindowComponentLayout::Intersect(aLine, aLine2); |
|
96 } |
|
97 |
|
98 inline TAknWindowComponentLayout DoMinus(TAknWindowComponentLayout aLine, TAknWindowComponentLayout aParentDiff) |
|
99 { |
|
100 return TAknWindowComponentLayout::Minus(aLine, aParentDiff); |
|
101 } |
|
102 |
|
103 |
|
104 // |
|
105 // This method returns empty TAknWindowLineLayout instance. (Filled with zeroes) |
|
106 // |
|
107 const TAknWindowLineLayoutImp KEmptyWindowLayout = {ELayoutEmpty,0,0,0,0,ELayoutEmpty,ELayoutEmpty}; |
|
108 inline const TAknWindowLineLayout& EmptyWindowLayout() |
|
109 { |
|
110 return *(TAknWindowLineLayout*)&KEmptyWindowLayout; |
|
111 } |
|
112 |
|
113 // |
|
114 // This method returns empty TAknTextLineLayout instance. (Filled with zeroes) |
|
115 // |
|
116 const TAknTextLineLayoutImp KEmptyTextLayout = {ELayoutEmpty,0,0,0,0,ELayoutEmpty,ELayoutEmpty,0,0}; |
|
117 inline const TAknTextLineLayout& EmptyTextLayout() |
|
118 { |
|
119 return *(TAknTextLineLayout*)&KEmptyTextLayout; |
|
120 } |
|
121 |
|
122 |
|
123 // |
|
124 // Adaptation Layer Implementation |
|
125 // |
|
126 |
|
127 // LAF Table : Real time view texts |
|
128 // B={50, 90} C=215 Font=EApacPlain16_Scaled J=ELayoutAlignLeft W=230 l=114 r=8 |
|
129 // Remark : City. |
|
130 // Parent : |
|
131 // Parent API : |
|
132 // Scale API match ( 0%) : |
|
133 // Scale parent match ( 0%) : |
|
134 TAknTextLineLayout Real_time_view_texts_Line_1(TInt /*aIndex_B*/) |
|
135 { |
|
136 // NOT USED |
|
137 return EmptyTextLayout(); |
|
138 } |
|
139 |
|
140 // B={82, 112, 142, 172, 122, 152, 182} C=215 Font=EApacPlain12_Scaled J=ELayoutAlignLeft W=218 l=128 r=8 |
|
141 // Remark : Country. Week day. Date. Daylight saving. |
|
142 // Parent : |
|
143 // Parent API : |
|
144 // Scale API match ( 0%) : |
|
145 // Scale parent match ( 0%) : |
|
146 TAknTextLineLayout Real_time_view_texts_Line_2(TInt /*aIndex_B*/) |
|
147 { |
|
148 // NOT USED |
|
149 return EmptyTextLayout(); |
|
150 } |
|
151 |
|
152 // B=84 C=219 Font=ELatinPlain12_Scaled J=ELayoutAlignRight W=86 l={10, 6}[aCommon1] r={256, 260}[aCommon1] |
|
153 // Remark : Digital clock shadow. |
|
154 // Parent : |
|
155 // Parent API : |
|
156 // Scale API match ( 0%) : |
|
157 // Scale parent match ( 0%) : |
|
158 TAknTextLineLayout Real_time_view_texts_Line_3(TInt /*aCommon1*/) |
|
159 { |
|
160 // NOT USED |
|
161 return EmptyTextLayout(); |
|
162 } |
|
163 |
|
164 // B=82 C=210 Font=ELatinPlain12_Scaled J=ELayoutAlignRight W=86 l={8, 4}[aCommon1] r={258, 262}[aCommon1] |
|
165 // Remark : Clock digits. |
|
166 // Parent : |
|
167 // Parent API : |
|
168 // Scale API match ( 0%) : |
|
169 // Scale parent match ( 0%) : |
|
170 TAknTextLineLayout Real_time_view_texts_Line_4(TInt /*aCommon1*/) |
|
171 { |
|
172 // NOT USED |
|
173 return EmptyTextLayout(); |
|
174 } |
|
175 |
|
176 // B=108 C=210 Font=ELatinBold12_Scaled J=ELayoutAlignRight W=72 l=18 r=262 |
|
177 // Remark : AMPM indicator. |
|
178 // Parent : |
|
179 // Parent API : |
|
180 // Scale API match ( 0%) : |
|
181 // Scale parent match ( 0%) : |
|
182 TAknTextLineLayout Real_time_view_texts_Line_5() |
|
183 { |
|
184 // NOT USED |
|
185 return EmptyTextLayout(); |
|
186 } |
|
187 |
|
188 |
|
189 // LAF Table : Alarm clock view texts |
|
190 // B=50 C=215 Font=EApacPlain16_Scaled J=ELayoutAlignLeft W=230 l=114 r=8 |
|
191 // Remark : Current timetext. |
|
192 // Parent : |
|
193 // Parent API : |
|
194 // Scale API match ( 28%) : popup_clock_analogue_window_t1 |
|
195 // Scale parent match ( 0%) : |
|
196 TAknTextLineLayout Alarm_clock_view_texts_Line_1() |
|
197 { |
|
198 // NOT USED |
|
199 return EmptyTextLayout(); |
|
200 } |
|
201 |
|
202 // B=84 C=219 Font=ELatinPlain12_Scaled J=ELayoutAlignRight W=86 l={10, 6}[aCommon1] r={256, 260}[aCommon1] |
|
203 // Remark : Digital clock shadow. |
|
204 // Parent : |
|
205 // Parent API : |
|
206 // Scale API match ( 28%) : popup_clock_analogue_window_t1 |
|
207 // Scale parent match ( 0%) : |
|
208 TAknTextLineLayout Alarm_clock_view_texts_Line_2(TInt /*aCommon1*/) |
|
209 { |
|
210 // NOT USED |
|
211 return EmptyTextLayout(); |
|
212 } |
|
213 |
|
214 // B=82 C=210 Font=ELatinPlain12_Scaled J=ELayoutAlignRight W=86 l={8, 4}[aCommon1] r={258, 262}[aCommon1] |
|
215 // Remark : Clock digits. |
|
216 // Parent : |
|
217 // Parent API : |
|
218 // Scale API match ( 28%) : popup_clock_analogue_window_t1 |
|
219 // Scale parent match ( 0%) : |
|
220 TAknTextLineLayout Alarm_clock_view_texts_Line_3(TInt /*aCommon1*/) |
|
221 { |
|
222 // NOT USED |
|
223 return EmptyTextLayout(); |
|
224 } |
|
225 |
|
226 // B=108 C=210 Font=EApacPlain12_Scaled J=ELayoutAlignRight W=72 l=18 r=262 |
|
227 // Remark : A.m.p.m. indicator. |
|
228 // Parent : |
|
229 // Parent API : |
|
230 // Scale API match ( 28%) : popup_clock_analogue_window_t1 |
|
231 // Scale parent match ( 0%) : |
|
232 TAknTextLineLayout Alarm_clock_view_texts_Line_4() |
|
233 { |
|
234 // NOT USED |
|
235 return EmptyTextLayout(); |
|
236 } |
|
237 |
|
238 // B=174 C=215 Font=EApacPlain16_Scaled J=ELayoutAlignLeft W=230 l=114 r=8 |
|
239 // Remark : AlarmNo alarm-indication text. |
|
240 // Parent : |
|
241 // Parent API : |
|
242 // Scale API match ( 28%) : popup_clock_analogue_window_t1 |
|
243 // Scale parent match ( 0%) : |
|
244 TAknTextLineLayout Alarm_clock_view_texts_Line_5() |
|
245 { |
|
246 // NOT USED |
|
247 return EmptyTextLayout(); |
|
248 } |
|
249 |
|
250 // B={206, 216} C=215 Font=EApacPlain12_Scaled J=ELayoutAlignLeft W=218 l=128 r=8 |
|
251 // Remark : Additional information. |
|
252 // Parent : |
|
253 // Parent API : |
|
254 // Scale API match ( 28%) : popup_clock_analogue_window_t1 |
|
255 // Scale parent match ( 0%) : |
|
256 TAknTextLineLayout Alarm_clock_view_texts_Line_6(TInt /*aIndex_B*/) |
|
257 { |
|
258 // NOT USED |
|
259 return EmptyTextLayout(); |
|
260 } |
|
261 |
|
262 // B=172 C=215 Font=ELatinPlain12_Scaled J=ELayoutAlignRight W=78 l=14 r=260 |
|
263 // Remark : Alarm time. |
|
264 // Parent : |
|
265 // Parent API : |
|
266 // Scale API match ( 28%) : popup_clock_analogue_window_t1 |
|
267 // Scale parent match ( 0%) : |
|
268 TAknTextLineLayout Alarm_clock_view_texts_Line_7() |
|
269 { |
|
270 // NOT USED |
|
271 return EmptyTextLayout(); |
|
272 } |
|
273 |
|
274 // B=204 C= Font=ELatinPlain12_Scaled J=ELayoutAlignRight W=72 l=20 r=260 |
|
275 // Remark : A.m.p.m. indicator. |
|
276 // Parent : |
|
277 // Parent API : |
|
278 // Scale API match ( 28%) : popup_clock_analogue_window_t1 |
|
279 // Scale parent match ( 0%) : |
|
280 TAknTextLineLayout Alarm_clock_view_texts_Line_8() |
|
281 { |
|
282 // NOT USED |
|
283 return EmptyTextLayout(); |
|
284 } |
|
285 |
|
286 |
|
287 // LAF Table : Help text bolding |
|
288 // B= C=215 Font=EApacPlain16_Scaled J= W= l= r= |
|
289 // Remark : Brackets used as text bolding effect |
|
290 // Parent : |
|
291 // Parent API : |
|
292 // Scale API match ( 25%) : list_notes_text_pane_ParamLimits |
|
293 // Scale parent match ( 0%) : |
|
294 TAknTextLineLayout Help_text_bolding_Line_1() |
|
295 { |
|
296 // NOT USED |
|
297 return EmptyTextLayout(); |
|
298 } |
|
299 |
|
300 // B= C= Font=EApacPlain16_Scaled J= W=10 l= r= |
|
301 // Remark : |
|
302 // Parent : |
|
303 // Parent API : |
|
304 // Scale API match ( 25%) : list_notes_text_pane_ParamLimits |
|
305 // Scale parent match ( 0%) : |
|
306 TAknTextLineLayout Help_text_bolding_Line_2() |
|
307 { |
|
308 // NOT USED |
|
309 return EmptyTextLayout(); |
|
310 } |
|
311 |
|
312 |
|
313 // LAF Table : Chinese Dictionary text |
|
314 // B=42 C=215 Font=EApacPlain12_Scaled J=ELayoutAlignLeft W=304 l=18 r=16 |
|
315 // Remark : Search label text. |
|
316 // Parent : |
|
317 // Parent API : |
|
318 // Scale API match ( 0%) : |
|
319 // Scale parent match ( 0%) : |
|
320 TAknTextLineLayout Chinese_Dictionary_text_Line_1() |
|
321 { |
|
322 TAknTextComponentLayout layout = AknLayoutScalable_Apps::chi_dic_find_pane_t1(); |
|
323 return layout.LayoutLine(); |
|
324 } |
|
325 |
|
326 // B=42 C=215 Font=EApacPlain12_Scaled J=ELayoutAlignLeft W=304 l=18 r= |
|
327 // Remark : Input text. |
|
328 // Parent : |
|
329 // Parent API : |
|
330 // Scale API match ( 0%) : |
|
331 // Scale parent match ( 0%) : |
|
332 TAknTextLineLayout Chinese_Dictionary_text_Line_2() |
|
333 { |
|
334 TAknTextComponentLayout layout = AknLayoutScalable_Apps::find_chidic_pane_t1(); |
|
335 return layout.LayoutLine(); |
|
336 } |
|
337 |
|
338 // B={92, 134, 176, 218, 260} C=215 Font=EApacPlain12_Scaled J=ELayoutAlignLeft W=304 l=18 r= |
|
339 // Remark : Bilingual dictionary Show candidate state. |
|
340 // Parent : |
|
341 // Parent API : |
|
342 // Scale API match ( 0%) : |
|
343 // Scale parent match ( 0%) : |
|
344 TAknTextLineLayout Chinese_Dictionary_text_Line_3(TInt /*aIndex_B*/) |
|
345 { |
|
346 // NOT USED |
|
347 return EmptyTextLayout(); |
|
348 } |
|
349 |
|
350 // B={92, 134, 176, 218, 260} C=215 Font=EApacPlain12_Scaled J=ELayoutAlignLeft W=304 l=18 r= |
|
351 // Remark : Bilingual dictionary Show result state. |
|
352 // Parent : |
|
353 // Parent API : |
|
354 // Scale API match ( 0%) : |
|
355 // Scale parent match ( 0%) : |
|
356 TAknTextLineLayout Chinese_Dictionary_text_Line_4(TInt /*aIndex_B*/) |
|
357 { |
|
358 // NOT USED |
|
359 return EmptyTextLayout(); |
|
360 } |
|
361 |
|
362 |
|
363 // LAF Table : Chinese Dictionary elements and descendant panes |
|
364 // C=221 H=274 W=344 b= l=6 r= t=6 |
|
365 // Remark : Outline frame window. |
|
366 // Parent : |
|
367 // Parent API : |
|
368 // Scale API match ( 0%) : |
|
369 // Scale parent match ( 0%) : |
|
370 TAknWindowLineLayout Chinese_Dictionary_elements_and_descendant_panes_Line_1() |
|
371 { |
|
372 // NOT USED |
|
373 return EmptyWindowLayout(); |
|
374 } |
|
375 |
|
376 // C=215 H=276 W=346 b= l=2 r= t=2 |
|
377 // Remark : Outline frame. |
|
378 // Parent : |
|
379 // Parent API : |
|
380 // Scale API match ( 0%) : |
|
381 // Scale parent match ( 0%) : |
|
382 TAknWindowLineLayout Chinese_Dictionary_elements_and_descendant_panes_Line_2() |
|
383 { |
|
384 return AknLayoutScalable_Apps::bg_popup_sub_pane_cp03().LayoutLine(); |
|
385 } |
|
386 |
|
387 // C=0 H=272 W=342 b= l=4 r= t=4 |
|
388 // Remark : Inside rectangle. |
|
389 // Parent : |
|
390 // Parent API : |
|
391 // Scale API match ( 0%) : |
|
392 // Scale parent match ( 0%) : |
|
393 TAknWindowLineLayout Chinese_Dictionary_elements_and_descendant_panes_Line_3() |
|
394 { |
|
395 // NOT USED |
|
396 return EmptyWindowLayout(); |
|
397 } |
|
398 |
|
399 // C=215 H=2 W=342 b= l=4 r= t=58 |
|
400 // Remark : Horizontal line inside the frame. |
|
401 // Parent : |
|
402 // Parent API : |
|
403 // Scale API match ( 0%) : |
|
404 // Scale parent match ( 0%) : |
|
405 TAknWindowLineLayout Chinese_Dictionary_elements_and_descendant_panes_Line_4() |
|
406 { |
|
407 // NOT USED |
|
408 return EmptyWindowLayout(); |
|
409 } |
|
410 |
|
411 // C= H=54 W=342 b= l=4 r= t=4 |
|
412 // Remark : Find pane. |
|
413 // Parent : |
|
414 // Parent API : |
|
415 // Scale API match (100%) : chi_dic_find_pane |
|
416 // Scale parent match ( 0%) : |
|
417 TAknWindowLineLayout chi_dic_find_pane() |
|
418 { |
|
419 TAknWindowComponentLayout layout1 = AknLayoutScalable_Apps::main_chi_dic_pane(); |
|
420 TAknWindowComponentLayout layout2 = AknLayoutScalable_Apps::chi_dic_find_pane(); |
|
421 return DoCompose(layout1, layout2).LayoutLine(); |
|
422 } |
|
423 |
|
424 // C= H=210 W=342 b= l=4 r= t=62 |
|
425 // Remark : List pane. |
|
426 // Parent : |
|
427 // Parent API : |
|
428 // Scale API match (100%) : chi_dic_list_pane |
|
429 // Scale parent match ( 0%) : |
|
430 TAknWindowLineLayout chi_dic_list_pane() |
|
431 { |
|
432 TAknWindowComponentLayout layout1 = AknLayoutScalable_Apps::main_chi_dic_pane(); |
|
433 TAknWindowComponentLayout layout2 = AknLayoutScalable_Apps::listscroll_chi_dic_pane(); |
|
434 TAknWindowComponentLayout layout3 = AknLayoutScalable_Apps::chi_dic_list_pane(1); |
|
435 return DoCompose(layout1, DoCompose(layout2, layout3)).LayoutLine(); |
|
436 } |
|
437 |
|
438 |
|
439 // LAF Table : Incoming video call pop-up window texts |
|
440 // B={52, 88}[aCommon1] C=215 Font=EApacPlain16_Scaled J=ELayoutAlignLeft W={262, 262, , 188, 176, 168, 160}[aCommon2] l={70, 70}[aCommon1] r={20, 20, , 94, 106, 114, 122}[aCommon2] |
|
441 // Remark : CLI and the text calling or Callif there is no CLI available. Two lines of text. Image width is 30. Image width is 36. Image width is 40. Image width is 44. |
|
442 // Parent : |
|
443 // Parent API : |
|
444 // Scale API match ( 36%) : popup_call_audio_conf_window_t1 |
|
445 // Scale parent match ( 0%) : |
|
446 TAknTextLineLayout Incoming_video_call_pop_up_window_texts_Line_1(TInt /*aCommon1*/, TInt /*aCommon2*/) |
|
447 { |
|
448 // NOT USED |
|
449 return EmptyTextLayout(); |
|
450 } |
|
451 |
|
452 |
|
453 // LAF Table : First video call pop-up window texts |
|
454 // B=38 C=0 Font=EApacPlain16_Scaled J=ELayoutAlignLeft W=262 l=70 r=20 |
|
455 // Remark : CLI. |
|
456 // Parent : |
|
457 // Parent API : |
|
458 // Scale API match ( 48%) : popup_call_audio_first_window_t1_ParamLimits |
|
459 // Scale parent match ( 0%) : |
|
460 TAknTextLineLayout First_video_call_pop_up_window_texts_Line_1() |
|
461 { |
|
462 // NOT USED |
|
463 return EmptyTextLayout(); |
|
464 } |
|
465 |
|
466 |
|
467 // LAF Table : Lunar Calendar information layout |
|
468 // B=42 C=215 Font=EApacPlain16_Scaled J=ELayoutAlignLeft W=304 l=22 r=26 |
|
469 // Remark : Heading text. |
|
470 // Parent : |
|
471 // Parent API : |
|
472 // Scale API match ( 0%) : |
|
473 // Scale parent match ( 0%) : |
|
474 TAknTextLineLayout Lunar_Calendar_information_layout_Line_1() |
|
475 { |
|
476 // NOT USED |
|
477 return EmptyTextLayout(); |
|
478 } |
|
479 |
|
480 // B={94, 138, 182} C=215 Font=EApacPlain16_Scaled J=ELayoutAlignLeft W=304 l=22 r=26 |
|
481 // Remark : Lunar Calendar information text. |
|
482 // Parent : |
|
483 // Parent API : |
|
484 // Scale API match ( 0%) : |
|
485 // Scale parent match ( 0%) : |
|
486 TAknTextLineLayout Lunar_Calendar_information_layout_Line_2(TInt aIndex_B) |
|
487 { |
|
488 TAknTextComponentLayout layout; |
|
489 switch (aIndex_B) |
|
490 { |
|
491 case 0: |
|
492 layout = AknLayoutScalable_Apps::popup_cale_lunar_info_window_t1(); |
|
493 break; |
|
494 case 1: |
|
495 layout = AknLayoutScalable_Apps::popup_cale_lunar_info_window_t2(); |
|
496 break; |
|
497 case 2: |
|
498 layout = AknLayoutScalable_Apps::popup_cale_lunar_info_window_t3(); |
|
499 break; |
|
500 default: |
|
501 layout = AknLayoutScalable_Apps::popup_cale_lunar_info_window_t1(); |
|
502 break; |
|
503 } |
|
504 return layout.LayoutLine(); |
|
505 } |
|
506 |
|
507 // B=234 C=215 Font=EApacPlain12_Scaled J=ELayoutAlignLeft W=304 l=22 r=26 |
|
508 // Remark : Solar Calendar information text. |
|
509 // Parent : |
|
510 // Parent API : |
|
511 // Scale API match ( 0%) : |
|
512 // Scale parent match ( 0%) : |
|
513 TAknTextLineLayout Lunar_Calendar_information_layout_Line_3() |
|
514 { |
|
515 return AknLayoutScalable_Apps::popup_cale_lunar_info_window_t4().LayoutLine(); |
|
516 } |
|
517 |
|
518 // C=215 H=2 W=318 b= l=14 r= t={206, 240} |
|
519 // Remark : Border lines. |
|
520 // Parent : |
|
521 // Parent API : |
|
522 // Scale API match ( 0%) : |
|
523 // Scale parent match ( 0%) : |
|
524 TAknWindowLineLayout Lunar_Calendar_Elements_Line_1(TInt aIndex_t) |
|
525 { |
|
526 TAknWindowComponentLayout layout; |
|
527 if (aIndex_t == 0) |
|
528 { |
|
529 layout = AknLayoutScalable_Apps::popup_cale_lunar_info_window_g1(); |
|
530 } |
|
531 else |
|
532 { |
|
533 layout = AknLayoutScalable_Apps::popup_cale_lunar_info_window_g2(); |
|
534 } |
|
535 return layout.LayoutLine(); |
|
536 } |
|
537 |
|
538 |
|
539 // LAF Table : Chinese Dictionary find pane text |
|
540 // B=40 C=215 Font=EApacPlain12_Scaled J=ELayoutAlignLeft W=56 l=18 r=270 |
|
541 // Remark : Search label text. |
|
542 // Parent : chi_dic_find_pane |
|
543 // Parent API : chi_dic_find_pane |
|
544 // Scale API match ( 40%) : chi_dic_find_pane_t1 |
|
545 // Scale parent match (100%) : chi_dic_find_pane |
|
546 TAknTextLineLayout Chinese_Dictionary_find_pane_text_Line_1() |
|
547 { |
|
548 return AknLayoutScalable_Apps::chi_dic_find_pane_t1().LayoutLine(); |
|
549 } |
|
550 |
|
551 // B=40 C=215 Font=EApacPlain12_Scaled J=ELayoutAlignLeft W=236 l=98 r=8 |
|
552 // Remark : Chinese input text. |
|
553 // Parent : chi_dic_find_pane |
|
554 // Parent API : chi_dic_find_pane |
|
555 // Scale API match ( 40%) : chi_dic_find_pane_t1 |
|
556 // Scale parent match (100%) : chi_dic_find_pane |
|
557 TAknTextLineLayout Chinese_Dictionary_find_pane_text_Line_2() |
|
558 { |
|
559 TAknWindowComponentLayout layout1 = AknLayoutScalable_Apps::find_chidic_pane(); |
|
560 TAknTextComponentLayout layout2 = AknLayoutScalable_Apps::find_chidic_pane_t1(); |
|
561 return DoComposeText(layout1,layout2).LayoutLine(); |
|
562 } |
|
563 |
|
564 // B=38 C=215 Font=ELatinBold13_Scaled J=ELayoutAlignLeft W=236 l=98 r=8 |
|
565 // Remark : Latin input text. |
|
566 // Parent : chi_dic_find_pane |
|
567 // Parent API : chi_dic_find_pane |
|
568 // Scale API match ( 40%) : chi_dic_find_pane_t1 |
|
569 // Scale parent match (100%) : chi_dic_find_pane |
|
570 TAknTextLineLayout Chinese_Dictionary_find_pane_text_Line_3() |
|
571 { |
|
572 // NOT USED |
|
573 return EmptyTextLayout(); |
|
574 } |
|
575 |
|
576 |
|
577 // LAF Table : List pane text |
|
578 // B=34 C=215 Font=EApacPlain12_Scaled J=ELayoutAlignLeft W=316 l=16 r=10 |
|
579 // Remark : Chinese text. |
|
580 // Parent : list_chi_dic_pane |
|
581 // Parent API : list_chi_dic_pane |
|
582 // Scale API match ( 92%) : list_notes_text_pane_t1 |
|
583 // Scale parent match (100%) : list_chi_dic_pane |
|
584 TAknTextLineLayout List_pane_text_Line_1() |
|
585 { |
|
586 return AknLayoutScalable_Apps::list_chi_dic_pane_t1(0).LayoutLine(); |
|
587 } |
|
588 |
|
589 // B=30 C=215 Font=ELatinBold13_Scaled J=ELayoutAlignLeft W=316 l=16 r=10 |
|
590 // Remark : Latin text. |
|
591 // Parent : list_chi_dic_pane |
|
592 // Parent API : list_chi_dic_pane |
|
593 // Scale API match ( 92%) : list_notes_text_pane_t1 |
|
594 // Scale parent match (100%) : list_chi_dic_pane |
|
595 TAknTextLineLayout List_pane_text_Line_2() |
|
596 { |
|
597 return AknLayoutScalable_Apps::list_chi_dic_pane_t1(0).LayoutLine(); |
|
598 } |
|
599 |
|
600 // LAF Table : |
|
601 // C=222 H=36 W=334 b= l=6 r= t=6 |
|
602 // Remark : Hightlight shadow. |
|
603 // Parent : list_chi_dic_pane |
|
604 // Parent API : list_chi_dic_pane |
|
605 // Scale API match ( 52%) : list_highlight_pane_cp02 |
|
606 // Scale parent match (100%) : list_chi_dic_pane |
|
607 TAknWindowLineLayout List_pane_highlight__chi_dic__Line_1() |
|
608 { |
|
609 // NOT USED |
|
610 return EmptyWindowLayout(); |
|
611 } |
|
612 |
|
613 // C=244 H=38 W=336 b= l=2 r= t=2 |
|
614 // Remark : Hightlight. |
|
615 // Parent : list_chi_dic_pane |
|
616 // Parent API : list_chi_dic_pane |
|
617 // Scale API match ( 52%) : list_highlight_pane_cp02 |
|
618 // Scale parent match (100%) : list_chi_dic_pane |
|
619 TAknWindowLineLayout List_pane_highlight__chi_dic__Line_2() |
|
620 { |
|
621 // NOT USED |
|
622 return EmptyWindowLayout(); |
|
623 } |
|
624 |
|
625 |
|
626 // LAF Table : Chinese Dictionary find pane elements |
|
627 // C=215 H=46 W=252 b= l=88 r= t=4 |
|
628 // Remark : Outline frame. |
|
629 // Parent : chi_dic_find_pane |
|
630 // Parent API : chi_dic_find_pane |
|
631 // Scale API match ( 33%) : chi_dic_find_pane_t1 |
|
632 // Scale parent match (100%) : chi_dic_find_pane |
|
633 TAknWindowLineLayout Chinese_Dictionary_find_pane_elements_Line_1() |
|
634 { |
|
635 return AknLayoutScalable_Apps::find_chidic_pane().LayoutLine(); |
|
636 } |
|
637 |
|
638 // C=221 H=42 W=2 b= l=90 r= t=6 |
|
639 // Remark : Vertical shadow inside the find box frame. |
|
640 // Parent : chi_dic_find_pane |
|
641 // Parent API : chi_dic_find_pane |
|
642 // Scale API match ( 33%) : chi_dic_find_pane_t1 |
|
643 // Scale parent match (100%) : chi_dic_find_pane |
|
644 TAknWindowLineLayout Chinese_Dictionary_find_pane_elements_Line_2() |
|
645 { |
|
646 // NOT USED |
|
647 return EmptyWindowLayout(); |
|
648 } |
|
649 |
|
650 // C=221 H=2 W=246 b= l=92 r= t=6 |
|
651 // Remark : Horizontal shadow inside the find box frame. |
|
652 // Parent : chi_dic_find_pane |
|
653 // Parent API : chi_dic_find_pane |
|
654 // Scale API match ( 33%) : chi_dic_find_pane_t1 |
|
655 // Scale parent match (100%) : chi_dic_find_pane |
|
656 TAknWindowLineLayout Chinese_Dictionary_find_pane_elements_Line_3() |
|
657 { |
|
658 // NOT USED |
|
659 return EmptyWindowLayout(); |
|
660 } |
|
661 |
|
662 |
|
663 // LAF Table : List pane placing (chi,dic) |
|
664 // C= H=42 W=342 b= l=0 r= t={0, 42, 84, 126, 168}[aNumberOfLinesShown] |
|
665 // Remark : Translation list item. |
|
666 // Parent : chi_dic_list_pane |
|
667 // Parent API : chi_dic_list_pane |
|
668 // Scale API match (100%) : list_chi_dic_pane |
|
669 // Scale parent match (100%) : chi_dic_list_pane |
|
670 TAknWindowLineLayout list_chi_dic_pane(TInt aNumberOfLinesShown) |
|
671 { |
|
672 return AknLayoutScalable_Apps::list_chi_dic_pane( aNumberOfLinesShown ).LayoutLine(); |
|
673 } |
|
674 |
|
675 |
|
676 // LAF Table : Find pane elements (pinb) |
|
677 // C= H=32 W=58 b= l=56 r= t=16 |
|
678 // Remark : Search icons of find pane. |
|
679 // Parent : |
|
680 // Parent API : |
|
681 // Scale API match ( 46%) : find_pinb_pane_t_Limits |
|
682 // Scale parent match ( 0%) : |
|
683 TAknWindowLineLayout Find_pane_elements__pinb__Line_5() |
|
684 { |
|
685 TAknWindowComponentLayout layout = AknLayoutScalable_Apps::find_pinb_pane_g2(0); |
|
686 return layout.LayoutLine(); |
|
687 } |
|
688 |
|
689 |
|
690 // |
|
691 // Lookup Table |
|
692 // This is needed for multiline texts and table decoding |
|
693 // Do not modify |
|
694 // |
|
695 |
|
696 const TUint KDataLookup[AppApacLayout::E_TApiId_TableSize] = |
|
697 { |
|
698 (TUint)&Real_time_view_texts_Line_1, |
|
699 |
|
700 0x0000, // Multiline_Real_time_view_texts_Line_1 |
|
701 |
|
702 (TUint)&Real_time_view_texts_Line_2, |
|
703 |
|
704 0x0000, // Multiline_Real_time_view_texts_Line_2 |
|
705 |
|
706 (TUint)&Real_time_view_texts_Line_3, |
|
707 |
|
708 (TUint)&Real_time_view_texts_Line_4, |
|
709 |
|
710 (TUint)&Real_time_view_texts_Line_5, |
|
711 |
|
712 0x0001, |
|
713 |
|
714 (TUint)AppApacLayout::EApiId_Real_time_view_texts_Line_1, |
|
715 |
|
716 0x0203, |
|
717 |
|
718 (TUint)AppApacLayout::EApiId_Real_time_view_texts_Line_1, |
|
719 |
|
720 (TUint)&Alarm_clock_view_texts_Line_1, |
|
721 |
|
722 (TUint)&Alarm_clock_view_texts_Line_2, |
|
723 |
|
724 (TUint)&Alarm_clock_view_texts_Line_3, |
|
725 |
|
726 (TUint)&Alarm_clock_view_texts_Line_4, |
|
727 |
|
728 (TUint)&Alarm_clock_view_texts_Line_5, |
|
729 |
|
730 (TUint)&Alarm_clock_view_texts_Line_6, |
|
731 |
|
732 0x0000, // Multiline_Alarm_clock_view_texts_Line_6 |
|
733 |
|
734 (TUint)&Alarm_clock_view_texts_Line_7, |
|
735 |
|
736 (TUint)&Alarm_clock_view_texts_Line_8, |
|
737 |
|
738 0x0102, |
|
739 |
|
740 (TUint)AppApacLayout::EApiId_Alarm_clock_view_texts_Line_1, |
|
741 |
|
742 0x0304, |
|
743 |
|
744 (TUint)AppApacLayout::EApiId_Alarm_clock_view_texts_Line_1, |
|
745 |
|
746 0x0607, |
|
747 |
|
748 (TUint)AppApacLayout::EApiId_Alarm_clock_view_texts_Line_1, |
|
749 |
|
750 (TUint)&Help_text_bolding_Line_1, |
|
751 |
|
752 (TUint)&Help_text_bolding_Line_2, |
|
753 |
|
754 0x0001, |
|
755 |
|
756 (TUint)AppApacLayout::EApiId_Help_text_bolding_Line_1, |
|
757 |
|
758 (TUint)&Chinese_Dictionary_text_Line_1, |
|
759 |
|
760 (TUint)&Chinese_Dictionary_text_Line_2, |
|
761 |
|
762 (TUint)&Chinese_Dictionary_text_Line_3, |
|
763 |
|
764 0x0000, // Multiline_Chinese_Dictionary_text_Line_3 |
|
765 |
|
766 (TUint)&Chinese_Dictionary_text_Line_4, |
|
767 |
|
768 0x0000, // Multiline_Chinese_Dictionary_text_Line_4 |
|
769 |
|
770 0x0001, |
|
771 |
|
772 (TUint)AppApacLayout::EApiId_Chinese_Dictionary_text_Line_1, |
|
773 |
|
774 0x0203, |
|
775 |
|
776 (TUint)AppApacLayout::EApiId_Chinese_Dictionary_text_Line_1, |
|
777 |
|
778 (TUint)&Chinese_Dictionary_elements_and_descendant_panes_Line_1, |
|
779 |
|
780 (TUint)&Chinese_Dictionary_elements_and_descendant_panes_Line_2, |
|
781 |
|
782 (TUint)&Chinese_Dictionary_elements_and_descendant_panes_Line_3, |
|
783 |
|
784 (TUint)&Chinese_Dictionary_elements_and_descendant_panes_Line_4, |
|
785 |
|
786 (TUint)&chi_dic_find_pane, |
|
787 |
|
788 (TUint)&chi_dic_list_pane, |
|
789 |
|
790 0x0005, |
|
791 |
|
792 (TUint)AppApacLayout::EApiId_Chinese_Dictionary_elements_and_descendant_panes_Line_1, |
|
793 |
|
794 (TUint)&Incoming_video_call_pop_up_window_texts_Line_1, |
|
795 |
|
796 0x0402, // Multiline_Incoming_video_call_pop_up_window_texts_Line_1 |
|
797 |
|
798 (TUint)&First_video_call_pop_up_window_texts_Line_1, |
|
799 |
|
800 (TUint)&Lunar_Calendar_information_layout_Line_1, |
|
801 |
|
802 (TUint)&Lunar_Calendar_information_layout_Line_2, |
|
803 |
|
804 0x0000, // Multiline_Lunar_Calendar_information_layout_Line_2 |
|
805 |
|
806 (TUint)&Lunar_Calendar_information_layout_Line_3, |
|
807 |
|
808 (TUint)&Lunar_Calendar_Elements_Line_1, |
|
809 |
|
810 (TUint)&Chinese_Dictionary_find_pane_text_Line_1, |
|
811 |
|
812 (TUint)&Chinese_Dictionary_find_pane_text_Line_2, |
|
813 |
|
814 (TUint)&Chinese_Dictionary_find_pane_text_Line_3, |
|
815 |
|
816 0x0002, |
|
817 |
|
818 (TUint)AppApacLayout::EApiId_Chinese_Dictionary_find_pane_text_Line_1, |
|
819 |
|
820 (TUint)&List_pane_text_Line_1, |
|
821 |
|
822 (TUint)&List_pane_text_Line_2, |
|
823 |
|
824 0x0001, |
|
825 |
|
826 (TUint)AppApacLayout::EApiId_List_pane_text_Line_1, |
|
827 |
|
828 (TUint)&List_pane_highlight__chi_dic__Line_1, |
|
829 |
|
830 (TUint)&List_pane_highlight__chi_dic__Line_2, |
|
831 |
|
832 0x0001, |
|
833 |
|
834 (TUint)AppApacLayout::EApiId_List_pane_highlight__chi_dic__Line_1, |
|
835 |
|
836 (TUint)&Chinese_Dictionary_find_pane_elements_Line_1, |
|
837 |
|
838 (TUint)&Chinese_Dictionary_find_pane_elements_Line_2, |
|
839 |
|
840 (TUint)&Chinese_Dictionary_find_pane_elements_Line_3, |
|
841 |
|
842 0x0002, |
|
843 |
|
844 (TUint)AppApacLayout::EApiId_Chinese_Dictionary_find_pane_elements_Line_1, |
|
845 |
|
846 (TUint)&list_chi_dic_pane, |
|
847 |
|
848 (TUint)&Find_pane_elements__pinb__Line_5, |
|
849 }; |
|
850 |
|
851 |
|
852 #define IMPL_OK(api) &api |
|
853 #define NOT_DONE(x) &x |
|
854 #define NOT_NEEDED(x) &x |
|
855 |
|
856 // |
|
857 // Implementation |
|
858 // - if there is NULL in this table, then the implementation in other CDL instance will be used (the ones generated from LAY files) |
|
859 // |
|
860 const AppApacLayout::SCdlImpl KCdlImpl = |
|
861 { |
|
862 NOT_NEEDED(Real_time_view_texts_Line_1),// &TextLine1f, |
|
863 NOT_NEEDED(MultiLineTextLine1f), |
|
864 NOT_NEEDED(Real_time_view_texts_Line_2),// &TextLine1f, |
|
865 NOT_NEEDED(MultiLineTextLine1f), |
|
866 NOT_NEEDED(Real_time_view_texts_Line_3),// &TextLine1f, |
|
867 NOT_NEEDED(Real_time_view_texts_Line_4),// &TextLine1f, |
|
868 NOT_NEEDED(Real_time_view_texts_Line_5),// &TextLine0f, |
|
869 NOT_NEEDED(Limits), |
|
870 NOT_NEEDED(TextTable1f), |
|
871 NOT_NEEDED(Limits), |
|
872 NOT_NEEDED(TextTable1f), |
|
873 NOT_NEEDED(Alarm_clock_view_texts_Line_1),// &TextLine0f, |
|
874 NOT_NEEDED(Alarm_clock_view_texts_Line_2),// &TextLine1f, |
|
875 NOT_NEEDED(Alarm_clock_view_texts_Line_3),// &TextLine1f, |
|
876 NOT_NEEDED(Alarm_clock_view_texts_Line_4),// &TextLine0f, |
|
877 NOT_NEEDED(Alarm_clock_view_texts_Line_5),// &TextLine0f, |
|
878 NOT_NEEDED(Alarm_clock_view_texts_Line_6),// &TextLine1f, |
|
879 NOT_NEEDED(MultiLineTextLine1f), |
|
880 NOT_NEEDED(Alarm_clock_view_texts_Line_7),// &TextLine0f, |
|
881 NOT_NEEDED(Alarm_clock_view_texts_Line_8),// &TextLine0f, |
|
882 NOT_NEEDED(Limits), |
|
883 NOT_NEEDED(TextTable1f), |
|
884 NOT_NEEDED(Limits), |
|
885 NOT_NEEDED(TextTable0f), |
|
886 NOT_NEEDED(Limits), |
|
887 NOT_NEEDED(TextTable0f), |
|
888 NOT_NEEDED(Help_text_bolding_Line_1),// &TextLine0f, |
|
889 NOT_NEEDED(Help_text_bolding_Line_2),// &TextLine0f, |
|
890 NOT_NEEDED(Limits), |
|
891 NOT_NEEDED(TextTable0f), |
|
892 IMPL_OK(Chinese_Dictionary_text_Line_1),// &TextLine0f, |
|
893 IMPL_OK(Chinese_Dictionary_text_Line_2),// &TextLine0f, |
|
894 NOT_NEEDED(Chinese_Dictionary_text_Line_3),// &TextLine1f, |
|
895 NOT_NEEDED(MultiLineTextLine1f), |
|
896 NOT_NEEDED(Chinese_Dictionary_text_Line_4),// &TextLine1f, |
|
897 NOT_NEEDED(MultiLineTextLine1f), |
|
898 NOT_NEEDED(Limits), |
|
899 NOT_NEEDED(TextTable0f), |
|
900 NOT_NEEDED(Limits), |
|
901 NOT_NEEDED(TextTable1f), |
|
902 NOT_NEEDED(Chinese_Dictionary_elements_and_descendant_panes_Line_1),// &WindowLine0f, |
|
903 IMPL_OK(Chinese_Dictionary_elements_and_descendant_panes_Line_2),// &WindowLine0f, |
|
904 NOT_NEEDED(Chinese_Dictionary_elements_and_descendant_panes_Line_3),// &WindowLine0f, |
|
905 NOT_NEEDED(Chinese_Dictionary_elements_and_descendant_panes_Line_4),// &WindowLine0f, |
|
906 IMPL_OK(chi_dic_find_pane),// &WindowLine0f, |
|
907 IMPL_OK(chi_dic_list_pane),// &WindowLine0f, |
|
908 NOT_NEEDED(Limits), |
|
909 NOT_NEEDED(WindowTable0f), |
|
910 NOT_NEEDED(Incoming_video_call_pop_up_window_texts_Line_1),// &TextLine2f, |
|
911 NOT_NEEDED(MultiLineTextLine3f), |
|
912 NOT_NEEDED(First_video_call_pop_up_window_texts_Line_1),// &TextLine0f, |
|
913 NOT_NEEDED(Lunar_Calendar_information_layout_Line_1),// &TextLine0f, |
|
914 IMPL_OK(Lunar_Calendar_information_layout_Line_2),// &TextLine1f, |
|
915 NOT_NEEDED(MultiLineTextLine1f), |
|
916 IMPL_OK(Lunar_Calendar_information_layout_Line_3),// &TextLine0f, |
|
917 IMPL_OK(Lunar_Calendar_Elements_Line_1),// &WindowLine1f, |
|
918 IMPL_OK(Chinese_Dictionary_find_pane_text_Line_1),// &TextLine0f, |
|
919 IMPL_OK(Chinese_Dictionary_find_pane_text_Line_2),// &TextLine0f, |
|
920 NOT_NEEDED(Chinese_Dictionary_find_pane_text_Line_3),// &TextLine0f, |
|
921 NOT_NEEDED(Limits), |
|
922 NOT_NEEDED(TextTable0f), |
|
923 IMPL_OK(List_pane_text_Line_1),// &TextLine0f, |
|
924 IMPL_OK(List_pane_text_Line_2),// &TextLine0f, |
|
925 IMPL_OK(Limits), |
|
926 IMPL_OK(TextTable0f), |
|
927 NOT_NEEDED(List_pane_highlight__chi_dic__Line_1),// &WindowLine0f, |
|
928 NOT_NEEDED(List_pane_highlight__chi_dic__Line_2),// &WindowLine0f, |
|
929 NOT_NEEDED(Limits), |
|
930 NOT_NEEDED(WindowTable0f), |
|
931 IMPL_OK(Chinese_Dictionary_find_pane_elements_Line_1),// &WindowLine0f, |
|
932 NOT_NEEDED(Chinese_Dictionary_find_pane_elements_Line_2),// &WindowLine0f, |
|
933 NOT_NEEDED(Chinese_Dictionary_find_pane_elements_Line_3),// &WindowLine0f, |
|
934 NOT_NEEDED(Limits), |
|
935 NOT_NEEDED(WindowTable0f), |
|
936 IMPL_OK(list_chi_dic_pane),// &WindowLine1f, |
|
937 IMPL_OK(Find_pane_elements__pinb__Line_5),// &WindowLine0f, |
|
938 }; |
|
939 |
|
940 } // end of namespace Adaptation_Layer_AppApacLayout |
|
941 |
|
942 |