|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Description of various grid templates |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "mulcovertemplates.h" |
|
20 #include "mulcoverflowdefinitions.h" |
|
21 #include "mulvisualutility.h" |
|
22 #include "mulutility.h" |
|
23 #include <osn/osnnew.h> |
|
24 |
|
25 namespace Alf |
|
26 { |
|
27 |
|
28 MulCoverLogicalTemplate3::~MulCoverLogicalTemplate3() |
|
29 { |
|
30 |
|
31 } |
|
32 |
|
33 //---------------------------------------------------------------- |
|
34 // PopulateData |
|
35 //---------------------------------------------------------------- |
|
36 // |
|
37 void MulCoverLogicalTemplate3::PopulateData () |
|
38 { |
|
39 //For base element |
|
40 LCTElementStructure* prtBaseElem = new (EMM) LCTElementStructure(); |
|
41 //for main layout |
|
42 prtBaseElem->SetId(UString(KBase)); |
|
43 LCTVisualStructure* mainPrtVS = new (EMM) LCTVisualStructure(); |
|
44 mainPrtVS->SetId(UString(KMainLayout)); |
|
45 //@todo:: later these need to be retrieved from LCT utility |
|
46 mainPrtVS->SetPositions(0,0); |
|
47 mainPrtVS->SetDimensions(360,519); |
|
48 mainPrtVS->SetLCTId(UString("uiaccel_main_aa_coverflow_pane")); |
|
49 mainPrtVS->SetVarietyId(0); |
|
50 CustomAttributeStructure* mainPrtOpacity = new (EMM) CustomAttributeStructure( |
|
51 UString(KOpacity), UString("1.0")); |
|
52 mainPrtVS->AddAttribute(mainPrtOpacity); |
|
53 CustomAttributeStructure* mainPrtMCount = new (EMM) CustomAttributeStructure( |
|
54 UString(KTempMaxCount), UString("3")); |
|
55 mainPrtVS->AddAttribute(mainPrtMCount); |
|
56 prtBaseElem->AddVisualStructure(mainPrtVS); |
|
57 //for item_center |
|
58 LCTVisualStructure* item_centerPrtVS = new (EMM) LCTVisualStructure(); |
|
59 item_centerPrtVS->SetId(UString(KItemCentre)); |
|
60 item_centerPrtVS->SetPositions(10,22); |
|
61 item_centerPrtVS->SetDimensions(340,340); |
|
62 item_centerPrtVS->SetLCTId(UString("uiaccel_aacf_image_pane")); |
|
63 item_centerPrtVS->SetVarietyId(0); |
|
64 |
|
65 CustomAttributeStructure* item_centerPrtFM = new (EMM) CustomAttributeStructure( |
|
66 UString(KFitMode), UString(KOff)); |
|
67 item_centerPrtVS->AddAttribute(item_centerPrtFM); |
|
68 prtBaseElem->AddVisualStructure(item_centerPrtVS); |
|
69 //for counter visual |
|
70 LCTVisualStructure* counterPrtVS = new (EMM) LCTVisualStructure(); |
|
71 counterPrtVS->SetId(UString(KMulCount)); |
|
72 counterPrtVS->SetPositions(238,0); |
|
73 counterPrtVS->SetDimensions(112,21); |
|
74 counterPrtVS->SetLCTId(UString("uiaccel_main_aa_coverflow_pane_t1")); |
|
75 counterPrtVS->SetVarietyId(0); |
|
76 //add extra attributes to the countervisual |
|
77 |
|
78 CustomAttributeStructure* stylePrtC = new (EMM) CustomAttributeStructure( |
|
79 UString(KTextStyle), UString("qfn_secondary")); |
|
80 |
|
81 CustomAttributeStructure* opacityPrtC = new (EMM) CustomAttributeStructure( |
|
82 UString(KOpacity), UString("1.0")); |
|
83 |
|
84 CustomAttributeStructure* redPrtC = new (EMM) CustomAttributeStructure( |
|
85 UString(KRedColorAttrib), UString("255")); |
|
86 |
|
87 CustomAttributeStructure* greenPrtC = new (EMM) CustomAttributeStructure( |
|
88 UString(KGreenColorAttrib), UString("255")); |
|
89 |
|
90 CustomAttributeStructure* bluePrtC = new (EMM) CustomAttributeStructure( |
|
91 UString(KBlueColorAttrib), UString("255")); |
|
92 |
|
93 CustomAttributeStructure* alphaPrtC = new (EMM) CustomAttributeStructure( |
|
94 UString(KAlphaColorAttrib), UString("0")); |
|
95 |
|
96 CustomAttributeStructure* horizontalalignPrtC = new (EMM) CustomAttributeStructure( |
|
97 UString("horizontalalign"), UString("2")); |
|
98 |
|
99 counterPrtVS->AddAttribute(stylePrtC); |
|
100 counterPrtVS->AddAttribute(opacityPrtC); |
|
101 counterPrtVS->AddAttribute(redPrtC); |
|
102 counterPrtVS->AddAttribute(greenPrtC); |
|
103 counterPrtVS->AddAttribute(bluePrtC); |
|
104 counterPrtVS->AddAttribute(alphaPrtC); |
|
105 counterPrtVS->AddAttribute(horizontalalignPrtC); |
|
106 |
|
107 prtBaseElem->AddVisualStructure(counterPrtVS); |
|
108 |
|
109 //for text layout |
|
110 LCTVisualStructure* textPrtLtVS = new (EMM) LCTVisualStructure(); |
|
111 textPrtLtVS->SetId(UString(KText)); |
|
112 textPrtLtVS->SetPositions(20,360); |
|
113 textPrtLtVS->SetDimensions(340,82); |
|
114 textPrtLtVS->SetLCTId(UString("uiaccel_aacf_image_title_pane")); |
|
115 textPrtLtVS->SetVarietyId(4); |
|
116 prtBaseElem->AddVisualStructure(textPrtLtVS); |
|
117 |
|
118 //for text background |
|
119 LCTVisualStructure* textPrtBgVS = new (EMM) LCTVisualStructure(); |
|
120 textPrtBgVS->SetId(UString(KMulBackGround)); |
|
121 textPrtBgVS->SetPositions(0,0); |
|
122 textPrtBgVS->SetDimensions(340,82); |
|
123 textPrtBgVS->SetLCTId(UString("uiaccel_aacf_image_title_pane_g1")); |
|
124 textPrtBgVS->SetVarietyId(0); |
|
125 //Add attributes to the text background visual |
|
126 CustomAttributeStructure* bgHaPrtTV = new (EMM) CustomAttributeStructure( |
|
127 UString(KHorzAlign), UString("1")); |
|
128 textPrtBgVS->AddAttribute(bgHaPrtTV); |
|
129 CustomAttributeStructure* bgoPrtTV = new (EMM) CustomAttributeStructure( |
|
130 UString(KOpacity), UString("0.0")); |
|
131 textPrtBgVS->AddAttribute(bgoPrtTV); |
|
132 CustomAttributeStructure* bgcPrtTV = new (EMM) CustomAttributeStructure( |
|
133 UString(KColor), UString("0")); |
|
134 textPrtBgVS->AddAttribute(bgcPrtTV); |
|
135 prtBaseElem->AddVisualStructure(textPrtBgVS); |
|
136 |
|
137 //for text title |
|
138 LCTVisualStructure* textTPrtVS = new (EMM) LCTVisualStructure(); |
|
139 textTPrtVS->SetId(UString(KMulTitle)); |
|
140 textTPrtVS->SetPositions(15,9); |
|
141 textTPrtVS->SetDimensions(310,27); |
|
142 textTPrtVS->SetLCTId(UString("uiaccel_aacf_image_title_pane_t1")); |
|
143 textTPrtVS->SetVarietyId(0); |
|
144 //add extra attributes to the countervisual |
|
145 CustomAttributeStructure* textTStylePrt = new (EMM) CustomAttributeStructure( |
|
146 UString(KTextStyle), UString("qfn_secondary")); |
|
147 textTPrtVS->AddAttribute(textTStylePrt); |
|
148 |
|
149 CustomAttributeStructure* textTFtcPrt = new (EMM) CustomAttributeStructure( |
|
150 UString(KFontThemeColor), UString("9")); |
|
151 textTPrtVS->AddAttribute(textTFtcPrt); |
|
152 |
|
153 CustomAttributeStructure* textTHaPrt = new (EMM) CustomAttributeStructure( |
|
154 UString(KHorzAlign), UString("1")); |
|
155 textTPrtVS->AddAttribute(textTHaPrt); |
|
156 |
|
157 CustomAttributeStructure* textTVaPrt = new (EMM) CustomAttributeStructure( |
|
158 UString(KVertAlign), UString("1")); |
|
159 textTPrtVS->AddAttribute(textTVaPrt); |
|
160 |
|
161 CustomAttributeStructure* textTRedPrt = new (EMM) CustomAttributeStructure( |
|
162 UString(KRedColorAttrib), UString("255")); |
|
163 textTPrtVS->AddAttribute(textTRedPrt); |
|
164 |
|
165 CustomAttributeStructure* textTGreenPrt = new (EMM) CustomAttributeStructure( |
|
166 UString(KGreenColorAttrib), UString("255")); |
|
167 textTPrtVS->AddAttribute(textTGreenPrt); |
|
168 |
|
169 CustomAttributeStructure* textTBluePrt = new (EMM) CustomAttributeStructure( |
|
170 UString(KBlueColorAttrib), UString("255")); |
|
171 textTPrtVS->AddAttribute(textTBluePrt); |
|
172 |
|
173 CustomAttributeStructure* textTAlphaPrt = new (EMM) CustomAttributeStructure( |
|
174 UString(KAlphaColorAttrib), UString("0")); |
|
175 textTPrtVS->AddAttribute(textTAlphaPrt); |
|
176 |
|
177 CustomAttributeStructure* textTTsciPrt = new (EMM) CustomAttributeStructure( |
|
178 UString(KTextSkinColorId), UString("KAknsIIDQsnTextColors")); |
|
179 textTPrtVS->AddAttribute(textTTsciPrt); |
|
180 |
|
181 CustomAttributeStructure* textTTcsiPrt = new (EMM) CustomAttributeStructure( |
|
182 UString(KTextColorSkinIndex), UString("5")); |
|
183 textTPrtVS->AddAttribute(textTTcsiPrt); |
|
184 |
|
185 CustomAttributeStructure* textTOpacityPrt = new (EMM) CustomAttributeStructure( |
|
186 UString(KOpacity), UString("1.0")); |
|
187 textTPrtVS->AddAttribute(textTOpacityPrt); |
|
188 |
|
189 prtBaseElem->AddVisualStructure(textTPrtVS); |
|
190 |
|
191 //for text detail |
|
192 LCTVisualStructure* textDPrtVS = new (EMM) LCTVisualStructure(); |
|
193 textDPrtVS->SetId(UString(KMulDetail)); |
|
194 textDPrtVS->SetPositions(15,46); |
|
195 textDPrtVS->SetDimensions(310,27); |
|
196 textDPrtVS->SetLCTId(UString("uiaccel_aacf_image_title_pane_t2")); |
|
197 textDPrtVS->SetVarietyId(0); |
|
198 //add extra attributes to the countervisual |
|
199 CustomAttributeStructure* textDStylePrt = new (EMM) CustomAttributeStructure( |
|
200 UString(KTextStyle), UString("qfn_secondary")); |
|
201 textDPrtVS->AddAttribute(textDStylePrt); |
|
202 |
|
203 CustomAttributeStructure* textDFtcPrt = new (EMM) CustomAttributeStructure( |
|
204 UString(KFontThemeColor), UString("9")); |
|
205 textDPrtVS->AddAttribute(textDFtcPrt); |
|
206 |
|
207 CustomAttributeStructure* textDHaPrt = new (EMM) CustomAttributeStructure( |
|
208 UString(KHorzAlign), UString("1")); |
|
209 textDPrtVS->AddAttribute(textDHaPrt); |
|
210 |
|
211 CustomAttributeStructure* textDVaPrt = new (EMM) CustomAttributeStructure( |
|
212 UString(KVertAlign), UString("1")); |
|
213 textDPrtVS->AddAttribute(textDVaPrt); |
|
214 |
|
215 CustomAttributeStructure* textDRedPrt = new (EMM) CustomAttributeStructure( |
|
216 UString(KRedColorAttrib), UString("255")); |
|
217 textDPrtVS->AddAttribute(textDRedPrt); |
|
218 |
|
219 CustomAttributeStructure* textDGreenPrt = new (EMM) CustomAttributeStructure( |
|
220 UString(KGreenColorAttrib), UString("255")); |
|
221 textDPrtVS->AddAttribute(textDGreenPrt); |
|
222 |
|
223 CustomAttributeStructure* textDBluePrt = new (EMM) CustomAttributeStructure( |
|
224 UString(KBlueColorAttrib), UString("255")); |
|
225 textDPrtVS->AddAttribute(textDBluePrt); |
|
226 |
|
227 CustomAttributeStructure* textDAlphaPrt = new (EMM) CustomAttributeStructure( |
|
228 UString(KAlphaColorAttrib), UString("0")); |
|
229 textDPrtVS->AddAttribute(textDAlphaPrt); |
|
230 |
|
231 CustomAttributeStructure* textDTsciPrt = new (EMM) CustomAttributeStructure( |
|
232 UString(KTextSkinColorId), UString("KAknsIIDQsnTextColors")); |
|
233 textDPrtVS->AddAttribute(textDTsciPrt); |
|
234 |
|
235 CustomAttributeStructure* textDTcsiPrt = new (EMM) CustomAttributeStructure( |
|
236 UString(KTextColorSkinIndex), UString("5")); |
|
237 textDPrtVS->AddAttribute(textDTcsiPrt); |
|
238 |
|
239 CustomAttributeStructure* textDOpacityPrt = new (EMM) CustomAttributeStructure( |
|
240 UString(KOpacity), UString("0.7")); |
|
241 textDPrtVS->AddAttribute(textDOpacityPrt); |
|
242 |
|
243 CustomAttributeStructure* textDMarqueePrt = new (EMM) CustomAttributeStructure( |
|
244 UString(KMarquee), UString("yes")); |
|
245 textDPrtVS->AddAttribute(textDMarqueePrt); |
|
246 |
|
247 prtBaseElem->AddVisualStructure(textDPrtVS); |
|
248 |
|
249 mTemplatePrtStruct.push_back(prtBaseElem); |
|
250 |
|
251 //now populate data for slider element |
|
252 //---------------------------------------------------------------------- |
|
253 LCTElementStructure* prtSliderElem = new (EMM) LCTElementStructure(); |
|
254 prtSliderElem->SetId(UString(KSlider)); |
|
255 |
|
256 LCTVisualStructure* prtSliderVis = new (EMM)LCTVisualStructure(); |
|
257 prtSliderVis->SetPositions(0,441); |
|
258 prtSliderVis->SetDimensions(340,78); |
|
259 prtSliderVis->SetLCTId(UString("uiaccel_aacf_slider_pane")); |
|
260 prtSliderVis->SetVarietyId(0); |
|
261 |
|
262 CustomAttributeStructure* sliderPrtOpacity = new CustomAttributeStructure( |
|
263 UString(KTemplateId),UString("1")); |
|
264 prtSliderVis->AddAttribute(sliderPrtOpacity); |
|
265 |
|
266 CustomAttributeStructure* sliderPrtTemplate = new CustomAttributeStructure( |
|
267 UString(KOpacity),UString("1.0"),EAttributeOpacity); |
|
268 prtSliderVis->AddAttribute(sliderPrtTemplate); |
|
269 |
|
270 prtSliderElem->AddVisualStructure(prtSliderVis); |
|
271 |
|
272 mTemplatePrtStruct.push_back(prtSliderElem); |
|
273 //========================================================================== |
|
274 //same procedure for filling up of LSC |
|
275 //========================================================================== |
|
276 //for main layout |
|
277 LCTElementStructure* lscBaseElem = new (EMM) LCTElementStructure(); |
|
278 lscBaseElem->SetId(UString(KBase)); |
|
279 LCTVisualStructure* mainLscVS2 = new (EMM) LCTVisualStructure(); |
|
280 mainLscVS2->SetId(UString(KMainLayout)); |
|
281 mainLscVS2->SetPositions(0,0); |
|
282 mainLscVS2->SetDimensions(640,360); |
|
283 mainLscVS2->SetLCTId(UString("uiaccel_main_aa_coverflow_pane")); |
|
284 mainLscVS2->SetVarietyId(1); |
|
285 CustomAttributeStructure* mainLscOpacity = new (EMM) CustomAttributeStructure( |
|
286 UString(KOpacity), UString("1.0")); |
|
287 mainLscVS2->AddAttribute(mainLscOpacity); |
|
288 CustomAttributeStructure* mainLscMCount = new (EMM) CustomAttributeStructure( |
|
289 UString(KTempMaxCount), UString("3")); |
|
290 mainLscVS2->AddAttribute(mainLscMCount); |
|
291 CustomAttributeStructure* mainLscFScroll = new (EMM) CustomAttributeStructure( |
|
292 UString(KFastScroll), UString("0")); |
|
293 mainLscVS2->AddAttribute(mainLscFScroll); |
|
294 lscBaseElem->AddVisualStructure(mainLscVS2); |
|
295 //for item_center |
|
296 LCTVisualStructure* item_centerLscVs = new (EMM) LCTVisualStructure(); |
|
297 item_centerLscVs->SetId(UString(KCentreItem)); |
|
298 item_centerLscVs->SetPositions(198,37); |
|
299 item_centerLscVs->SetDimensions(242,242); |
|
300 item_centerLscVs->SetLCTId(UString("uiaccel_aacf_image_pane")); |
|
301 item_centerLscVs->SetVarietyId(2); |
|
302 CustomAttributeStructure* item_centerLscFM = new (EMM) CustomAttributeStructure( |
|
303 UString(KFitMode), UString(KOff)); |
|
304 item_centerLscVs->AddAttribute(item_centerLscFM); |
|
305 lscBaseElem->AddVisualStructure(item_centerLscVs); |
|
306 |
|
307 //For item right |
|
308 LCTVisualStructure* item_rightLscVs = new (EMM) LCTVisualStructure(); |
|
309 item_rightLscVs->SetId(UString(KRightItem)); |
|
310 item_rightLscVs->SetPositions(480,50); |
|
311 item_rightLscVs->SetDimensions(214,214); |
|
312 item_rightLscVs->SetLCTId(UString("uiaccel_aacf_image_pane_cp002")); |
|
313 item_rightLscVs->SetVarietyId(2); |
|
314 lscBaseElem->AddVisualStructure(item_rightLscVs); |
|
315 // For Counter |
|
316 LCTVisualStructure* counterLscVS = new (EMM) LCTVisualStructure(); |
|
317 counterLscVS->SetId(UString(KMulCount)); |
|
318 counterLscVS->SetPositions(522,6); |
|
319 counterLscVS->SetDimensions(112,21); |
|
320 counterLscVS->SetLCTId(UString("uiaccel_main_aa_coverflow_pane_t1")); |
|
321 counterLscVS->SetVarietyId(2); |
|
322 //add extra attributes to the gridlayout |
|
323 |
|
324 CustomAttributeStructure* styleLscC = new (EMM) CustomAttributeStructure( |
|
325 UString(KTextStyle), UString("qfn_secondary")); |
|
326 |
|
327 CustomAttributeStructure* opacityLscC = new (EMM) CustomAttributeStructure( |
|
328 UString(KOpacity), UString("1.0")); |
|
329 |
|
330 CustomAttributeStructure* redLscC = new (EMM) CustomAttributeStructure( |
|
331 UString(KRedColorAttrib), UString("255")); |
|
332 |
|
333 CustomAttributeStructure* greenLscC = new (EMM) CustomAttributeStructure( |
|
334 UString(KGreenColorAttrib), UString("255")); |
|
335 |
|
336 CustomAttributeStructure* blueLscC = new (EMM) CustomAttributeStructure( |
|
337 UString(KBlueColorAttrib), UString("255")); |
|
338 |
|
339 CustomAttributeStructure* alphaLscC = new (EMM) CustomAttributeStructure( |
|
340 UString(KAlphaColorAttrib), UString("0")); |
|
341 |
|
342 CustomAttributeStructure* horizontalalignLscC = new (EMM) CustomAttributeStructure( |
|
343 UString(KHorzAlign), UString("2")); |
|
344 |
|
345 counterLscVS->AddAttribute(styleLscC); |
|
346 counterLscVS->AddAttribute(opacityLscC); |
|
347 counterLscVS->AddAttribute(redLscC); |
|
348 counterLscVS->AddAttribute(greenLscC); |
|
349 counterLscVS->AddAttribute(blueLscC); |
|
350 counterLscVS->AddAttribute(alphaLscC); |
|
351 counterLscVS->AddAttribute(horizontalalignLscC); |
|
352 |
|
353 lscBaseElem->AddVisualStructure(counterLscVS); |
|
354 |
|
355 //for text layout |
|
356 LCTVisualStructure* textLscLtVS = new (EMM) LCTVisualStructure(); |
|
357 textLscLtVS->SetId(UString(KText)); |
|
358 textLscLtVS->SetPositions(161,284); |
|
359 textLscLtVS->SetDimensions(318,72); |
|
360 textLscLtVS->SetLCTId(UString("uiaccel_aacf_image_title_pane")); |
|
361 textLscLtVS->SetVarietyId(2); |
|
362 lscBaseElem->AddVisualStructure(textLscLtVS); |
|
363 |
|
364 //for text background |
|
365 LCTVisualStructure* textLscBgVS = new (EMM) LCTVisualStructure(); |
|
366 textLscBgVS->SetId(UString(KMulBackGround)); |
|
367 textLscBgVS->SetPositions(0,0); |
|
368 textLscBgVS->SetDimensions(318,72); |
|
369 textLscBgVS->SetLCTId(UString("uiaccel_aacf_image_title_pane_g1")); |
|
370 textLscBgVS->SetVarietyId(1); |
|
371 //Add attributes to the text background visual |
|
372 CustomAttributeStructure* bgHaLscTV = new (EMM) CustomAttributeStructure( |
|
373 UString(KHorzAlign), UString("1")); |
|
374 textLscBgVS->AddAttribute(bgHaLscTV); |
|
375 CustomAttributeStructure* bgoLscTV = new (EMM) CustomAttributeStructure( |
|
376 UString(KOpacity), UString("0.0")); |
|
377 textLscBgVS->AddAttribute(bgoLscTV); |
|
378 CustomAttributeStructure* bgcLscTV = new (EMM) CustomAttributeStructure( |
|
379 UString(KColor), UString("0")); |
|
380 textLscBgVS->AddAttribute(bgcLscTV); |
|
381 lscBaseElem->AddVisualStructure(textLscBgVS); |
|
382 |
|
383 //for text title |
|
384 LCTVisualStructure* textTLscVS = new (EMM) LCTVisualStructure(); |
|
385 textTLscVS->SetId(UString(KMulTitle)); |
|
386 textTLscVS->SetPositions(4,4); |
|
387 textTLscVS->SetDimensions(310,27); |
|
388 textTLscVS->SetLCTId(UString("uiaccel_aacf_image_title_pane_t1")); |
|
389 textTLscVS->SetVarietyId(1); |
|
390 //add extra attributes to the countervisual |
|
391 CustomAttributeStructure* textTStyleLsc = new (EMM) CustomAttributeStructure( |
|
392 UString(KTextStyle), UString("qfn_secondary")); |
|
393 textTLscVS->AddAttribute(textTStyleLsc); |
|
394 |
|
395 CustomAttributeStructure* textTFtcLsc = new (EMM) CustomAttributeStructure( |
|
396 UString(KFontThemeColor), UString("9")); |
|
397 textTLscVS->AddAttribute(textTFtcLsc); |
|
398 |
|
399 CustomAttributeStructure* textTHaLsc = new (EMM) CustomAttributeStructure( |
|
400 UString(KHorzAlign), UString("1")); |
|
401 textTLscVS->AddAttribute(textTHaLsc); |
|
402 |
|
403 CustomAttributeStructure* textTVaLsc = new (EMM) CustomAttributeStructure( |
|
404 UString(KVertAlign), UString("1")); |
|
405 textTLscVS->AddAttribute(textTVaLsc); |
|
406 |
|
407 CustomAttributeStructure* textTRedLsc = new (EMM) CustomAttributeStructure( |
|
408 UString(KRedColorAttrib), UString("255")); |
|
409 textTLscVS->AddAttribute(textTRedLsc); |
|
410 |
|
411 CustomAttributeStructure* textTGreenLsc = new (EMM) CustomAttributeStructure( |
|
412 UString(KGreenColorAttrib), UString("255")); |
|
413 textTLscVS->AddAttribute(textTGreenLsc); |
|
414 |
|
415 CustomAttributeStructure* textTBlueLsc = new (EMM) CustomAttributeStructure( |
|
416 UString(KBlueColorAttrib), UString("255")); |
|
417 textTLscVS->AddAttribute(textTBlueLsc); |
|
418 |
|
419 CustomAttributeStructure* textTAlphaLsc = new (EMM) CustomAttributeStructure( |
|
420 UString(KAlphaColorAttrib), UString("0")); |
|
421 textTLscVS->AddAttribute(textTAlphaLsc); |
|
422 |
|
423 CustomAttributeStructure* textTTsciLsc = new (EMM) CustomAttributeStructure( |
|
424 UString(KTextSkinColorId), UString("KAknsIIDQsnTextColors")); |
|
425 textTLscVS->AddAttribute(textTTsciLsc); |
|
426 |
|
427 CustomAttributeStructure* textTTcsiLsc = new (EMM) CustomAttributeStructure( |
|
428 UString(KTextColorSkinIndex), UString("5")); |
|
429 textTLscVS->AddAttribute(textTTcsiLsc); |
|
430 |
|
431 CustomAttributeStructure* textTOpacityLsc = new (EMM) CustomAttributeStructure( |
|
432 UString(KOpacity), UString("1.0")); |
|
433 textTLscVS->AddAttribute(textTOpacityLsc); |
|
434 |
|
435 lscBaseElem->AddVisualStructure(textTLscVS); |
|
436 |
|
437 //for text detail |
|
438 LCTVisualStructure* textDLscVS = new (EMM) LCTVisualStructure(); |
|
439 textDLscVS->SetId(UString(KMulDetail)); |
|
440 textDLscVS->SetPositions(4,38); |
|
441 textDLscVS->SetDimensions(310,27); |
|
442 textDLscVS->SetLCTId(UString("uiaccel_aacf_image_title_pane_t2")); |
|
443 textDLscVS->SetVarietyId(1); |
|
444 //add extra attributes to the countervisual |
|
445 CustomAttributeStructure* textDStyleLsc = new (EMM) CustomAttributeStructure( |
|
446 UString(KTextStyle), UString("qfn_secondary")); |
|
447 textDLscVS->AddAttribute(textDStyleLsc); |
|
448 |
|
449 CustomAttributeStructure* textDFtcLsc = new (EMM) CustomAttributeStructure( |
|
450 UString(KFontThemeColor), UString("9")); |
|
451 textDLscVS->AddAttribute(textDFtcLsc); |
|
452 |
|
453 CustomAttributeStructure* textDHaLsc = new (EMM) CustomAttributeStructure( |
|
454 UString(KHorzAlign), UString("1")); |
|
455 textDLscVS->AddAttribute(textDHaLsc); |
|
456 |
|
457 CustomAttributeStructure* textDVaLsc = new (EMM) CustomAttributeStructure( |
|
458 UString(KVertAlign), UString("1")); |
|
459 textDLscVS->AddAttribute(textDVaLsc); |
|
460 |
|
461 CustomAttributeStructure* textDRedLsc = new (EMM) CustomAttributeStructure( |
|
462 UString(KRedColorAttrib), UString("255")); |
|
463 textDLscVS->AddAttribute(textDRedLsc); |
|
464 |
|
465 CustomAttributeStructure* textDGreenLsc = new (EMM) CustomAttributeStructure( |
|
466 UString(KGreenColorAttrib), UString("255")); |
|
467 textDLscVS->AddAttribute(textDGreenLsc); |
|
468 |
|
469 CustomAttributeStructure* textDBlueLsc = new (EMM) CustomAttributeStructure( |
|
470 UString(KBlueColorAttrib), UString("255")); |
|
471 textDLscVS->AddAttribute(textDBlueLsc); |
|
472 |
|
473 CustomAttributeStructure* textDAlphaLsc = new (EMM) CustomAttributeStructure( |
|
474 UString(KAlphaColorAttrib), UString("0")); |
|
475 textDLscVS->AddAttribute(textDAlphaLsc); |
|
476 |
|
477 CustomAttributeStructure* textDTsciLsc = new (EMM) CustomAttributeStructure( |
|
478 UString(KTextSkinColorId), UString("KAknsIIDQsnTextColors")); |
|
479 textDLscVS->AddAttribute(textDTsciLsc); |
|
480 |
|
481 CustomAttributeStructure* textDTcsiLsc = new (EMM) CustomAttributeStructure( |
|
482 UString(KTextColorSkinIndex), UString("5")); |
|
483 textDLscVS->AddAttribute(textDTcsiLsc); |
|
484 |
|
485 CustomAttributeStructure* textDOpacityLsc = new (EMM) CustomAttributeStructure( |
|
486 UString(KOpacity), UString("0.7")); |
|
487 textDLscVS->AddAttribute(textDOpacityLsc); |
|
488 |
|
489 CustomAttributeStructure* textDMarqueeLsc = new (EMM) CustomAttributeStructure( |
|
490 UString(KMarquee), UString("yes")); |
|
491 textDLscVS->AddAttribute(textDMarqueeLsc); |
|
492 |
|
493 lscBaseElem->AddVisualStructure(textDLscVS); |
|
494 |
|
495 mTemplateLscStruct.push_back(lscBaseElem); |
|
496 |
|
497 } |
|
498 |
|
499 }//namespace ends |