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

Removing useless methods from TrackHandler.

MainWorkflow is now clear of clip related methods, though many things
are probably broken, especially when it comes to undo/redo.
Nevertheless, things are much clearer now, and should be fixed way more
easily.
parent 088a1548
......@@ -111,33 +111,6 @@ TrackHandler::stop()
m_tracks[i]->stop();
}
void
TrackHandler::moveClip(const QUuid &clipUuid, unsigned int oldTrack,
unsigned int newTrack, qint64 startingFrame )
{
Q_ASSERT( newTrack < m_trackCount && oldTrack < m_trackCount );
if ( oldTrack == newTrack )
{
//And now, just move the clip.
m_tracks[newTrack]->moveClip( clipUuid, startingFrame );
}
else
{
ClipWorkflow* cw = m_tracks[oldTrack]->removeClipWorkflow( clipUuid );
m_tracks[newTrack]->addClip( cw, startingFrame );
}
}
Clip*
TrackHandler::removeClip( const QUuid& uuid, unsigned int trackId )
{
Q_ASSERT( trackId < m_trackCount );
Clip* clip = m_tracks[trackId]->removeClip( uuid );
return clip;
}
void
TrackHandler::muteTrack( unsigned int trackId )
{
......
......@@ -56,9 +56,6 @@ class TrackHandler : public QObject
bool paused );
qint64 getClipPosition( const QUuid& uuid, unsigned int trackId ) const;
void stop();
void moveClip( const QUuid& clipUuid, unsigned int oldTrack,
unsigned int newTrack, qint64 startingFrame );
Clip* removeClip( const QUuid& uuid, unsigned int trackId );
void muteTrack( unsigned int trackId );
void unmuteTrack( unsigned int trackId );
ClipHelper *getClipHelper( const QUuid& uuid, unsigned int trackId );
......
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