]> git.sesse.net Git - kdenlive/blobdiff - src/razorclipcommand.cpp
Make jog shuttle buttons work, based on patch from P. Fleury,
[kdenlive] / src / razorclipcommand.cpp
index 75fb9d8b2a8125da06dbc6572ea53eecafa15b28..023f39f8c7ab8d33253aa4d52c80bf012ff3e696 100644 (file)
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
  ***************************************************************************/
 
-#include <KLocale>
 
 #include "razorclipcommand.h"
 #include "customtrackview.h"
 
-RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo info, const GenTime cutTime, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_info(info), m_cutTime(cutTime), m_doIt(doIt) {
+#include <KLocale>
+
+RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo info, const GenTime cutTime, bool doIt, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_info(info),
+        m_cutTime(cutTime),
+        m_doIt(doIt)
+{
     setText(i18n("Razor clip"));
 }
 
 // virtual
-void RazorClipCommand::undo() {
-// kDebug()<<"----  undoing action";
-    m_doIt = true;
+void RazorClipCommand::undo()
+{
+    // kDebug()<<"----  undoing action";
     m_view->cutClip(m_info, m_cutTime, false);
 }
 // virtual
-void RazorClipCommand::redo() {
-    kDebug() << "----  redoing action cut: " << m_cutTime.frames(25);
-    if (m_doIt)
-        m_view->cutClip(m_info, m_cutTime, true);
+void RazorClipCommand::redo()
+{
+    // kDebug() << "----  redoing action cut: " << m_cutTime.frames(25);
+    if (m_doIt) m_view->cutClip(m_info, m_cutTime, true);
     m_doIt = true;
 }