|
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: An underline is drawn for DayView to TitlePane. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CALENTITLEPANE_H |
|
20 #define CALENTITLEPANE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <akntitle.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CEikStatusPane; |
|
27 |
|
28 // CLASS DEFINITIONS |
|
29 |
|
30 /** |
|
31 * TitlePane class which draws underline |
|
32 * |
|
33 * @lib avkon |
|
34 * @lib eikcoctl |
|
35 * @lib cone |
|
36 * @since 0.9 |
|
37 */ |
|
38 NONSHARABLE_CLASS( CCalenTitlePane ) : public CAknTitlePane |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 /** |
|
42 * Statically access title pane. |
|
43 */ |
|
44 static CCalenTitlePane& StaticL(); |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 * Creates CCalenTitlePane, and swaps previous CAknTitlePane |
|
49 */ |
|
50 IMPORT_C static CCalenTitlePane* NewAndSwapL(CEikStatusPane* aPane); |
|
51 |
|
52 /** |
|
53 * C++ default constructor. |
|
54 */ |
|
55 IMPORT_C virtual ~CCalenTitlePane(); |
|
56 |
|
57 public: // New function |
|
58 /** |
|
59 * The flag which writes an underline is set. |
|
60 * @param aUnderline ETrue: Draws underline |
|
61 */ |
|
62 void SetUnderLine(TBool aUnderline); |
|
63 |
|
64 /** |
|
65 * Returns underline flag |
|
66 * @since 0.9 |
|
67 * @return ETrue: Draws underline |
|
68 */ |
|
69 TBool UnderLine(); |
|
70 |
|
71 private: |
|
72 /** |
|
73 * C++ default constructor. |
|
74 */ |
|
75 CCalenTitlePane(); |
|
76 |
|
77 private: // MCoeControlContext |
|
78 /** |
|
79 * Relpaces from a nallow font to a bold font |
|
80 * @since 1.1 |
|
81 */ |
|
82 void PrepareContext(CWindowGc& aGc) const; |
|
83 |
|
84 // Under development |
|
85 private: // Data |
|
86 MCoeControlContext* iOrgContext; |
|
87 }; |
|
88 |
|
89 #endif // CALENTITLEPANE_H |
|
90 |
|
91 |
|
92 // End of File |