|
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: Drawing Cell of Month View of calendar application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CALENMONTHCELLLISTBOXDATA_H |
|
21 #define CALENMONTHCELLLISTBOXDATA_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <eikfrlbd.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Drawing Cell of Month View of calendar application |
|
30 */ |
|
31 NONSHARABLE_CLASS( CCalenMonthCellListBoxData ) : public CFormattedCellListBoxData |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 */ |
|
37 static CCalenMonthCellListBoxData* NewL(); |
|
38 |
|
39 /** |
|
40 * Destructor. |
|
41 */ |
|
42 virtual ~CCalenMonthCellListBoxData(); |
|
43 |
|
44 private: // Constructors and destructor |
|
45 /** |
|
46 * C++ default constructor. |
|
47 */ |
|
48 CCalenMonthCellListBoxData(); |
|
49 |
|
50 private: // new function |
|
51 /** |
|
52 * Draw date and bitmap of Month Grid . |
|
53 * @param aProperties Item margin, etc... |
|
54 * @param aGc Graphic context |
|
55 * @param aText Drawing text |
|
56 * @param aItemRect item rect |
|
57 * @param aColors Drawing colors |
|
58 */ |
|
59 void DrawFormatted(TListItemProperties aProperties, |
|
60 CWindowGc& aGc, const TDesC* aText, |
|
61 const TRect& aItemRect, TBool aHighlight, |
|
62 const TColors& aColors) const; |
|
63 /** |
|
64 * an ordinal number of last subcell of cell |
|
65 * @return 2(constant) |
|
66 */ |
|
67 TInt LastSubCell() const; |
|
68 |
|
69 private: // From CFormattedCellListBoxData |
|
70 /** |
|
71 * From CFormattedCellListBoxData Draw a cell of Month Grid |
|
72 * @param aProperties Item margin, etc... |
|
73 * @param aGc Graphic context |
|
74 * @param aText Drawing text |
|
75 * @param aItemRect item rect |
|
76 * @param aColors Drawing colors |
|
77 */ |
|
78 void Draw(TListItemProperties aProperties, |
|
79 CWindowGc& aGc, const TDesC* aText, |
|
80 const TRect& aRect, TBool aHighlight, |
|
81 const TColors& aColors) const; |
|
82 |
|
83 private: // new data |
|
84 |
|
85 TBool iSkinHighlightDrawn; |
|
86 |
|
87 }; |
|
88 |
|
89 #endif // CALENMONTHCELLLISTBOXDATA_H |
|
90 |
|
91 |
|
92 // End of File |