Definition at line 819 of file RotorBrowser.h. References CheckKBN(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GetCenter(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GetName(), GetThreadByName(), Impala::Visualization::RotorBrowser::RotorBrowserContext::GoTo(), HasContext(), ILOG_DEBUG, ILOG_USER, mActiveContext, mCache, mContexts, mInitialQueryPosition, mKeepCenterCentered, mShowRankThreads, RotorBrowserNavigateKey(), ShowStatusStr(), SwitchToContext(), SwitchToNextContext(), SwitchToPreviousContext(), UpdateViewsToContext(), and VisualQueryKey(). Referenced by KeyboardFunc(). 00820 { 00821 if (VisualQueryKey(c,state)) 00822 return true; 00823 00824 if (RotorBrowserNavigateKey(c,state,mKeepCenterCentered)) 00825 return true; 00826 00827 bool keySwallowed = true; 00828 if (CheckKBN("RbSwitchToContextNext", c, state)) 00829 { 00830 ILOG_USER( "KB: RotorBrowser switch to NEXT context" ); 00831 SwitchToNextContext(); 00832 UpdateViewsToContext(); 00833 } 00834 else if (CheckKBN("RbSwitchToContextPrev", c, state)) 00835 { 00836 ILOG_USER( "KB: RotorBrowser switch to PREVIOUS context" ); 00837 SwitchToPreviousContext(); 00838 UpdateViewsToContext(); 00839 } 00840 else if (CheckKBN("RbSwitchToContextTime", c, state)) 00841 { 00842 ILOG_USER( "KB: RotorBrowser switch to context 'time'" ); 00843 SwitchToContext("time"); 00844 UpdateViewsToContext(); 00845 } 00846 else if (CheckKBN("RbSwitchToContextBookmark", c, state)) 00847 { 00848 ILOG_USER( "KB: RotorBrowser switch to context 'bookmarked'" ); 00849 if (!HasContext("bookmarked")) 00850 { 00851 Thread* t = GetThreadByName("bookmarked"); 00852 mContexts.push_back(new RotorBrowserContext(mCache,t,0,0.0f,4)); 00853 } 00854 SwitchToContext("bookmarked"); 00855 UpdateViewsToContext(); 00856 } 00857 else if (CheckKBN("RbReturnLastInitialQuery", c, state)) 00858 { 00859 ILOG_USER("KB: return to last known initialquery position " << 00860 mInitialQueryPosition ); 00861 SwitchToContext("shots_initialquery"); 00862 if (mActiveContext->GetName() == "shots_initialquery") 00863 { 00864 ILOG_DEBUG("current context = initialquery" ); 00865 mActiveContext->GoTo(mInitialQueryPosition); 00866 ILOG_DEBUG("current context = " << mActiveContext->GetCenter()); 00867 UpdateViewsToContext(); 00868 } 00869 else 00870 ILOG_DEBUG("return to context failed, current context=" << 00871 mActiveContext->GetName() ); 00872 } 00873 else if (CheckKBN("RbToggleShowRankThreads", c, state)) 00874 { 00875 ILOG_USER( "KB: toggling show rank threads" ); 00876 mShowRankThreads = !mShowRankThreads; 00877 ShowStatusStr("Show extra threads", mShowRankThreads); 00878 UpdateViewsToContext(); 00879 } 00880 else 00881 keySwallowed = false; 00882 00883 return keySwallowed; 00884 }
Here is the call graph for this function:
|