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

virtual void Impala::Application::MediaTable::TableWindow::UpdateRowsEvent (  )  [inline, virtual]

Reimplemented from Impala::Application::MediaTable::TableDataViewListener.

Definition at line 260 of file TableWindow.h.

References Impala::Application::MediaTable::TableDataView::GetFilteredRows(), Impala::Application::MediaTable::TableDataViewController::GetTableDataView(), OglGui::ScrollBar::GetValue(), ILOG_DEBUG, mReady, mVertScrollBar, OglGui::ScrollBar::SetRange(), Impala::Application::MediaTable::TableDataView::SetStartRow(), OglGui::ScrollBar::SetValue(), OglGui::OglWindow::SetVisible(), UpdateRows(), and OglGui::OglWindow::UpdateScene().

00261     {
00262         //ILOG_DEBUG("TableWindow: UpdateRowsEvent");
00263                 
00264         mReady = false;
00265         if (GetTableDataView()->GetFilteredRows() == GetTableDataView()->GetNumberOfRows())
00266             mVertScrollBar->SetVisible(false);
00267         else
00268         {
00269             mVertScrollBar->SetVisible(true);
00270             mVertScrollBar->SetRange(GetTableDataView()->GetFilteredRows(),
00271                                      GetTableDataView()->GetNumberOfRows());
00272         }
00273         if (mVertScrollBar->GetValue() > GetTableDataView()->GetFilteredRows())
00274         {
00275             ILOG_DEBUG("scrollbar out of range, resetting.");
00276             mReady = true;
00277             mVertScrollBar->SetValue(0);
00278             GetTableDataView()->SetStartRow(0);
00279             UpdateScene();
00280         }
00281         mReady = true;
00282         UpdateRows();
00283     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:46:55 2010 for ImpalaSrc by  doxygen 1.5.1