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

Window* Impala::Application::MediaTable::MediaTable::GetConfigWindow (  )  [inline]

Definition at line 437 of file MediaTable.h.

References OglGui::TitledWindow::BtnClose, Impala::Application::MediaTable::ConfigWindowModule::ClearConfigWindowValues(), Impala::Application::MediaTable::ConfigWindowModule::DrawConfigWindow(), Impala::Application::MediaTable::ModuleStore::GetInstance(), Impala::Application::MediaTable::ModuleStore::GetModulesOfType(), OglGui::OglWindow::H(), mConfigWindow, Impala::Application::MediaTable::VisualizationModule::ModuleSelected(), mOverlayWindow, OglGui::Window::RepositionViewports(), OglGui::Window::ScaleChildren(), OglGui::OglWindow::SetBackground(), OglGui::TitledWindow::SetCloseWindowListener(), OglGui::OglWindow::SetRoundness(), and OglGui::OglWindow::W().

Referenced by ButtonSelectionEvent().

00438     {
00439         mConfigWindow = new TitledWindow(mOverlayWindow, W()/2-260, H()/2-160,
00440                                          520, 320, "Add new tab",
00441                                          TitledWindow::BtnClose);
00442         mConfigWindow->SetBackground(this->GetBackground());
00443         mConfigWindow->SetRoundness(0, 0, 0 ,0);
00444         mConfigWindow->SetCloseWindowListener(this, 0);
00445         new OglGui::Strut(mConfigWindow, mConfigWindow->W(), 24);
00446 
00447         int h = mConfigWindow->H();
00448         GroupBox* grp;
00449         ModuleStore::ModuleMapType::iterator it;
00450 
00451 #ifdef MEDIATABLE_USING_MULTIPLE_VIEWS
00452         h -= 160;
00453         grp = new GroupBox(mConfigWindow, mConfigWindow->W()-4, 160,
00454                                      "Data Sources:");
00455         new OglGui::Strut(grp, grp->W(), 16);
00456 
00457         ModuleStore::ModuleMapType tModules =
00458             ModuleStore::GetInstance()->GetModulesOfType("TableDataSourceModule");
00459 
00460         for (it=tModules.begin() ; it != tModules.end(); it++ )
00461             static_cast<TableDataSourceModule*>
00462             ((*it).second)->ContributeToConfigurationWindow(mOverlayWindow, grp);
00463 
00464         grp->RepositionViewports();
00465         grp->ScaleChildren();
00466 #endif
00467 
00468         grp = new GroupBox(mConfigWindow, mConfigWindow->W()-4, h,
00469                            "Visualizations:");
00470         new OglGui::Strut(grp, grp->W(), 16);
00471 
00472         ModuleStore::ModuleMapType vModules =
00473             ModuleStore::GetInstance()->GetModulesOfType("VisualizationModule");
00474 
00475         for (it=vModules.begin() ; it != vModules.end(); it++ )
00476             static_cast<VisualizationModule*>
00477             ((*it).second)->ContributeToConfigurationWindow(mOverlayWindow, grp);
00478 
00479         grp->RepositionViewports();
00480         grp->ScaleChildren();
00481 
00482         mConfigWindow->RepositionViewports();
00483         mConfigWindow->ScaleChildren();
00484 
00485         mOverlayWindow->SetBackground(0xCC000000);
00486         oglSys.SetNoMouseInput(mOverlayWindow->GetOGLWND(),0);
00487 
00488 #ifdef MEDIATABLE_VIDEOLYMPICS
00489                 if(ModuleStore::GetInstance()->CountModulesOfType("VisualizationModule")  == 1 &&
00490                    ModuleStore::GetInstance()->CountModulesOfType("TableDataSourceModule") == 0)
00491                 {
00492                         VisualizationModule *vm = 
00493                                 static_cast<VisualizationModule*> ((*vModules.begin()).second);
00494                         vm->DrawConfigWindow();
00495                         vm->ClearConfigWindowValues();
00496                         vm->ModuleSelected();
00497                 }
00498 #endif
00499 
00500         return mOverlayWindow;
00501     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:15:16 2011 for ImpalaSrc by  doxygen 1.5.1