equal
deleted
inserted
replaced
75 const CFont* aFont, |
75 const CFont* aFont, |
76 CFormattedCellListBoxData* aFormattedCellData, |
76 CFormattedCellListBoxData* aFormattedCellData, |
77 CWmListBox* aListBox ) |
77 CWmListBox* aListBox ) |
78 : CFormattedCellListBoxItemDrawer( aTextListBoxModel,aFont,aFormattedCellData ), |
78 : CFormattedCellListBoxItemDrawer( aTextListBoxModel,aFont,aFormattedCellData ), |
79 iWmPlugin( aWmPlugin ) |
79 iWmPlugin( aWmPlugin ) |
80 { |
80 { |
81 iCellData = aFormattedCellData; |
81 iCellData = aFormattedCellData; |
82 iListBox = aListBox; |
82 iListBox = aListBox; |
83 } |
83 } |
84 |
84 |
85 // --------------------------------------------------------- |
85 // --------------------------------------------------------- |
158 listPaneRect.LayoutRect( iListBox->Rect(), listPane ); |
158 listPaneRect.LayoutRect( iListBox->Rect(), listPane ); |
159 TAknWindowLineLayout listRowPane = AknLayoutScalable_Apps |
159 TAknWindowLineLayout listRowPane = AknLayoutScalable_Apps |
160 ::listrow_wgtman_pane().LayoutLine(); |
160 ::listrow_wgtman_pane().LayoutLine(); |
161 TAknLayoutRect listRowPaneRect; |
161 TAknLayoutRect listRowPaneRect; |
162 listRowPaneRect.LayoutRect( listPaneRect.Rect(), listRowPane ); |
162 listRowPaneRect.LayoutRect( listPaneRect.Rect(), listRowPane ); |
163 TRAP_IGNORE( iListBox->SetItemHeightL( listRowPaneRect.Rect().Height() ); ); |
163 TRect itemRect = listRowPaneRect.Rect(); |
164 iListBox->View()->ItemDrawer()->SetItemCellSize( listRowPaneRect.Rect().Size() ); |
164 TRAP_IGNORE( iListBox->SetItemHeightL( itemRect.Height() ); ); |
|
165 iListBox->View()->ItemDrawer()->SetItemCellSize( itemRect.Size() ); |
165 } |
166 } |
166 |
167 |
167 // --------------------------------------------------------- |
168 // --------------------------------------------------------- |
168 // CWmListItemDrawer::DrawItem |
169 // CWmListItemDrawer::DrawItem |
169 // --------------------------------------------------------- |
170 // --------------------------------------------------------- |
316 // --------------------------------------------------------- |
317 // --------------------------------------------------------- |
317 // CWmListBox::CWmListBox |
318 // CWmListBox::CWmListBox |
318 // --------------------------------------------------------- |
319 // --------------------------------------------------------- |
319 // |
320 // |
320 CWmListBox::CWmListBox( CWmPlugin& aWmPlugin ): |
321 CWmListBox::CWmListBox( CWmPlugin& aWmPlugin ): |
321 CAknDouble2LargeStyleListBox(), |
322 CEikFormattedCellListBox(), |
322 iWmPlugin( aWmPlugin ) |
323 iWmPlugin( aWmPlugin ) |
323 { |
324 { |
324 iFindPaneIsVisible = EFalse; |
325 iFindPaneIsVisible = EFalse; |
325 iLogoSize = TSize( 0, 0); |
326 iLogoSize = TSize( 0, 0); |
326 } |
327 } |
555 // CWmListBox::SizeChanged |
556 // CWmListBox::SizeChanged |
556 // --------------------------------------------------------- |
557 // --------------------------------------------------------- |
557 // |
558 // |
558 void CWmListBox::SizeChanged() |
559 void CWmListBox::SizeChanged() |
559 { |
560 { |
560 CAknDouble2LargeStyleListBox::SizeChanged(); |
561 CEikFormattedCellListBox::SizeChanged(); |
561 |
562 |
562 CWmListItemDrawer* itemDrawer = |
563 CWmListItemDrawer* itemDrawer = |
563 static_cast <CWmListItemDrawer*>( iItemDrawer ); |
564 static_cast <CWmListItemDrawer*>( iItemDrawer ); |
564 if ( itemDrawer ) |
565 if ( itemDrawer ) |
565 { |
566 { |
575 { |
576 { |
576 CWindowGc& gc = SystemGc(); |
577 CWindowGc& gc = SystemGc(); |
577 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
578 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
578 MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); |
579 MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); |
579 AknsDrawUtils::Background( skin, cc, this, gc, Rect() ); |
580 AknsDrawUtils::Background( skin, cc, this, gc, Rect() ); |
580 CAknDouble2LargeStyleListBox::Draw( aRect ); |
581 CEikFormattedCellListBox::Draw( aRect ); |
581 } |
582 } |
582 |
583 |
583 // --------------------------------------------------------- |
584 // --------------------------------------------------------- |
584 // CWmListBox::LogoSize |
585 // CWmListBox::LogoSize |
585 // --------------------------------------------------------- |
586 // --------------------------------------------------------- |