1 /* |
|
2 * Copyright (c) 2007 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: Class for displaying the title in the Status Pane |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CAMTITLE_H |
|
21 #define CAMTITLE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <coecntrl.h> |
|
25 #include "CamAppUiBase.h" // For TCamAppViewIds |
|
26 |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class MAknsControlContext; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Title control to show in small status pane layout |
|
35 */ |
|
36 class CCamTitlePane : public CCoeControl |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 * @since 3.0 |
|
43 */ |
|
44 virtual ~CCamTitlePane(); |
|
45 |
|
46 /** |
|
47 * Factory construction function |
|
48 * @since 3.0 |
|
49 */ |
|
50 static CCamTitlePane* NewL(); |
|
51 |
|
52 public: // New functions |
|
53 /** |
|
54 * Sets the title with the specified resource string |
|
55 * @since 3.0 |
|
56 * @param aResource The resource to get the string from |
|
57 */ |
|
58 void SetFromResourceL( TInt aResource ); |
|
59 |
|
60 /** |
|
61 * Sets the title with the specified string |
|
62 * @since 3.0 |
|
63 * @param aText The string to set the text |
|
64 */ |
|
65 void SetTextL( const TDesC& aText ); |
|
66 |
|
67 public: // Functions from base classes |
|
68 /** |
|
69 * From CCoeControl |
|
70 * @since 3.0 |
|
71 * @param aRect Rect indicating the specific area to draw |
|
72 */ |
|
73 void Draw( const TRect& /*aRect*/ ) const; |
|
74 |
|
75 /** |
|
76 * From CCoeControl |
|
77 * @since 3.0 |
|
78 */ |
|
79 void SizeChanged(); |
|
80 |
|
81 protected: // Constructors |
|
82 |
|
83 /** |
|
84 * C++ constructor |
|
85 * @since 3.0 |
|
86 */ |
|
87 CCamTitlePane(); |
|
88 |
|
89 /** |
|
90 * Second phase constructor |
|
91 * @since 3.0 |
|
92 */ |
|
93 void ConstructL(); |
|
94 |
|
95 protected: // Data |
|
96 HBufC16* iTextHbuf; |
|
97 |
|
98 TAknLayoutText iTitleTextLayout; |
|
99 |
|
100 // Layout for the Title Pane rectangle |
|
101 TAknLayoutRect iTitlePaneLayoutRect; |
|
102 }; |
|
103 |
|
104 #endif // CAMCONTAINERBASE_H |
|
105 |
|
106 // End of File |
|