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

void RosegardenGUIApp::slotDeleteRange (  )  [slot]

Delete a time range.

Definition at line 2454 of file rosegardengui.cpp.

References MultiViewCommandHistory::addCommand(), RosegardenGUIDoc::getCommandHistory(), RosegardenGUIDoc::getComposition(), m_doc, and RosegardenGUIDoc::setLoop().

Referenced by setupActions().

{
    timeT t0 = m_doc->getComposition().getLoopStart();
    timeT t1 = m_doc->getComposition().getLoopEnd();

    if (t0 == t1) return;
    
    m_doc->getCommandHistory()->addCommand
      (new DeleteRangeCommand(&m_doc->getComposition(), t0, t1));

    m_doc->setLoop(0, 0);
}


Generated by  Doxygen 1.6.0   Back to index