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

void Impala::Application::MediaTable::TableWindowColumn::Init ( String  name,
Window parent,
ColumnListener l,
TableDataView source,
int  w,
int  h 
) [inline, private]

Definition at line 492 of file TableWindowColumn.h.

References Impala::Application::MediaTable::TableDataView::AddTableDataViewListener(), OglGui::SizableWindow::AllDir, BTN_CONFIGURE, BTN_SORT, OglGui::OglWindow::ConnectTo(), Impala::Application::MediaTable::TableWindowCell::DISPLAY_TEXT, OglGui::SizableWindow::East, OglGui::OglWindow::GetOGLWND(), mCache, mColumnHeader, mColumnHeaderButton, mColumnListener, mColumnName, mColWidth, mColWidthDynamic, mDisplayAttr, mDisplayMode, mFilter, mFilterTextField, mFilterValueButton, mIsActiveSortColumn, mMenuTopPane, mSortButton, mSource, Impala::Application::MediaTable::TableWindowCell::NONE, Impala::Application::MediaTable::TableDataView::RegisterFilter(), OglGui::StaticText::SetAlign(), OglGui::StaticText::SetAlignOffsets(), OglGui::SizableWindow::SetAllowMoveDirections(), OglGui::SizableWindow::SetAllowSizeDirections(), OglGui::OglWindow::SetBackground(), OglGui::SizableWindow::SetBorderType(), OglGui::Button::SetButtonListener(), OglGui::Window::SetDoStateFeedback(), OglGui::SizableWindow::SetMinMaxSizes(), OglGui::SizableWindow::SetMoveCursor(), OglGui::SizableWindow::SetMoveFeedback(), OglGui::OglWindow::SetNoMouseInput(), OglGui::OglWindow::SetVisible(), OglGui::Window::SetWindowListener(), OglGui::TOLEFTRIGHT, OglGui::TORIGHT, and OglGui::TOTOP.

00493     {
00494         mSource             = source;
00495         mColumnName         = name;
00496         mCache              = 0;
00497         mDisplayMode        = TableWindowCell::DISPLAY_TEXT;
00498         mDisplayAttr        = TableWindowCell::NONE;
00499         mColumnListener     = l;
00500         mIsActiveSortColumn = false;
00501 
00502         // register for updates on this datasource:
00503         mSource->AddTableDataViewListener(this);
00504 
00505         // build the column GUI
00506         oglSys.SetNoMouseInput(GetOGLWND(),1);
00507         //mColumnHeaderButton = new Button(this,0,h-20,w,20,w<40 ? "" : name,4,true);
00508         mColumnHeader = new SizableWindow(this, 0, h-20, w, 20);
00509         mColumnHeader->ConnectTo(this, OglGui::TOTOP| OglGui::TOLEFTRIGHT);
00510 
00511         mColumnHeader->SetAllowMoveDirections(SizableWindow::AllDir, false);
00512         mColumnHeader->SetAllowSizeDirections(SizableWindow::AllDir, false);
00513         mColumnHeader->SetAllowSizeDirections(SizableWindow::East, true);
00514         mColumnHeader->SetMoveCursor(oglCursorE);
00515         mColumnHeader->SetMoveFeedback(false);
00516         mColumnHeader->SetDoStateFeedback(false);
00517         mColumnHeader->SetBorderType(0);
00518         mColumnHeader->SetMinMaxSizes(10, 600, RETAIN, RETAIN);
00519         mColumnHeader->SetWindowListener(this, 2);
00520 
00521         mColumnHeaderButton = new Button(mColumnHeader,0,0,w,20,name,4,true);
00522         mColumnHeaderButton->SetAlign(oglLeftAlign);
00523         mColumnHeaderButton->SetAlignOffsets(4,0);
00524         mColumnHeaderButton->ConnectTo(mColumnHeader, OglGui::TOTOP| OglGui::TOLEFTRIGHT);
00525         mColumnHeaderButton->SetButtonListener(this, BTN_CONFIGURE);
00526         mColumnHeaderButton->SetBackground(0xffffddee);
00527         mColumnHeaderButton->SetWindowListener(this, 1);
00528                 mColumnHeaderButton->SetNoMouseInput(true);
00529 
00530         mSortButton = new DirectionButton(mColumnHeaderButton,w-18,2,16,16,3,-1);
00531         mSortButton->SetBackground(0xffffddee);
00532         mSortButton->ConnectTo(mColumnHeaderButton,OglGui::TORIGHT);
00533         mSortButton->SetButtonListener(this, BTN_SORT);
00534         mSortButton->SetWindowListener(this, 1);
00535         mSortButton->SetVisible(false);
00536 //        oglSys.SetNoMouseInput(mSortButton->GetOGLWND(),1);
00537 
00538         // set the items in the config window to 0:
00539         mFilterTextField = 0;
00540         mFilterValueButton = 0;
00541 
00542         mFilter = new TableFilter(mSource, mColumnName);
00543         mSource->RegisterFilter(mFilter);
00544 
00545         mColWidth = w;
00546         mColWidthDynamic = false;
00547         mMenuTopPane = 0;
00548         //UpdateRows();
00549     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:47:37 2010 for ImpalaSrc by  doxygen 1.5.1