|
1 /* |
|
2 * Copyright (c) 2002 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: Customized drawing of CCalenWeekLBData. |
|
15 * DrawItemText() passes extended parameters to CCalenWeekLBData. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CALENWEEKLBITEMDRAWER_H |
|
22 #define CALENWEEKLBITEMDRAWER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <eikfrlb.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CEikListBox; |
|
29 struct SAknLayoutGfx; |
|
30 class CFbsBitmap; |
|
31 class TPoint; |
|
32 class CCalenWeekListbox; |
|
33 |
|
34 // CLASS DEFINITIONS |
|
35 |
|
36 /** |
|
37 * Customized drawing of CCalenWeekLBData. |
|
38 * DrawItemText() passes extended parameter to CCalenWeekLBData |
|
39 */ |
|
40 NONSHARABLE_CLASS( CCalenWeekListBoxItemDrawer ) |
|
41 : public CFormattedCellListBoxItemDrawer |
|
42 { |
|
43 public: // New function |
|
44 /** |
|
45 * C++ constructor. |
|
46 * @param aTextListBoxModel Listbox data Listbox |
|
47 * @param aFont Drawing font |
|
48 * @param aFormattedCellData Data drawing class |
|
49 * @param aListBox Listbox class |
|
50 */ |
|
51 CCalenWeekListBoxItemDrawer(MTextListBoxModel* aTextListBoxModel, |
|
52 const CFont* aFont, |
|
53 CFormattedCellListBoxData* aFormattedCellData); |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CCalenWeekListBoxItemDrawer(); |
|
58 |
|
59 private: // from CTextListItemDrawer |
|
60 /** |
|
61 * From CTextListItemDrawer |
|
62 * Passes a parameter to CFormattedCellListBoxData. |
|
63 */ |
|
64 void DrawItemText(TInt aItemIndex, const TRect& aItemTextRect, |
|
65 TBool aItemIsCurrent, TBool aViewIsEmphasized, |
|
66 TBool aItemIsSelected) const; |
|
67 }; |
|
68 |
|
69 #endif // CALENWEEKLBITEMDRAWER_H |
|
70 |
|
71 |
|
72 // End of File |