]> git.sesse.net Git - kdenlive/commitdiff
Remove not necessary virtual keyword. Fix includes; fix indent
authorMontel Laurent <montel@kde.org>
Thu, 30 May 2013 07:49:20 +0000 (09:49 +0200)
committerMontel Laurent <montel@kde.org>
Thu, 30 May 2013 07:49:20 +0000 (09:49 +0200)
20 files changed:
src/commands/locktrackcommand.cpp
src/commands/locktrackcommand.h
src/commands/moveclipcommand.cpp
src/commands/moveclipcommand.h
src/commands/moveeffectcommand.cpp
src/commands/moveeffectcommand.h
src/commands/movegroupcommand.cpp
src/commands/movegroupcommand.h
src/commands/movetransitioncommand.cpp
src/commands/movetransitioncommand.h
src/commands/razorclipcommand.cpp
src/commands/razorclipcommand.h
src/commands/rebuildgroupcommand.cpp
src/commands/rebuildgroupcommand.h
src/commands/refreshmonitorcommand.cpp
src/commands/refreshmonitorcommand.h
src/commands/resizeclipcommand.cpp
src/commands/resizeclipcommand.h
src/commands/splitaudiocommand.cpp
src/commands/splitaudiocommand.h

index 8b35773bc56960a950afd1d56cbce4f00325d25e..1f334a9bf7582d0a54e02bbf68c3dc169d969645 100644 (file)
 #include <KLocale>
 
 LockTrackCommand::LockTrackCommand(CustomTrackView *view, int ix, bool lock, QUndoCommand * parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_ix(ix),
-        m_lock(lock)
+    QUndoCommand(parent),
+    m_view(view),
+    m_ix(ix),
+    m_lock(lock)
 {
-    if (lock) setText(i18n("Lock track"));
-    else setText(i18n("Unlock track"));
+    if (lock)
+        setText(i18n("Lock track"));
+    else
+        setText(i18n("Unlock track"));
 }
 
 
index 1d17a634fceb07e19629c0e4167c58286e9f772a..468f077facfd6e9435cdcaaf7ef7150f956b3530 100644 (file)
@@ -22,7 +22,6 @@
 #define LOCKTRACKCOMMAND_H
 
 #include <QUndoCommand>
-#include <KDebug>
 
 class CustomTrackView;
 
@@ -30,8 +29,8 @@ class LockTrackCommand : public QUndoCommand
 {
 public:
     LockTrackCommand(CustomTrackView *view, int ix, bool lock, QUndoCommand * parent = 0);
-    virtual void undo();
-    virtual void redo();
+    void undo();
+    void redo();
 
 private:
     CustomTrackView *m_view;
index 1ab923129fb2696f8a13120afe6b2df431f24126..b41ebf8ca9380ac2fc9f539ffe05df5dda84dbdd 100644 (file)
 
 #include <KLocale>
 
-MoveClipCommand::MoveClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, QUndoCommand * parent) :
-    QUndoCommand(parent),
-    m_view(view),
-    m_startPos(start),
-    m_endPos(end),
-    m_doIt(doIt),
-    m_success(true)
+MoveClipCommand::MoveClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, QUndoCommand * parent)
+    QUndoCommand(parent),
+      m_view(view),
+      m_startPos(start),
+      m_endPos(end),
+      m_doIt(doIt),
+      m_success(true)
 {
     setText(i18n("Move clip"));
     if (parent) {
         // command has a parent, so there are several operations ongoing, do not refresh monitor
         m_refresh = false;
-    } else m_refresh = true;
+    } else {
+        m_refresh = true;
+    }
 }
 
 
@@ -52,9 +54,9 @@ void MoveClipCommand::undo()
 void MoveClipCommand::redo()
 {
     if (m_doIt) {
-//        qDebug() << "Executing move clip command. End now:" << m_endPos;
+        //        qDebug() << "Executing move clip command. End now:" << m_endPos;
         m_success = m_view->moveClip(m_startPos, m_endPos, m_refresh, &m_endPos);
-//        qDebug() << "Move clip command executed. End now: " << m_endPos;
+        //        qDebug() << "Move clip command executed. End now: " << m_endPos;
     }
     m_doIt = true;
 }
index 0159ad4269c852615c26238d6adbbf9341e46d1f..253ee067ff1d039697bf07c63632f656129588ac 100644 (file)
@@ -32,8 +32,8 @@ class MoveClipCommand : public QUndoCommand
 {
 public:
     MoveClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, QUndoCommand * parent = 0);
