Definition at line 432 of file TableWindow.h. References GetRowHeight(), Impala::Application::MediaTable::TableDataViewController::GetTableDataView(), Impala::Application::MediaTable::TableDataView::GetTotalRows(), ILOG_DEBUG, and Impala::Application::MediaTable::TableDataView::SetNumberOfRows(). Referenced by UpdateNumberOfRowsEvent(). 00433 { 00434 if (pixels <= 0) 00435 return; 00436 00437 int yoff = 0; 00438 int rows = 0; 00439 for (int i=GetTableDataView()->GetStartRow(); i<GetTableDataView()->GetTotalRows(); i++) 00440 { 00441 if ((yoff += GetRowHeight(i)) > pixels) 00442 break; 00443 rows++; 00444 } 00445 // TODO: if (rows != GetTableDataView()->mDisplayRows) 00446 { 00447 ILOG_DEBUG("SetNumberOfRowsInPixels: " << pixels << " yields " << 00448 rows << " rows."); 00449 GetTableDataView()->SetNumberOfRows(rows); 00450 } 00451 }
Here is the call graph for this function:
|