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

void Impala::Application::VideoExcel::GridWindow::Init ( TableDataSource source,
int  w,
int  h 
) [inline, private]

Definition at line 503 of file GridWindow.h.

References Impala::Application::VideoExcel::TableDataSource::AddTableUpdateListener(), Impala::Application::VideoExcel::TableDataSource::GetNumberOfRows(), Impala::Application::VideoExcel::TableDataSource::GetTotalRows(), mAutoZoom, mCache, mGridHeaderHeight, mGridHeight, mGridWidth, mImageColumn, mLastSelectedRow, OglGui::OglWindow::mOglWnd, mReady, mSelecting, mShowZoomView, mSource, mVertScrollBar, mZoomView, mZoomViewFollowMouse, mZoomViewSize, mZoomViewTargetWindow, OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::ScrollBar::SetRange(), and OglGui::ScrollBar::SetScrollBarListener().

00504     {
00505         mReady = false;
00506 
00507         mSource                 = source;
00508         mGridHeight             = 128;
00509         mGridWidth              = 128;
00510         mGridHeaderHeight       = 20;
00511         mImageColumn            = "";
00512         mSelecting              = false;
00513         mAutoZoom               = false;
00514         mZoomViewTargetWindow   = 0;
00515         mLastSelectedRow        = -1;
00516 
00517         // init zoom view:
00518         mZoomViewSize           = 384;
00519         mZoomView               = 0;
00520         mShowZoomView           = false;
00521         mZoomViewFollowMouse    = false;
00522 
00523         SetBackground(0xffffffff);
00524         SetBorderType(1);
00525         SetBorderFillShaded(-2);
00526 
00527         mSource->AddTableUpdateListener(this);
00528         mVertScrollBar = new WindowScrollBar(this, false);
00529         mVertScrollBar->SetRange(mSource->GetTotalRows(),
00530                                  mSource->GetNumberOfRows());
00531         mVertScrollBar->SetScrollBarListener(this, 0);
00532         oglSys.SetAllMouseMotion( mOglWnd, 1 );
00533 
00534         mCache = new TableViewCache(this, mSource);
00535 
00536         mReady = true;
00537     }

Here is the call graph for this function:


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