moved more cache functions out of viewer
This commit is contained in:
@@ -42,6 +42,15 @@ public:
|
||||
const QUuid &GetUuid() const { return uuid_; }
|
||||
void SetUuid(const QUuid &u) { uuid_ = u; }
|
||||
|
||||
bool IsEnabled() const { return enabled_; }
|
||||
void SetEnabled(bool e)
|
||||
{
|
||||
if (enabled_ != e) {
|
||||
enabled_ = e;
|
||||
emit EnabledChanged(e);
|
||||
}
|
||||
}
|
||||
|
||||
TimeRangeList GetInvalidatedRanges(TimeRange intersecting);
|
||||
TimeRangeList GetInvalidatedRanges(const rational &length)
|
||||
{
|
||||
@@ -70,6 +79,8 @@ signals:
|
||||
|
||||
void Validated(const olive::TimeRange& r);
|
||||
|
||||
void EnabledChanged(bool e);
|
||||
|
||||
protected:
|
||||
void Validate(const TimeRange& r, bool signal = true);
|
||||
|
||||
@@ -82,6 +93,8 @@ private:
|
||||
|
||||
QUuid uuid_;
|
||||
|
||||
bool enabled_;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user