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

void OglGui::RadioGroup::ButtonSelectionEvent ( Button src,
void *  data 
) [inline, virtual]

Reimplemented from OglGui::ButtonListener.

Definition at line 73 of file RadioGroup.h.

References mButtons, mCurrent, mListener, mListenerData, OglGui::RadioGroupListener::OnRadioButton(), OglGui::RadioGroupListener::OnRadioChange(), and SetCurrentSelected().

Referenced by Impala::Application::SDash::CameraEventListPane::AlertSelectionEvent().

00074     {
00075         int btn = (int)(long long)data;
00076         if (mListener)
00077             mListener->OnRadioButton(this, btn, mListenerData);
00078 
00079         if (data == (void*) mCurrent)
00080             return;
00081         if (data >= (void*)mButtons.size())
00082             return;
00083         mCurrent = (long long) data;
00084         SetCurrentSelected();
00085         //for(int i=0 ; i<(int)mButtons.size() ; i++)
00086         //    mButtons[i]->SetSelected(i == mCurrent);
00087 
00088         if (mListener)
00089             mListener->OnRadioChange(this, mCurrent, mListenerData);
00090     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:04:35 2010 for ImpalaSrc by  doxygen 1.5.1