uifw/eikctl/src/EIKCLBD.CPP
branchRCL_3
changeset 29 a8834a2e9a96
parent 25 941195f2d488
child 51 fcdfafb36fe7
equal deleted inserted replaced
25:941195f2d488 29:a8834a2e9a96
  2074             {
  2074             {
  2075             transApi->StopDrawing();
  2075             transApi->StopDrawing();
  2076             }
  2076             }
  2077 #endif // RD_UI_TRANSITION_EFFECTS_LIST
  2077 #endif // RD_UI_TRANSITION_EFFECTS_LIST
  2078         }
  2078         }
  2079  
  2079     if ( iExtension->iCurrentRow < listbox->BottomItemIndex() )
       
  2080         {
       
  2081         AknListUtils::DrawSeparator( aGc, aRect, aColors.iText, skin );
       
  2082         }
       
  2083     
       
  2084     DrawHighLight( aGc, aRect, aHighlight, skin );    
  2080     TRect itemRect( aRect );
  2085     TRect itemRect( aRect );
  2081     DrawMarkingModeIcons( aItemProperties, aGc, itemRect );
  2086     DrawMarkingModeIcons( aItemProperties, aGc, itemRect );
  2082     if ( iExtension->iSubCellsMightIntersect )
  2087     if ( iExtension->iSubCellsMightIntersect )
  2083         {
  2088         {
  2084         CheckIfSubCellsIntersect( &textLines[0], &rectClipped[0], *aText, itemRect );
  2089         CheckIfSubCellsIntersect( &textLines[0], &rectClipped[0], *aText, itemRect );
  2085         }
  2090         }
  2086     if ( iExtension->iCurrentRow < listbox->BottomItemIndex() )
       
  2087         {
       
  2088         AknListUtils::DrawSeparator( aGc, aRect, aColors.iText, skin );
       
  2089         }
       
  2090     DrawHighLight( aGc, aRect, aHighlight, skin );
       
  2091     
       
  2092     
       
  2093     // The column draw loop
  2091     // The column draw loop
  2094     column = 0;
  2092     column = 0;
  2095     TInt subCellIndex = 0;
  2093     TInt subCellIndex = 0;
  2096     
  2094     
  2097 #ifdef RD_UI_TRANSITION_EFFECTS_LIST   
  2095 #ifdef RD_UI_TRANSITION_EFFECTS_LIST   
  2462             {
  2460             {
  2463             transApi->StopDrawing();
  2461             transApi->StopDrawing();
  2464             }
  2462             }
  2465 #endif // RD_UI_TRANSITION_EFFECTS_LIST
  2463 #endif // RD_UI_TRANSITION_EFFECTS_LIST
  2466         }
  2464         }
  2467     
  2465     if ( iExtension->iCurrentRow < listbox->BottomItemIndex() )
       
  2466         {
       
  2467         AknListUtils::DrawSeparator( aGc, aRect, aColors.iText, skin );
       
  2468         }
       
  2469     DrawHighLight( aGc, aRect, aHighlight, skin );        
  2468     DrawMarkingModeIcons( aItemProperties, aGc, itemRect );
  2470     DrawMarkingModeIcons( aItemProperties, aGc, itemRect );
  2469     TRect textRect( itemRect );
  2471     TRect textRect( itemRect );
  2470     textRect.iBr.iX = itemRect.iTl.iX;    
  2472     textRect.iBr.iX = itemRect.iTl.iX;    
  2471     TRect textMRect; // textrect with margins.
  2473     TRect textMRect; // textrect with margins.
  2472     TInt column=0;
  2474     TInt column=0;
  2546         }
  2548         }
  2547 
  2549 
  2548     // pass 3 drawing
  2550     // pass 3 drawing
  2549 
  2551 
  2550 
  2552 
  2551     if ( iExtension->iCurrentRow < listbox->BottomItemIndex() )
       
  2552         {
       
  2553         AknListUtils::DrawSeparator( aGc, aRect, aColors.iText, skin );
       
  2554         }
       
  2555     
       
  2556  // LISTBOX LINES NEED TO BE DRAWN HERE.
       
  2557     DrawHighLight( aGc, aRect, aHighlight, skin );
       
  2558 
  2553 
  2559 #ifdef RD_UI_TRANSITION_EFFECTS_LIST
  2554 #ifdef RD_UI_TRANSITION_EFFECTS_LIST
  2560     if ( transApi )
  2555     if ( transApi )
  2561         {
  2556         {
  2562         transApi->StartDrawing( MAknListBoxTfxInternal::EListItem );
  2557         transApi->StartDrawing( MAknListBoxTfxInternal::EListItem );
  2846                         KMarkingModeIconArraySize )
  2841                         KMarkingModeIconArraySize )
  2847 #else
  2842 #else
  2848                 iExtension->iMarkingIconArray->Count() == 2 )
  2843                 iExtension->iMarkingIconArray->Count() == 2 )
  2849 #endif // RD_TOUCH2_MARKING            
  2844 #endif // RD_TOUCH2_MARKING            
  2850             {
  2845             {
  2851             textRect.iTl.iX += 
  2846             if ( AknLayoutUtils::LayoutMirrored() )
  2852                 AknLayoutScalable_Avkon::list_single_graphic_pane_t1( 
  2847                 {
       
  2848                 textRect.iBr.iX -= 
       
  2849                     AknLayoutScalable_Avkon::list_single_graphic_pane_t1( 
       
  2850                         0 ).LayoutLine().ir;
       
  2851                 }
       
  2852             else
       
  2853                 {
       
  2854                 textRect.iTl.iX += 
       
  2855                     AknLayoutScalable_Avkon::list_single_graphic_pane_t1( 
  2853                         0 ).LayoutLine().il;
  2856                         0 ).LayoutLine().il;
       
  2857                 }            
  2854             TAknLayoutRect layoutRect;
  2858             TAknLayoutRect layoutRect;
  2855             layoutRect.LayoutRect( aItemRect, 
  2859             layoutRect.LayoutRect( aItemRect, 
  2856                 AknLayoutScalable_Avkon::list_single_graphic_pane_g1( 0 ) );
  2860                 AknLayoutScalable_Avkon::list_single_graphic_pane_g1( 0 ) );
  2857             
  2861             
  2858             // unchecked icon
  2862             // unchecked icon