Implement "holdover events," noting those log events which are not listed in the currently loaded log but which are present because they were playing when this log was loaded.

This fixes problems arising when the duplicate IDs thus introduced cause confusion.
This commit is contained in:
Chris Smowton
2014-09-21 23:42:51 +01:00
parent 242141d887
commit 94e80606c5
5 changed files with 58 additions and 18 deletions

View File

@@ -61,8 +61,8 @@ class RDLogEvent
QTime blockStartTime(int line);
RDLogLine *logLine(int line) const;
void setLogLine(int line,RDLogLine *ll);
RDLogLine *loglineById(int id) const;
int lineById(int id) const;
RDLogLine *loglineById(int id, bool ignore_holdovers=false) const;
int lineById(int id, bool ignore_holdovers=false) const;
int lineByStartHour(int hour,RDLogLine::StartTimeType type) const;
int lineByStartHour(int hour) const;
int nextTimeStart(QTime after);