meetingrequest/mrgui/src/cesmrview.cpp
branchRCL_3
changeset 18 6b8f3b30d0ec
parent 16 b5fbb9b25d57
child 22 d620048b4810
equal deleted inserted replaced
17:67369d1b217f 18:6b8f3b30d0ec
   677         TRect listareaRect( listareaLayoutRect.Rect() );
   677         TRect listareaRect( listareaLayoutRect.Rect() );
   678 
   678 
   679         // List panes default rect needs to be modified due to
   679         // List panes default rect needs to be modified due to
   680         // scrollbar and calendar indication stripe
   680         // scrollbar and calendar indication stripe
   681         
   681         
   682         // Remove stripe width from list pane width
   682         if ( AknLayoutUtils::LayoutMirrored() )
   683         listareaRect.iTl.iX += iStripeRect.Width();
   683             {
       
   684             // Remove stripe width from list pane width when align is R to L
       
   685             listareaRect.iBr.iX -= iStripeRect.Width();
       
   686             }
       
   687         else
       
   688             {
       
   689             // Remove stripe width from list pane width when align is L to R
       
   690             listareaRect.iTl.iX += iStripeRect.Width();
       
   691             }
   684         
   692         
   685         if( iScrollBar )
   693         if( iScrollBar )
   686            {
   694            {
   687            TAknLayoutRect scrollareaLayoutRect =
   695            TAknLayoutRect scrollareaLayoutRect =
   688                NMRLayoutManager::GetLayoutRect( containerRect,
   696                NMRLayoutManager::GetLayoutRect( containerRect,
   690            TRect scrollareaRect( scrollareaLayoutRect.Rect() );
   698            TRect scrollareaRect( scrollareaLayoutRect.Rect() );
   691            // Scroll bar's height is always the same as listpane's height
   699            // Scroll bar's height is always the same as listpane's height
   692            scrollareaRect.SetHeight( listareaRect.Height() );
   700            scrollareaRect.SetHeight( listareaRect.Height() );
   693            
   701            
   694            iScrollBar->SetRect( scrollareaRect );
   702            iScrollBar->SetRect( scrollareaRect );
   695            
       
   696            // Remove scroll bar width from list area's width
       
   697            listareaRect.iBr.iX -= iScrollBar->Rect().Width();
       
   698            }
   703            }
   699 
   704 
   700         iListPane->SetRect( listareaRect );
   705         iListPane->SetRect( listareaRect );
   701         
   706         
   702         // Make sure, that stripe height is the list pane height
   707         // Make sure, that stripe height is the list pane height
   750         TAknLayoutRect listareaLayoutRect =
   755         TAknLayoutRect listareaLayoutRect =
   751                NMRLayoutManager::GetLayoutRect( containerRect,
   756                NMRLayoutManager::GetLayoutRect( containerRect,
   752                        NMRLayoutManager::EMRLayoutListArea );
   757                        NMRLayoutManager::EMRLayoutListArea );
   753         TRect listareaRect( listareaLayoutRect.Rect() );
   758         TRect listareaRect( listareaLayoutRect.Rect() );
   754         
   759         
   755         // The listPane's area should be:
   760         if ( AknLayoutUtils::LayoutMirrored() )
   756         // X: Should subtract the width of stripe
   761             {
   757         listareaRect.iTl.iX += iStripeRect.Width();
   762             // Remove stripe width from list pane width when align is R to L
       
   763             listareaRect.iBr.iX -= iStripeRect.Width();
       
   764             }
       
   765         else
       
   766             {
       
   767             // Remove stripe width from list pane width when align is L to R
       
   768             listareaRect.iTl.iX += iStripeRect.Width();
       
   769             }
   758                 
   770                 
   759         iListPane->SetRect( listareaRect );
   771         iListPane->SetRect( listareaRect );
   760         
   772         
   761         if( iScrollBar )
   773         if( iScrollBar )
   762            {
   774            {
  1138 //
  1150 //
  1139 TRect CESMRView::CalculateAttachmentIndicatorLayout()
  1151 TRect CESMRView::CalculateAttachmentIndicatorLayout()
  1140     {
  1152     {
  1141     TRect containerRect( ContainerRect() );
  1153     TRect containerRect( ContainerRect() );
  1142     
  1154     
  1143     TAknLayoutRect naviArrowLeftLayoutRect =
  1155 
  1144             NMRLayoutManager::GetLayoutRect( containerRect,
  1156 	TAknLayoutRect naviArrowLeftLayoutRect =
  1145                     NMRLayoutManager::EMRLayoutMRNaviArrowLeft );    
  1157 			NMRLayoutManager::GetLayoutRect( containerRect,
  1146     TRect naviArrowLeftRect = naviArrowLeftLayoutRect.Rect();
  1158 					NMRLayoutManager::EMRLayoutMRNaviArrowLeft );    
  1147     
  1159 	TRect naviArrowLeftRect = naviArrowLeftLayoutRect.Rect();
  1148     TAknLayoutRect naviArrowRightLayoutRect =
  1160 	
  1149             NMRLayoutManager::GetLayoutRect( containerRect,
  1161 	TAknLayoutRect naviArrowRightLayoutRect =
  1150                     NMRLayoutManager::EMRLayoutMRNaviArrowRight );
  1162 			NMRLayoutManager::GetLayoutRect( containerRect,
  1151     TRect naviArrowRightRect = naviArrowRightLayoutRect.Rect();
  1163 					NMRLayoutManager::EMRLayoutMRNaviArrowRight );
  1152     
  1164 	TRect naviArrowRightRect = naviArrowRightLayoutRect.Rect();
       
  1165 	//Exchange the narrows' rect when LayoutMirrored
       
  1166 	if ( AknLayoutUtils::LayoutMirrored() )
       
  1167 		{
       
  1168 		naviArrowLeftRect = naviArrowRightLayoutRect.Rect();
       
  1169 		naviArrowRightRect= naviArrowLeftLayoutRect.Rect();
       
  1170 		}
       
  1171 	
  1153     if( Layout_Meta_Data::IsLandscapeOrientation() )
  1172     if( Layout_Meta_Data::IsLandscapeOrientation() )
  1154         {                
  1173         {                
  1155         naviArrowLeftRect.Move( iStripeRect.Width(), 0 );
  1174         naviArrowLeftRect.Move( iStripeRect.Width(), 0 );
  1156 
  1175 
  1157         TInt scrollWidth( 0 );
  1176         TInt scrollWidth( 0 );