phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchercustomlistbox.cpp
branchRCL_3
changeset 21 b3431bff8c19
parent 3 04ab22b956c2
child 64 c1e8ba0c2b16
equal deleted inserted replaced
15:e8e3147d53eb 21:b3431bff8c19
   108 	// |       | Content                        [2]   |
   108 	// |       | Content                        [2]   |
   109 	// |       |                                      |
   109 	// |       |                                      |
   110 	// ------------------------------------------------
   110 	// ------------------------------------------------
   111 	//
   111 	//
   112 	
   112 	
   113 		
   113 	// Calculate listbox rect
       
   114     TAknWindowComponentLayout listPaneLayout( TAknWindowComponentLayout::Compose(
       
   115         AknLayoutScalable_Apps::phob2_cc_listscroll_pane( 0 ),
       
   116         TAknWindowComponentLayout::Compose( 
       
   117             AknLayoutScalable_Apps::phob2_cc_list_pane( 0 ), 
       
   118             AknLayoutScalable_Apps::list_double_large_graphic_phob2_cc_pane( 0 ) ) ) );    
       
   119   
       
   120     TAknLayoutRect listPaneLayoutRect;
       
   121     listPaneLayoutRect.LayoutRect( TRect( Size() ), listPaneLayout.LayoutLine() );
       
   122     TRect listPaneRowRect( listPaneLayoutRect.Rect() );
       
   123     
       
   124     // Set listbox item height
       
   125     SetItemHeightL( listPaneRowRect.Height() );
       
   126     iItemDrawer->SetItemCellSize( listPaneRowRect.Size() );
       
   127     
       
   128 
       
   129 	// Reset sub cell array	
   114 	iColumnData->ResetSLSubCellArray();
   130 	iColumnData->ResetSLSubCellArray();
   115 			  
   131 			  
   116 	// Comm method icon	
   132 	// Comm method icon	
   117 	TAknWindowLineLayout gl( AknLayoutScalable_Apps::list_double_large_graphic_phob2_cc_pane_g1( 0 ) );
   133 	TAknWindowLineLayout gl( AknLayoutScalable_Apps::list_double_large_graphic_phob2_cc_pane_g1( 0 ) );
   118 	iColumnData->SetGraphicSubCellL( 0, gl );
   134 	iColumnData->SetGraphicSubCellL( 0, gl );