Logo Search packages:      
Sourcecode: kdenlive version File versions

double KdenliveDoc::framesPerSecond (  )  const

Returns the number of frames per second.

Definition at line 184 of file kdenlivedoc.cpp.

References DocClipProject::framesPerSecond(), and m_projectClip.

Referenced by deleteContents(), emitCurrentClipPosition(), TrackPanelRazorFunction::getMouseCursor(), TrackPanelMarkerFunction::getMouseCursor(), TrackPanelClipResizeFunction::getMouseCursor(), getTimecodePosition(), Gui::KMMEditPanel::inpoint(), TrackPanelRazorFunction::mouseApplies(), TrackPanelMarkerFunction::mouseApplies(), TrackPanelKeyFrameFunction::mouseApplies(), TrackPanelClipSlipFunction::mouseApplies(), TrackPanelClipRollFunction::mouseApplies(), TrackPanelClipResizeFunction::mouseApplies(), TrackPanelClipMoveFunction::mouseApplies(), TrackPanelClipMoveFunction::mouseDoubleClicked(), TrackPanelKeyFrameFunction::mouseMoved(), TrackPanelClipSlipFunction::mouseMoved(), TrackPanelClipMoveFunction::mouseMoved(), TrackPanelSpacerFunction::mousePressed(), TrackPanelRazorFunction::mousePressed(), TrackPanelKeyFrameFunction::mousePressed(), TrackPanelClipSlipFunction::mousePressed(), TrackPanelClipRollFunction::mousePressed(), TrackPanelClipResizeFunction::mousePressed(), TrackPanelClipMoveFunction::mousePressed(), TrackPanelMarkerFunction::mouseReleased(), Gui::KMMEditPanel::outpoint(), Gui::TrackViewMarkerDecorator::paintClip(), Gui::KMMEditPanel::point(), Gui::KMMRecPanel::rulerValueChanged(), Gui::KMMEditPanel::rulerValueChanged(), Gui::KMMEditPanel::seek(), Gui::KMMEditPanel::setInpoint(), Gui::KMMEditPanel::setOutpoint(), TrackPanelClipSlipFunction::setupSnapToGrid(), TrackPanelClipMoveFunction::setupSnapToGrid(), and Gui::KdenliveApp::slotEditPaste().

{
    if (m_projectClip) {
      return m_projectClip->framesPerSecond();
    } else {
      kdWarning() <<
          "KdenliveDoc cannot calculate frames per second - m_projectClip is null!!! Perhaps m_projectClip is in the process of being created? Temporarily returning 25 as a placeholder - needs fixing."
          << endl;
      return 25;
    }
}


Generated by  Doxygen 1.6.0   Back to index