BOOL IsPatchable() { // make sure updateable and _PatchFrom is set if (IsUpdateable() && (lstrcmp(_PatchFrom, "") != 0)) { return TRUE; } else { return FALSE; } };
bool CamSettingsPage::OnTimer() { if (m_pCamera == NULL || !IsUpdateable()) { return true; } // This is only so that the camera settings page doesn't hammer // the camera with async reads when it is not the visible page Gtk::Notebook* pNotebook; m_refXml->get_widget( "notebookCamCtl", pNotebook ); if ( pNotebook->get_current_page() == 0 ) { UpdateWidgets(); } return true; }
bool CamInfoPage::OnTimer() { if (m_pCamera == NULL || !IsUpdateable()) { return true; } Gtk::Notebook* pNotebook; m_refXml->get_widget( "notebookCamCtl", pNotebook ); if ( pNotebook->get_current_page() == 3 ) { UpdateInitializeTime(); UpdateBusResetTime(); UpdatePixelClockFreq(); UpdateHorizontalLineFreq(); UpdateTransmitFailures(); } return true; }