Definition at line 193 of file ScreenDossier.h. References BTN_EMPTYDOSSIER, OglGui::OglWindow::ConnectTo(), OglGui::ScrollWnd::ContentPane(), ILOG_DEBUG, mScrollWnd, OglGui::StaticText::SetAlign(), OglGui::Window::SetAllowChildScaling(), Impala::Application::IDash::ScreenBase::SetAsBox(), OglGui::OglWindow::SetBackground(), OglGui::Button::SetButtonListener(), OglGui::OglWindow::SetDimensions(), OglGui::TOLEFTRIGHT, OglGui::TORIGHT, and OglGui::TOTOP. Referenced by ScreenDossier(). 00194 { 00195 //the dossier pane 00196 ILOG_DEBUG("constructing screen Dossier"); 00197 00198 int startheight = 30; 00199 Window *titlebar = new Window(this,0,h-startheight-16,w,36); 00200 SetAsBox(titlebar,false); 00201 titlebar->SetBackground(0x99eeaaaa); 00202 //titlebar->ConnectTo(this,L2L|R2R|T2T|B2T); 00203 titlebar->ConnectTo(this,OglGui::TOLEFTRIGHT|OglGui::TOTOP); 00204 00205 StaticText* txt = new StaticText(titlebar,8,8,200,20,"Evidence found:"); 00206 txt->SetAlign(oglLeftAlign); 00207 00208 Button* emptyDossier = 00209 new Button(titlebar,w-200,8,180,20,"Empty Dossier"); 00210 emptyDossier->SetButtonListener(this, BTN_EMPTYDOSSIER); 00211 emptyDossier->ConnectTo(this,OglGui::TORIGHT); 00212 00213 //make the scroll window where the data will be seen 00214 mScrollWnd = new ScrollWnd(this,0,0,w,h-startheight-16,true,0,1); 00215 mScrollWnd->ContentPane()->SetDimensions(0,0,w-16,4000); 00216 mScrollWnd->ConnectTo(this); 00217 SetAsBox(mScrollWnd,false); 00218 00219 // Prevent outsiders to try to scale the children 00220 SetAllowChildScaling(false); 00221 }
Here is the call graph for this function:
|