Beispiel #1
0
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 );
}
Beispiel #2
0
void ContextPrivate::notifyAboutToPlay()
{
	for( fugio::PlayheadInterface *PH : mPlayheadList )
	{
		PH->playStart( mPlayheadLocalLast );
	}

	emit aboutToPlay();
}
Beispiel #3
0
void PlayList::onAboutToPlay(const QModelIndex &index)
{
    emit aboutToPlay(index.data(Qt::DisplayRole).value<PlayListItem>().url());
}