|
1 /* |
|
2 * Copyright (c) 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: Definition of class CFscContactActionMenuListBoxItemDrawer. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_FSCCONTACTACTIONMENULISTBOXITEMDRAWER_H |
|
20 #define C_FSCCONTACTACTIONMENULISTBOXITEMDRAWER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <eikclb.h> |
|
24 |
|
25 // DEFINES |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 /** |
|
30 * Contact Action Menu list box item drawer declaration. |
|
31 * |
|
32 * @since S60 3.1 |
|
33 */ |
|
34 class CFscContactActionMenuListBoxItemDrawer |
|
35 : public CColumnListBoxItemDrawer |
|
36 { |
|
37 |
|
38 public: // Public constructor and destructor |
|
39 |
|
40 /** |
|
41 * C++ default constructor. |
|
42 * |
|
43 * Initialises the list box item drawer with the specified model, |
|
44 * font and data. |
|
45 * |
|
46 * @param aTextListBoxModel The model whose items will be drawn. |
|
47 * This provides the item text that is drawn using |
|
48 * @c DrawItemText(). |
|
49 * @param aFont The font in which the items will be drawn. |
|
50 * @param aColumnData The column list box data. This comprises: |
|
51 * the column widths, gaps, fonts, aligments and bitmaps. |
|
52 */ |
|
53 CFscContactActionMenuListBoxItemDrawer( |
|
54 MTextListBoxModel* aTextListBoxModel, |
|
55 const CFont* aFont, |
|
56 CColumnListBoxData* aColumnData ); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 virtual ~CFscContactActionMenuListBoxItemDrawer(); |
|
62 |
|
63 public: // From Base class |
|
64 |
|
65 /** |
|
66 * Draw item text. |
|
67 * |
|
68 * This function is invoked by @c DrawActualItem() to draw the item text. |
|
69 * |
|
70 * @param aItemIndex Index of the item to draw. |
|
71 * @param aItemTextRect Area to draw into. |
|
72 * @param aItemIsCurrent @c ETrue if the item is current. |
|
73 * @param aViewIsEmphasized @c ETrue if the view is emphasised. |
|
74 * @param aItemIsSelected @c ETrue if the item is selected. |
|
75 */ |
|
76 virtual void DrawItemText( |
|
77 TInt aItemIndex, |
|
78 const TRect& aItemTextRect, |
|
79 TBool aItemIsCurrent, |
|
80 TBool aViewIsEmphasized, |
|
81 TBool aItemIsSelected ) const; |
|
82 |
|
83 }; |
|
84 |
|
85 #endif // C_FSCCONTACTACTIONMENULISTBOXITEMDRAWER_H |