Logo Search packages:      
Sourcecode: kdenlive version File versions

void Gui::KMMEditPanel::rulerValueChanged ( int  ID,
int  value 
) [private, slot]

A slider on the ruler has changed value

Definition at line 154 of file kmmeditpanel.cpp.

References KdenliveDoc::framesPerSecond(), Timecode::getTimecode(), inpointPositionChanged(), outpointPositionChanged(), seekPositionChanged(), and KdenliveDoc::timeCode().

                                                          {
      switch (ID) {
      case 0:
          emit seekPositionChanged(GenTime(value,
                m_document->framesPerSecond()));
            edit_timecode->setText(m_document->timeCode().getTimecode(GenTime(value,
                  m_document->framesPerSecond()), m_document->framesPerSecond()));
          break;
      case 1:
          emit inpointPositionChanged(GenTime(value,
                m_document->framesPerSecond()));
          break;
      case 2:
          emit outpointPositionChanged(GenTime(value,
                m_document->framesPerSecond()));
          break;
      }
    }


Generated by  Doxygen 1.6.0   Back to index