Definition at line 295 of file OglDemo.h. References OglGui::DropDownWindow::AddWindow(), scExtraControl, OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderType(), OglGui::Window::SetWindowListener(), TitledGalaxy(), TitledSixViewer(), OglGui::Window::Window(), and WoggelWindow(). Referenced by TitledFancyTreeView(). 00296 { 00297 DropDownWindow* dropDownWnd = new DropDownWindow(parent, 130, 20, txt); 00298 00299 for (int i=0; i<3; i++) 00300 { 00301 char buf[100]; 00302 sprintf(buf, "Een text %d", i); 00303 dropDownWnd->AddWindow(new Button(dropDownWnd, 70, 20, buf)); 00304 00305 sprintf(buf, "Try Level %d", tNest - nest + 2); 00306 if (nest && !i) 00307 dropDownWnd->AddWindow(NestedDropDown(dropDownWnd, buf, 00308 nest-1, tNest)); 00309 if (nest == 1 && !i) 00310 { 00311 Window* wnd = new Window(dropDownWnd,0,0,700,400); 00312 wnd->SetBorderType(BEV_ETCHED); 00313 TitledSixViewer(wnd, 0, 0, 400, 300); 00314 dropDownWnd->AddWindow(wnd); 00315 } 00316 if (!i){ 00317 Window* wogWnd = WoggelWindow(dropDownWnd,0,0,300,200); 00318 wogWnd->SetBorderType(BEV_ETCHED); 00319 dropDownWnd->AddWindow(wogWnd); 00320 } 00321 if (!nest && !i) 00322 { 00323 Window* wnd = new Window(dropDownWnd,0,0,900,400); 00324 wnd->SetBorderType(BEV_ETCHED); 00325 TitledGalaxy(wnd, 10, 10, 800, 360); 00326 dropDownWnd->AddWindow(wnd); 00327 } 00328 } 00329 if (!nest) 00330 return dropDownWnd; 00331 00332 ViewSphere* viewSphere = new ViewSphere(dropDownWnd, 0, 0, 300, 200); 00333 viewSphere->SetBackground(0); 00334 viewSphere->SetBorderType(BEV_ETCHED); 00335 viewSphere->SetWindowListener(this,scExtraControl); 00336 00337 dropDownWnd->AddWindow(viewSphere); 00338 00339 return dropDownWnd; 00340 }
Here is the call graph for this function:
|