66 TKeyResponse CMceMainViewEmptyListContainer::OfferKeyEventL( |
71 TKeyResponse CMceMainViewEmptyListContainer::OfferKeyEventL( |
67 const TKeyEvent& /*aKeyEvent*/, TEventCode /*aType*/) |
72 const TKeyEvent& /*aKeyEvent*/, TEventCode /*aType*/) |
68 { |
73 { |
69 return EKeyWasConsumed; |
74 return EKeyWasConsumed; |
70 } |
75 } |
71 |
76 // --------------------------------------------------------- |
|
77 // CMceMainViewEmptyListContainer::MopSupplyObject |
|
78 // --------------------------------------------------------- |
|
79 // |
|
80 TTypeUid::Ptr CMceMainViewEmptyListContainer::MopSupplyObject(TTypeUid aId) |
|
81 { |
|
82 if (aId.iUid == MAknsControlContext::ETypeId) |
|
83 { |
|
84 return MAknsControlContext::SupplyMopObject( aId, iBgContext ); |
|
85 } |
|
86 return CCoeControl::MopSupplyObject(aId); |
|
87 } |
|
88 // --------------------------------------------------------- |
|
89 // CMceMainViewEmptyListContainer::SizeChanged |
|
90 // --------------------------------------------------------- |
|
91 // |
|
92 void CMceMainViewEmptyListContainer::SizeChanged() |
|
93 { |
|
94 if ( iBgContext ) |
|
95 { |
|
96 iBgContext->SetRect( Rect() ); |
|
97 iBgContext->SetParentPos( PositionRelativeToScreen() ); |
|
98 } |
|
99 } |
72 // --------------------------------------------------------- |
100 // --------------------------------------------------------- |
73 // CMceMainViewEmptyListContainer::Draw |
101 // CMceMainViewEmptyListContainer::Draw |
74 // --------------------------------------------------------- |
102 // --------------------------------------------------------- |
75 // |
103 // |
76 void CMceMainViewEmptyListContainer::Draw(const TRect& /*aRect*/ ) const |
104 void CMceMainViewEmptyListContainer::Draw(const TRect& /*aRect*/ ) const |
77 { |
105 { |
78 CWindowGc& gc = SystemGc(); |
106 CWindowGc& gc = SystemGc(); |
79 gc.SetPenColor( AKN_LAF_COLOR ( 0 ) ); // background |
107 TRect aRect = Rect(); |
80 gc.SetPenStyle( CGraphicsContext::ESolidPen ); |
108 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
81 gc.SetPenSize( TSize(0,0) ); // no border needed here |
109 MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); |
82 gc.DrawRect( Rect() ); |
110 |
|
111 if( !AknsDrawUtils::Background( skin, cc, this, gc, aRect ) ) |
|
112 { |
|
113 // Same as CCoeControl draw for blank controls |
|
114 CGraphicsContext& gcBlank = SystemGc(); |
|
115 gcBlank.SetPenStyle( CGraphicsContext::ENullPen ); |
|
116 gcBlank.SetBrushStyle( CGraphicsContext::ESolidBrush ); |
|
117 gcBlank.DrawRect( aRect ); |
|
118 } |
|
119 |
83 } |
120 } |
84 |
121 |
85 // End of File |
122 // End of File |