Reimplemented from OglGui::TabsListener. Definition at line 182 of file mainTrecSearch.cpp. References Impala::Visualization::SearchJudgeGui::DoJudgement(), Impala::Core::VideoSet::SegmentationDocument::GetBookmarked(), Impala::Core::Trec::SearchTopic::GetCurTopicNum(), Impala::Core::Trec::SearchTopic::GetCurTopicText(), Impala::Core::Trec::ThreadSet::GetThreadByName(), ILOG_DEBUG, ILOG_ENDACTION, ILOG_LEVEL_INFO, ILOG_STARTACTION, ILOG_USER, Impala::Visualization::AppController::Instance(), mBrowserGui, mDisableQueryTab, mInitialBrowser, MODE_CROSSBROWSER, MODE_FORKBROWSER, mQueryGui, mSearchJudgeGui, mSearchTopic, mSegDoc, mThreadSet, mTopicRunning, Impala::Visualization::RotorBrowser::RotorBrowserGUI::SetBrowseMode(), Impala::Visualization::AppController::SetCurrentControl(), Impala::Visualization::RotorBrowser::RotorBrowserGUI::SetInitialQueryToMovies(), TAB_JUDGE, TAB_MDBROWSER, TAB_QUERY, TAB_SORT, TAB_THREAD, and TAB_TOPIC. 00184 { 00185 AppController::Instance().SetCurrentControl(tabControlData); 00186 00187 ILOG_ENDACTION("tab"); 00188 switch (tabControlData) 00189 { 00190 case TAB_THREAD: 00191 ILOG_USER("tab switch to TAB_THREAD");; 00192 break; 00193 case TAB_QUERY: 00194 ILOG_USER("tab switch to TAB_QUERY"); 00195 if (mSearchTopic) 00196 { 00197 if (!mTopicRunning) 00198 { 00199 ILOG_DEBUG("Setting initial query for topic " << 00200 mSearchTopic->GetCurTopicNum() << ": "); 00201 ILOG_DEBUG( "QUERY: " << mSearchTopic->GetCurTopicText()); 00202 if (mQueryGui) 00203 mQueryGui->SetQueryFromTopic(mSearchTopic); 00204 00205 //mSearchTopic->StartTimer(); 00206 mTopicRunning = true; 00207 } 00208 // XXX TODO 00209 } 00210 break; 00211 case TAB_MDBROWSER: 00212 ILOG_USER( "tab switch to TAB_MDBROWSER" ); 00213 if (mDisableQueryTab) 00214 { 00215 ILOG_DEBUG("Query tab disabled, initializing default browser."); 00216 mBrowserGui->SetInitialQueryToMovies(); 00217 if (mInitialBrowser == 1) 00218 { 00219 ILOG_DEBUG( "starting CrossBrowser" ); 00220 mBrowserGui->SetBrowseMode(MODE_CROSSBROWSER); 00221 } 00222 if (mInitialBrowser == 3) 00223 { 00224 ILOG_DEBUG( "starting ForkBrowser" ); 00225 mBrowserGui->SetBrowseMode(MODE_FORKBROWSER); 00226 } 00227 } 00228 break; 00229 case TAB_SORT: 00230 ILOG_USER( "tab switch to TAB_SORT" ); 00231 break; 00232 case TAB_TOPIC: 00233 ILOG_USER( "tab switch to TAB_TOPIC" ); 00234 break; 00235 case TAB_JUDGE: 00236 Thread* t = mThreadSet->GetThreadByName("shots_supplement"); 00237 mSearchJudgeGui->DoJudgement(mSegDoc->GetBookmarked(),t); 00238 break; 00239 } 00240 00241 ILOG_STARTACTION("tab", ILOG_LEVEL_INFO); 00242 }
Here is the call graph for this function:
|