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

void Impala::Application::MediaTable::ConfigWindowModule::AddSelectorWithTableDataViews ( OglGui::Window wnd,
std::string  label,
std::string  view = "",
int  h = 80 
) [inline]

Definition at line 72 of file ConfigWindowModule.h.

References Impala::Application::MediaTable::TableDataStore::GetContents(), Impala::Application::MediaTable::TableDataStore::GetInstance(), mStringSelectors, mStringValues, and OglGui::OglWindow::W().

Referenced by Impala::Application::MediaTable::VisualizationModule::ModuleSelected(), and Impala::Application::MediaTable::CombinedViewsModule::ModuleSelected().

00073         {
00074                 new OglGui::StaticText(wnd, wnd->W(), 20, label);
00075                 OglGui::StringSelector* strSel;
00076                 strSel  = new OglGui::StringSelector(wnd, wnd->W(), h);
00077 
00078 
00079                 int valuesAdded = 0;
00080                 std::map<std::string, std::vector<std::string> > contents;
00081         contents = TableDataStore::GetInstance()->GetContents();
00082         for(std::map<std::string, std::vector<std::string> >::iterator it = contents.begin(); it != contents.end(); it++) {
00083                 if(view != "") {
00084                                 strSel->AddString(it->first + ":" + view);
00085                                 valuesAdded++;
00086                 }
00087                 for(std::vector<std::string>::iterator itv = it->second.begin(); itv != it->second.end(); itv++) {
00088                                 strSel->AddString(it->first + ":" + *itv);
00089                                 valuesAdded++;
00090                 }
00091                 if(!it->second.size()) {
00092                                 strSel->AddString(it->first + ":Default");
00093                                 valuesAdded++;
00094                 }
00095         }
00096                 if(valuesAdded) {
00097                         mStringSelectors[label] = strSel;
00098                 } else {
00099                         mStringValues[label] = "";
00100                 }
00101         }

Here is the call graph for this function:


Generated on Fri Mar 19 10:43:24 2010 for ImpalaSrc by  doxygen 1.5.1