27 |
27 |
28 // --------------------------------------------------------------------------- |
28 // --------------------------------------------------------------------------- |
29 // CMRLabel::NewL |
29 // CMRLabel::NewL |
30 // --------------------------------------------------------------------------- |
30 // --------------------------------------------------------------------------- |
31 // |
31 // |
32 EXPORT_C CMRLabel* CMRLabel::NewL() |
32 EXPORT_C CMRLabel* CMRLabel::NewL( const CCoeControl* aParent ) |
33 { |
33 { |
34 FUNC_LOG; |
34 FUNC_LOG; |
35 |
35 |
36 CMRLabel* self = new (ELeave) CMRLabel(); |
36 CMRLabel* self = new (ELeave) CMRLabel(); |
37 CleanupStack::PushL( self ); |
37 CleanupStack::PushL( self ); |
38 self->ConstructL(); |
38 self->ConstructL( aParent ); |
39 CleanupStack::Pop( self ); |
39 CleanupStack::Pop( self ); |
40 return self; |
40 return self; |
41 } |
41 } |
42 |
42 |
43 // --------------------------------------------------------------------------- |
43 // --------------------------------------------------------------------------- |
44 // CMRLabel::ConstructL |
44 // CMRLabel::ConstructL |
45 // --------------------------------------------------------------------------- |
45 // --------------------------------------------------------------------------- |
46 // |
46 // |
47 void CMRLabel::ConstructL() |
47 void CMRLabel::ConstructL( const CCoeControl* aParent ) |
48 { |
48 { |
49 FUNC_LOG; |
49 FUNC_LOG; |
50 |
50 |
51 NMRColorManager::SetColor( *this, |
51 NMRColorManager::SetColor( *this, |
52 NMRColorManager::EMRMainAreaTextColor ); |
52 NMRColorManager::EMRMainAreaTextColor ); |
|
53 |
|
54 if ( aParent ) |
|
55 { |
|
56 SetContainerWindowL( *aParent ); |
|
57 } |
53 } |
58 } |
54 |
59 |
55 // --------------------------------------------------------------------------- |
60 // --------------------------------------------------------------------------- |
56 // CMRLabel::CMRLabel |
61 // CMRLabel::CMRLabel |
57 // --------------------------------------------------------------------------- |
62 // --------------------------------------------------------------------------- |