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

virtual void Impala::Visualization::AppControlDoc::KeyEvent ( OglGui::Window src,
int  c,
int  state 
) [inline, virtual]

Reimplemented from OglGui::KeyListener.

Reimplemented in Impala::Visualization::SimilarityPlotNeedleImage.

Definition at line 182 of file AppControlDoc.h.

References AddCursorToBookmarked(), AllHandleNewCursor(), CheckBinding(), Impala::Core::Database::DataDocument::CursorNextDir(), Impala::Core::Database::DataDocument::CursorNextFile(), Impala::Core::Database::DataDocument::CursorNextShot(), Impala::Core::Database::DataDocument::CursorPrevDir(), Impala::Core::Database::DataDocument::CursorPrevFile(), Impala::Core::Database::DataDocument::CursorPrevShot(), Impala::Core::Database::DataDocument::CursorToDir(), Impala::Visualization::AppControl::GetControlId(), ILOG_DEBUG, ILOG_INFO, mDoc, mDocListeners, mDone, RemoveCursorFromBookmarked(), and SetDoContinuous().

00183     {
00184         ILOG_DEBUG("(" << GetControlId() << ")::KeyEvent: " << c);
00185         //ILOG_INFO("(" << GetControlId() << ")::KeyEvent: " << c);
00186         if (c == 'Q')
00187         {
00188             ILOG_INFO("Instant exit button pressed.");
00189             mDone = true;
00190         }
00191         if (CheckBinding("dataFirstDir",c,state))
00192             AllHandleNewCursor(mDoc->CursorToDir(0), false);
00193         if (CheckBinding("dataNextDir",c,state))
00194             AllHandleNewCursor(mDoc->CursorNextDir(), false);
00195         else if (CheckBinding("dataPrevDir",c,state))
00196             AllHandleNewCursor(mDoc->CursorPrevDir(), false);
00197         else if (CheckBinding("dataNextFile",c,state))
00198             AllHandleNewCursor(mDoc->CursorNextFile(), false);
00199         else if (CheckBinding("dataPrevFile",c,state))
00200             AllHandleNewCursor(mDoc->CursorPrevFile(), false);
00201         else if (CheckBinding("dataNextShot",c,state))
00202             AllHandleNewCursor(mDoc->CursorNextShot(), false);
00203         else if (CheckBinding("dataPrevShot",c,state))
00204             AllHandleNewCursor(mDoc->CursorPrevShot(), false);
00205 
00206 
00207         // from here on, propagation of event is responsibility of callee
00208         else if (CheckBinding("dataAddBookMark",c,state))
00209             AddCursorToBookmarked();
00210         else if (CheckBinding("dataDelBookMark",c,state))
00211             RemoveCursorFromBookmarked();
00212         else if (CheckBinding("dataContinuous",c,state))
00213             SetDoContinuous(true);
00214         else if (CheckBinding("dataNotContinuous",c,state))
00215             SetDoContinuous(false);
00216 
00217         for (int i=0 ; i<mDocListeners.size() ; i++)
00218             mDocListeners[i]->HandleNewKey(c, state);
00219     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:42:34 2010 for ImpalaSrc by  doxygen 1.5.1