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

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

Definition at line 621 of file TableWindow.h.

References OglGui::Menu::AddItem(), Impala::Application::VideoExcel::TableDataSource::AddTableUpdateListener(), Impala::Application::VideoExcel::TableDataSource::GetNumberOfRows(), Impala::Application::VideoExcel::TableDataSource::GetTotalRows(), mAutoZoom, mContext, mLastSelectedRow, OglGui::OglWindow::mOglWnd, mReady, mSelecting, mShowZoomView, mSource, mStaticColumnCount, mStaticColumnWidth, mVertScrollBar, mZoomImage, mZoomView, mZoomViewCache, mZoomViewFollowMouse, mZoomViewSize, mZoomViewTargetWindow, mZoomViewVideoEnabled, OglGui::Menu::SEPARATOR, OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::Menu::SetOptions(), OglGui::ScrollBar::SetRange(), and OglGui::ScrollBar::SetScrollBarListener().

00622     {
00623         mSource                 = source;
00624         mReady                  = false;
00625         mSelecting              = false;
00626         mAutoZoom               = false;
00627         mZoomViewTargetWindow   = 0;
00628         mStaticColumnWidth      = 0;
00629         mStaticColumnCount      = 0;
00630         mLastSelectedRow        = -1;
00631 
00632         // init zoom view:
00633         mZoomViewSize           = 384;
00634         mZoomView               = 0;
00635         mZoomImage              = 0;
00636         mZoomViewVideoEnabled   = false;
00637         mZoomViewCache          = 0;
00638         mShowZoomView           = false;
00639         mZoomViewFollowMouse    = false;
00640 
00641         SetBackground(0xffffffff);
00642         SetBorderType(1);
00643         SetBorderFillShaded(-2);
00644 
00645         mSource->AddTableUpdateListener(this);
00646 
00647         mVertScrollBar = new WindowScrollBar(this, false);
00648         mVertScrollBar->SetRange(mSource->GetTotalRows(),
00649                                  mSource->GetNumberOfRows());
00650         mVertScrollBar->SetScrollBarListener(this, 0);
00651         oglSys.SetAllMouseMotion( mOglWnd, 1 );
00652         mReady = true;
00653 
00654         MenuTopPane* top = new MenuTopPane(this);
00655         mContext = new Menu(top, 1, 180);
00656         mContext->AddItem("Show more results like this", 1);
00657         mContext->AddItem("Add selection to bucket:", 2);
00658         mContext->AddItem("red", 3);
00659         mContext->AddItem("green", 4);
00660         mContext->AddItem("blue", 5);
00661         mContext->AddItem("yellow", 6);
00662         mContext->AddItem("cyan", 7);
00663         mContext->AddItem("orange", 8);
00664         mContext->SetOptions(2, Menu::SEPARATOR, true);
00665 
00666         //mContext->SetMenuListener(this, 0);
00667     }

Here is the call graph for this function:


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