camerauis/cameraapp/generic/common/src/CamCaptureSetupListItemDrawer.cpp
branchRCL_3
changeset 18 51dda465e618
parent 16 d486e5e3cc9a
equal deleted inserted replaced
16:d486e5e3cc9a 18:51dda465e618
   281         // ...inside of the list item's rectangle
   281         // ...inside of the list item's rectangle
   282         TAknLayoutText layoutText;
   282         TAknLayoutText layoutText;
   283         layoutText.LayoutText( aActualItemRect, iTxtLayout );  
   283         layoutText.LayoutText( aActualItemRect, iTxtLayout );  
   284         // ...Pass the text to be drawn, into the text layout object
   284         // ...Pass the text to be drawn, into the text layout object
   285         // ...and draw it.    
   285         // ...and draw it.    
   286         if( !iFullySkinned )
   286         if( !iFullySkinned && !aItemIsCurrent )
   287             {
   287             {
   288             color=KRgbWhite;       
   288             color = KRgbWhite;       
   289             }
   289             }
   290 
   290 
   291         layoutText.DrawText( *iGc, iModel.ItemText( aItemIndex ), 
   291         layoutText.DrawText( *iGc, iModel.ItemText( aItemIndex ), 
   292                              ETrue, color );
   292                              ETrue, color );
   293         // Draw the bitmap.
   293         // Draw the bitmap.
   317         // ...inside of the list item's rectangle
   317         // ...inside of the list item's rectangle
   318         TAknLayoutText layoutText;
   318         TAknLayoutText layoutText;
   319         layoutText.LayoutText( aActualItemRect, iTxtWithRbLayout );
   319         layoutText.LayoutText( aActualItemRect, iTxtWithRbLayout );
   320         // ...Pass the text to be drawn, into the text layout object
   320         // ...Pass the text to be drawn, into the text layout object
   321         // ...and draw it.    
   321         // ...and draw it.    
   322         if( !iFullySkinned )
   322         if( !iFullySkinned && !aItemIsCurrent )
   323             {
   323             {
   324             color=KRgbWhite;       
   324             color = KRgbWhite;       
   325             }
   325             }
   326 
   326 
   327         layoutText.DrawText( *iGc, iModel.ItemText( aItemIndex ), ETrue, color );
   327         layoutText.DrawText( *iGc, iModel.ItemText( aItemIndex ), ETrue, color );
   328 
   328 
   329         // Draw the bitmap.
   329         // Draw the bitmap.
   476         const CCoeControl* control = iParentControl;
   476         const CCoeControl* control = iParentControl;
   477         
   477         
   478         if ( control )
   478         if ( control )
   479             {
   479             {
   480             iGc->SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   480             iGc->SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
   481             iGc->SetPenSize( TSize( 1, 1 ) );
   481             iGc->SetPenColor( TRgb( 0x00ffffff, KToolBarExtensionBgAlpha ) );
   482             iGc->SetPenStyle( CGraphicsContext::EDottedPen );
   482             iGc->SetPenStyle( CGraphicsContext::ENullPen );
   483             iGc->SetBrushColor( TRgb( KToolbarExtensionBgColor, KToolBarExtensionBgAlpha ) );
   483             iGc->SetBrushColor( TRgb( KToolbarExtensionBgColor, KToolBarExtensionBgAlpha ) );
   484             iGc->SetBrushStyle( CGraphicsContext::ESolidBrush );
   484             iGc->SetBrushStyle( CGraphicsContext::ESolidBrush );
   485             iGc->DrawRect( aActualItemRect );            
   485             iGc->DrawRect( aActualItemRect );
       
   486             iGc->SetPenSize( TSize( 1, 3 ) );
       
   487             iGc->SetPenStyle( CGraphicsContext::ESolidPen );
       
   488             iGc->DrawLine( TPoint( aActualItemRect.iTl.iX ,
       
   489                     aActualItemRect.iBr.iY ), aActualItemRect.iBr );
   486             }
   490             }
   487         }
   491         }
   488 // ---------------------------------------------------------
   492 // ---------------------------------------------------------
   489 // CCamCaptureSetupListItemDrawer::DrawItemRect
   493 // CCamCaptureSetupListItemDrawer::DrawItemRect
   490 // Draws a rectangle for an item.
   494 // Draws a rectangle for an item.