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

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

Definition at line 81 of file TagsWeekBarPlot.h.

References Impala::Application::TagsLife::BarPlot::AXIS_X, Impala::Application::TagsLife::Tag::flickrWeekToString(), Impala::Application::MediaTable::TableDataView::GetSortedIntData(), Impala::Application::TagsLife::BarPlot::mColumnX, Impala::Application::TagsLife::BarPlot::mFirstVisible, Impala::Application::TagsLife::BarPlot::mSlotSize, Impala::Application::TagsLife::BarPlot::mSource, mWeekText, Impala::Application::TagsLife::BarPlot::NrVisible(), topX, topY, and OglGui::OglWindow::ToTopWindow().

Referenced by WindowMouseEvent().

00082     {
00083         int   nrVis  = NrVisible();
00084 
00085         if (nrVis!=0 && (msg == oglMouseEnter || msg == oglMouseMove))
00086         {
00087             int topX = AXIS_X + x + 10;
00088             int topY = -30; // Fixed y position for text balloon
00089 
00090             ToTopWindow(this,topX,topY);
00091             mWeekText->SetDimensions(topX,topY,180,20);
00092             mWeekText->SetVisible(true);
00093 
00094             int idx = mFirstVisible + x / mSlotSize;
00095             int week = mSource->GetSortedIntData(mColumnX, idx);
00096             mWeekText->SetText(Tag::flickrWeekToString(week));
00097         }
00098         if (msg == oglMouseLeave)
00099             mWeekText->SetVisible(false);
00100     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:24 2011 for ImpalaSrc by  doxygen 1.5.1