idlehomescreen/widgetmanager/src/wmlistbox.cpp
branchRCL_3
changeset 12 9674c1a575e9
parent 11 ff572dfe6d86
child 18 d05a55b217df
equal deleted inserted replaced
11:ff572dfe6d86 12:9674c1a575e9
   224         ( aItemIsCurrent && listFocused && highlightEnabled )? 
   224         ( aItemIsCurrent && listFocused && highlightEnabled )? 
   225                 EAknsCIQsnTextColorsCG10 : EAknsCIQsnTextColorsCG6;
   225                 EAknsCIQsnTextColorsCG10 : EAknsCIQsnTextColorsCG6;
   226 
   226 
   227     AknsUtils::GetCachedColor( 
   227     AknsUtils::GetCachedColor( 
   228                     skin, textColor, KAknsIIDQsnTextColors, index );
   228                     skin, textColor, KAknsIIDQsnTextColors, index );
   229     TAknTextLineLayout titleTextLayout = 
   229 
   230               AknLayoutScalable_Apps::listrow_wgtman_pane_t1().LayoutLine();
   230     TAknTextLineLayout titleTextLayout;
       
   231     if ( !wData.IsUninstalling() )
       
   232         {
       
   233         // centered 1 row layout 
       
   234         titleTextLayout = 
       
   235               AknLayoutScalable_Apps::listrow_wgtman_pane_t1(1).LayoutLine();
       
   236         }
       
   237     else
       
   238         {
       
   239         // 2 row layout for uninstalling
       
   240         titleTextLayout = 
       
   241                 AknLayoutScalable_Apps::listrow_wgtman_pane_t1(0).LayoutLine();
       
   242         }
   231 
   243 
   232     TAknLayoutText textLayoutTitle;
   244     TAknLayoutText textLayoutTitle;
   233     textLayoutTitle.LayoutText( itemRect, titleTextLayout );
   245     textLayoutTitle.LayoutText( itemRect, titleTextLayout );
   234     textLayoutTitle.DrawText( gc, wData.Name(), ETrue, textColor );
   246     textLayoutTitle.DrawText( gc, wData.Name(), ETrue, textColor );
   235     
   247     
   575     AknsDrawUtils::Background( skin, cc, this, gc, Rect() );
   587     AknsDrawUtils::Background( skin, cc, this, gc, Rect() );
   576     CAknDouble2LargeStyleListBox::Draw( aRect );
   588     CAknDouble2LargeStyleListBox::Draw( aRect );
   577     }
   589     }
   578 
   590 
   579 // ---------------------------------------------------------
   591 // ---------------------------------------------------------
   580 // CWmListBox::HandlePointerEventL
       
   581 // ---------------------------------------------------------
       
   582 //
       
   583 void CWmListBox::HandlePointerEventL( const TPointerEvent& aPointerEvent )
       
   584     {
       
   585 	if ( Rect().Contains( aPointerEvent.iPosition ) )
       
   586 		{
       
   587         TInt itemIndex = CurrentListBoxItemIndex();
       
   588         TBool itemPointed = View()->XYPosToItemIndex(
       
   589                                 aPointerEvent.iPosition,
       
   590                                 itemIndex );
       
   591         if ( itemIndex >= 0 && itemPointed )
       
   592             {
       
   593             SetCurrentItemIndex( itemIndex ); //update index
       
   594             }
       
   595 		}
       
   596 	CAknDouble2LargeStyleListBox::HandlePointerEventL( aPointerEvent );
       
   597     }
       
   598 
       
   599 // ---------------------------------------------------------
       
   600 // CWmListBox::LogoSize
   592 // CWmListBox::LogoSize
   601 // ---------------------------------------------------------
   593 // ---------------------------------------------------------
   602 //
   594 //
   603 TSize CWmListBox::LogoSize()
   595 TSize CWmListBox::LogoSize()
   604     {
   596     {