Definition at line 31 of file SearchTopicGui.h. References OglGui::StringSelector::AddString(), EXAMPLE, Impala::Core::Trec::SearchTopic::GetTopicNum(), Impala::Core::Trec::SearchTopic::GetTopicText(), Impala::Core::Trec::SearchTopic::HasVideos(), mExampleImagesStrip, mSearchTopic, mTopicNumList, mTopicTextArea, mTopicVideoList, Impala::Core::Trec::SearchTopic::NrTopic(), NUM, PLAY, SetAsBox(), OglGui::OglWindow::SetBorderType(), OglGui::Button::SetButtonListener(), Impala::Visualization::ImagesWindow::SetImagesListener(), OglGui::StringSelector::SetStringListener(), and VIDEO. 00034 : 00035 Window(parent, wndWidth, wndHeight, true) 00036 { 00037 mSearchTopic = searchTopic; 00038 00039 if (logoAnim || logoIm) 00040 new LogoWindow(this, true, 0, 0, wndWidth, 400, logoIm, logoAnim); 00041 00042 int line = 20; 00043 mTopicNumList = new OglGui::StringSelector(this, wndWidth - 20, 12*line); 00044 SetAsBox(mTopicNumList); 00045 mTopicNumList->SetStringListener(this, NUM); 00046 for (int i=0 ; mSearchTopic && i<mSearchTopic->NrTopic() ; i++) 00047 mTopicNumList->AddString(mSearchTopic->GetTopicNum(i) + " : " + 00048 mSearchTopic->GetTopicText(i)); 00049 mTopicTextArea = new OglGui::TextArea(this, wndWidth - 20, 3*line, ""); 00050 SetAsBox(mTopicTextArea); 00051 00052 mTopicVideoList = 0; 00053 if (mSearchTopic->HasVideos()) 00054 { 00055 OglGui::TextArea* vArea = new OglGui::TextArea(this, 100, 1*line, 00056 "Video examples"); 00057 vArea->SetBorderType(0); 00058 mTopicVideoList = new OglGui::StringSelector(this, 600, 6*line); 00059 SetAsBox(mTopicVideoList); 00060 mTopicVideoList->SetStringListener(this, VIDEO); 00061 OglGui::Button* but = new OglGui::Button(this, 50, 22, "Play"); 00062 but->SetButtonListener(this, PLAY); 00063 OglGui::Strut* strut = new OglGui::Strut(this, 4000, 1); 00064 } 00065 00066 mExampleImagesStrip = new ImageStrip(this, imWidth, imHeight, 00067 viewScale, nrImOnRow); 00068 mExampleImagesStrip->SetImagesListener(this, EXAMPLE); 00069 mExampleImagesStrip->ActivateInfoBox(false); 00070 SetAsBox(mExampleImagesStrip); 00071 }
Here is the call graph for this function:
|