Definition at line 137 of file TagsWeekPlot.h. References AXIS_X, Impala::Application::TagsLife::Tag::flickrWeekToString(), mFirstVisible, mWeekText, NrVisible(), OglGui::OglWindow::SetDimensions(), OglGui::StaticText::SetText(), OglGui::OglWindow::SetVisible(), OglGui::OglWindow::ToTopWindow(), and OglGui::OglWindow::W(). Referenced by WindowMouseEvent(). 00138 { 00139 int nrVis = NrVisible(); 00140 00141 if (nrVis!=0 && (msg == oglMouseEnter || msg == oglMouseMove)) 00142 { 00143 int topX = AXIS_X + x + 10; 00144 int topY = -30; // Fixed y position for text balloon 00145 00146 ToTopWindow(this,topX,topY); 00147 mWeekText->SetDimensions(topX,topY,180,20); 00148 mWeekText->SetVisible(true); 00149 00150 float slotSz = (W() - AXIS_X) / (float) nrVis; 00151 int weekNr = mFirstVisible + x / slotSz; 00152 00153 mWeekText->SetText(Tag::flickrWeekToString(weekNr)); 00154 } 00155 if (msg == oglMouseLeave) 00156 mWeekText->SetVisible(false); 00157 }
Here is the call graph for this function:
|