Commit 0c90e760 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Emit clipAdded from the SequenceWorkflow and propagate it through MainWorkflow

parent 73b90f4f
......@@ -61,6 +61,7 @@ MainWorkflow::MainWorkflow( Settings* projectSettings, int trackCount ) :
m_undoStack( new Commands::AbstractUndoStack ),
m_sequenceWorkflow( new SequenceWorkflow( trackCount ) )
{
connect( m_sequenceWorkflow.get(), &SequenceWorkflow::clipAdded, this, &MainWorkflow::clipAdded );
m_renderer->setInput( m_sequenceWorkflow->input() );
connect( m_renderer->eventWatcher(), &RendererEventWatcher::lengthChanged, this, &MainWorkflow::lengthChanged );
......
......@@ -75,6 +75,7 @@ SequenceWorkflow::addClip( QSharedPointer<::Clip> clip, quint32 trackId, qint32
trackId, pos );
vlmcDebug() << "adding clip instance:" << c->uuid;
m_clips.insert( c->uuid, c ) ;
emit clipAdded( c->uuid.toString() );
return c->uuid;
}
......
......@@ -108,6 +108,9 @@ class SequenceWorkflow : public QObject
QList<std::shared_ptr<Backend::ITrack>> m_tracks[Workflow::NbTrackType];
QList<std::shared_ptr<Backend::IMultiTrack>> m_multiTracks;
const size_t m_trackCount;
signals:
void clipAdded( QString );
};
#endif // SEQUENCEWORKFLOW_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment