author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 15 Sep 2010 11:52:37 +0300 | |
branch | RCL_3 |
changeset 73 | c8382f7b54ef |
parent 64 | 3533d4323edc |
child 80 | 726fba06891a |
permissions | -rw-r--r-- |
64 | 1 |
/* |
2 |
* Copyright (c) 2007 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: Base class of item visualizer. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef FSTREEITEMVISUALIZERBASE_H_ |
|
20 |
#define FSTREEITEMVISUALIZERBASE_H_ |
|
21 |
||
22 |
#include <e32base.h> |
|
23 |
#include <alf/alfeventhandler.h> |
|
24 |
#include "fstreeitemvisualizer.h" |
|
25 |
#include "fslayoutmanager.h" |
|
26 |
||
27 |
class TRgb; |
|
28 |
||
29 |
class CAlfLayout; |
|
30 |
class CAlfTexture; |
|
31 |
class CAlfBrush; |
|
32 |
class CAlfAnchorLayout; |
|
33 |
class CAlfControl; |
|
34 |
class CFsAlfTextStyleManager; |
|
35 |
class CAlfTextVisual; |
|
36 |
||
37 |
||
38 |
/** |
|
39 |
* CFsTreeItemVisualizerBase is a base class implementing methods common for |
|
40 |
* all tree items. |
|
41 |
* |
|
42 |
* Thic class is a concrete implementation for the MFsTreeItemVisualizer |
|
43 |
* interface. |
|
44 |
* |
|
45 |
* @code |
|
46 |
* |
|
47 |
* @endcode |
|
48 |
* |
|
49 |
* @lib |
|
50 |
*/ |
|
51 |
NONSHARABLE_CLASS(CFsTreeItemVisualizerBase) : public CBase, |
|
52 |
public MFsTreeItemVisualizer, |
|
53 |
public MAlfEventHandler |
|
54 |
{ |
|
55 |
||
56 |
public: |
|
57 |
||
58 |
/** |
|
59 |
* C++ destructor |
|
60 |
*/ |
|
61 |
virtual ~CFsTreeItemVisualizerBase(); |
|
62 |
||
63 |
||
64 |
public: |
|
65 |
||
66 |
/** |
|
67 |
* Returns the type of the item's visualizer. |
|
68 |
*/ |
|
69 |
virtual TFsTreeItemVisualizerType Type() const; |
|
70 |
||
71 |
/** |
|
72 |
* Sets horizontal alignment of the displayed plain text. |
|
73 |
* |
|
74 |
* For AH layout EAlfAlignHLeft is internally converted to EAlfAlignHRight |
|
75 |
* and EAlfAlignHRight is converted to EAlfAlignHLeft. |
|
76 |
* |
|
77 |
* EAlfAlignHLocale (default setting) - alignment set according to text directionality |
|
78 |
* |
|
79 |
* @param aAlign Horizontal text alignment type. |
|
80 |
*/ |
|
81 |
virtual void SetTextAlign( const TAlfAlignHorizontal aAlign ); |
|
82 |
||
83 |
/** |
|
84 |
* The function sets item's text color for the focused state. |
|
85 |
* |
|
86 |
* @param aColor New color to be set. |
|
87 |
*/ |
|
88 |
virtual void SetFocusedStateTextColor( const TRgb& aColor ); |
|
89 |
||
90 |
/** |
|
91 |
* The function returns item's text color for the focused state. |
|
92 |
*/ |
|
93 |
virtual TRgb FocusedStateTextColor() const; |
|
94 |
||
95 |
/** |
|
96 |
* The function sets item's text color for the normal (unfocused) state. |
|
97 |
* |
|
98 |
* @param aColor New color to be set. |
|
99 |
*/ |
|
100 |
virtual void SetNormalStateTextColor( const TRgb& aColor ); |
|
101 |
||
102 |
/** |
|
103 |
* The function returns item's text color for the normal (unfocused) state |
|
104 |
*/ |
|
105 |
virtual TRgb NormalStateTextColor() const; |
|
106 |
||
107 |
/** |
|
108 |
* The function sets the style of item's text. |
|
109 |
* |
|
110 |
* @param aTextStyleId Text style ID provided by the text style manager. |
|
111 |
*/ |
|
112 |
virtual void SetTextStyleId ( const TInt aTextStyleId ); |
|
113 |
||
114 |
/** |
|
115 |
* The function returns the style of item's text. |
|
116 |
* |
|
117 |
* @return Text style ID provided by the text style manager. |
|
118 |
*/ |
|
119 |
virtual TInt TextStyleId () const; |
|
120 |
||
121 |
/** |
|
122 |
* From MFsTreeItemVisualizer. |
|
123 |
* Sets multiple flags for an item at one time. |
|
124 |
* |
|
125 |
* @param aFlags Flags for item visualizer. |
|
126 |
*/ |
|
127 |
virtual void SetFlags( TUint32 aFlags ); |
|
128 |
||
129 |
/** |
|
130 |
* From MFsTreeItemVisualizer. |
|
131 |
* Returns flags of the item visualizer. |
|
132 |
* |
|
133 |
* @return Item visualizer's flags value. |
|
134 |
*/ |
|
135 |
virtual TUint32 Flags(); |
|
136 |
||
137 |
/** |
|
138 |
* From MFsTreeItemVisualizer. |
|
139 |
* Sets visualized item's state to marked/unmarked. |
|
140 |
* |
|
141 |
* @param aFlag ETrue to visualize item as marked. |
|
142 |
*/ |
|
143 |
virtual void SetMarked( TBool aFlag ); |
|
144 |
||
145 |
/** |
|
146 |
* From MFsTreeItemVisualizer. |
|
147 |
* Returns mark/unmark state of the item's visualization. |
|
148 |
* |
|
149 |
* @return ETrue if item is visualized as marked. |
|
150 |
*/ |
|
151 |
virtual TBool IsMarked() const; |
|
152 |
||
153 |
/** |
|
154 |
* From MFsTreeItemVisualizer. |
|
155 |
* Sets visualized item's state to dimmed/not dimmed. |
|
156 |
* |
|
157 |
* @param aFlag ETrue to visualize item as dimmed. |
|
158 |
*/ |
|
159 |
virtual void SetDimmed( TBool aFlag ); |
|
160 |
||
161 |
/** |
|
162 |
* From MFsTreeItemVisualizer. |
|
163 |
* Returns dimmed/not dimmed state of the item's visualization. |
|
164 |
* |
|
165 |
* @return ETrue if item is visualized as dimmed. |
|
166 |
*/ |
|
167 |
virtual TBool IsDimmed() const; |
|
168 |
||
169 |
/** |
|
170 |
* From MFsTreeItemVisualizer. |
|
171 |
* Sets the size of the item visualization when item is not in expanded |
|
172 |
* state. |
|
173 |
* |
|
174 |
* @param aSize Size in pixels of the an when it is not expanded. |
|
175 |
*/ |
|
176 |
virtual void SetSize( const TSize aSize ); |
|
177 |
||
178 |
/** |
|
179 |
* From MFsTreeItemVisualizer. |
|
180 |
* Returns the size of an item in a normal (not extended) state. |
|
181 |
* |
|
182 |
* @return Size in pixels of an item when it is not extended. |
|
183 |
*/ |
|
184 |
virtual TSize Size() const; |
|
185 |
||
186 |
/** |
|
187 |
* From MFsTreeItemVisualizer. |
|
188 |
* Sets the item's visualization state to expanded. This state is used to |
|
189 |
* preview more data of an item. |
|
190 |
* |
|
191 |
* @param aFlag ETrue to visualize item as expanded. |
|
192 |
*/ |
|
193 |
virtual void SetExtended( const TBool aFlag ); |
|
194 |
||
195 |
/** |
|
196 |
* From MFsTreeItemVisualizer. |
|
197 |
* Returns expanded/not expanded state of the item visualization. |
|
198 |
* |
|
199 |
* @return ETrue if item is visualized as expanded. |
|
200 |
*/ |
|
201 |
virtual TBool IsExtended() const; |
|
202 |
||
203 |
/** |
|
204 |
* From MFsTreeItemVisualizer. |
|
205 |
* Sets if an item can be in expanded state or not. |
|
206 |
* |
|
207 |
* @param aFlag ETrue if item can be in expanded state. |
|
208 |
*/ |
|
209 |
virtual void SetExtendable( TBool aFlag ); |
|
210 |
||
211 |
/** |
|
212 |
* From MFsTreeItemVisualizer. |
|
213 |
* Returns an information if item can be in expanded state. |
|
214 |
* |
|
215 |
* @return ETrue if item can be in expanded state. |
|
216 |
*/ |
|
217 |
virtual TBool IsExtendable( ); |
|
218 |
||
219 |
/** |
|
220 |
* From MFsTreeItemVisualizer |
|
221 |
* Returns an information if item can be focused. |
|
222 |
* |
|
223 |
* @return ETrue if item can be focused. |
|
224 |
*/ |
|
225 |
virtual TBool IsFocusable( ) const; |
|
226 |
||
227 |
/** |
|
228 |
* From MFsTreeItemVisualizer |
|
229 |
* Used to set/unset item's ability to receive focus. |
|
230 |
* |
|
231 |
* @param aFlag ETrue if item can be focused. |
|
232 |
*/ |
|
233 |
virtual void SetFocusable( const TBool aFlag ); |
|
234 |
||
235 |
/** |
|
236 |
* From MFsTreeItemVisualizer. |
|
237 |
* Sets the size of the item visualization area when item is in expanded |
|
238 |
* state. |
|
239 |
* |
|
240 |
* @param aSize Size in pixels of the item when it is expanded. |
|
241 |
*/ |
|
242 |
virtual void SetExtendedSize( const TSize aSize ); |
|
243 |
||
244 |
/** |
|
245 |
* From MFsTreeItemVisualizer. |
|
246 |
* Returns the size of an item in expanded state. |
|
247 |
* |
|
248 |
* @return Size in pixels of the item when it is in expanded state. |
|
249 |
*/ |
|
250 |
virtual TSize ExtendedSize() const; |
|
251 |
||
252 |
/** |
|
253 |
* From MFsTreeItemVisualizer. |
|
254 |
* Sets visualized item's state to hidden/visible. |
|
255 |
* |
|
256 |
* @param ETrue if item should be visualized as hidden. |
|
257 |
*/ |
|
258 |
virtual void SetHidden( TBool aFlag ); |
|
259 |
||
260 |
/** |
|
261 |
* From MFsTreeItemVisualizer. |
|
262 |
* Returns an information if the item is hidden or not. |
|
263 |
* |
|
264 |
* @return ETrue if item is hiddden, EFalse if item is visible. |
|
265 |
*/ |
|
266 |
virtual TBool IsHidden() ; |
|
267 |
||
268 |
/** |
|
269 |
* From MFsTreeItemVisualizer. |
|
270 |
* Enables or disables text shadow. |
|
271 |
* |
|
272 |
* @param aShadowOn Pass ETrue if shadow should be enabled |
|
273 |
* EFalse otherwise. |
|
274 |
*/ |
|
275 |
virtual void EnableTextShadow( const TBool aShadowOn = ETrue ); |
|
276 |
||
277 |
/** |
|
278 |
* From MFsTreeItemVisualizer. |
|
279 |
* Sets text indentation. |
|
280 |
* |
|
281 |
* @param aIndentation Indentation in pixels. |
|
282 |
*/ |
|
283 |
virtual void SetIndentation( const TInt aIndentation = 0 ); |
|
284 |
||
285 |
/** |
|
286 |
* From MFsTreeItemVisualizer. |
|
287 |
* Sets item background color. |
|
288 |
* |
|
289 |
* @param aColor New background color. |
|
290 |
*/ |
|
291 |
virtual void SetBackgroundColor( const TRgb aColor ); |
|
292 |
||
293 |
/** |
|
294 |
* From MFsTreeItemVisualizer. |
|
295 |
* Returns background color if it's set. |
|
296 |
* |
|
297 |
* @param aColor Out parameter. Contains background color. |
|
298 |
* |
|
299 |
* @return ETrue if background color is set, EFalse otherwise. |
|
300 |
*/ |
|
301 |
virtual TBool GetBackgroundColor( TRgb& aColor ); |
|
302 |
||
303 |
/** |
|
304 |
* From MFsTreeItemVisualizer. |
|
305 |
* Sets item background texture. |
|
306 |
* |
|
307 |
* @param aTexture New background texture. |
|
308 |
*/ |
|
309 |
virtual void SetBackgroundTexture( const CAlfTexture& aTexture ); |
|
310 |
||
311 |
/** |
|
312 |
* From MFsTreeItemVisualizer. |
|
313 |
* Sets item background brush. Ownership not transfered. |
|
314 |
* |
|
315 |
* @param aBrush New background brush. |
|
316 |
*/ |
|
317 |
virtual void SetBackgroundBrush( CAlfBrush* aBrush ); |
|
318 |
||
319 |
/** |
|
320 |
* From MFsTreeItemVisualizer. |
|
321 |
* Returns item background brush. |
|
322 |
* |
|
323 |
* @param aBrush Out parameter. Contains pointer to a background brush. |
|
324 |
* |
|
325 |
* @return ETrue if background brush is set, EFalse otherwise. |
|
326 |
*/ |
|
327 |
virtual TBool GetBackgroundBrush( CAlfBrush*& aBrush ); |
|
328 |
||
329 |
/** |
|
330 |
* From MFsTreeItemVisualizer. |
|
331 |
* Returns background texture if it's set. |
|
332 |
* |
|
333 |
* @param aTexture Out parameter. Contains pointer to a texture. |
|
334 |
* |
|
335 |
* @return ETrue if background texture is set, EFalse otherwise. |
|
336 |
*/ |
|
337 |
virtual TBool GetBackgroundTexture( const CAlfTexture*& aTexture ); |
|
338 |
||
339 |
/** |
|
340 |
* From MFsTreeItemVisualizer. |
|
341 |
* Clears item background. |
|
342 |
*/ |
|
343 |
virtual void ClearBackground( ); |
|
344 |
||
345 |
/** |
|
346 |
* Sets menu for item |
|
347 |
* @param aMenu CTreeList object containing menu items |
|
348 |
*/ |
|
349 |
virtual void SetMenu( CFsTreeList* aMenu ); |
|
350 |
||
351 |
/** |
|
352 |
* Returns CFsTreeList object contaning menu items |
|
353 |
* @return Menu for item. |
|
354 |
*/ |
|
355 |
virtual CFsTreeList* Menu() const; |
|
356 |
||
357 |
/** |
|
358 |
* This functions sets wether an item should always be in extended state. |
|
359 |
* |
|
360 |
* @param ETrue if item should always be in extended state. |
|
361 |
*/ |
|
362 |
virtual void SetAlwaysExtended( TBool aAlwaysExtended ); |
|
73
c8382f7b54ef
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
363 |
|
c8382f7b54ef
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
364 |
virtual void SetMarkingMode( TBool aMarkingMode ); |
64 | 365 |
|
366 |
/** |
|
367 |
* This function returns wether an item is always in extended state. |
|
368 |
* |
|
369 |
* @return ETrue if item is always in extended state. |
|
370 |
*/ |
|
371 |
virtual TBool IsAlwaysExtended( ) const; |
|
372 |
||
373 |
/** |
|
374 |
* Sets the text style manager for the item visualizer. |
|
375 |
* |
|
376 |
* @param aManager Reference to the text style manager. |
|
377 |
*/ |
|
378 |
virtual void SetTextStyleManager( CFsAlfTextStyleManager& aManager ); |
|
379 |
||
380 |
/** |
|
381 |
* Sets the text stroke weight for the item visualizer. |
|
382 |
* |
|
383 |
* @param aIsBold ETrue if the text shoul be bold. |
|
384 |
*/ |
|
385 |
virtual void SetTextBold( const TBool aIsBold ); |
|
386 |
||
387 |
/** |
|
388 |
* Method to set text font height in twips. |
|
389 |
* |
|
390 |
* @param aHeightInTwips Text font height to be set. |
|
391 |
*/ |
|
392 |
virtual void SetFontHeight(const TInt aHeightInTwips); |
|
393 |
||
394 |
/** |
|
395 |
* Gets height of a text font in twips. |
|
396 |
* |
|
397 |
* @return Height of the font in twips |
|
398 |
*/ |
|
399 |
virtual TInt FontHeight() const; |
|
400 |
||
401 |
/** |
|
402 |
* Method to set text font height in pixels. |
|
403 |
* |
|
404 |
* @param aHeightInPixels Text font height to be set. |
|
405 |
*/ |
|
406 |
virtual void SetFontHeightInPixels(const TInt aHeightInPixels); |
|
407 |
||
408 |
/** |
|
409 |
* Gets height of a text font in pixels. |
|
410 |
* |
|
411 |
* @return Height of the font in pixels. |
|
412 |
*/ |
|
413 |
virtual TInt FontHeightInPixels() const; |
|
414 |
||
415 |
/** |
|
416 |
* Gets the text stroke weight for the item visualizer. |
|
417 |
* |
|
418 |
* @return ETrue if the text is be bold. |
|
419 |
*/ |
|
420 |
virtual TBool IsTextBold( ) const; |
|
421 |
||
422 |
/** |
|
423 |
* |
|
424 |
*/ |
|
425 |
virtual CAlfLayout& Layout() const; |
|
426 |
||
427 |
/** |
|
428 |
* |
|
429 |
*/ |
|
430 |
virtual void ShowL( CAlfLayout& aParentLayout, |
|
431 |
const TUint aTimeout = 0 ); |
|
432 |
||
433 |
/** |
|
434 |
* |
|
435 |
*/ |
|
436 |
virtual void UpdateL( const MFsTreeItemData& aData, |
|
437 |
TBool aFocused, |
|
438 |
const TUint aLevel, |
|
73
c8382f7b54ef
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
439 |
CAlfTexture*& aMarkOnIcon, |
c8382f7b54ef
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
440 |
CAlfTexture*& aMarkOffIcon, |
64 | 441 |
CAlfTexture*& aMenuIcon, |
442 |
const TUint aTimeout = 0, |
|
443 |
TBool aUpdateData = ETrue); |
|
444 |
||
445 |
/** |
|
446 |
* |
|
447 |
*/ |
|
448 |
virtual void Hide( const TInt aTimeout = 0 ); |
|
449 |
||
450 |
/** |
|
451 |
* From MFsTreeItemVisualizer. |
|
452 |
* This method marquees the text in tree item if it is too long. |
|
453 |
* |
|
454 |
* @param aMarqueeType Type of marquee. |
|
455 |
* @param aMarqueeSpeed Speed of marquee in pixels per second. |
|
456 |
* @param aMarqueeStartDelay Marquee's start delay in miliseconds. |
|
457 |
* @param aMarqueeCycleStartDelay Marquee cycle's start delay. |
|
458 |
* @param aMarqueeRepetitions Number of marquee's cycles. |
|
459 |
*/ |
|
460 |
virtual void MarqueeL(const TFsTextMarqueeType aMarqueeType, |
|
461 |
const TUint aMarqueeSpeed, |
|
462 |
const TInt aMarqueeStartDelay, |
|
463 |
const TInt aMarqueeCycleStartDelay, |
|
464 |
const TInt aMarqueeRepetitions); |
|
465 |
||
466 |
/** |
|
467 |
* From MAlfEventHandler. |
|
468 |
* Called when an input event is being offered to this object. |
|
469 |
*/ |
|
470 |
virtual TBool OfferEventL(const TAlfEvent& aEvent); |
|
471 |
||
472 |
public: |
|
473 |
||
474 |
/* |
|
475 |
* Layouting hints for the visualizers. Hints are binary flags so they can be mixed. |
|
476 |
*/ |
|
477 |
enum TLayoutHint |
|
478 |
{ |
|
479 |
ENormalLayout = 0, |
|
480 |
// Use folder layout for item visualizers |
|
481 |
EFolderLayout = (1<<0), |
|
482 |
// Item visualizers are in popup |
|
483 |
EPopupLayout = (1<<1) |
|
484 |
}; |
|
485 |
||
486 |
public: |
|
487 |
||
488 |
/** |
|
489 |
* Set layout hint(s). Given hints are ORed so previously set flags will remain. |
|
490 |
*/ |
|
491 |
virtual void SetLayoutHints( const TUint aHints ); |
|
492 |
||
493 |
/** |
|
494 |
* Check if given layout hint is set. |
|
495 |
*/ |
|
496 |
virtual TBool IsLayoutHintSet( const TLayoutHint aHint ) const; |
|
497 |
||
498 |
protected: |
|
499 |
||
500 |
/** |
|
501 |
* C++ constructor |
|
502 |
*/ |
|
503 |
CFsTreeItemVisualizerBase(CAlfControl& aOwnerControl); |
|
504 |
||
505 |
/** |
|
506 |
* Second phase constructor |
|
507 |
* |
|
508 |
*/ |
|
509 |
void ConstructL( ); |
|
510 |
||
511 |
protected: |
|
512 |
||
513 |
/** |
|
514 |
* Function gets text color for a focused item. The color is taken from |
|
515 |
* the skin if skin support is on, if not then a default value is used. |
|
516 |
* |
|
517 |
* @return aTextColor Text's color. |
|
518 |
*/ |
|
519 |
virtual TRgb FocusedStateTextSkinColor( ); |
|
520 |
||
521 |
/** |
|
522 |
* Function gets text color for a non focused item. The color is taken |
|
523 |
* from the skin if skin support is on, if not then a default value is |
|
524 |
* used. |
|
525 |
* |
|
526 |
* @return aTextColor Text's color. |
|
527 |
*/ |
|
528 |
virtual TRgb NormalStateTextSkinColor( ); |
|
529 |
||
530 |
/** |
|
531 |
* Returns horizontal alignment of the displayed text in respect to |
|
532 |
* current layout. |
|
533 |
* |
|
534 |
* For AH layout EAlfAlignHLeft is internally converted to EAlfAlignHRight |
|
535 |
* and EAlfAlignHRight is converted to EAlfAlignHLeft. |
|
536 |
* |
|
537 |
* @param aAlign Horizontal text alignment type. |
|
538 |
*/ |
|
539 |
virtual TAlfAlignHorizontal CurrentTextAlignmentL( TAlfAlignHorizontal aAlignment, |
|
540 |
TDesC* aText, |
|
541 |
CAlfTextVisual* aVisual); |
|
542 |
||
543 |
||
544 |
/** |
|
545 |
* Returns text style id used in the item. |
|
546 |
*/ |
|
547 |
virtual TInt ModifiedStyleIdL( ) const; |
|
548 |
||
549 |
protected: |
|
550 |
||
551 |
/** |
|
552 |
* State of the background: clear, color, texture. |
|
553 |
*/ |
|
554 |
enum TFsItemBackgroundState |
|
555 |
{ |
|
556 |
EFsItemBackgroundNone, |
|
557 |
EFsItemBackgroundColor, |
|
558 |
EFsItemBackgroundTexture, |
|
559 |
EFsItemBackgroundBrush |
|
560 |
}; |
|
561 |
||
562 |
protected: |
|
563 |
||
564 |
/* |
|
565 |
* A parent control for the tree visualizer. |
|
566 |
*/ |
|
567 |
CAlfControl& iOwnerControl; |
|
568 |
||
569 |
/* |
|
570 |
* Parent layout of the item layout, typically list layout. |
|
571 |
* Not own. |
|
572 |
*/ |
|
573 |
CAlfLayout* iParentLayout; |
|
574 |
||
575 |
/** |
|
576 |
* Main layout for the plain text item. |
|
577 |
* Own. |
|
578 |
*/ |
|
579 |
CAlfAnchorLayout* iLayout; |
|
580 |
||
581 |
/* |
|
582 |
* Visualizer's state flag. |
|
583 |
*/ |
|
584 |
TUint32 iFlags; |
|
585 |
||
586 |
/* |
|
587 |
* Horizontal text alignment in visual. |
|
588 |
*/ |
|
589 |
TAlfAlignHorizontal iTextAlign; |
|
590 |
||
591 |
/* |
|
592 |
* Item's size. |
|
593 |
*/ |
|
594 |
TSize iSize; |
|
595 |
||
596 |
/* |
|
597 |
* Item's extended size. |
|
598 |
*/ |
|
599 |
TSize iExtendedSize; |
|
600 |
||
601 |
/** |
|
602 |
* CFsTreeList containing menu for item |
|
603 |
*/ |
|
604 |
CFsTreeList* iMenu; |
|
605 |
||
606 |
/** |
|
607 |
* Text indetation in pixels. |
|
608 |
*/ |
|
609 |
TInt iTextIndentation; |
|
610 |
||
611 |
/** |
|
612 |
* Custom color set for a text in normal state. |
|
613 |
* ETrue custom color set, EFalse use color from the skin. |
|
614 |
*/ |
|
615 |
TBool iIsCustomTextNormalColor; |
|
616 |
||
617 |
/** |
|
618 |
* Text's color in normal (unfocused) state. |
|
619 |
*/ |
|
620 |
TRgb iNormalTextColor; |
|
621 |
||
622 |
/** |
|
623 |
* Custom color set for a text in focused state. |
|
624 |
* ETrue custom color set, EFalse use color from the skin. |
|
625 |
*/ |
|
626 |
TBool iIsCustomTextFocusedColor; |
|
627 |
||
628 |
/** |
|
629 |
* Text's color in focused state. |
|
630 |
*/ |
|
631 |
TRgb iFocusedTextColor; |
|
632 |
||
633 |
/** |
|
634 |
* Text's style. The id comes from CAlfTextStyleManager. |
|
635 |
*/ |
|
636 |
TInt iTextStyleId; |
|
637 |
||
638 |
/** |
|
639 |
* ETrue if custom text style is used. EFalse text style taken from layout manager. |
|
640 |
*/ |
|
641 |
TBool iIsCustomTextStyle; |
|
642 |
||
643 |
/** |
|
644 |
* Item's text style manager. |
|
645 |
*/ |
|
646 |
CFsAlfTextStyleManager* iTextStyleManager; |
|
647 |
||
648 |
/** |
|
649 |
* Font height |
|
650 |
*/ |
|
651 |
TInt iFontHeight; |
|
652 |
||
653 |
/** |
|
654 |
* State of the background: clear, color, texture. |
|
655 |
*/ |
|
656 |
TFsItemBackgroundState iBackgroundState; |
|
657 |
||
658 |
/* |
|
659 |
* Background color. |
|
660 |
*/ |
|
661 |
TRgb iBackgroundColor; |
|
662 |
||
663 |
/** |
|
664 |
* Background texture. |
|
665 |
* Not own. |
|
666 |
*/ |
|
667 |
const CAlfTexture* iBackgroundTexture; |
|
668 |
||
669 |
/** |
|
670 |
* Background brush. |
|
671 |
* Not own. |
|
672 |
*/ |
|
673 |
CAlfBrush* iBackgroundBrush; |
|
674 |
||
675 |
/** |
|
676 |
* Layouting hints. @see CFsTreeItemVisualizerBase::TLayoutHint |
|
677 |
*/ |
|
678 |
TUint iLayoutHints; |
|
679 |
}; |
|
680 |
||
681 |
#endif /*FSTREEITEMVISUALIZERBASE_H_*/ |