Definition at line 118 of file ScreenQuery.h. References AddConcepts(), OglGui::ALLSIDES, OglGui::B2B, BTN_ALLMOVIES, BTN_CLEAR, BTN_QUERY, OglGui::OglWindow::ConnectTo(), OglGui::ScrollWnd::ContentPane(), Impala::Application::IDash::ScreenBase::Engine(), OglGui::OglWindow::H(), ILOG_DEBUG, Impala::Application::IDash::TrecEngine::ImHeight(), Impala::Application::IDash::TrecEngine::ImScale(), Impala::Application::IDash::TrecEngine::ImWidth(), OglGui::L2L, OglGui::L2R, mBrowser, mBtnAllMovies, mBtnClearSelection, mBtnSearch, mConceptTreeBrowserWnd, mSuggestionWnd, OglGui::R2R, SEL_FROMTREE, Impala::Application::IDash::ScreenBase::SetAsBox(), OglGui::Button::SetButtonListener(), OglGui::OglWindow::SetDimensions(), Impala::Visualization::GUI::ConceptTreeBrowser::SetPreviewBarSelectionListener(), OglGui::OglWindow::SetRoundness(), OglGui::T2T, Impala::Application::IDash::TrecEngine::ThreadSet(), OglGui::TPARENT, and OglGui::OglWindow::W(). Referenced by ScreenQuery(). 00119 { 00120 ILOG_DEBUG("constructing screen Query"); 00121 00122 mBrowser = browser; 00123 00124 // concept browse part: 00125 GroupBox *mCBGroupWnd = new GroupBox(this, 0, 300, W() - 16, H() - 308, "Available semantic concepts"); 00126 SetAsBox(mCBGroupWnd); 00127 00128 mConceptTreeBrowserWnd = new Visualization::GUI::ConceptTreeBrowser(mCBGroupWnd, 00129 W(), mCBGroupWnd->H(), Engine()->ImWidth(), Engine()->ImHeight(), 00130 Engine()->ImScale(), Engine()->ThreadSet()); 00131 mConceptTreeBrowserWnd->SetPreviewBarSelectionListener(this, (void*)SEL_FROMTREE); 00132 00133 // add the concepts to the tree: 00134 AddConcepts(Engine()->GetConceptRanking()); 00135 00136 00137 // selected concepts window: 00138 GroupBox *mSelectedGroupWnd = new GroupBox(this, 0, 0, W() - 16, 292, "Selected semantic concepts"); 00139 SetAsBox(mSelectedGroupWnd); 00140 ScrollWnd* suggestionScroller = new ScrollWnd(mSelectedGroupWnd, 0, 0, 00141 mSelectedGroupWnd->W(), 00142 mSelectedGroupWnd->H() - 16, true, 0, -1); 00143 suggestionScroller->ConnectTo(mSelectedGroupWnd, ALLSIDES); 00144 mSuggestionWnd = suggestionScroller->ContentPane(); 00145 00146 mSuggestionWnd->SetDimensions(0, 0, suggestionScroller->W(), 1000); 00147 mSuggestionWnd->ConnectTo(suggestionScroller, TPARENT | L2L|R2R); 00148 00149 00150 00151 mBtnSearch = new Button(mSelectedGroupWnd, mSelectedGroupWnd->W() - 180, 00152 8, 160, 28, "Search!"); 00153 mBtnSearch->ConnectTo(mSelectedGroupWnd, L2R|R2R|T2T|B2B); 00154 mBtnSearch->SetButtonListener(this, BTN_QUERY); 00155 mBtnSearch->SetRoundness(0,0,0,0); 00156 00157 mBtnAllMovies = new Button(mSelectedGroupWnd, mSelectedGroupWnd->W() - 180 - 140, 00158 8, 120, 28, "Show all videos"); 00159 mBtnAllMovies->ConnectTo(mSelectedGroupWnd, L2R|R2R|T2T|B2B); 00160 mBtnAllMovies->SetButtonListener(this, BTN_ALLMOVIES); 00161 mBtnAllMovies->SetRoundness(0,0,0,0); 00162 00163 mBtnClearSelection = new Button(mSelectedGroupWnd, mSelectedGroupWnd->W() - 180 - 140 - 140, 00164 8, 120, 28, "Clear"); 00165 mBtnClearSelection->ConnectTo(mSelectedGroupWnd, L2R|R2R|T2T|B2B); 00166 mBtnClearSelection->SetButtonListener(this, BTN_CLEAR); 00167 mBtnClearSelection->SetRoundness(0,0,0,0); 00168 /* 00169 mBtnAddVideos = new Button(msWnd, msWnd->WndWidth() - 180 - 140 - 140 - 140, 8, 120, 28, "Show videos"); 00170 mBtnAddVideos->ConnectTo(msWnd, L2R|R2R|T2T|B2B); 00171 mBtnAddVideos->SetButtonListener(this, BTN_ADDVIDEOS); 00172 mBtnAddVideos->SetRoundness(0,0,0,0); */ 00173 }
Here is the call graph for this function:
|