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

void Impala::Application::TagsLife::TagsWeekBarPlot::DetailWndMouseEvent ( Window wnd,
int  msg,
int  x,
int  y 
) [inline, protected]

Definition at line 54 of file TagsWeekBarPlot.h.

References Impala::Application::TagsLife::BarPlot::AXIS_X, Impala::Application::MediaTable::TableDataView::GetID(), Impala::Application::MediaTable::TableViewCache::GetViewFromCache(), ILOG_DEBUG, Impala::Application::TagsLife::BarPlot::mCache, mDetailView, Impala::Application::TagsLife::BarPlot::mFirstVisible, mRefIdx, Impala::Application::TagsLife::BarPlot::mSlotSize, Impala::Application::TagsLife::BarPlot::mSource, topX, topY, and OglGui::OglWindow::ToTopWindow().

Referenced by WindowMouseEvent().

00055     {
00056         if (msg == oglMouseMove && mRefIdx != (mFirstVisible + x / mSlotSize))
00057                 msg = oglMouseEnter;
00058         if (msg == oglMouseEnter)
00059         {
00060             mDetailView->SetVisible(false);
00061             mRefIdx = mFirstVisible + x / mSlotSize;
00062                 if(!mSlotSize || !mCache) return;
00063             OGLVIEW *v = mCache->GetViewFromCache(mSource->GetID(mRefIdx));
00064             if(v == 0 || v->im == 0) return;
00065 
00066             topX = AXIS_X+(mRefIdx-mFirstVisible+0.5)*mSlotSize-50;
00067             topY = -100;
00068 
00069             ILOG_DEBUG("Showing image of " << v->im->w << "x" << v->im->h << " at " << topX << "," << topY);
00070 
00071             ToTopWindow(this,topX,topY);
00072             mDetailView->SetDimensions(topX,topY,100,100);
00073             mDetailView->SetImage(v->im);
00074             mDetailView->SetVisible(true);
00075         }
00076         if (msg == oglMouseLeave)
00077             mDetailView->SetVisible(false);
00078     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:51:47 2010 for ImpalaSrc by  doxygen 1.5.1