uifw/EikStd/coctlsrc/EIKLBV.CPP
branchRCL_3
changeset 72 a5e7a4f63858
parent 56 d48ab3b357f1
equal deleted inserted replaced
64:85902f042028 72:a5e7a4f63858
  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 
       
  1545 // class CSnakingListBoxView
  1503 // class CSnakingListBoxView
  1546 
  1504 
  1547 EXPORT_C CSnakingListBoxView::CSnakingListBoxView()
  1505 EXPORT_C CSnakingListBoxView::CSnakingListBoxView()
  1548     {
  1506     {
  1549 	iColumnWidth = 100;
  1507 	iColumnWidth = 100;