calendarui/views/src/calenweeklistboxdata.cpp
branchRCL_3
changeset 60 96907930389d
parent 0 f979ecb2b13e
child 67 1539a383d7b6
equal deleted inserted replaced
59:aba12c885d83 60:96907930389d
   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                 if(!highlightDone && aHighlight 
   280                 //Focus is removed in Week View
       
   281                 /*if(!highlightDone && aHighlight 
   281                    && subcell == iHilightedSubCell+1)
   282                    && subcell == iHilightedSubCell+1)
   282                     {
   283                     {
   283                     highlightDone = DrawHighlight( bRect, aGc, ETrue );
   284                     highlightDone = DrawHighlight( bRect, aGc, ETrue );
   284                     }
   285                     }*/
   285 
   286 
   286                 switch(hourData.DataType())
   287                 switch(hourData.DataType())
   287                     {
   288                     {
   288                     case TCalenWeekHour::ENoData:
   289                     case TCalenWeekHour::ENoData:
   289                     break;
   290                     break;
   295                     case TCalenWeekHour::EHasBar:
   296                     case TCalenWeekHour::EHasBar:
   296                         DrawDurationBar( aGc, hourData, bRect );
   297                         DrawDurationBar( aGc, hourData, bRect );
   297                     break;
   298                     break;
   298                     }
   299                     }
   299 
   300 
       
   301                 //Focus is removed in Week View
   300                 // draw non-skinned highlight
   302                 // draw non-skinned highlight
   301                 if(!highlightDone && aHighlight && subcell == iHilightedSubCell +1)
   303                 /*if(!highlightDone && aHighlight && subcell == iHilightedSubCell +1)
   302                     {
   304                     {
   303                     highlightDone = DrawHighlight( bRect, aGc, EFalse );
   305                     highlightDone = DrawHighlight( bRect, aGc, EFalse );
   304                     }
   306                     }*/
   305                 }
   307                 }
   306             break;
   308             break;
   307 
   309 
   308             case ECalenWeekHour:
   310             case ECalenWeekHour:
   309                 {
   311                 {