Logo Search packages:      
Sourcecode: rosegarden version File versions  Download package

void Rosegarden::RosegardenGUIApp::slotSetLoopStart (  )  [slot]

Set and unset the loop start/end time from the transport loop start/stop buttons with these slots.

Definition at line 5526 of file RosegardenGUIApp.cpp.

References Rosegarden::RosegardenGUIDoc::getComposition(), m_doc, and Rosegarden::RosegardenGUIDoc::setLoop().

    // Check so that start time is before endtime, othervise move upp the
    // endtime to that same pos.
    if ( m_doc->getComposition().getPosition() < m_doc->getComposition().getLoopEnd() ) {
        m_doc->setLoop(m_doc->getComposition().getPosition(), m_doc->getComposition().getLoopEnd());
    } else {
        m_doc->setLoop(m_doc->getComposition().getPosition(), m_doc->getComposition().getPosition());

Generated by  Doxygen 1.6.0   Back to index