calendarui/views/src/calentodocontainer.cpp
branchRCL_3
changeset 21 9711e452b5e9
parent 19 1984aceb8774
child 36 9c5b1510919f
equal deleted inserted replaced
20:21239b3bcd78 21:9711e452b5e9
   149                                              aItemIsCurrent,
   149                                              aItemIsCurrent,
   150                                              aViewIsEmphasized,
   150                                              aViewIsEmphasized,
   151                                              aViewIsDimmed);
   151                                              aViewIsDimmed);
   152     
   152     
   153     
   153     
   154     
   154 
   155 
   155     
   156     TAknWindowComponentLayout tempLayout = 
   156     TAknWindowComponentLayout tempLayout = AknLayoutScalable_Apps::list_cale_time_pane_g6(0);    
   157             AknLayoutScalable_Apps::list_cale_time_pane_g6( aItemIndex - static_cast<CCalenTodoListBox*>(iListBox)->TopItemIndex()) ;     
       
   158     
       
   159     TAknLayoutRect colourstrips;
   157     TAknLayoutRect colourstrips;
   160     colourstrips.LayoutRect( actualItemRect, tempLayout.LayoutLine() );
   158     colourstrips.LayoutRect( actualItemRect, tempLayout.LayoutLine() );
   161       
   159       
   162      iGc->SetPenColor( CGraphicsContext::ENullPen );
   160      iGc->SetPenColor( CGraphicsContext::ENullPen );
   163      iGc->DrawRect( colourstrips.Rect() );
   161      iGc->DrawRect( colourstrips.Rect() );
   385 
   383 
   386     CTextListBoxModel* model = iListBox->Model();
   384     CTextListBoxModel* model = iListBox->Model();
   387     model->SetItemTextArray(iDesArray);
   385     model->SetItemTextArray(iDesArray);
   388     model->SetOwnershipType(ELbmDoesNotOwnItemArray);
   386     model->SetOwnershipType(ELbmDoesNotOwnItemArray);
   389 
   387 
   390     CAknIconArray* iconList = CreateIconsL( iIconIndices );
   388     CAknIconArray* iconList = CreateIconsL( iIconIndices, KCalenTodoViewUidValue ); 
   391 
   389 
   392     // Transfer iconlist ownership to the listbox
   390     // Transfer iconlist ownership to the listbox
   393     iListBox->ItemDrawer()->ColumnData()->SetIconArray( iconList );
   391     iListBox->ItemDrawer()->ColumnData()->SetIconArray( iconList );
   394 
   392 
   395     // Save empty text and set null for list box.
   393     // Save empty text and set null for list box.
   892     CCalenContainer::HandleResourceChange( aType );
   890     CCalenContainer::HandleResourceChange( aType );
   893 
   891 
   894     if ( aType == KAknsMessageSkinChange || aType == KEikDynamicLayoutVariantSwitch )
   892     if ( aType == KAknsMessageSkinChange || aType == KEikDynamicLayoutVariantSwitch )
   895         {
   893         {
   896         SizeChanged();
   894         SizeChanged();
   897 
   895         CAknIconArray* iconList = CreateIconsL( iIconIndices, KCalenTodoViewUidValue ); 
       
   896 
       
   897             // Transfer iconlist ownership to the listbox
       
   898             iListBox->ItemDrawer()->ColumnData()->SetIconArray( iconList );
   898         // refresh
   899         // refresh
   899         TRAPD(error,iView->BeginRepopulationL());
   900         TRAPD(error,iView->BeginRepopulationL());
   900 	    if(error!=KErrNone)
   901 	    if(error!=KErrNone)
   901 	       	{
   902 	       	{
   902 	       	// do avoid warning
   903 	       	// do avoid warning