implemented track locking in the timeline widget

This commit is contained in:
itsmattkc
2019-12-11 16:34:38 +11:00
parent 7117616635
commit 79c2953662
6 changed files with 32 additions and 7 deletions
+12 -1
View File
@@ -30,7 +30,8 @@
TrackOutput::TrackOutput() :
track_type_(kTrackTypeNone),
block_invalidate_cache_stack_(0),
index_(-1)
index_(-1),
locked_(false)
{
block_input_ = new NodeInputArray("block_in");
AddInput(block_input_);
@@ -369,6 +370,11 @@ bool TrackOutput::IsMuted() const
return muted_input_->get_value_at_time(0).toBool();
}
bool TrackOutput::IsLocked() const
{
return locked_;
}
void TrackOutput::SetTrackName(const QString &name)
{
track_name_ = name;
@@ -380,6 +386,11 @@ void TrackOutput::SetMuted(bool e)
InvalidateCache(0, track_length());
}
void TrackOutput::SetLocked(bool e)
{
locked_ = e;
}
void TrackOutput::UpdateInOutFrom(int index)
{
Q_ASSERT(index >= 0);