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

virtual void Impala::Application::VideoExcel::GridWindow::UpdateRowsEvent (  )  [inline, virtual]

Reimplemented from Impala::Application::VideoExcel::TableUpdateListener.

Definition at line 136 of file GridWindow.h.

References Impala::Application::VideoExcel::TableDataSource::GetFilteredRows(), Impala::Application::VideoExcel::TableDataSource::GetNumberOfRows(), OglGui::ScrollBar::GetValue(), ILOG_DEBUG, mReady, mSource, mVertScrollBar, OglGui::ScrollBar::SetRange(), Impala::Application::VideoExcel::TableDataSource::SetStartRow(), OglGui::ScrollBar::SetValue(), OglGui::OglWindow::SetVisible(), UpdateGrid(), and OglGui::OglWindow::UpdateScene().

Referenced by SetGridSize(), and Impala::Application::VideoExcel::TableControlBarWindow::SwitchMode().

00137     {
00138         mReady = false;
00139         if (mSource->GetFilteredRows() == mSource->GetNumberOfRows())
00140             mVertScrollBar->SetVisible(false);
00141         else
00142         {
00143             mVertScrollBar->SetVisible(true);
00144             mVertScrollBar->SetRange(mSource->GetFilteredRows(), mSource->GetNumberOfRows());
00145         }
00146         if (mVertScrollBar->GetValue() > mSource->GetFilteredRows())
00147         {
00148             ILOG_DEBUG("scrollbar out of range, resetting.");
00149             mReady = true;
00150             mVertScrollBar->SetValue(0);
00151             mSource->SetStartRow(0);
00152             UpdateScene();
00153         }
00154 //        mSource->MarkVisibleRows(2, true);
00155         UpdateGrid();
00156         mReady = true;
00157     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:52:48 2010 for ImpalaSrc by  doxygen 1.5.1