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

void Impala::Application::MediaTable::SelectionCollectionItem::Init ( int  id,
unsigned long  bgColor 
) [inline, private]

Definition at line 97 of file SelectionCollectionItem.h.

References OglGui::Menu::AddItem(), OglGui::Menu::DISABLED, OglGui::OglWindow::GetOGLWND(), mBgcolor, mContextMenu, mId, mItemCount, mItemText, mItemVisCount, mListener, OglGui::Window::RepositionViewports(), OglGui::Window::ScaleChildren(), OglGui::Window::SetAllowChildScaling(), OglGui::OglWindow::SetBorderBackground(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::Window::SetForeground(), SetItemCounts(), SetItemName(), OglGui::Menu::SetMenuListener(), OglGui::Menu::SetOptions(), OglGui::OglWindow::SetRoundness(), OglGui::StaticText::SetTextShadowed(), and OglGui::OglWindow::W().

00098     {
00099         mId       = id;
00100         mBgcolor  = bgColor;
00101         mListener = 0;
00102 
00103         SetBorderBackground(bgColor);
00104         SetRoundness(16, 16, 16, 16);
00105         SetBorderFillShaded(-2);
00106         SetBorderType(-1);
00107 
00108         mItemText       = new StaticText(this, 0, 0,  W(), 20, "");
00109         mItemCount      = new StaticText(this, 0, 20, W(), 20, "");
00110         mItemVisCount   = new StaticText(this, 0, 44, W(), 20, "");
00111         mItemVisCount->SetTextShadowed(true);
00112         mItemCount->SetForeground(0xff555555);
00113 
00114         oglSys.SetNoMouseInput(mItemText->GetOGLWND(),1);
00115         oglSys.SetNoMouseInput(mItemCount->GetOGLWND(),1);
00116         oglSys.SetNoMouseInput(mItemVisCount->GetOGLWND(),1);
00117 
00118         RepositionViewports();
00119         ScaleChildren();
00120         SetAllowChildScaling(false); // Since we scale ourselves
00121 
00122         SetItemName("unknown");
00123         SetItemCounts(0, 0);
00124 
00125         MenuTopPane* top = new MenuTopPane(this);
00126         mContextMenu = new Menu(top, 1, 180);
00127         mContextMenu->AddItem("Show only these", 1);
00128         mContextMenu->AddItem("Show everything but these", 2);
00129         if (id > 1)
00130         {
00131             mContextMenu->AddItem("Add these to view", 3);
00132             mContextMenu->AddItem("Remove these from view", 4);
00133             mContextMenu->AddItem("Empty this bucket", 5);
00134         }
00135         if (id == -1)
00136         {
00137             mContextMenu->SetOptions(2, Menu::DISABLED, true);
00138             mContextMenu->SetOptions(3, Menu::DISABLED, true);
00139             mContextMenu->SetOptions(4, Menu::DISABLED, true);
00140             mContextMenu->SetOptions(5, Menu::DISABLED, true);
00141         }
00142         else
00143         {
00144             mContextMenu->AddItem("Save selection to marks.csv", 8);
00145             mContextMenu->AddItem("Load selection from marks.csv", 9);
00146         }
00147         mContextMenu->SetMenuListener(this, 0);
00148     }

Here is the call graph for this function:


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