168 void CPbk2ContactViewCustomListBoxItemDrawer::DrawItemMark(TBool /*aItemIsSelected*/, TBool /*aViewIsDimmed*/, const TPoint& /*aMarkPos*/) const |
168 void CPbk2ContactViewCustomListBoxItemDrawer::DrawItemMark(TBool /*aItemIsSelected*/, TBool /*aViewIsDimmed*/, const TPoint& /*aMarkPos*/) const |
169 { |
169 { |
170 // not used in S60 |
170 // not used in S60 |
171 } |
171 } |
172 |
172 |
|
173 inline void DrawSeparator( |
|
174 CGraphicsContext& aGc, |
|
175 const TRect& aRect, const TRgb& aColor ) |
|
176 { |
|
177 aGc.SetBrushStyle( CGraphicsContext::ENullBrush ); |
|
178 aGc.SetPenStyle( CGraphicsContext::ESolidPen ); |
|
179 TRgb color( aColor ); |
|
180 color.SetAlpha( 32 ); |
|
181 aGc.SetPenColor( color ); |
|
182 TRect lineRect( aRect ); |
|
183 TInt gap = AknLayoutScalable_Avkon::listscroll_gen_pane( 0 ).LayoutLine().it; |
|
184 lineRect.Shrink( gap, 0 ); |
|
185 lineRect.Move( 0, -1 ); |
|
186 aGc.DrawLine( TPoint( lineRect.iTl.iX, lineRect.iBr.iY ), |
|
187 TPoint( lineRect.iBr.iX, lineRect.iBr.iY ) ); |
|
188 } |
|
189 |
173 |
190 |
174 void CPbk2ContactViewCustomListBoxItemDrawer::DrawItemText( TInt aItemIndex, |
191 void CPbk2ContactViewCustomListBoxItemDrawer::DrawItemText( TInt aItemIndex, |
175 const TRect& aItemTextRect, |
192 const TRect& aItemTextRect, |
176 TBool aItemIsCurrent, |
193 TBool aItemIsCurrent, |
177 TBool /*aViewIsEmphasized*/, |
194 TBool /*aViewIsEmphasized*/, |
244 ColumnData()->SetCurrentMarqueeItemIndex(aItemIndex); |
261 ColumnData()->SetCurrentMarqueeItemIndex(aItemIndex); |
245 } |
262 } |
246 ColumnData()->SetCurrentItemIndex(aItemIndex); |
263 ColumnData()->SetCurrentItemIndex(aItemIndex); |
247 ColumnData()->Draw(Properties(aItemIndex), *iGc,&des,aItemTextRect,(aItemIsCurrent /*|| aViewIsEmphasized*/),colors, aItemIndex); |
264 ColumnData()->Draw(Properties(aItemIndex), *iGc,&des,aItemTextRect,(aItemIsCurrent /*|| aViewIsEmphasized*/),colors, aItemIndex); |
248 |
265 |
|
266 const TInt itemCount(iModel->NumberOfItems()); |
|
267 if( itemCount - 1 > aItemIndex ) |
|
268 { |
|
269 DrawSeparator( *iGc, aItemTextRect, iTextColor ); |
|
270 } |
|
271 |
|
272 |
249 #ifdef RD_UI_TRANSITION_EFFECTS_LIST |
273 #ifdef RD_UI_TRANSITION_EFFECTS_LIST |
250 if ( transApi ) |
274 if ( transApi ) |
251 { |
275 { |
252 transApi->StartDrawing( MAknListBoxTfxInternal::EListNotSpecified ); |
276 transApi->StartDrawing( MAknListBoxTfxInternal::EListNotSpecified ); |
253 } |
277 } |