|
1 /* |
|
2 * Copyright (c) 2009-2009 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: URL Parser ECom plugin entry point |
|
15 * |
|
16 */ |
|
17 #include "cmrlabel.h" |
|
18 #include "nmrcolormanager.h" |
|
19 |
|
20 #include <AknUtils.h> |
|
21 #include <AknsUtils.h> |
|
22 #include <AknsConstants.h> |
|
23 #include <aknsconstants.hrh> |
|
24 #include <gdi.h> |
|
25 |
|
26 #include "emailtrace.h" |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // CMRLabel::NewL |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 EXPORT_C CMRLabel* CMRLabel::NewL( const CCoeControl* aParent ) |
|
33 { |
|
34 FUNC_LOG; |
|
35 |
|
36 CMRLabel* self = new (ELeave) CMRLabel(); |
|
37 CleanupStack::PushL( self ); |
|
38 self->ConstructL( aParent ); |
|
39 CleanupStack::Pop( self ); |
|
40 return self; |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // CMRLabel::ConstructL |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 void CMRLabel::ConstructL( const CCoeControl* aParent ) |
|
48 { |
|
49 FUNC_LOG; |
|
50 |
|
51 NMRColorManager::SetColor( *this, |
|
52 NMRColorManager::EMRMainAreaTextColor ); |
|
53 |
|
54 if ( aParent ) |
|
55 { |
|
56 SetContainerWindowL( *aParent ); |
|
57 } |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------------------------- |
|
61 // CMRLabel::CMRLabel |
|
62 // --------------------------------------------------------------------------- |
|
63 // |
|
64 CMRLabel::CMRLabel() |
|
65 { |
|
66 FUNC_LOG; |
|
67 |
|
68 // Do nothing |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------------------------- |
|
72 // CMRLabel::~CMRLabel |
|
73 // --------------------------------------------------------------------------- |
|
74 // |
|
75 EXPORT_C CMRLabel::~CMRLabel() |
|
76 { |
|
77 FUNC_LOG; |
|
78 |
|
79 // Do nothing |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------------------------- |
|
83 // CMRLabel::FocusChanged |
|
84 // --------------------------------------------------------------------------- |
|
85 // |
|
86 void CMRLabel::FocusChanged( TDrawNow aDrawNow ) |
|
87 { |
|
88 FUNC_LOG; |
|
89 |
|
90 CEikLabel::FocusChanged( aDrawNow ); |
|
91 } |
|
92 |
|
93 // --------------------------------------------------------------------------- |
|
94 // CMRLabel::SizeChanged |
|
95 // --------------------------------------------------------------------------- |
|
96 // |
|
97 void CMRLabel::SizeChanged() |
|
98 { |
|
99 FUNC_LOG; |
|
100 |
|
101 CEikLabel::SizeChanged(); |
|
102 |
|
103 NMRColorManager::SetColor( |
|
104 *this, |
|
105 NMRColorManager::EMRMainAreaTextColor ); |
|
106 } |
|
107 |
|
108 // End of file |