implemented track locking in the timeline widget
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -138,11 +138,15 @@ public:
|
||||
|
||||
bool IsMuted() const;
|
||||
|
||||
bool IsLocked() const;
|
||||
|
||||
public slots:
|
||||
void SetTrackName(const QString& name);
|
||||
|
||||
void SetMuted(bool e);
|
||||
|
||||
void SetLocked(bool e);
|
||||
|
||||
signals:
|
||||
/**
|
||||
* @brief Signal emitted when a Block is added to this Track
|
||||
@@ -189,6 +193,8 @@ private:
|
||||
|
||||
int index_;
|
||||
|
||||
bool locked_;
|
||||
|
||||
private slots:
|
||||
void BlockConnected(NodeEdgePtr edge);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user