-    virtual void undo();
-    virtual void redo();
+    void undo();
+    void redo();
 
 private:
     CustomTrackView *m_view;
index e290ff2aca83d3180a7f0115f52e6b1d3ce1512c..5be578e290608d8cf12e890ccbb513f09cbe35fa 100644 (file)
 #include "customtrackview.h"
 
 #include <KLocale>
+#include <KDebug>
 
 MoveEffectCommand::MoveEffectCommand(CustomTrackView *view, const int track, const GenTime &pos, const QList<int> &oldPos, int newPos, QUndoCommand * parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_track(track),
-        m_oldindex(oldPos),
-        m_pos(pos)
+    QUndoCommand(parent),
+    m_view(view),
+    m_track(track),
+    m_oldindex(oldPos),
+    m_pos(pos)
 {
     for (int i = 0; i < m_oldindex.count(); ++i) {
-       m_newindex << newPos + i;
+        m_newindex << newPos + i;
     }
     /*    QString effectName;
         QDomElement namenode = effect.firstChildElement("name");
index ee86ffb274657f73b770b7baecbbf52958f212cc..47d17dede41602526027b8ff3ca9e380e28d0197 100644 (file)
@@ -22,9 +22,7 @@
 #define MOVEEFFECTCOMMAND_H
 
 #include <QUndoCommand>
-#include <KDebug>
 #include <gentime.h>
-#include <QDomElement>
 
 class CustomTrackView;
 
@@ -35,8 +33,8 @@ public:
 
     virtual int id() const;
     virtual bool mergeWith(const QUndoCommand * command);
-    virtual void undo();
-    virtual void redo();
+    void undo();
+    void redo();
 
 private:
     CustomTrackView *m_view;
index efc0f3e8487ecb41cc1f3834c692b9df18a8c096..651a602d052424527660b2d87286da8653f68aee 100644 (file)
 #include <KLocale>
 
 MoveGroupCommand::MoveGroupCommand(CustomTrackView *view, const QList <ItemInfo> &startClip, const QList <ItemInfo> &startTransition, const GenTime &offset, const int trackOffset, bool doIt, QUndoCommand * parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_startClip(startClip),
-        m_startTransition(startTransition),
-        m_offset(offset),
-        m_trackOffset(trackOffset),
-        m_doIt(doIt)
+    QUndoCommand(parent),
+    m_view(view),
+    m_startClip(startClip),
+    m_startTransition(startTransition),
+    m_offset(offset),
+    m_trackOffset(trackOffset),
+    m_doIt(doIt)
 {
     setText(i18n("Move group"));
 }
@@ -39,7 +39,7 @@ MoveGroupCommand::MoveGroupCommand(CustomTrackView *view, const QList <ItemInfo>
 // virtual
 void MoveGroupCommand::undo()
 {
-// kDebug()<<"----  undoing action";
+    // kDebug()<<"----  undoing action";
     m_doIt = true;
     m_view->moveGroup(m_startClip, m_startTransition, GenTime() - m_offset, - m_trackOffset, true);
 }
index c2df2644329d8a320c431430ef8b821b4cad10a7..377712bda57ae47b49bfc7efc1a82f3139909fa4 100644 (file)
@@ -31,8 +31,8 @@ class MoveGroupCommand : public QUndoCommand
 {
 public:
     MoveGroupCommand(CustomTrackView *view, const QList <ItemInfo> &startClip, const QList <ItemInfo> &startTransition, const GenTime &offset, const int trackOffset, bool doIt, QUndoCommand * parent = 0);
-    virtual void undo();
-    virtual void redo();
+    void undo();
+    void redo();
 
 private:
     CustomTrackView *m_view;
index 629110f6efc5a36bcb522ae65c1f8ad2d441033a..2a24d2f665d7861628695a1a3f0c08c06ca5e0d1 100644 (file)
 #include <KLocale>
 
 MoveTransitionCommand::MoveTransitionCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, QUndoCommand * parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_startPos(start),
-        m_endPos(end),
-        m_doIt(doIt)
+    QUndoCommand(parent),
+    m_view(view),
+    m_startPos(start),
+    m_endPos(end),
+    m_doIt(doIt)
 {
     setText(i18n("Move transition"));
     if (parent) {
@@ -38,7 +38,7 @@ MoveTransitionCommand::MoveTransitionCommand(CustomTrackView *view, const ItemIn
 // virtual
 void MoveTransitionCommand::undo()
 {
-// kDebug()<<"----  undoing action";
+    // kDebug()<<"----  undoing action";
     m_doIt = true;
     m_view->moveTransition(m_endPos, m_startPos, m_refresh);
 }
@@ -46,7 +46,8 @@ void MoveTransitionCommand::undo()
 void MoveTransitionCommand::redo()
 {
     //kDebug() << "----  redoing action";
-    if (m_doIt) m_view->moveTransition(m_startPos, m_endPos, m_refresh);
+    if (m_doIt)
+        m_view->moveTransition(m_startPos, m_endPos, m_refresh);
     m_doIt = true;
 }
 
index 42f1967fefbed88e638611b727f52cc31bc4d5e1..8b5e76417e59d13a70a8eebfc4d235e8a7f149ef 100644 (file)
@@ -28,8 +28,8 @@ class MoveTransitionCommand : public QUndoCommand
 {
 public:
     MoveTransitionCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, QUndoCommand * parent = 0);
-    virtual void undo();
-    virtual void redo();
+    void undo();
+    void redo();
 
 private:
     CustomTrackView *m_view;
index 07af951c3695d0099e67fb660848012ce5a7b80c..8abf064772ed2716008d1df1c5d06c837003472b 100644 (file)
 #include <KLocale>
 
 RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo &info, EffectsList stack, const GenTime &cutTime, bool doIt, QUndoCommand * parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_info(info),
-        m_cutTime(cutTime),
-        m_doIt(doIt)
+    QUndoCommand(parent),
+    m_view(view),
+    m_info(info),
+    m_cutTime(cutTime),
+    m_doIt(doIt)
 {
     m_originalStack.clone(stack);
     setText(i18n("Razor clip"));
@@ -45,7 +45,7 @@ void RazorClipCommand::redo()
 {
     // kDebug() << "----  redoing action cut: " << m_cutTime.frames(25);
     if (m_doIt) {
-       m_view->cutClip(m_info, m_cutTime, true);
+        m_view->cutClip(m_info, m_cutTime, true);
     }
     m_doIt = true;
 }
index 1f01cd204c87bc850d58d330301ff0a3d15c6c07..c595ff7f525e95919dcc550b681653d23806d6d0 100644 (file)
@@ -34,8 +34,8 @@ class RazorClipCommand : public QUndoCommand
 {
 public:
     RazorClipCommand(CustomTrackView *view, const ItemInfo &info, EffectsList stack, const GenTime &cutTime, bool doIt = true, QUndoCommand * parent = 0);
-    virtual void undo();
-    virtual void redo();
+    void undo();
+    void redo();
 
 private:
     CustomTrackView *m_view;
index a80b2f4e3efc3463630891a3287d0285b7894e66..5d2b4e5cc3c4f13d4787e7c2e2296c6e7c56d3f0 100644 (file)
 #include "customtrackview.h"
 
 RebuildGroupCommand::RebuildGroupCommand(CustomTrackView* view, int childTrack, const GenTime &childPos, QUndoCommand* parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_childTrack(childTrack),
-        m_childPos(childPos)
+    QUndoCommand(parent),
+    m_view(view),
+    m_childTrack(childTrack),
+    m_childPos(childPos)
 {
     setText(i18n("Rebuild Group"));
 }
index dbc80ef85295148b9c0f18e792fb4b506c26fde5..e9d864cd3ae1c55951d1612568fcff6b50448b6b 100644 (file)
@@ -30,8 +30,8 @@ class RebuildGroupCommand : public QUndoCommand
 {
 public:
     RebuildGroupCommand(CustomTrackView *view, int childTrack, const GenTime &childPos, QUndoCommand* parent = 0);
-    virtual void undo();
-    virtual void redo();
+    void undo();
+    void redo();
 
 private:
     CustomTrackView *m_view;
index 384c79d694e4e14c717bb5ec8203cc153ccdbaa9..f0391deec12775b4d3fde23989cc84dc971bd084 100644 (file)
 
 
 RefreshMonitorCommand::RefreshMonitorCommand(CustomTrackView *view, bool execute, bool refreshOnUndo, QUndoCommand * parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_exec(execute),
-        m_execOnUndo(refreshOnUndo)
+    QUndoCommand(parent),
+    m_view(view),
+    m_exec(execute),
+    m_execOnUndo(refreshOnUndo)
 {
 }
 
@@ -34,13 +34,14 @@ RefreshMonitorCommand::RefreshMonitorCommand(CustomTrackView *view, bool execute
 // virtual
 void RefreshMonitorCommand::undo()
 {
-    if (m_execOnUndo) m_view->monitorRefresh();
+    if (m_execOnUndo)
+        m_view->monitorRefresh();
 }
 // virtual
 void RefreshMonitorCommand::redo()
 {
     if (m_exec && !m_execOnUndo)
-       m_view->monitorRefresh();
+        m_view->monitorRefresh();
     m_exec = true;
 }
 
index 111daa42060a4f7b45d31489aabd132987440d29..14755a2d4244bd728d7bb90fe43739991dddcd70 100644 (file)
@@ -29,8 +29,8 @@ class RefreshMonitorCommand : public QUndoCommand
 {
 public:
     RefreshMonitorCommand(CustomTrackView *view, bool execute, bool refreshOnUndo, QUndoCommand * parent = 0);
-    virtual void undo();
-    virtual void redo();
+    void undo();
+    void redo();
 
 private:
     CustomTrackView *m_view;
index a0103c06e8d3e042efa46e6ea9edbc0887421080..aef17634d6605613951aaf831c898fa51f440980 100644 (file)
 #include <KLocale>
 
 ResizeClipCommand::ResizeClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, bool dontWorry, QUndoCommand * parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_startPos(start),
-        m_endPos(end),
-        m_doIt(doIt),
-        m_dontWorry(dontWorry)
+    QUndoCommand(parent),
+    m_view(view),
+    m_startPos(start),
+    m_endPos(end),
+    m_doIt(doIt),
+    m_dontWorry(dontWorry)
 {
     setText(i18n("Resize clip"));
 }
@@ -43,7 +43,7 @@ void ResizeClipCommand::undo()
 void ResizeClipCommand::redo()
 {
     if (m_doIt) {
-       m_view->resizeClip(m_startPos, m_endPos, m_dontWorry);
+        m_view->resizeClip(m_startPos, m_endPos, m_dontWorry);
     }
     m_doIt = true;
 }
index 9e326e0f8658ff209b21974be5a308d8b0116c88..386c60221bc19b023fb0112b5e51db74ed1fc361 100644 (file)
 #define RESIZECLIPCOMMAND_H
 
 #include <QUndoCommand>
-#include <QGraphicsView>
-#include <QPointF>
-
-#include <KDebug>
 
 #include "definitions.h"
 
@@ -35,8 +31,8 @@ class ResizeClipCommand : public QUndoCommand
 {
 public:
     ResizeClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, bool dontWorry, QUndoCommand * parent = 0);
-    virtual void undo();
-    virtual void redo();
+    void undo();
+    void redo();
 
 private:
     CustomTrackView *m_view;
index e2507e631398024617f15fe8e9a4af95dd4845e1..ee259136f7beb6c2825b426a33234e9a9fda00bb 100644 (file)
 #include <KLocale>
 
 SplitAudioCommand::SplitAudioCommand(CustomTrackView *view, const int track, const GenTime &pos, const EffectsList &effects, QUndoCommand * parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_pos(pos),
-        m_track(track),
-        m_effects(effects)
+    QUndoCommand(parent),
+    m_view(view),
+    m_pos(pos),
+    m_track(track),
+    m_effects(effects)
 {
     setText(i18n("Split audio"));
 }
index b0eb0d3865a3a17008a00934d521d4c0a1ce6d86..5773799b1b3169095874fefd44ed26550e9bb4dd 100644 (file)
 #define SPLITAUDIOCOMMAND_H
 
 #include <QUndoCommand>
-#include <QGraphicsView>
-#include <QPointF>
 
-#include <KDebug>
 #include "definitions.h"
 
 class GenTime;
@@ -35,8 +32,8 @@ class SplitAudioCommand : public QUndoCommand
 {
 public:
     SplitAudioCommand(CustomTrackView *view, const int track, const GenTime &pos, const EffectsList &effects, QUndoCommand * parent = 0);
-    virtual void undo();
-    virtual void redo();
+    void undo();
+    void redo();
 
 private:
     CustomTrackView *m_view;