uifw/EikStd/coctlsrc/EIKLBV.CPP
branchRCL_3
changeset 18 fcdfafb36fe7
parent 13 a8834a2e9a96
child 19 aecbbf00d063
equal deleted inserted replaced
17:a1caeb42b3a3 18:fcdfafb36fe7
  1498 
  1498 
  1499     _AKNTRACE_FUNC_EXIT;
  1499     _AKNTRACE_FUNC_EXIT;
  1500     }
  1500     }
  1501 
  1501 
  1502 
  1502 
       
  1503 // ---------------------------------------------------------------------------
       
  1504 // Sets all items selected.
       
  1505 // ---------------------------------------------------------------------------
       
  1506 //
       
  1507 void CListBoxView::SelectAllL( TBool aDrawItems )
       
  1508     {
       
  1509     _AKNTRACE_FUNC_ENTER;
       
  1510     
       
  1511     __ASSERT_DEBUG( iSelectionIndexes, 
       
  1512                     Panic( EEikPanicListBoxNoSelIndexArray ) );
       
  1513     __ASSERT_DEBUG( iModel, Panic( EEikPanicListBoxNoModel ) );
       
  1514     
       
  1515 #ifdef RD_UI_TRANSITION_EFFECTS_LIST
       
  1516     MAknListBoxTfxInternal* transApi = CAknListLoader::TfxApiInternal( iGc );
       
  1517 #endif // RD_UI_TRANSITION_EFFECTS_LIST    
       
  1518     
       
  1519     ClearSelection();
       
  1520     TInt numItems = iModel->NumberOfItems();
       
  1521     
       
  1522     for ( TInt i = 0; i < numItems; i++ )
       
  1523         {
       
  1524         if ( !iItemDrawer->Properties( i ).IsSelectionHidden() ) 
       
  1525             { 
       
  1526 #ifdef RD_UI_TRANSITION_EFFECTS_LIST
       
  1527             if ( transApi )
       
  1528                 {
       
  1529                 transApi->Invalidate( MAknListBoxTfxInternal::EListItem, i );
       
  1530                 }
       
  1531 #endif // RD_UI_TRANSITION_EFFECTS_LIST
       
  1532             
       
  1533             iSelectionIndexes->AppendL( i );
       
  1534             
       
  1535             if ( aDrawItems )
       
  1536                 {
       
  1537                 DrawItem( i );
       
  1538                 }
       
  1539             }
       
  1540         }
       
  1541     _AKNTRACE_FUNC_EXIT;
       
  1542     }
       
  1543 
       
  1544 
  1503 // class CSnakingListBoxView
  1545 // class CSnakingListBoxView
  1504 
  1546 
  1505 EXPORT_C CSnakingListBoxView::CSnakingListBoxView()
  1547 EXPORT_C CSnakingListBoxView::CSnakingListBoxView()
  1506     {
  1548     {
  1507 	iColumnWidth = 100;
  1549 	iColumnWidth = 100;