author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:30:35 +0300 | |
branch | RCL_3 |
changeset 86 | ed599363c2d7 |
parent 66 | bd7edf625bdd |
permissions | -rw-r--r-- |
66 | 1 |
/* |
2 |
* Copyright (c) 2002, 2003 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: Navi control for eventview |
|
15 |
* |
|
16 |
*/ |
|
17 |
#ifndef CCALENCUSTOMNAVICONTROL_H |
|
18 |
#define CCALENCUSTOMNAVICONTROL_H |
|
19 |
||
20 |
// INCLUDES |
|
21 |
#include <coecntrl.h> |
|
22 |
#include <AknsBasicBackgroundControlContext.h> |
|
23 |
||
24 |
||
25 |
||
26 |
// CLASS DECLARATION |
|
27 |
NONSHARABLE_CLASS( CCustomNaviControl ) : public CCoeControl |
|
28 |
{ |
|
29 |
public: |
|
30 |
/** |
|
31 |
* First phase constructor |
|
32 |
* @param aName Calendar name |
|
33 |
* @param aColor Calendar color |
|
34 |
*/ |
|
35 |
static CCustomNaviControl* NewL(const TDesC& aName, const TRgb aColor); |
|
36 |
||
37 |
/** |
|
38 |
* Destructor. |
|
39 |
*/ |
|
40 |
virtual ~CCustomNaviControl(); |
|
41 |
||
42 |
/** |
|
43 |
* Sets the Calendar name and color |
|
44 |
* @param aName Calendar name |
|
45 |
* @param aColor Calendar color |
|
46 |
*/ |
|
86
ed599363c2d7
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
66
diff
changeset
|
47 |
void SetCalendarNameAndColor(const TDesC& aName, const TRgb aColor); |
66 | 48 |
|
49 |
private: |
|
50 |
||
51 |
/** |
|
52 |
* From CCoeControl |
|
53 |
*/ |
|
54 |
void Draw(const TRect& /*aRect*/) const; |
|
55 |
||
56 |
/** |
|
57 |
* From CCoeControl, child control was resized. |
|
58 |
*/ |
|
59 |
void SizeChanged(); |
|
60 |
||
61 |
/** |
|
62 |
* From CCoeControl, return child control count. |
|
63 |
* @return Control count |
|
64 |
*/ |
|
65 |
TInt CountComponentControls() const; |
|
66 |
||
67 |
/** |
|
68 |
* From CCoeControl, return child control pointer. |
|
69 |
* @param aIndex Child control index |
|
70 |
* @return Child control pointer. |
|
71 |
*/ |
|
72 |
CCoeControl* ComponentControl(TInt aIndex) const; |
|
73 |
||
74 |
private: // own methods |
|
75 |
/** |
|
76 |
* C++ constructor. |
|
77 |
*/ |
|
78 |
CCustomNaviControl(); |
|
79 |
||
80 |
/** |
|
81 |
* Second phase constructor |
|
82 |
*/ |
|
83 |
void ConstructL(const TDesC& aName, const TRgb aColor); |
|
84 |
||
85 |
private: |
|
86 |
CFbsBitmap* iBitmap; |
|
87 |
CFbsBitmap* iMask; |
|
88 |
HBufC *iCalendarName; |
|
89 |
TRgb iCalendarColor; |
|
90 |
||
91 |
}; |
|
92 |
#endif // CCALENCUSTOMNAVICONTROL_H |
|
93 |
||
94 |
// end of file |