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

void KdenliveDoc::emitCurrentClipPosition (  )  [slot]

Emits position of the cursor relative to current clip, used to get current frame number

Definition at line 318 of file kdenlivedoc.cpp.

References currentClipPosition(), framesPerSecond(), m_projectClip, renderer(), and DocClipProject::selectedClip().

                                              {
      int pos = 1;
      DocClipRef *clip = m_projectClip->selectedClip();
      if (clip) {
          pos = (int) (renderer()->seekPosition() - clip->trackStart() + clip->cropStartTime()).frames(framesPerSecond());
      }
      emit currentClipPosition(pos);
    }


Generated by  Doxygen 1.6.0   Back to index