timeline: implement nest function
Also includes some improved cache/request code
This commit is contained in:
@@ -98,15 +98,29 @@ public:
|
||||
|
||||
const QVector<Passthrough> &GetPassthroughs() const { return passthroughs_; }
|
||||
|
||||
void ClearRequestRange(const olive::TimeRange &r)
|
||||
{
|
||||
requested_.remove(r);
|
||||
}
|
||||
|
||||
void ResignalRequests()
|
||||
{
|
||||
for (const TimeRange &r : requested_) {
|
||||
emit Requested(r);
|
||||
}
|
||||
}
|
||||
|
||||
public slots:
|
||||
void InvalidateAll();
|
||||
|
||||
void Request(const olive::TimeRange &r);
|
||||
|
||||
signals:
|
||||
void Invalidated(const olive::TimeRange& r);
|
||||
|
||||
void Validated(const olive::TimeRange& r);
|
||||
|
||||
void Request(const olive::TimeRange& r);
|
||||
void Requested(const olive::TimeRange& r);
|
||||
|
||||
void CancelAll();
|
||||
|
||||
@@ -124,6 +138,8 @@ protected:
|
||||
private:
|
||||
TimeRangeList validated_;
|
||||
|
||||
TimeRangeList requested_;
|
||||
|
||||
QUuid uuid_;
|
||||
|
||||
bool saving_enabled_;
|
||||
|
||||
Reference in New Issue
Block a user