void SrtEntryVector::syncroTimeAndSub(float time) { int index = searchSubInTime(time); // No Sub right now if (index == -1) { setIsSubActive(false); emit sendCurrentStringSignal(QString("")); } // Sub Right Now else { setIsSubActive(true); setCurrentIndex(index); emit sendCurrentStringSignal(getCurrentEntry().getText()); } }
int AnalysisManager::getCompletionStatus(void) { if(getCurrentEntry() > 0) { completionStatus_ = completionStatusBegin_ + (completionStatusEnd_-completionStatusBegin_) * (float)currentEntry_/totalEventsToProcess_; /* std::stringstream ss; ss << "S: " << completionStatus_ << " B: " << completionStatusBegin_ << " B-E: " << (completionStatusEnd_-completionStatusBegin_) << " CE : " << currentEntry_ << " TE: " << totalEventsToProcess_ << " D: " << (float)currentEntry_/totalEventsToProcess_; STDLINE(ss.str(),ACGreen); */ } return completionStatus_; }