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

void OglGui::AlertTimeLine::PositionAlerts (  )  [inline, protected]

Definition at line 259 of file AlertTimeLine.h.

References ComputeX(), mAlertButtons, and mNrOlderAlerts.

Referenced by DisplayFunc().

00260     {
00261         for (int i=0; i<mAlertButtons.size(); i++)
00262         {
00263             Button* btn = mAlertButtons[i];
00264             int     x   = ComputeX(btn);
00265             btn->SetDimensions(x, RETAIN, RETAIN, RETAIN);
00266         }
00267         // Delete those alerts that become to old
00268         for (int i=mAlertButtons.size()-1; i >= 0; i--)
00269         {
00270             Button* btn = mAlertButtons[i];
00271             if (btn->X() < -btn->W()/2)
00272             {
00273                 mAlertButtons.erase(mAlertButtons.begin()+i);
00274                 mNrOlderAlerts++;
00275                 delete btn;
00276             }
00277         }
00278     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:57:33 2010 for ImpalaSrc by  doxygen 1.5.1