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

virtual void Impala::Application::SDash::IdentificationPane::WindowKeyboardEvent ( Window src,
int  c,
int  state,
void *  userData 
) [inline, virtual]

Reimplemented from OglGui::WindowListener.

Definition at line 228 of file IdentificationPane.h.

References OglGui::ViewStrip::FindIndexView(), OglGui::ViewStrip::LayoutViews(), mPositivesViewStrip, mRoisOfPositives, mSimilarsViewStrip, SelectedToPositives(), and OglGui::ViewStrip::Size().

00229     {
00230         if (userData==(void*)1) // SimilarsViewStrip
00231         {
00232             if (c==oglDELETE) // OGL has already deleted them since we allowed it.
00233                 mSimilarsViewStrip->LayoutViews();
00234             if (c=='s')
00235                 SelectedToPositives();
00236         }
00237 
00238         if (userData==(void*)2 && c==oglDELETE) // PositivesViewStrip
00239         {
00240             int i = mPositivesViewStrip->Size();
00241             if (i==0)
00242                 return;
00243             while (OGLVIEW* oglView=mPositivesViewStrip->FindIndexView(i-1))
00244             {
00245                 if (viewSys.HasTags(oglView, selectedTag))
00246                 {
00247                     mRoisOfPositives.erase(mRoisOfPositives.begin()+i-1);
00248                     viewSys.DeleteView(oglView);
00249                 }
00250                 i--;
00251             }
00252             mPositivesViewStrip->LayoutViews();
00253         }
00254     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:49:12 2010 for ImpalaSrc by  doxygen 1.5.1