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