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

void Impala::Visualization::GUI::ConceptTreeBrowser::SetFilter ( String  filtertext  )  [inline, private]

Definition at line 128 of file ConceptTreeBrowser.h.

References mBar, mChildToParent, mChildWnds, mRootWnds, and OglGui::ScrollBar::SetNewPos().

Referenced by Reset(), and TextFieldChangedEvent().

00129     {
00130         std::map<String, ConceptPreviewBar*>::iterator f;
00131         if (filtertext.empty())
00132         {
00133             for (f = mChildWnds.begin(); f != mChildWnds.end(); f++)
00134             {
00135                 f->second->SetHighlight(false);
00136                 f->second->SetSmall(false);
00137             }
00138             return;
00139         }
00140 
00141         mBar->SetNewPos(0);
00142 
00143         std::map<String, DropDownWindow*>::iterator d;
00144         for (d = mRootWnds.begin(); d != mRootWnds.end(); d++)
00145             d->second->DropDown(false);
00146 
00147         for (f = mChildWnds.begin(); f != mChildWnds.end(); f++)
00148         {
00149             String item = f->first;
00150             if (item.find(filtertext) == String::npos)
00151             {
00152                 f->second->SetHighlight(false);
00153                 f->second->SetSmall(true);
00154             }
00155             else
00156             {
00157                 if (mChildToParent[f->first] != "root")
00158                     mRootWnds[mChildToParent[f->first]]->DropDown(true);
00159                 f->second->SetHighlight(true);
00160                 f->second->SetSmall(false);
00161             }
00162         }
00163 
00164     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:25:36 2011 for ImpalaSrc by  doxygen 1.5.1