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

void Gui::KTimeLine::drawCurrentTrack ( int  track,
int  offset = 0,
GenTime  start = GenTime(0),
GenTime  end = GenTime(0) 
) [slot]

Udate only the track which contains selected clip

Definition at line 263 of file ktimeline.cpp.

References drawPartialTrackViewBackBuffer(), drawTrackViewBackBuffer(), GenTime::frames(), and m_framesPerSecond.

                                                                                      {
      if (track == -1) {
          drawTrackViewBackBuffer();
      }
      else {
          if (start != GenTime(0) && end != GenTime(0)) {
            if (offset >= 0) drawPartialTrackViewBackBuffer((int) start.frames(m_framesPerSecond), (int) end.frames(m_framesPerSecond), 2 * (track - offset), 2 * track + 1);
            else drawPartialTrackViewBackBuffer((int) start.frames(m_framesPerSecond), (int) end.frames(m_framesPerSecond), 2 * track, 2 * (track - offset) + 1);
          } else {
            if (offset >= 0) drawTrackViewBackBuffer(2 * (track - offset), 2 * track + 1);
            else drawTrackViewBackBuffer(2 * track, 2 * (track - offset) + 1);
          }
      }
    }


Generated by  Doxygen 1.6.0   Back to index