bool MidiTimelineNode::initialise() { if( !NodeControlBase::initialise() ) { return( false ); } if( !mTimelineControl ) { return( false ); } if( !mTimelineControl->initialise() ) { return( false ); } fugio::TimelineWidgetInterface *TLW = qobject_cast<fugio::TimelineWidgetInterface *>( mNode->context()->findInterface( IID_TIMELINE_WIDGET ) ); if( TLW ) { TLW->addTrack( this ); } connect( mNode->context()->qobject(), SIGNAL(stateChanged(ContextInterface::TimeState)), this, SLOT(stateChanged(ContextInterface::TimeState)) ); connect( mNode->context()->qobject(), SIGNAL(aboutToPlay()), this, SLOT(aboutToPlay()) ); playheadMove( 0 ); return( true ); }
void ContextPrivate::notifyAboutToPlay() { for( fugio::PlayheadInterface *PH : mPlayheadList ) { PH->playStart( mPlayheadLocalLast ); } emit aboutToPlay(); }
void PlayList::onAboutToPlay(const QModelIndex &index) { emit aboutToPlay(index.data(Qt::DisplayRole).value<PlayListItem>().url()); }