Definition at line 88 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(). 00089 { 00090 mId = id; 00091 mBgcolor = bgColor; 00092 mListener = 0; 00093 00094 SetBorderBackground(bgColor); 00095 SetRoundness(16, 16, 16, 16); 00096 SetBorderFillShaded(-2); 00097 SetBorderType(-1); 00098 00099 mItemText = new StaticText(this, 0, 0, W(), 20, ""); 00100 mItemCount = new StaticText(this, 0, 20, W(), 20, ""); 00101 mItemVisCount = new StaticText(this, 0, 44, W(), 20, ""); 00102 mItemVisCount->SetTextShadowed(true); 00103 mItemCount->SetForeground(0xff555555); 00104 00105 oglSys.SetNoMouseInput(mItemText->GetOGLWND(),1); 00106 oglSys.SetNoMouseInput(mItemCount->GetOGLWND(),1); 00107 oglSys.SetNoMouseInput(mItemVisCount->GetOGLWND(),1); 00108 00109 RepositionViewports(); 00110 ScaleChildren(); 00111 SetAllowChildScaling(false); // Since we scale ourselves 00112 00113 SetItemName("unknown"); 00114 SetItemCounts(0, 0); 00115 00116 MenuTopPane* top = new MenuTopPane(this); 00117 mContextMenu = new Menu(top, 1, 180); 00118 mContextMenu->AddItem("Show only these", 1); 00119 mContextMenu->AddItem("Show everything but these", 2); 00120 if (id > 1) 00121 { 00122 mContextMenu->AddItem("Add these to view", 3); 00123 mContextMenu->AddItem("Remove these from view", 4); 00124 mContextMenu->AddItem("Empty this bucket", 5); 00125 } 00126 if (id == -1) 00127 { 00128 mContextMenu->SetOptions(2, Menu::DISABLED, true); 00129 mContextMenu->SetOptions(3, Menu::DISABLED, true); 00130 mContextMenu->SetOptions(4, Menu::DISABLED, true); 00131 mContextMenu->SetOptions(5, Menu::DISABLED, true); 00132 } 00133 else 00134 { 00135 mContextMenu->AddItem("Save selection as...", 8); 00136 mContextMenu->AddItem("Load selection", 9); 00137 } 00138 mContextMenu->SetMenuListener(this, 0); 00139 }
Here is the call graph for this function:
|