Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Application::VideoExcel::TableDataSource::SetNumberOfRowsInPixels ( int  pixels  )  [inline]

Definition at line 102 of file TableDataSource.h.

References GetRowHeight(), GetStartRow(), GetTotalRows(), ILOG_DEBUG, mDisplayRows, and SetNumberOfRows().

Referenced by Impala::Application::VideoExcel::TableWindow::UpdateNumberOfRowsEvent().

00103     {
00104         if (pixels <= 0)
00105             return;
00106 
00107         int yoff = 0;
00108         int rows = 0;
00109         for (int i=GetStartRow(); i<GetTotalRows(); i++)
00110         {
00111             if ((yoff += GetRowHeight(i)) > pixels)
00112                 break;
00113             rows++;
00114         }
00115         if (rows != mDisplayRows)
00116         {
00117             ILOG_DEBUG("SetNumberOfRowsInPixels: " << pixels << " yields " <<
00118                        rows << " rows.");
00119             SetNumberOfRows(rows);
00120         }
00121     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:44 2011 for ImpalaSrc by  doxygen 1.5.1