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

void Impala::Application::MediaTable::SelectionCollection::Init ( TableDataView source,
int  w,
int  h 
) [inline, private]

Definition at line 300 of file SelectionCollection.h.

References Impala::Application::MediaTable::TableDataView::AddTableDataViewListener(), OglGui::OglWindow::ConnectTo(), OglGui::ScrollWnd::ContentPane(), OglGui::OglWindow::H(), MakeSelectionCollectionItem(), mItems, mItemWindow, mSource, OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::OglWindow::SetDimensions(), and OglGui::OglWindow::W().

00301     {
00302         mSource = source;
00303         mSource->AddTableDataViewListener(this);
00304 
00305         SetBorderType(1);
00306         SetBorderFillShaded(-2);
00307 
00308         mItemWindow = new ScrollWnd(this, 8, 8, W()-16, H()-16, true, true, false);
00309         mItemWindow->ConnectTo(this);
00310         mItemWindow->ContentPane()->SetDimensions(0, 0, 10 * 90, 90);
00311                 mItemWindow->SetBorderType(0);
00312 
00313         mItems.push_back(MakeSelectionCollectionItem("everything", -1));
00314         mItems.push_back(MakeSelectionCollectionItem("unknown", 0));
00315         mItems.push_back(MakeSelectionCollectionItem("selected", 1));
00316         mItems.push_back(MakeSelectionCollectionItem("seen", 2));
00317         mItems.push_back(MakeSelectionCollectionItem("red", 4));
00318         mItems.push_back(MakeSelectionCollectionItem("green", 8));
00319         mItems.push_back(MakeSelectionCollectionItem("blue", 16));
00320         mItems.push_back(MakeSelectionCollectionItem("yellow", 32));
00321         mItems.push_back(MakeSelectionCollectionItem("cyan", 64));
00322 #ifndef MEDIATABLE_VIDEOLYMPICS
00323         mItems.push_back(MakeSelectionCollectionItem("other", 128));
00324 #else
00325 #ifdef WIN32
00326                 mItems.push_back(MakeSelectionCollectionItem("VideOlympic", 128));
00327 #else
00328         mItems.push_back(MakeSelectionCollectionItem("VideOlympics", 128));
00329 #endif
00330 #endif
00331                 
00332         mItems[0]->SetHighlighted(true);
00333     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:44:43 2010 for ImpalaSrc by  doxygen 1.5.1