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

void Impala::Application::IDash::ScreenBrowser::AddTog ( Window w,
char *  text,
std::string  mapping 
) [inline, private]

Definition at line 224 of file ScreenBrowser.h.

References OglGui::OglWindow::GetOGLWND(), ILOG_DEBUG, mToggleLastID, mToggleMap, OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::CheckBox::SetCheckBoxListener(), and OglGui::OglWindow::SetRoundness().

Referenced by DoQueryPane().

00225     {
00226         OglGui::Window *v = new OglGui::Window(w, 80, 80);
00227         v->SetBorderType(4);
00228         v->SetRoundness(3,3,3,3);
00229         v->SetBorderFillShaded(1);
00230         std::string imname = "icons/unknown.png";
00231         if (mapping.find("CONCEPT:") == 0 ) { // query starts with CONCEPT:
00232             imname = "icons/" + mapping.substr(8) +".png";
00233         }
00234         ILOG_DEBUG(" reading image " << imname);
00235         OGLIMAGE *image = OGLReadPNG(imname.c_str(), false);
00236         if (image != NULL) {
00237             OglGui::View *icon = new OglGui::View(v->GetOGLWND(), image, 0, 0, 75, 75);
00238         }
00239         OglGui::CheckBox *c = new OglGui::CheckBox(v, 2, 2, 80, 24, text);
00240         c->SetBorderType(0);
00241         c->SetRoundness(16,16,16,16);
00242         c->SetBorderFillShaded(0);
00243         c->SetBackground(0xaabbbbbb);
00244         mToggleMap[mToggleLastID] = mapping;
00245         c->SetCheckBoxListener(this, mToggleLastID);
00246         mToggleLastID++;
00247     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:14:53 2011 for ImpalaSrc by  doxygen 1.5.1