equal
deleted
inserted
replaced
212 void CCalenWeekLBData::DrawFormatted( TListItemProperties aProperties, // Item property |
212 void CCalenWeekLBData::DrawFormatted( TListItemProperties aProperties, // Item property |
213 CWindowGc& aGc, // Graphics context |
213 CWindowGc& aGc, // Graphics context |
214 const TDesC* aText, // Drawing item text |
214 const TDesC* aText, // Drawing item text |
215 const TRect& aItemRect, // Item rectangle |
215 const TRect& aItemRect, // Item rectangle |
216 const TColors& aColors, // Item colors |
216 const TColors& aColors, // Item colors |
217 TBool /*aHighlight */) const |
217 TBool aHighlight ) const |
218 { |
218 { |
219 TRACE_ENTRY_POINT; |
219 TRACE_ENTRY_POINT; |
220 |
220 |
221 const CFont* font = SubCellFont(0); |
221 const CFont* font = SubCellFont(0); |
222 const TText* ptr = aText->Ptr(); |
222 const TText* ptr = aText->Ptr(); |
225 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
225 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
226 MAknsControlContext* cc = NULL; |
226 MAknsControlContext* cc = NULL; |
227 |
227 |
228 TInt lastSubCell(CellCount() - 1); |
228 TInt lastSubCell(CellCount() - 1); |
229 // mark highlight as "not done" only if we need to draw the highlight |
229 // mark highlight as "not done" only if we need to draw the highlight |
230 // TBool highlightDone( aHighlight ? EFalse : ETrue ); |
230 TBool highlightDone( aHighlight ? EFalse : ETrue ); |
231 |
231 |
232 if(!font) |
232 if(!font) |
233 { |
233 { |
234 font = CEikonEnv::Static()->NormalFont(); |
234 font = CEikonEnv::Static()->NormalFont(); |
235 } |
235 } |
275 aGc.SetBrushStyle(CGraphicsContext::ESolidBrush); |
275 aGc.SetBrushStyle(CGraphicsContext::ESolidBrush); |
276 aGc.Clear(bRect); |
276 aGc.Clear(bRect); |
277 aGc.SetBrushStyle(CGraphicsContext::ENullBrush); |
277 aGc.SetBrushStyle(CGraphicsContext::ENullBrush); |
278 } |
278 } |
279 |
279 |
280 //Focus is removed in Week View |
280 if(!highlightDone && aHighlight |
281 /*if(!highlightDone && aHighlight |
|
282 && subcell == iHilightedSubCell+1) |
281 && subcell == iHilightedSubCell+1) |
283 { |
282 { |
284 highlightDone = DrawHighlight( bRect, aGc, ETrue ); |
283 highlightDone = DrawHighlight( bRect, aGc, ETrue ); |
285 }*/ |
284 } |
286 |
285 |
287 switch(hourData.DataType()) |
286 switch(hourData.DataType()) |
288 { |
287 { |
289 case TCalenWeekHour::ENoData: |
288 case TCalenWeekHour::ENoData: |
290 break; |
289 break; |
296 case TCalenWeekHour::EHasBar: |
295 case TCalenWeekHour::EHasBar: |
297 DrawDurationBar( aGc, hourData, bRect ); |
296 DrawDurationBar( aGc, hourData, bRect ); |
298 break; |
297 break; |
299 } |
298 } |
300 |
299 |
301 //Focus is removed in Week View |
|
302 // draw non-skinned highlight |
300 // draw non-skinned highlight |
303 /*if(!highlightDone && aHighlight && subcell == iHilightedSubCell +1) |
301 if(!highlightDone && aHighlight && subcell == iHilightedSubCell +1) |
304 { |
302 { |
305 highlightDone = DrawHighlight( bRect, aGc, EFalse ); |
303 highlightDone = DrawHighlight( bRect, aGc, EFalse ); |
306 }*/ |
304 } |
307 } |
305 } |
308 break; |
306 break; |
309 |
307 |
310 case ECalenWeekHour: |
308 case ECalenWeekHour: |
311 { |
309 { |