Definition at line 1887 of file RotorBrowser.h. References ClearReturnQuery(), Impala::Core::Trec::ThreadSet::CopyToShotsThread(), DoReturnToFirstQuery(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GetCenter(), GetContext(), Impala::Core::Trec::Thread::GetLength(), GetThreadByName(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GoFirst(), ILOG_DEBUG, mActiveContext, mHasReturnQuery, mReturnPosition, mThreadSet, Impala::Core::Trec::ThreadSet::RemoveThread(), and UpdateViewsToContext(). Referenced by StdKeyboardFunc(). 01888 { 01889 // this toggles between showing bookmarks and showing the active query 01890 if (mHasReturnQuery) 01891 { 01892 DoReturnToFirstQuery(); 01893 return; 01894 } 01895 // RvB: Added to handle nothing bookmarked 01896 Thread* t = GetThreadByName("bookmarked"); 01897 if (t->GetLength()<1) return; 01898 01899 ClearReturnQuery(); 01900 if (!mHasReturnQuery) 01901 { 01902 t = GetThreadByName("shots_initialquery"); 01903 mThreadSet->CopyToShotsThread(t,"returnquery"); 01904 mHasReturnQuery = true; 01905 mReturnPosition = GetContext("shots_initialquery")->GetCenter(); 01906 ILOG_DEBUG("Stored return query with position " << mReturnPosition); 01907 } 01908 mThreadSet->RemoveThread("shots_initialquery"); 01909 mThreadSet->CopyToShotsThread(GetThreadByName("bookmarked"), 01910 "initialquery"); 01911 ILOG_DEBUG("Showing bookmark thread"); 01912 UpdateViewsToContext(); 01913 mActiveContext->GoFirst(); 01914 UpdateViewsToContext(); 01915 }
Here is the call graph for this function:
|