Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

bool Impala::Visualization::RotorBrowser::ThreadClusterSelector::ClusterKeyboardFunc ( int  c,
int  state 
) [inline]

Definition at line 335 of file ThreadClusterSelector.h.

References CheckKBN(), DecreaseSelectionSize(), GetPagemode(), GetSelectionSize(), ILOG_USER, IncreaseSelectionSize(), mContext, Impala::Visualization::RotorBrowser::RotorBrowserContext::MoveRelative(), SetPagemode(), and Show().

Referenced by Impala::Visualization::RotorBrowser::RotorBrowser::KeyboardClusterSelectionFunc().

00336     {
00337         bool keyHandled = true;
00338 
00339         if (!GetPagemode())
00340         {
00341             // when browsing clusters do not allow page flips, but
00342             // change cluster size instead.
00343             //if (c == 'a' || c == 'A') c = 's';
00344             //if (c == 'd' || c == 'D') c = 'w';
00345             if (CheckKBN("RbCsBrowseDecrSelectionSize", c, state))
00346                 c = 's';
00347             if (CheckKBN("RbCsBrowseIncrSelectionSize", c, state))
00348                 c = 'w';
00349         }
00350 
00351         if (CheckKBN("RbCsDecrSelectionSize", c, state))
00352             c = 's';
00353         else if (CheckKBN("RbCsIncrSelectionSize", c, state))
00354             c = 'w';
00355         else if (CheckKBN("RbCsNextPage", c, state))
00356             c = 'd';
00357         else if (CheckKBN("RbCsPrevPage", c, state))
00358             c = 'a';
00359         else if (CheckKBN("RbCsTogglePaginate", c, state))
00360             c = 'r';
00361 
00362         switch (c)
00363         {
00364             case 's': // S(maller)
00365                 ILOG_USER("KB: decrease selection size in cluster viewer");
00366                 DecreaseSelectionSize();
00367                 break;
00368             case 'w': // W(ider)
00369                 ILOG_USER("KB: decrease selection size in cluster viewer");
00370                 IncreaseSelectionSize();
00371                 break;
00372 
00373             case 'd':
00374                 ILOG_USER("KB: move to next page in cluster viewer");
00375                 mContext->MoveRelative(GetSelectionSize());
00376                 Show(mContext);
00377                 break;
00378 
00379             case 'a':
00380                 ILOG_USER("KB: move to previous page in cluster viewer");
00381                 mContext->MoveRelative(-GetSelectionSize());
00382                 Show(mContext);
00383                 break;
00384 
00385             case 'r':
00386                 ILOG_USER("KB: Toggle paginate / threshold mode");
00387                 SetPagemode(!GetPagemode());
00388                 ILOG_USER("KB: Toggle paginate / threshold mode, now: " <<
00389                           GetPagemode());
00390                 //ShowStatusStr("Cluster viewer page mode",
00391                 //              mClusterSelector->GetPagemode());
00392                 break;
00393 
00394             default:
00395                 keyHandled = false;
00396         }
00397         return keyHandled;
00398     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:26:02 2011 for ImpalaSrc by  doxygen 1.5.1