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

virtual void OglGui::IPhoneApp::ButtonSelectionEvent ( Button src,
void *  userData 
) [inline, virtual]

Reimplemented from OglGui::ButtonListener.

Definition at line 87 of file IPhoneApp.h.

References BACK_BTN_ID, OglGui::OpenClose::Close(), CloseCmdPicker(), OglGui::OglWindow::GetDimensions(), mAppClosing, mAppOpenCloser, mCommandPickerWnd, mListener, mListenerData, OglGui::IPhoneAppListener::OnIPhoneAppBackButton(), OglGui::IPhoneAppListener::OnIPhoneAppCmdButton(), OpenApp(), OpenCmdPicker(), and OglGui::OglWindow::SetAlwaysDraw().

00088     {
00089         SetAlwaysDraw(true);
00090         // BACK BUTTON
00091         if (userData == (void*) BACK_BTN_ID)
00092         {
00093             if (mListener != 0)
00094                 mListener->OnIPhoneAppBackButton(this, mCommandPickerWnd, mListenerData);
00095             OpenCmdPicker(mCommandPickerWnd, 0, 0, 10, 10);
00096             mAppClosing = true;
00097             mAppOpenCloser->Close();
00098             return;
00099         }
00100 
00101         // COMMAND BUTTONS
00102         if (mListener != 0)
00103             mListener->OnIPhoneAppCmdButton(this, src, mListenerData);
00104 
00105         // Close the command button window
00106         //mCmdClosing = true;
00107         //mCmdOpenCloser->Close();
00108         CloseCmdPicker(mCommandPickerWnd);
00109 
00110         // Open the new target window
00111         int x,y,w,h;
00112         src->GetDimensions(x, y, w, h);
00113         OpenApp((Window*) userData, x, y, w, h);
00114     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:02:18 2010 for ImpalaSrc by  doxygen 1.5.1