Reimplemented from OglGui::Button. Definition at line 45 of file CameraEventButton.h. References Impala::Application::SDash::CameraEvent::AlertDescription(), Impala::Application::SDash::CameraEvent::CameraId(), Impala::Application::SDash::CameraEvent::CommentsC(), OglGui::Window::DisplayFunc(), OglGui::Window::GetState(), OglGui::OglWindow::H(), OglGui::Button::IsSelected(), mCameraEvent, OglGui::Window::mForeGroundColor, OglGui::OglWindow::mOglWnd, mX, Impala::Application::SDash::CameraEvent::Seconds(), and OglGui::OglWindow::W(). 00046 { 00047 int w = W(), h = H(); 00048 ULONG col = GetState() ? mForeGroundColor : 0xff999999; 00049 const char* str = mCameraEvent->AlertDescription(); 00050 long secs = mCameraEvent->Seconds(); 00051 int id = mCameraEvent->CameraId(); 00052 const char* comments = mCameraEvent->CommentsC(); 00053 int hr = secs / 3600; 00054 int m = (secs % 3600) / 60; 00055 int s = (secs % 3600) % 60; 00056 00057 OGC myOGC; 00058 OGCSave(&myOGC); 00059 oglSys.PosColPrintf(mOglWnd, mX[0], 7, col, "%02d:%02d:%02d", hr, m, s); 00060 oglSys.PosColPrintf(mOglWnd, mX[1], 7, col, "%d", id); 00061 oglSys.PosColPrintf(mOglWnd, mX[2], 7, col, "%s", str); 00062 oglSys.PosColPrintf(mOglWnd, mX[3], 7, col, "%s", comments); 00063 if (IsSelected()) 00064 { 00065 DrawLine(0, h-2, w, h-2); 00066 DrawLine(0, h-3, w, h-3); 00067 DrawLine(0, 1, w, 1); 00068 DrawLine(0, 2, w, 2); 00069 } 00070 Window::DisplayFunc(); 00071 OGCRestore(&myOGC); 00072 }
Here is the call graph for this function:
|