|
void Impala::Application::VideoExcel::SelectionCollection::Init |
( |
TableDataSource * |
source, |
|
|
int |
w, |
|
|
int |
h | |
|
) |
| | [inline, private] |
Definition at line 201 of file SelectionCollection.h.
References Impala::Application::VideoExcel::TableDataSource::AddTableUpdateListener(), 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(). 00202 {
00203 mSource = source;
00204 mSource->AddTableUpdateListener(this);
00205
00206 SetBorderType(1);
00207 SetBorderFillShaded(-2);
00208
00209 mItemWindow = new ScrollWnd(this, 16, 16, W()-32, H()-32);
00210 mItemWindow->ConnectTo(this);
00211 mItemWindow->ContentPane()->SetDimensions(0, 0, 10 * 90, 90);
00212
00213 mItems.push_back(MakeSelectionCollectionItem("everything", -1));
00214 mItems.push_back(MakeSelectionCollectionItem("unknown", 0));
00215 mItems.push_back(MakeSelectionCollectionItem("selected", 1));
00216 mItems.push_back(MakeSelectionCollectionItem("seen", 2));
00217 mItems.push_back(MakeSelectionCollectionItem("red", 4));
00218 mItems.push_back(MakeSelectionCollectionItem("green", 8));
00219 mItems.push_back(MakeSelectionCollectionItem("blue", 16));
00220 mItems.push_back(MakeSelectionCollectionItem("yellow", 32));
00221 mItems.push_back(MakeSelectionCollectionItem("cyan", 64));
00222 mItems.push_back(MakeSelectionCollectionItem("other", 128));
00223
00224 mItems[0]->SetHighlighted(true);
00225 }
Here is the call graph for this function:
|