Logo Search packages:      
Sourcecode: kdenlive version File versions

void Gui::KdenliveApp::slotRazorSelectedClips (  )  [slot]

Razor selected clips at the specified location

Definition at line 4425 of file kdenlive.cpp.

References KdenliveDoc::activateSceneListGeneration(), addCommand(), getDocument(), KdenliveDoc::projectClip(), Gui::KTimeLine::seekPosition(), and DocClipProject::selectedClip().

Referenced by initActions().

                                             {
      DocClipRef *clip = getDocument()->projectClip().selectedClip();
      if (!clip) return;
      GenTime curr = m_timeline->seekPosition();
      if ((curr <= clip->trackStart()) || (curr >= clip->trackEnd())) return;
      getDocument()->activateSceneListGeneration(false);
      addCommand(Command::DocumentMacroCommands::razorSelectedClipsAt(getDocument(), curr), true);
      getDocument()->activateSceneListGeneration(true);
    }


Generated by  Doxygen 1.6.0   Back to index