uifw/AvKon/src/eikfrlbd.cpp
branchRCL_3
changeset 29 a8834a2e9a96
parent 25 941195f2d488
child 51 fcdfafb36fe7
equal deleted inserted replaced
25:941195f2d488 29:a8834a2e9a96
  2866                 == KMarkingModeIconArraySize )         
  2866                 == KMarkingModeIconArraySize )         
  2867 #else            
  2867 #else            
  2868             &&  iExtension->iMarkingIconArray->Count() == 2 )
  2868             &&  iExtension->iMarkingIconArray->Count() == 2 )
  2869 #endif // RD_TOUCH2_MARKING        
  2869 #endif // RD_TOUCH2_MARKING        
  2870         {
  2870         {
  2871         textRect.iTl.iX += 
  2871         if ( AknLayoutUtils::LayoutMirrored() )
       
  2872             {
       
  2873             textRect.iBr.iX -= 
  2872                 AknLayoutScalable_Avkon::list_double_graphic_pane_t1( 
  2874                 AknLayoutScalable_Avkon::list_double_graphic_pane_t1( 
  2873                         0 ).LayoutLine().il;
  2875                     0 ).LayoutLine().ir;
       
  2876             }
       
  2877         else
       
  2878             {
       
  2879             textRect.iTl.iX += 
       
  2880                 AknLayoutScalable_Avkon::list_double_graphic_pane_t1( 
       
  2881                     0 ).LayoutLine().il;
       
  2882             }                    
  2874 
  2883 
  2875         TAknLayoutRect layoutRect;
  2884         TAknLayoutRect layoutRect;
  2876         layoutRect.LayoutRect( aItemRect, 
  2885         layoutRect.LayoutRect( aItemRect, 
  2877                 AknLayoutScalable_Avkon::list_double_graphic_pane_g1( 0 ) );
  2886                 AknLayoutScalable_Avkon::list_double_graphic_pane_g1( 0 ) );
  2878 
  2887 
  4225         }
  4234         }
  4226     
  4235     
  4227     CEikListBox* listbox = static_cast<CEikListBox*>( Control() ); 
  4236     CEikListBox* listbox = static_cast<CEikListBox*>( Control() ); 
  4228     
  4237     
  4229     DrawMarkingModeIcons( aProperties, aGc, itemRect );
  4238     DrawMarkingModeIcons( aProperties, aGc, itemRect );
       
  4239     TInt iconOffset = aItemRect.Width() - itemRect.Width();
  4230     
  4240     
  4231     const TColors* subcellColors = &aColors;
  4241     const TColors* subcellColors = &aColors;
  4232     
  4242     
  4233     const CFont* font=SubCellFont(0);
  4243     const CFont* font=SubCellFont(0);
  4234     if (font==NULL)
  4244     if (font==NULL)
  4332             {
  4342             {
  4333             sc = &defaultCell;
  4343             sc = &defaultCell;
  4334             }
  4344             }
  4335         
  4345         
  4336         TRect bRect = TRect(sc->iPosition,sc->iSize);
  4346         TRect bRect = TRect(sc->iPosition,sc->iSize);
       
  4347         bRect.iBr.iX -= iconOffset;
  4337         TMargins m = sc->iMargin;
  4348         TMargins m = sc->iMargin;
  4338         TRect cRect = TRect(bRect.iTl+TSize(m.iLeft,m.iTop),bRect.Size()-TSize(m.iRight+m.iLeft,m.iBottom+m.iTop));
  4349         TRect cRect = TRect(bRect.iTl+TSize(m.iLeft,m.iTop),bRect.Size()-TSize(m.iRight+m.iLeft,m.iBottom+m.iTop));
  4339         const TBool istrans = sc->iTransparent;
  4350         const TBool istrans = sc->iTransparent;
  4340         if (!layoutMirrored)
  4351         if (!layoutMirrored)
  4341             {
  4352             {
  4422             }
  4433             }
  4423         
  4434         
  4424         if ( layoutMirrored ) 
  4435         if ( layoutMirrored ) 
  4425             {
  4436             {
  4426             TRect bRect( sc->iPosition, sc->iSize );
  4437             TRect bRect( sc->iPosition, sc->iSize );
       
  4438             bRect.iBr.iX -= iconOffset;
  4427             TRect cRect2( bRect.iTl + TSize( m.iLeft, m.iTop ),
  4439             TRect cRect2( bRect.iTl + TSize( m.iLeft, m.iTop ),
  4428                           bRect.Size() - TSize( m.iRight + m.iLeft,
  4440                           bRect.Size() - TSize( m.iRight + m.iLeft,
  4429                                                 m.iBottom + m.iTop ) );
  4441                                                 m.iBottom + m.iTop ) );
  4430             
  4442             
  4431             TInt shift = (cRect2.Size() - sc->iRealTextSize).iWidth;
  4443             TInt shift = (cRect2.Size() - sc->iRealTextSize).iWidth;