]> git.sesse.net Git - kdenlive/commitdiff
Reformat initializer lists in all constructors.
authorRay Lehtiniemi <rayl@mail.com>
Sun, 5 Apr 2009 22:21:33 +0000 (22:21 +0000)
committerRay Lehtiniemi <rayl@mail.com>
Sun, 5 Apr 2009 22:21:33 +0000 (22:21 +0000)
Use a consistent, readable format for all initializers. This
layout facilitates the next several patches, which implement
Effective C++ recommendations and remove compiler warnings.
The layout also works with the astyle settings in the reindent
script.

Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
svn path=/trunk/kdenlive/; revision=3225

80 files changed:
renderer/renderjob.cpp
src/abstractclipitem.cpp
src/abstractgroupitem.cpp
src/addclipcommand.cpp
src/addeffectcommand.cpp
src/addfoldercommand.cpp
src/addmarkercommand.cpp
src/addtimelineclipcommand.cpp
src/addtrackcommand.cpp
src/addtransitioncommand.cpp
src/changecliptypecommand.cpp
src/changespeedcommand.cpp
src/changetrackcommand.cpp
src/clipdurationdialog.cpp
src/clipitem.cpp
src/clipmanager.cpp
src/clipproperties.cpp
src/complexparameter.cpp
src/customruler.cpp
src/customtrackscene.cpp
src/customtrackview.cpp
src/docclipbase.cpp
src/dvdwizard.cpp
src/dvdwizardmenu.cpp
src/dvdwizardvob.cpp
src/editclipcommand.cpp
src/editeffectcommand.cpp
src/editfoldercommand.cpp
src/editguidecommand.cpp
src/editkeyframecommand.cpp
src/edittransitioncommand.cpp
src/effectslist.cpp
src/effectslistview.cpp
src/effectslistwidget.cpp
src/effectstackedit.cpp
src/effectstackview.cpp
src/geometryval.cpp
src/graphicsscenerectmove.cpp
src/groupclipscommand.cpp
src/guide.cpp
src/headertrack.cpp
src/insertspacecommand.cpp
src/jogshuttle.cpp
src/kdenlivedoc.cpp
src/kdenlivesettingsdialog.cpp
src/keyframehelper.cpp
src/kthumb.cpp
src/locktrackcommand.cpp
src/mainwindow.cpp
src/managecapturesdialog.cpp
src/markerdialog.cpp
src/monitor.cpp
src/monitormanager.cpp
src/moveclipcommand.cpp
src/moveeffectcommand.cpp
src/movegroupcommand.cpp
src/movetransitioncommand.cpp
src/parameterplotter.cpp
src/profilesdialog.cpp
src/projectitem.cpp
src/projectlist.cpp
src/projectlistview.cpp
src/projectsettings.cpp
src/razorclipcommand.cpp
src/recmonitor.cpp
src/regiongrabber.cpp
src/renderer.cpp
src/renderwidget.cpp
src/resizeclipcommand.cpp
src/slideshowclip.cpp
src/smallruler.cpp
src/spacerdialog.cpp
src/splitaudiocommand.cpp
src/timecode.cpp
src/titlewidget.cpp
src/trackview.cpp
src/transition.cpp
src/transitionsettings.cpp
src/wizard.cpp
thumbnailer/westleypreview.cpp

index bdd6e1cc9164bbf64fbd5bc46b73f3554a2272e5..a743cfb4c621ce14226c6cc20171863ccd0f6621 100644 (file)
@@ -36,7 +36,11 @@ public:
 
 static QDBusConnection connection(QLatin1String(""));
 
-RenderJob::RenderJob(bool erase, bool usekuiserver, const QString &renderer, const QString &profile, const QString &rendermodule, const QString &player, const QString &scenelist, const QString &dest, const QStringList &preargs, const QStringList &args, int in, int out) : QObject(), m_usekuiserver(usekuiserver), m_jobUiserver(NULL), m_kdenliveinterface(NULL)
+RenderJob::RenderJob(bool erase, bool usekuiserver, const QString &renderer, const QString &profile, const QString &rendermodule, const QString &player, const QString &scenelist, const QString &dest, const QStringList &preargs, const QStringList &args, int in, int out) :
+        QObject(),
+        m_usekuiserver(usekuiserver),
+        m_jobUiserver(NULL),
+        m_kdenliveinterface(NULL)
 {
     m_scenelist = scenelist;
     m_dest = dest;
index c6bd71fd9ed0916ad2a5b910395e2585653862b5..40142a686d1093ec204d88fc76d7afee5887092c 100644 (file)
 #include <QPainter>
 #include <QToolTip>
 
-AbstractClipItem::AbstractClipItem(const ItemInfo info, const QRectF& rect, double fps): QGraphicsRectItem(rect), m_track(0), m_fps(fps), m_editedKeyframe(-1), m_selectedKeyframe(0), m_keyframeFactor(1)
+AbstractClipItem::AbstractClipItem(const ItemInfo info, const QRectF& rect, double fps) :
+        QGraphicsRectItem(rect),
+        m_track(0),
+        m_fps(fps),
+        m_editedKeyframe(-1),
+        m_selectedKeyframe(0),
+        m_keyframeFactor(1)
 {
     setFlags(/*QGraphicsItem::ItemClipsToShape | */QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
     setTrack(info.track);
index c2fc010d00d36753873cb675556594a81a05e2de..756e29431c2852aa33075552710227b5b44217d6 100644 (file)
@@ -32,7 +32,9 @@
 #include <QMimeData>
 
 
-AbstractGroupItem::AbstractGroupItem(double fps): QGraphicsItemGroup(), m_fps(fps)
+AbstractGroupItem::AbstractGroupItem(double fps) :
+        QGraphicsItemGroup(),
+        m_fps(fps)
 {
     setZValue(2);
     setFlags(QGraphicsItem::ItemClipsToShape | QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
index ef516dde1e088611ca10a7aaa958d4be30da3991..44df4d5b11c9f57ef593ceb3bc7ba7a919f3773a 100644 (file)
 
 #include <KLocale>
 
-AddClipCommand::AddClipCommand(KdenliveDoc *doc, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_doc(doc), m_xml(xml), m_id(id), m_doIt(doIt)
+AddClipCommand::AddClipCommand(KdenliveDoc *doc, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_doc(doc),
+        m_xml(xml),
+        m_id(id),
+        m_doIt(doIt)
 {
     if (doIt) setText(i18n("Add clip"));
     else setText(i18n("Delete clip"));
index c16cec6481add61059436779d5973b0179464e0a..2a982bb36f811e0fd7aa08af7b357c9ee9ccaa14 100644 (file)
 
 #include <KLocale>
 
-AddEffectCommand::AddEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement effect, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_track(track), m_pos(pos), m_effect(effect), m_doIt(doIt)
+AddEffectCommand::AddEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement effect, bool doIt, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_track(track),
+        m_pos(pos),
+        m_effect(effect),
+        m_doIt(doIt)
 {
     QString effectName;
     QDomNode namenode = effect.elementsByTagName("name").item(0);
index 7d0184ee1852a679c97ef27bb211a5c7403c67ca..b5146d96419243f6b460f1069d4a713c5132fe1a 100644 (file)
 
 #include <KLocale>
 
-AddFolderCommand::AddFolderCommand(ProjectList *view, const QString folderName, const QString &clipId, bool doIt, QUndoCommand *parent) : QUndoCommand(parent), m_view(view), m_name(folderName), m_id(clipId), m_doIt(doIt)
+AddFolderCommand::AddFolderCommand(ProjectList *view, const QString folderName, const QString &clipId, bool doIt, QUndoCommand *parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_name(folderName),
+        m_id(clipId),
+        m_doIt(doIt)
 {
     if (doIt) setText(i18n("Add folder"));
     else setText(i18n("Delete folder"));
index adec5022b383ab9bd4840c02a469b0ddac6be097..dd55184641cb0f41471e2be5db8ea276782f54b3 100644 (file)
 
 #include <KLocale>
 
-AddMarkerCommand::AddMarkerCommand(CustomTrackView *view, const QString &oldcomment, const QString &comment, const QString &id, const GenTime &pos, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_oldcomment(oldcomment), m_comment(comment), m_id(id), m_pos(pos)
+AddMarkerCommand::AddMarkerCommand(CustomTrackView *view, const QString &oldcomment, const QString &comment, const QString &id, const GenTime &pos, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_oldcomment(oldcomment),
+        m_comment(comment),
+        m_id(id),
+        m_pos(pos)
 {
     if (m_comment.isEmpty()) setText(i18n("Delete marker"));
     else if (m_oldcomment.isEmpty()) setText(i18n("Add marker"));
index 3f75319b78bfb37f3acae339645307e49ede1355..437a0522dd6d63aa358c5632ea759ba914bd63f7 100644 (file)
 
 #include <KLocale>
 
-AddTimelineClipCommand::AddTimelineClipCommand(CustomTrackView *view, QDomElement xml, const QString &clipId, ItemInfo info, EffectsList effects, bool doIt, bool doRemove, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_xml(xml), m_clipId(clipId), m_clipInfo(info), m_effects(effects),  m_doIt(doIt), m_remove(doRemove)
+AddTimelineClipCommand::AddTimelineClipCommand(CustomTrackView *view, QDomElement xml, const QString &clipId, ItemInfo info, EffectsList effects, bool doIt, bool doRemove, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_xml(xml),
+        m_clipId(clipId),
+        m_clipInfo(info),
+        m_effects(effects),
+        m_doIt(doIt),
+        m_remove(doRemove)
 {
     if (!m_remove) setText(i18n("Add timeline clip"));
     else setText(i18n("Delete timeline clip"));
index 89bf7deb7cf5550c01c3a1259734e9a311ec32b5..0908371935727a90dd825ccc102180f8695dbc82 100644 (file)
 
 #include <KLocale>
 
-AddTrackCommand::AddTrackCommand(CustomTrackView *view, int ix, TrackInfo info, bool addTrack, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_ix(ix), m_info(info), m_addTrack(addTrack)
+AddTrackCommand::AddTrackCommand(CustomTrackView *view, int ix, TrackInfo info, bool addTrack, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_ix(ix),
+        m_info(info),
+        m_addTrack(addTrack)
 {
     if (addTrack) setText(i18n("Add track"));
     else setText(i18n("Delete track"));
index ec3ff832e6659ac21bf0a3d492a513a9fa123238..7469f3f8f4bd6aace7db99d298a617d66dc09a8b 100644 (file)
 
 #include <KLocale>
 
-AddTransitionCommand::AddTransitionCommand(CustomTrackView *view, ItemInfo info, int transitiontrack, QDomElement params, bool remove, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_info(info), m_track(transitiontrack), m_params(params), m_remove(remove), m_doIt(doIt)
+AddTransitionCommand::AddTransitionCommand(CustomTrackView *view, ItemInfo info, int transitiontrack, QDomElement params, bool remove, bool doIt, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_info(info),
+        m_track(transitiontrack),
+        m_params(params),
+        m_remove(remove),
+        m_doIt(doIt)
 {
     if (m_remove) setText(i18n("Delete transition from clip"));
     else setText(i18n("Add transition to clip"));
index d5c9e31fa3acbc6f9c6d67083480d883b06d7470..2822cfbbfc74da4ffe5521653a94a0c28201f250 100644 (file)
 
 #include <KLocale>
 
-ChangeClipTypeCommand::ChangeClipTypeCommand(CustomTrackView *view, const int track, const GenTime &pos, bool videoOnly, bool audioOnly, bool originalVideo, bool originalAudio, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_track(track), m_pos(pos), m_videoOnly(videoOnly), m_audioOnly(audioOnly), m_originalVideoOnly(originalVideo), m_originalAudioOnly(originalAudio)
+ChangeClipTypeCommand::ChangeClipTypeCommand(CustomTrackView *view, const int track, const GenTime &pos, bool videoOnly, bool audioOnly, bool originalVideo, bool originalAudio, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_track(track),
+        m_pos(pos),
+        m_videoOnly(videoOnly),
+        m_audioOnly(audioOnly),
+        m_originalVideoOnly(originalVideo),
+        m_originalAudioOnly(originalAudio)
 {
     setText(i18n("Change clip type"));
 }
index f99baead29861b6fa73488baf57654a5112e8804..b44fb4d605f01f046418a38a94397c29d2b4f15c 100644 (file)
 
 #include <KLocale>
 
-ChangeSpeedCommand::ChangeSpeedCommand(CustomTrackView *view, ItemInfo info, double old_speed, double new_speed, const QString &clipId, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_clipInfo(info), m_old_speed(old_speed), m_new_speed(new_speed), m_clipId(clipId)
+ChangeSpeedCommand::ChangeSpeedCommand(CustomTrackView *view, ItemInfo info, double old_speed, double new_speed, const QString &clipId, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_clipInfo(info),
+        m_old_speed(old_speed),
+        m_new_speed(new_speed),
+        m_clipId(clipId)
 {
     setText(i18n("Adjust clip length"));
 }
index da87e7d7c548239f83d203e1550d2f128f1211a2..f68ea9292e06aa793bc56584eaa9d1e232dd01ba 100644 (file)
 
 #include <KLocale>
 
-ChangeTrackCommand::ChangeTrackCommand(CustomTrackView *view, int ix, TrackInfo oldInfo, TrackInfo newInfo, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_ix(ix), m_oldinfo(oldInfo), m_newinfo(newInfo)
+ChangeTrackCommand::ChangeTrackCommand(CustomTrackView *view, int ix, TrackInfo oldInfo, TrackInfo newInfo, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_ix(ix),
+        m_oldinfo(oldInfo),
+        m_newinfo(newInfo)
 {
     setText(i18n("Change track type"));
 }
index e941293dfa702b6013d3f56bb56cbadfc7b263a2..26c3795e6928a1e2274bc82393c14a7d65ecdcc9 100644 (file)
 
 #include <QWheelEvent>
 
-ClipDurationDialog::ClipDurationDialog(AbstractClipItem *clip, Timecode tc, QWidget * parent): QDialog(parent), m_tc(tc), m_clip(clip)
+ClipDurationDialog::ClipDurationDialog(AbstractClipItem *clip, Timecode tc, QWidget * parent):
+        QDialog(parent),
+        m_tc(tc),
+        m_clip(clip)
 {
     setFont(KGlobalSettings::toolBarFont());
     m_fps = m_tc.fps();
index f1b4bc8793dc8fbbba557d6de58ccb42c968d830..7e7b517b1eb5b50cef58e2a7b96ad1a013d154d6 100644 (file)
 #include <QGraphicsScene>
 #include <QMimeData>
 
-ClipItem::ClipItem(DocClipBase *clip, ItemInfo info, double fps, double speed, bool generateThumbs)
-        : AbstractClipItem(info, QRectF(), fps), m_clip(clip), m_resizeMode(NONE), m_grabPoint(0), m_maxTrack(0), m_hasThumbs(false), startThumbTimer(NULL), endThumbTimer(NULL), audioThumbWasDrawn(false), m_opacity(1.0), m_timeLine(0), m_startThumbRequested(false), m_endThumbRequested(false), m_startFade(0), m_endFade(0), m_hover(false), m_selectedEffect(-1), m_speed(speed), framePixelWidth(0), m_startPix(QPixmap()), m_endPix(QPixmap()), m_videoOnly(false), m_audioOnly(false)
+ClipItem::ClipItem(DocClipBase *clip, ItemInfo info, double fps, double speed, bool generateThumbs) :
+        AbstractClipItem(info, QRectF(), fps),
+        m_clip(clip),
+        m_resizeMode(NONE),
+        m_grabPoint(0),
+        m_maxTrack(0),
+        m_hasThumbs(false),
+        startThumbTimer(NULL),
+        endThumbTimer(NULL),
+        audioThumbWasDrawn(false),
+        m_opacity(1.0),
+        m_timeLine(0),
+        m_startThumbRequested(false),
+        m_endThumbRequested(false),
+        m_startFade(0),
+        m_endFade(0),
+        m_hover(false),
+        m_selectedEffect(-1),
+        m_speed(speed),
+        framePixelWidth(0),
+        m_startPix(QPixmap()),
+        m_endPix(QPixmap()),
+        m_videoOnly(false),
+        m_audioOnly(false)
 {
     setZValue(1);
     setRect(0, 0, (info.endPos - info.startPos).frames(fps) - 0.02, (double)(KdenliveSettings::trackheight() - 2));
index a5850f269b9714915516094878878c7b9f836db9..c857fda6a9c7bf2327348878496e669e20037410 100644 (file)
 
 #include <QGraphicsItemGroup>
 
-ClipManager::ClipManager(KdenliveDoc *doc): m_doc(doc), m_audioThumbsEnabled(false), m_audioThumbsQueue(QList <QString> ()), m_generatingAudioId(QString())
+ClipManager::ClipManager(KdenliveDoc *doc) :
+        m_doc(doc),
+        m_audioThumbsEnabled(false),
+        m_audioThumbsQueue(QList <QString> ()),
+        m_generatingAudioId(QString())
 {
     m_clipIdCounter = 1;
     m_folderIdCounter = 1;
index bff6d90625406cbeb03ab9aff44038fed360f2c7..4f5b22425ca2c72bb3104502d262ecd531b3ca02 100644 (file)
@@ -43,7 +43,13 @@ static const int TYPE_PNG = 1;
 static const int TYPE_BMP = 2;
 static const int TYPE_GIF = 3;
 
-ClipProperties::ClipProperties(DocClipBase *clip, Timecode tc, double fps, QWidget * parent): QDialog(parent), m_tc(tc), m_clip(clip), m_fps(fps), m_clipNeedsRefresh(false), m_count(0)
+ClipProperties::ClipProperties(DocClipBase *clip, Timecode tc, double fps, QWidget * parent) :
+        QDialog(parent),
+        m_tc(tc),
+        m_clip(clip),
+        m_fps(fps),
+        m_clipNeedsRefresh(false),
+        m_count(0)
 {
     setFont(KGlobalSettings::toolBarFont());
     m_view.setupUi(this);
index 1c89a8a373c2175dd4982fa3ef78934a149175f6..bf2a6d0e36b8d585ad1160e115b616f12453a0c6 100644 (file)
@@ -24,8 +24,8 @@
 #include <QHeaderView>
 #include <QMenu>
 
-ComplexParameter::ComplexParameter(QWidget *parent)
-        QWidget(parent)
+ComplexParameter::ComplexParameter(QWidget *parent) :
+        QWidget(parent)
 {
     ui.setupUi(this);
     //ui.effectlist->horizontalHeader()->setVisible(false);
index fad7268c699ff3dd933ca60d091c7a0c8f09f378..b47bed2e0df7f9d09a6dd96c54f3f126fee7b390 100644 (file)
@@ -52,8 +52,12 @@ static int bigMarkDistance;
 
 const int CustomRuler::comboScale[] = { 1, 2, 5, 10, 25, 50, 125, 250, 500, 725, 1500, 3000, 6000, 12000};
 
-CustomRuler::CustomRuler(Timecode tc, CustomTrackView *parent)
-        : QWidget(parent), m_timecode(tc), m_view(parent), m_duration(0), m_offset(0)
+CustomRuler::CustomRuler(Timecode tc, CustomTrackView *parent) :
+        QWidget(parent),
+        m_timecode(tc),
+        m_view(parent),
+        m_duration(0),
+        m_offset(0)
 {
     setFont(KGlobalSettings::toolBarFont());
     m_scale = 3;
index 76ae1def2d61c30229b3d34fbbdfd3fd40d0094a..eff285956c208b1c9dcc54c11ac98f6b9e3a6d47 100644 (file)
 
 #include <KStandardDirs>
 
-CustomTrackScene::CustomTrackScene(KdenliveDoc *doc, QObject *parent)
-        : QGraphicsScene(parent), m_document(doc), m_scale(1.0)
+CustomTrackScene::CustomTrackScene(KdenliveDoc *doc, QObject *parent) :
+        QGraphicsScene(parent),
+        m_document(doc),
+        m_scale(1.0)
 {
     m_transitionPixmap = QPixmap(KStandardDirs::locate("appdata", "transition.png"));
 }
index 435c9ef21a4d7e596ca75a240cc0b3fb1e5ec1d3..30b0b42ad8f0b440a722a20e629b77e1136f7360 100644 (file)
 // const bool animate = KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects;
 // const int duration = animate ? 1500 : 1;
 
-CustomTrackView::CustomTrackView(KdenliveDoc *doc, CustomTrackScene* projectscene, QWidget *parent)
-        : QGraphicsView(projectscene, parent), m_scene(projectscene), m_cursorPos(0), m_cursorLine(NULL), m_operationMode(NONE), m_dragItem(NULL), m_visualTip(NULL), m_moveOpMode(NONE), m_animation(NULL), m_projectDuration(0), m_clickPoint(QPoint()), m_document(doc), m_autoScroll(KdenliveSettings::autoscroll()), m_tracksHeight(KdenliveSettings::trackheight()), m_tool(SELECTTOOL), m_dragGuide(NULL), m_findIndex(0), m_menuPosition(QPoint()), m_blockRefresh(false), m_selectionGroup(NULL), m_selectedTrack(0), m_copiedItems(QList<AbstractClipItem *> ()), m_scrollOffset(0), m_changeSpeedAction(NULL), m_pasteEffectsAction(NULL), m_ungroupAction(NULL), m_clipDrag(false)
+CustomTrackView::CustomTrackView(KdenliveDoc *doc, CustomTrackScene* projectscene, QWidget *parent) :
+        QGraphicsView(projectscene, parent),
+        m_scene(projectscene),
+        m_cursorPos(0),
+        m_cursorLine(NULL),
+        m_operationMode(NONE),
+        m_dragItem(NULL),
+        m_visualTip(NULL),
+        m_moveOpMode(NONE),
+        m_animation(NULL),
+        m_projectDuration(0),
+        m_clickPoint(QPoint()),
+        m_document(doc),
+        m_autoScroll(KdenliveSettings::autoscroll()),
+        m_tracksHeight(KdenliveSettings::trackheight()),
+        m_tool(SELECTTOOL),
+        m_dragGuide(NULL),
+        m_findIndex(0),
+        m_menuPosition(QPoint()),
+        m_blockRefresh(false),
+        m_selectionGroup(NULL),
+        m_selectedTrack(0),
+        m_copiedItems(QList<AbstractClipItem *> ()),
+        m_scrollOffset(0),
+        m_changeSpeedAction(NULL),
+        m_pasteEffectsAction(NULL),
+        m_ungroupAction(NULL),
+        m_clipDrag(false)
 {
     if (doc) m_commandStack = doc->commandStack();
     else m_commandStack = NULL;
index 5d8521e4859be90f5dc2fdb4ad3880211354e0b7..e843889ab0184dd350a706bd093d781f160a1dbc 100644 (file)
 
 #include <QCryptographicHash>
 
-DocClipBase::DocClipBase(ClipManager *clipManager, QDomElement xml, const QString &id):
-        m_id(id), m_description(QString()), m_refcount(0), m_audioThumbCreated(false), m_duration(GenTime()), m_thumbProd(NULL), m_audioTimer(NULL), m_properties(QMap <QString, QString> ()), audioFrameChache(QMap<int, QMap<int, QByteArray> > ()), m_baseTrackProducers(QList <Mlt::Producer *>()), m_snapMarkers(QList < CommentedTime > ()), m_videoOnlyProducer(NULL), m_audioTrackProducers(QList <Mlt::Producer *>())
+DocClipBase::DocClipBase(ClipManager *clipManager, QDomElement xml, const QString &id) :
+        m_id(id),
+        m_description(QString()),
+        m_refcount(0),
+        m_audioThumbCreated(false),
+        m_duration(GenTime()),
+        m_thumbProd(NULL),
+        m_audioTimer(NULL),
+        m_properties(QMap <QString, QString> ()),
+        audioFrameChache(QMap<int, QMap<int, QByteArray> > ()),
+        m_baseTrackProducers(QList <Mlt::Producer *>()),
+        m_snapMarkers(QList < CommentedTime > ()),
+        m_videoOnlyProducer(NULL),
+        m_audioTrackProducers(QList <Mlt::Producer *>())
 {
     int type = xml.attribute("type").toInt();
     m_clipType = (CLIPTYPE) type;
index e1e7e2d5283ba85bcde4ed5382f8f8bbdaec5e79..86d01a8572257845e846777f3b4ad849f5b18825 100644 (file)
 #include <QDomDocument>
 
 
-DvdWizard::DvdWizard(const QString &url, const QString &profile, QWidget *parent): QWizard(parent), m_profile(profile), m_dvdauthor(NULL), m_mkiso(NULL)
+DvdWizard::DvdWizard(const QString &url, const QString &profile, QWidget *parent) :
+        QWizard(parent),
+        m_profile(profile),
+        m_dvdauthor(NULL),
+        m_mkiso(NULL)
 {
     //setPixmap(QWizard::WatermarkPixmap, QPixmap(KStandardDirs::locate("appdata", "banner.png")));
     setAttribute(Qt::WA_DeleteOnClose);
index 8e99cdfd1d456c0f5b01a22a2d366112e4913bc3..fefa8e80e412e2993506b9c090b72b4ac18114a4 100644 (file)
@@ -22,7 +22,8 @@
 #include <KDebug>
 
 
-DvdWizardMenu::DvdWizardMenu(const QString &profile, QWidget *parent): QWizardPage(parent)
+DvdWizardMenu::DvdWizardMenu(const QString &profile, QWidget *parent) :
+        QWizardPage(parent)
 {
     m_view.setupUi(this);
     m_view.play_text->setText(i18n("Play"));
index 9356f0182638f05dd6d8845b6e7b732984af02b1..6955eb696cab1bf144e8c01fe4cad335faaa16dc 100644 (file)
@@ -26,7 +26,8 @@
 
 #include <QHBoxLayout>
 
-DvdWizardVob::DvdWizardVob(QWidget *parent): QWizardPage(parent)
+DvdWizardVob::DvdWizardVob(QWidget *parent) :
+        QWizardPage(parent)
 {
     m_view.setupUi(this);
     m_view.intro_vob->setEnabled(false);
index bef3b9c660cce6d122f7776e20fae0ccc38b6edb..db4cad81c298f25ade732e166a4715b00e2a7326 100644 (file)
 
 #include <KLocale>
 
-EditClipCommand::EditClipCommand(ProjectList *list, const QString &id, QMap <QString, QString> oldparams, QMap <QString, QString> newparams, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_list(list), m_id(id), m_oldparams(oldparams), m_newparams(newparams), m_doIt(doIt)
+EditClipCommand::EditClipCommand(ProjectList *list, const QString &id, QMap <QString, QString> oldparams, QMap <QString, QString> newparams, bool doIt, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_list(list),
+        m_id(id),
+        m_oldparams(oldparams),
+        m_newparams(newparams),
+        m_doIt(doIt)
 {
     setText(i18n("Edit clip"));
 }
index 22817750a81a5e94a6ef59540199af1a4e18d216..191631dc39ae6ff2d27732f29dfc4a4a5979e486 100644 (file)
 
 #include <KLocale>
 
-EditEffectCommand::EditEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, int stackPos, bool doIt)
-        : m_view(view), m_track(track), m_pos(pos), m_oldeffect(oldeffect), m_stackPos(stackPos), m_doIt(doIt)
+EditEffectCommand::EditEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, int stackPos, bool doIt) :
+        m_view(view),
+        m_track(track),
+        m_pos(pos),
+        m_oldeffect(oldeffect),
+        m_stackPos(stackPos),
+        m_doIt(doIt)
 {
     m_effect = effect.cloneNode().toElement();
     QString effectName;
index 974c2514e1f7d6b58871602db8bbe8bc77933f19..6dbcd7fc95b343118c2a071d05f19dbaceee1ac4 100644 (file)
 
 #include <KLocale>
 
-EditFolderCommand::EditFolderCommand(ProjectList *view, const QString newfolderName, const QString oldfolderName, const QString &clipId, bool doIt, QUndoCommand *parent) : QUndoCommand(parent), m_view(view), m_name(newfolderName), m_oldname(oldfolderName), m_id(clipId), m_doIt(doIt)
+EditFolderCommand::EditFolderCommand(ProjectList *view, const QString newfolderName, const QString oldfolderName, const QString &clipId, bool doIt, QUndoCommand *parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_name(newfolderName),
+        m_oldname(oldfolderName),
+        m_id(clipId),
+        m_doIt(doIt)
 {
     setText(i18n("Rename folder"));
 }
index 0b476569c49323d12aa62171e3032808e530b59a..dd22fd2ac6f0f81d685db72d83164e687f05d00a 100644 (file)
 
 #include <KLocale>
 
-EditGuideCommand::EditGuideCommand(CustomTrackView *view, const GenTime oldPos, const QString &oldcomment, const GenTime pos, const QString &comment, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_oldPos(oldPos), m_oldcomment(oldcomment), m_pos(pos), m_comment(comment), m_doIt(doIt)
+EditGuideCommand::EditGuideCommand(CustomTrackView *view, const GenTime oldPos, const QString &oldcomment, const GenTime pos, const QString &comment, bool doIt, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_oldPos(oldPos),
+        m_oldcomment(oldcomment),
+        m_pos(pos),
+        m_comment(comment),
+        m_doIt(doIt)
 {
     if (m_oldcomment.isEmpty()) setText(i18n("Add guide"));
     else if (m_oldPos == m_pos) setText(i18n("Edit guide"));
index 920285252f7579eaff5edb0467814bb082094745..fed063e1fdd4f386e8fa331697eaeb98ade1f703 100644 (file)
 
 #include <KLocale>
 
-EditKeyFrameCommand::EditKeyFrameCommand(CustomTrackView *view, const int track, GenTime pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt) : m_view(view), m_track(track), m_pos(pos), m_index(effectIndex), m_oldkfr(oldkeyframes), m_newkfr(newkeyframes), m_doIt(doIt)
+EditKeyFrameCommand::EditKeyFrameCommand(CustomTrackView *view, const int track, GenTime pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt) :
+        m_view(view),
+        m_track(track),
+        m_pos(pos),
+        m_index(effectIndex),
+        m_oldkfr(oldkeyframes),
+        m_newkfr(newkeyframes),
+        m_doIt(doIt)
 {
     int prev = m_oldkfr.split(';', QString::SkipEmptyParts).count();
     int next = m_newkfr.split(';', QString::SkipEmptyParts).count();
index 93ffbfd4deef57d4abf5b4998b1f6968a44f8a82..b66d7a32510de82b93efc45267f7db9a89234955 100644 (file)
 
 #include <KLocale>
 
-EditTransitionCommand::EditTransitionCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, bool doIt)
-        : m_view(view), m_track(track), m_pos(pos), m_oldeffect(oldeffect), m_doIt(doIt)
+EditTransitionCommand::EditTransitionCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, bool doIt) :
+        m_view(view),
+        m_track(track),
+        m_pos(pos),
+        m_oldeffect(oldeffect),
+        m_doIt(doIt)
 {
     m_effect = effect.cloneNode().toElement();
     QString effectName;
index 257845fe574cc7e6c4a7625fb9b5021758458ba4..3a64e7dbb064ab1c830ddaaaac50791c1192d3a9 100644 (file)
@@ -22,7 +22,7 @@
 #include <KLocale>
 
 
-EffectsList::EffectsList():
+EffectsList::EffectsList() :
         QList < QDomElement > ()
 {
 }
index 4cd5a22721adc64f4f5d95d4fd223d9ffc3d22ab..2f7325a847dcee2c37781f30f80d1a973b625121 100644 (file)
@@ -30,8 +30,8 @@
 #include <QMenu>
 #include <QDir>
 
-EffectsListView::EffectsListView(QWidget *parent)
-        QWidget(parent)
+EffectsListView::EffectsListView(QWidget *parent) :
+        QWidget(parent)
 {
     ui.setupUi(this);
 
index 1f99f92465e2dbda628185f3ee7c0da82968bd7e..f9f10fecc87e0abb11cfc70ddd820a45769bc3c0 100644 (file)
@@ -36,8 +36,9 @@ static const int EFFECT_CUSTOM = 3;
 const int TypeRole = Qt::UserRole;
 const int IdRole = TypeRole + 1;
 
-EffectsListWidget::EffectsListWidget(QMenu *menu, QWidget *parent)
-        : KListWidget(parent), m_menu(menu)
+EffectsListWidget::EffectsListWidget(QMenu *menu, QWidget *parent) :
+        KListWidget(parent),
+        m_menu(menu)
 {
     //setSelectionMode(QAbstractItemView::ExtendedSelection);
     //setDragDropMode(QAbstractItemView::DragDrop);
index 29d737e7b07cda59a9b7bb87ee47bbf3583f3653..e3511c4af21211b09e86683a07dc5f8431d567d3 100644 (file)
 
 QMap<QString, QImage> EffectStackEdit::iconCache;
 
-EffectStackEdit::EffectStackEdit(QWidget *parent): QWidget(parent), m_in(0), m_out(0)
+EffectStackEdit::EffectStackEdit(QWidget *parent) :
+        QWidget(parent),
+        m_in(0),
+        m_out(0)
 {
     setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));
     QVBoxLayout *vbox1 = new QVBoxLayout(parent);
index af4e3372eacbec432607ddc45a7a0b46d226457a..f24f34cf90657631ea2eadae8a33820b07e9bf02 100644 (file)
@@ -33,8 +33,8 @@
 #include <QInputDialog>
 
 
-EffectStackView::EffectStackView(QWidget *parent)
-        QWidget(parent)
+EffectStackView::EffectStackView(QWidget *parent) :
+        QWidget(parent)
 {
     ui.setupUi(this);
     effectedit = new EffectStackEdit(ui.frame);
index 24df95032d5cb7e84b9cfee374054dc794a4e23e..19967819c8aacc71e8a2642cddd7d9ffc314bb05 100644 (file)
 #include <QMenu>
 
 
-Geometryval::Geometryval(const MltVideoProfile profile, QWidget* parent): QWidget(parent), m_profile(profile), m_geom(NULL), m_path(NULL), paramRect(NULL), m_fixedMode(false)
+Geometryval::Geometryval(const MltVideoProfile profile, QWidget* parent) :
+        QWidget(parent),
+        m_profile(profile),
+        m_geom(NULL),
+        m_path(NULL),
+        paramRect(NULL),
+        m_fixedMode(false)
 {
     ui.setupUi(this);
     QVBoxLayout* vbox = new QVBoxLayout(ui.widget);
index b63ace1ce420dabd7e5dfccea38fb25652e56cf1..08649b85e7316775ef6c8aa629a71a7fc19e87cf 100644 (file)
 #include <QTextBlock>
 
 
-GraphicsSceneRectMove::GraphicsSceneRectMove(QObject *parent): QGraphicsScene(parent), m_selectedItem(NULL), resizeMode(NoResize), m_tool(TITLE_RECTANGLE)
+GraphicsSceneRectMove::GraphicsSceneRectMove(QObject *parent) :
+        QGraphicsScene(parent),
+        m_selectedItem(NULL),
+        resizeMode(NoResize),
+        m_tool(TITLE_RECTANGLE)
 {
     //grabMouse();
     zoom = 1.0;
index dc46fcff7768d670bf0ffcdb9a662b61b8a0caa5..2d34df7b5dd8b078b4f785a9bc07e711312465c1 100644 (file)
 
 #include <KLocale>
 
-GroupClipsCommand::GroupClipsCommand(CustomTrackView *view, const QList <ItemInfo> clipInfos, const QList <ItemInfo> transitionInfos, bool group, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_clips(clipInfos), m_transitions(transitionInfos), m_group(group)
+GroupClipsCommand::GroupClipsCommand(CustomTrackView *view, const QList <ItemInfo> clipInfos, const QList <ItemInfo> transitionInfos, bool group, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_clips(clipInfos),
+        m_transitions(transitionInfos),
+        m_group(group)
 {
     if (m_group) setText(i18n("Group clips"));
     else setText(i18n("Ungroup clips"));
index 80ade91236291d912fcf14e9eb545a6e74043f94..df31a26c72c2a893720540403db847dcdc0dec1f 100644 (file)
 #include <QPen>
 #include <QBrush>
 
-Guide::Guide(CustomTrackView *view, GenTime pos, QString label, double fps, double height)
-        : QGraphicsLineItem(), m_view(view), m_position(pos), m_label(label), m_fps(fps)
+Guide::Guide(CustomTrackView *view, GenTime pos, QString label, double fps, double height) :
+        QGraphicsLineItem(),
+        m_view(view),
+        m_position(pos),
+        m_label(label),
+        m_fps(fps)
 {
     setFlags(QGraphicsItem::ItemIsMovable);
     setToolTip(label);
index 6472c1b3986749f47e8041d7a6c7914aa3a09a10..5e7ebda7e6da70492a1ef12ddc365b0b65dfefb4 100644 (file)
 #include <QPainter>
 #include <QAction>
 
-HeaderTrack::HeaderTrack(int index, TrackInfo info, QWidget *parent)
-        : QWidget(parent), m_index(index), m_type(info.type)
+HeaderTrack::HeaderTrack(int index, TrackInfo info, QWidget *parent) :
+        QWidget(parent),
+        m_index(index),
+        m_type(info.type)
 {
     setFixedHeight(KdenliveSettings::trackheight());
     view.setupUi(this);
index 972df988e325d05d71fe6fd236ac46b259c5d7ff..d9d63ed86e2793d56f946deacdb4315a00bc5cae 100644 (file)
 
 #include <KLocale>
 
-InsertSpaceCommand::InsertSpaceCommand(CustomTrackView *view, QList<ItemInfo> clipsToMove, QList<ItemInfo> transToMove, int track, const GenTime &duration, bool doIt, QUndoCommand * parent)
-        : QUndoCommand(parent), m_view(view), m_clipsToMove(clipsToMove), m_transToMove(transToMove), m_track(track), m_duration(duration), m_doIt(doIt)
+InsertSpaceCommand::InsertSpaceCommand(CustomTrackView *view, QList<ItemInfo> clipsToMove, QList<ItemInfo> transToMove, int track, const GenTime &duration, bool doIt, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_clipsToMove(clipsToMove),
+        m_transToMove(transToMove),
+        m_track(track),
+        m_duration(duration),
+        m_doIt(doIt)
 {
     if (duration > GenTime()) setText(i18n("Insert space"));
     else setText(i18n("Remove space"));
index 1a14e3ff0f2fdfba89ff947a00eaffa98417c963..e94a17f028909866f1e4492e1d69a6d7d6d71ff6 100644 (file)
@@ -210,7 +210,8 @@ void ShuttleThread::jogshuttle(unsigned short code, unsigned int value)
 }
 
 
-JogShuttle::JogShuttle(QString device, QObject *parent): QObject(parent)
+JogShuttle::JogShuttle(QString device, QObject *parent) :
+        QObject(parent)
 {
     initDevice(device);
 }
index 4a920cc40475accc3b746a09362857cf58dc626b..a5f40d0b25a503348a2d15b862981330eb008bbd 100644 (file)
 #include <mlt++/Mlt.h>
 
 
-KdenliveDoc::KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup *undoGroup, const QString &profileName, const QPoint tracks, Render *render, MainWindow *parent): QObject(parent), m_render(render), m_url(url), m_projectFolder(projectFolder), m_commandStack(new QUndoStack(undoGroup)), m_modified(false), m_documentLoadingProgress(0), m_documentLoadingStep(0.0), m_startPos(0), m_zoom(7), m_autosave(NULL), m_zoneStart(0), m_zoneEnd(100), m_abortLoading(false)
+KdenliveDoc::KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup *undoGroup, const QString &profileName, const QPoint tracks, Render *render, MainWindow *parent) :
+        QObject(parent),
+        m_render(render),
+        m_url(url),
+        m_projectFolder(projectFolder),
+        m_commandStack(new QUndoStack(undoGroup)),
+        m_modified(false),
+        m_documentLoadingProgress(0),
+        m_documentLoadingStep(0.0),
+        m_startPos(0),
+        m_zoom(7),
+        m_autosave(NULL),
+        m_zoneStart(0),
+        m_zoneEnd(100),
+        m_abortLoading(false)
 {
     m_clipManager = new ClipManager(this);
     m_autoSaveTimer = new QTimer(this);
index c0a3e7a3aee99543d8300e4311e30a5d7bc360d0..cb95c7f0bb0a1c216aea5470e806ef41af61bc9a 100644 (file)
@@ -40,7 +40,8 @@
 #endif /* NO_JOGSHUTTLE */
 
 
-KdenliveSettingsDialog::KdenliveSettingsDialog(QWidget * parent): KConfigDialog(parent, "settings", KdenliveSettings::self())
+KdenliveSettingsDialog::KdenliveSettingsDialog(QWidget * parent) :
+        KConfigDialog(parent, "settings", KdenliveSettings::self())
 {
 
     QWidget *p1 = new QWidget;
index 04a2c02b06da671f3dc41d15292428b603a4b197..a199bc7d8f163e70b878a6fd1cfad7fcddb6a6eb 100644 (file)
 #include <QStylePainter>
 
 
-KeyframeHelper::KeyframeHelper(QWidget *parent)
-        : QWidget(parent), m_geom(NULL), m_position(0), m_scale(0)
+KeyframeHelper::KeyframeHelper(QWidget *parent) :
+        QWidget(parent),
+        m_geom(NULL),
+        m_position(0),
+        m_scale(0)
 {
     setFont(KGlobalSettings::toolBarFont());
 }
index de7fc00b91e8137fb3391a3b1f07b5015948f394..b883dd22054e8e58bbb3ef951c428846f9eb3a79 100644 (file)
@@ -125,8 +125,8 @@ void MyThread::run()
 
 }
 
-KThumb::KThumb(ClipManager *clipManager, KUrl url, const QString &id, const QString &hash, QObject * parent, const char */*name*/)
-        QObject(parent),
+KThumb::KThumb(ClipManager *clipManager, KUrl url, const QString &id, const QString &hash, QObject * parent, const char */*name*/) :
+        QObject(parent),
         audioThumbProducer(),
         m_url(url),
         m_thumbFile(),
index 4eb8cc08d0cfc742e02f3405178d26d60474aeaf..ffbe7be3a3d3032bd01071da159aa47d39d0e8d1 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)
+LockTrackCommand::LockTrackCommand(CustomTrackView *view, int ix, bool lock, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_ix(ix),
+        m_lock(lock)
 {
     if (lock) setText(i18n("Lock track"));
     else setText(i18n("Unlock track"));
index 265f0c555a555f09ad39dd68e1c039d1e289a3f0..d956bb40f703be2d417553a8c718b1537e275f3e 100644 (file)
@@ -105,13 +105,16 @@ EffectsList MainWindow::audioEffects;
 EffectsList MainWindow::customEffects;
 EffectsList MainWindow::transitions;
 
-MainWindow::MainWindow(const QString &MltPath, const KUrl & Url, QWidget *parent)
-        : KXmlGuiWindow(parent),
-        m_activeDocument(NULL), m_activeTimeline(NULL), m_renderWidget(NULL),
+MainWindow::MainWindow(const QString &MltPath, const KUrl & Url, QWidget *parent) :
+        KXmlGuiWindow(parent),
+        m_activeDocument(NULL),
+        m_activeTimeline(NULL),
+        m_renderWidget(NULL),
 #ifndef NO_JOGSHUTTLE
         m_jogProcess(NULL),
 #endif /* NO_JOGSHUTTLE */
-        m_findActivated(false), m_initialized(false)
+        m_findActivated(false),
+        m_initialized(false)
 {
 
     // Create DBus interface
index e9554ce4fd1f17a9639d1ff1b9bc5934f1614818..784276c48e3a8e5e257b91ad7a186c02d90a7ea3 100644 (file)
@@ -34,7 +34,8 @@
 #include <QTimer>
 
 
-ManageCapturesDialog::ManageCapturesDialog(KUrl::List files, QWidget * parent): QDialog(parent)
+ManageCapturesDialog::ManageCapturesDialog(KUrl::List files, QWidget * parent) :
+        QDialog(parent)
 {
     setFont(KGlobalSettings::toolBarFont());
     m_view.setupUi(this);
index 865f06cf2afe33b3308a4e587acd65dab79c7886..6e0e30c2337ddeeed8d0cebabbf075ca8ea7369b 100644 (file)
 #include <KDebug>
 
 
-MarkerDialog::MarkerDialog(DocClipBase *clip, CommentedTime t, Timecode tc, const QString &caption, QWidget * parent): QDialog(parent), m_tc(tc), m_clip(clip), m_marker(t), m_producer(NULL), m_profile(NULL)
+MarkerDialog::MarkerDialog(DocClipBase *clip, CommentedTime t, Timecode tc, const QString &caption, QWidget * parent) :
+        QDialog(parent),
+        m_tc(tc),
+        m_clip(clip),
+        m_marker(t),
+        m_producer(NULL),
+        m_profile(NULL)
 {
     setFont(KGlobalSettings::toolBarFont());
     m_fps = m_tc.fps();
index 08fdc919f64e53e1c463b2fd43c33be503df7a6a..28a67f7711a4440f97e97c6f2821e8ec02920dc1 100644 (file)
 #include <QLabel>
 
 
-Monitor::Monitor(QString name, MonitorManager *manager, QWidget *parent)
-        : QWidget(parent), render(NULL), m_monitorManager(manager), m_name(name), m_isActive(false), m_currentClip(NULL), m_dragStarted(false), m_overlay(NULL)
+Monitor::Monitor(QString name, MonitorManager *manager, QWidget *parent) :
+        QWidget(parent),
+        render(NULL),
+        m_monitorManager(manager),
+        m_name(name),
+        m_isActive(false),
+        m_currentClip(NULL),
+        m_dragStarted(false),
+        m_overlay(NULL)
 {
     ui.setupUi(this);
     m_scale = 1;
@@ -737,7 +744,9 @@ void Monitor::slotSwitchMonitorInfo(bool show)
     }
 }
 
-MonitorRefresh::MonitorRefresh(QWidget* parent): QWidget(parent), m_renderer(NULL)
+MonitorRefresh::MonitorRefresh(QWidget* parent) : \
+        QWidget(parent),
+        m_renderer(NULL)
 {
     setAttribute(Qt::WA_PaintOnScreen);
     setAttribute(Qt::WA_OpaquePaintEvent); //setAttribute(Qt::WA_NoSystemBackground);
@@ -754,7 +763,8 @@ void MonitorRefresh::paintEvent(QPaintEvent * /*event*/)
 }
 
 
-Overlay::Overlay(QWidget* parent): QLabel(parent)
+Overlay::Overlay(QWidget* parent) :
+        QLabel(parent)
 {
     setAttribute(Qt::WA_TransparentForMouseEvents);
     setAttribute(Qt::WA_OpaquePaintEvent);
index 30eda6e55c3400d6b4258424d19718246c1625ce..9a94f2379d8a2a3c213c813658bea3a1c4370a55 100644 (file)
@@ -27,8 +27,8 @@
 #include <QTimer>
 
 
-MonitorManager::MonitorManager(QWidget *parent)
-        QObject(parent)
+MonitorManager::MonitorManager(QWidget *parent) :
+        QObject(parent)
 {
 }
 
index 1df58fa6f0750a16395d9db9a23bc055c2f2727a..a5f0c3f5b0ebcc555a9662e8de0746ea8ee2a9e2 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)
+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)
 {
     setText(i18n("Move clip"));
 }
index 1d1c34e8b3b8d3e731a614042cbf090c82cf2de4..613dcae437e8eec90c4fd4ab5db49dced3d0f3cd 100644 (file)
 
 #include <KLocale>
 
-MoveEffectCommand::MoveEffectCommand(CustomTrackView *view, const int track, GenTime pos, int oldPos, int newPos, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_track(track), m_pos(pos), m_oldindex(oldPos), m_newindex(newPos)
+MoveEffectCommand::MoveEffectCommand(CustomTrackView *view, const int track, GenTime pos, int oldPos, int newPos, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_track(track),
+        m_pos(pos),
+        m_oldindex(oldPos),
+        m_newindex(newPos)
 {
     /*    QString effectName;
         QDomNode namenode = effect.elementsByTagName("name").item(0);
index 3723c39b11860bec4b99f0901728b61578471ad7..f22bdc95818546294e1462cb3eebf4de8a623e16 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)
+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)
 {
     setText(i18n("Move group"));
 }
index 40ba3e3f831024db5cde15023f233158613dae36..fb8ff8bc6d81c903649f884fb0c30085d11e0721 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)
+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)
 {
     setText(i18n("Move transition"));
 }
index d2fc920cdb5892daf6f8b1e4a7dd2e99e664451c..f53c20a6ec5fdf228bfe0d89ec66730f3577c462 100644 (file)
@@ -23,7 +23,8 @@
 #include <KDebug>
 #include <KPlotPoint>
 
-ParameterPlotter::ParameterPlotter(QWidget *parent): KPlotWidget(parent)
+ParameterPlotter::ParameterPlotter(QWidget *parent) :
+        KPlotWidget(parent)
 {
     setAntialiasing(true);
     setLeftPadding(20);
index 56af2f61ecfb9acf1c291b71b683ba0b027d8668..09a73f6dc1739f4ff2b51ac6f6b1aa44184bbdd1 100644 (file)
 #include <QDir>
 #include <QCloseEvent>
 
-ProfilesDialog::ProfilesDialog(QWidget * parent): QDialog(parent), m_isCustomProfile(false), m_profileIsModified(false)
+ProfilesDialog::ProfilesDialog(QWidget * parent) :
+        QDialog(parent),
+        m_isCustomProfile(false),
+        m_profileIsModified(false)
 {
     m_view.setupUi(this);
 
index 7c3688c14cc3c7158fc36b721e0e35b0525c7128..d3f1d247f461db668e12be5e45987fa72808f425 100644 (file)
@@ -34,8 +34,12 @@ const int UsageRole = NameRole + 2;
 
 
 // folder
-ProjectItem::ProjectItem(QTreeWidget * parent, const QStringList & strings, const QString &clipId)
-        : QTreeWidgetItem(parent, strings), m_clipType(FOLDER), m_clipId(clipId), m_clip(NULL), m_groupname(strings.at(1))
+ProjectItem::ProjectItem(QTreeWidget * parent, const QStringList & strings, const QString &clipId) :
+        QTreeWidgetItem(parent, strings),
+        m_clipType(FOLDER),
+        m_clipId(clipId),
+        m_clip(NULL),
+        m_groupname(strings.at(1))
 {
     setSizeHint(0, QSize(65, 45));
     setFlags(Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsEnabled | Qt::ItemIsEditable);
@@ -44,8 +48,8 @@ ProjectItem::ProjectItem(QTreeWidget * parent, const QStringList & strings, cons
     //kDebug() << "Constructed as folder, with clipId: " << m_clipId << ", and groupname: " << m_groupname;
 }
 
-ProjectItem::ProjectItem(QTreeWidget * parent, DocClipBase *clip)
-        QTreeWidgetItem(parent)
+ProjectItem::ProjectItem(QTreeWidget * parent, DocClipBase *clip) :
+        QTreeWidgetItem(parent)
 {
     setSizeHint(0, QSize(65, 45));
     setFlags(Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsEnabled | Qt::ItemIsEditable);
@@ -64,8 +68,8 @@ ProjectItem::ProjectItem(QTreeWidget * parent, DocClipBase *clip)
     //kDebug() << "Constructed with clipId: " << m_clipId;
 }
 
-ProjectItem::ProjectItem(QTreeWidgetItem * parent, DocClipBase *clip)
-        QTreeWidgetItem(parent)
+ProjectItem::ProjectItem(QTreeWidgetItem * parent, DocClipBase *clip) :
+        QTreeWidgetItem(parent)
 {
     setSizeHint(0, QSize(65, 45));
     setFlags(Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsEnabled | Qt::ItemIsEditable);
index 5ff295cfcedfa61b89e5321f5ed6bfd480255640..4db3e74c4b6344bf380c680f8637528563581a93 100644 (file)
 #include <QProcess>
 #include <QHeaderView>
 
-ProjectList::ProjectList(QWidget *parent)
-        : QWidget(parent), m_render(NULL), m_fps(-1), m_commandStack(NULL), m_selectedItem(NULL), m_infoQueue(QMap <QString, QDomElement> ()), m_thumbnailQueue(QList <QString> ()), m_refreshed(false), m_editAction(NULL), m_openAction(NULL), m_deleteAction(NULL), m_reloadAction(NULL)
+ProjectList::ProjectList(QWidget *parent) :
+        QWidget(parent),
+        m_render(NULL),
+        m_fps(-1),
+        m_commandStack(NULL),
+        m_selectedItem(NULL),
+        m_infoQueue(QMap <QString, QDomElement> ()),
+        m_thumbnailQueue(QList <QString> ()),
+        m_refreshed(false),
+        m_editAction(NULL),
+        m_openAction(NULL),
+        m_deleteAction(NULL),
+        m_reloadAction(NULL)
 {
 
     listView = new ProjectListView(this);;
index 4451fe0f8a369886dec4cee75bce7491806e0563..cc71757265d3acbb712e1dcade6c88c0f6c53f15 100644 (file)
@@ -30,8 +30,9 @@
 #include <QHeaderView>
 #include <QAction>
 
-ProjectListView::ProjectListView(QWidget *parent)
-        : QTreeWidget(parent), m_dragStarted(false)
+ProjectListView::ProjectListView(QWidget *parent) :
+        QTreeWidget(parent),
+        m_dragStarted(false)
 {
     setSelectionMode(QAbstractItemView::ExtendedSelection);
     setDragDropMode(QAbstractItemView::DragDrop);
index 94bf02fbfad72e57568506cdfac52689226a7d6a..1240ddcdc6928862c691d8c7c94051f6d14e8998 100644 (file)
@@ -26,7 +26,9 @@
 
 #include <QDir>
 
-ProjectSettings::ProjectSettings(int videotracks, int audiotracks, const QString projectPath, bool readOnlyTracks, QWidget * parent): QDialog(parent), m_isCustomProfile(false)
+ProjectSettings::ProjectSettings(int videotracks, int audiotracks, const QString projectPath, bool readOnlyTracks, QWidget * parent) :
+        QDialog(parent),
+        m_isCustomProfile(false)
 {
     m_view.setupUi(this);
 
index 32f4194dacfc16bdfd77342a83f32e19ca02e4a6..4abc4bd3c3d8984b61c21bbb11543c66dbf5ae87 100644 (file)
 
 #include <KLocale>
 
-RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo info, const GenTime cutTime, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_info(info), m_cutTime(cutTime)
+RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo info, const GenTime cutTime, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_info(info),
+        m_cutTime(cutTime)
 {
     setText(i18n("Razor clip"));
 }
index b8173b22bfaeaf2102f7879bdf7dc43a377cdbf3..37f1970da39d087037db39dde01d7185eeecb48b 100644 (file)
 #include <QDir>
 
 
-RecMonitor::RecMonitor(QString name, QWidget *parent)
-        : QWidget(parent), m_name(name), m_isActive(false), m_isCapturing(false), m_isPlaying(false), m_didCapture(false)
+RecMonitor::RecMonitor(QString name, QWidget *parent) :
+        QWidget(parent),
+        m_name(name),
+        m_isActive(false),
+        m_isCapturing(false),
+        m_isPlaying(false),
+        m_didCapture(false)
 {
     ui.setupUi(this);
 
index 9c7a3d90eb546f4b038b590cfff9d1f1d4f455b9..6d6bd1cec7f16de84b7cab055c28c14e445939c6 100644 (file)
 #include <KWindowSystem>
 
 RegionGrabber::RegionGrabber() :
-        QWidget(0), selection(), mouseDown(false), newSelection(false),
-        handleSize(10), mouseOverHandle(0), idleTimer(),
-        showHelp(true), grabbing(false),
-        TLHandle(0, 0, handleSize, handleSize), TRHandle(0, 0, handleSize, handleSize),
-        BLHandle(0, 0, handleSize, handleSize), BRHandle(0, 0, handleSize, handleSize),
-        LHandle(0, 0, handleSize, handleSize), THandle(0, 0, handleSize, handleSize),
-        RHandle(0, 0, handleSize, handleSize), BHandle(0, 0, handleSize, handleSize)
+        QWidget(0),
+        selection(),
+        mouseDown(false),
+        newSelection(false),
+        handleSize(10),
+        mouseOverHandle(0),
+        idleTimer(),
+        showHelp(true),
+        grabbing(false),
+        TLHandle(0, 0, handleSize, handleSize),
+        TRHandle(0, 0, handleSize, handleSize),
+        BLHandle(0, 0, handleSize, handleSize),
+        BRHandle(0, 0, handleSize, handleSize),
+        LHandle(0, 0, handleSize, handleSize),
+        THandle(0, 0, handleSize, handleSize),
+        RHandle(0, 0, handleSize, handleSize),
+        BHandle(0, 0, handleSize, handleSize)
 {
     handles << &TLHandle << &TRHandle << &BLHandle << &BRHandle
     << &LHandle << &THandle << &RHandle << &BHandle;
index 656e3f39ea5c50d1b22b3527636cd05613cd7371..66639e9534f40d1d8c3c7864b6bde6493a0b8241 100644 (file)
@@ -53,7 +53,20 @@ static void consumer_frame_show(mlt_consumer, Render * self, mlt_frame frame_ptr
     }
 }
 
-Render::Render(const QString & rendererName, int winid, int extid, QWidget *parent): QObject(parent), m_name(rendererName), m_mltConsumer(NULL), m_mltProducer(NULL), m_mltTextProducer(NULL), m_winid(winid), m_externalwinid(extid),  m_framePosition(0), m_isBlocked(true), m_blackClip(NULL), m_isSplitView(false), m_isZoneMode(false), m_isLoopMode(false)
+Render::Render(const QString & rendererName, int winid, int extid, QWidget *parent) :
+        QObject(parent),
+        m_name(rendererName),
+        m_mltConsumer(NULL),
+        m_mltProducer(NULL),
+        m_mltTextProducer(NULL),
+        m_winid(winid),
+        m_externalwinid(extid),
+        m_framePosition(0),
+        m_isBlocked(true),
+        m_blackClip(NULL),
+        m_isSplitView(false),
+        m_isZoneMode(false),
+        m_isLoopMode(false)
 {
     kDebug() << "//////////  USING PROFILE: " << (char*)KdenliveSettings::current_profile().toUtf8().data();
     refreshTimer = new QTimer(this);
index bd9f203f59c2f8bc48f50eec235a3f0639113911..832ec2d1228f0cb133b60e95a75760153f8712a2 100644 (file)
@@ -48,7 +48,9 @@ const int EditableRole = GroupRole + 5;
 const int MetaGroupRole = GroupRole + 6;
 const int ExtraRole = GroupRole + 7;
 
-RenderWidget::RenderWidget(const QString &projectfolder, QWidget * parent): QDialog(parent), m_projectFolder(projectfolder)
+RenderWidget::RenderWidget(const QString &projectfolder, QWidget * parent) :
+        QDialog(parent),
+        m_projectFolder(projectfolder)
 {
     m_view.setupUi(this);
     setWindowTitle(i18n("Rendering"));
index db5037b40370a5645db4b560f46fe5bdc541ea66..9ad85065b0900f2a8e5bb39f0609886b6546d83c 100644 (file)
 
 #include <KLocale>
 
-ResizeClipCommand::ResizeClipCommand(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)
+ResizeClipCommand::ResizeClipCommand(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)
 {
     setText(i18n("Resize clip"));
 }
index 639344a27ab8f61b03703e403e389584580cfd97..0169630fad7016b1e060f44729578aeef9c5bcd5 100644 (file)
@@ -26,7 +26,9 @@
 
 #include <QDir>
 
-SlideshowClip::SlideshowClip(QWidget * parent): QDialog(parent), m_count(0)
+SlideshowClip::SlideshowClip(QWidget * parent) :
+        QDialog(parent),
+        m_count(0)
 {
     setFont(KGlobalSettings::toolBarFont());
     setWindowTitle(i18n("Add Slideshow Clip"));
index d63ef06cb24d92306d5b565abae678d13a1a75cb..8881329c08bb330997879da4bf2fcb17697d87bd 100644 (file)
 #include <QMouseEvent>
 #include <QStylePainter>
 
-SmallRuler::SmallRuler(QWidget *parent)
-        : QWidget(parent), m_scale(1), m_maxval(25)
+SmallRuler::SmallRuler(QWidget *parent) :
+        QWidget(parent),
+        m_scale(1),
+        m_maxval(25)
 {
     m_zoneStart = 10;
     m_zoneEnd = 60;
index 9427cf312050c988814fdf3331f3543042feafea..c0756fc7d18386618ba0f2f00848bea32c3ae7f7 100644 (file)
@@ -26,7 +26,9 @@
 #include <KDebug>
 
 
-SpacerDialog::SpacerDialog(const GenTime duration, Timecode tc, int track, int trackNumber, QWidget * parent): QDialog(parent), m_tc(tc)
+SpacerDialog::SpacerDialog(const GenTime duration, Timecode tc, int track, int trackNumber, QWidget * parent) :
+        QDialog(parent),
+        m_tc(tc)
 {
     setFont(KGlobalSettings::toolBarFont());
     m_fps = m_tc.fps();
index 5a81b03d807c7f05bef8f9c380520a887e04b91a..7cf15a212feda07060b325f04434fd3e24fce7a8 100644 (file)
 
 #include <KLocale>
 
-SplitAudioCommand::SplitAudioCommand(CustomTrackView *view, const int track, const GenTime &pos, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_track(track), m_pos(pos)
+SplitAudioCommand::SplitAudioCommand(CustomTrackView *view, const int track, const GenTime &pos, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_track(track),
+        m_pos(pos)
 {
     setText(i18n("Split audio"));
 }
index 182f6d9009d17431c3589f4f2881b76645e0c8a6..40e7b198d3fb2cd4f3ac8bdb165489cb4d45eff7 100644 (file)
@@ -19,8 +19,9 @@
 #include <kdebug.h>
 #include <klocale.h>
 
-Timecode::Timecode(Formats format, int framesPerSecond,
-                   bool dropFrame): m_format(format), m_dropFrame(dropFrame),
+Timecode::Timecode(Formats format, int framesPerSecond, bool dropFrame) :
+        m_format(format),
+        m_dropFrame(dropFrame),
         m_displayedFramesPerSecond(framesPerSecond)
 {
 }
index 917399b91e24b6482f080aff78877382efccfb6c..3059c61159ec4fc006332ffe724a8723d7f1c756 100644 (file)
 
 int settingUp = false;
 
-TitleWidget::TitleWidget(KUrl url, QString projectPath, Render *render, QWidget *parent): QDialog(parent), m_render(render), m_count(0), m_projectPath(projectPath), startViewport(NULL), endViewport(NULL)
+TitleWidget::TitleWidget(KUrl url, QString projectPath, Render *render, QWidget *parent) :
+        QDialog(parent),
+        m_render(render),
+        m_count(0),
+        m_projectPath(projectPath),
+        startViewport(NULL),
+        endViewport(NULL)
 {
     setupUi(this);
     setFont(KGlobalSettings::toolBarFont());
index 934a69a40ce397c94fc74e414fdb12bf3d46d75a..ceda4904eaf09c6a7f461d87444c8985f33de6d2 100644 (file)
 
 #include <QScrollBar>
 
-TrackView::TrackView(KdenliveDoc *doc, QWidget *parent)
-        : QWidget(parent), m_doc(doc), m_scale(1.0), m_projectTracks(0)
+TrackView::TrackView(KdenliveDoc *doc, QWidget *parent) :
+        QWidget(parent),
+        m_doc(doc),
+        m_scale(1.0),
+        m_projectTracks(0)
 {
 
     view = new Ui::TimeLine_UI();
index 14da9bd5ebf61924b061ee52aaa1e41d914b6a3b..8272941bd20440be08973a7874549cdbdd534ed5 100644 (file)
 #include <QStyleOptionGraphicsItem>
 
 
-Transition::Transition(const ItemInfo info, int transitiontrack, double fps, QDomElement params, bool automaticTransition) : AbstractClipItem(info, QRectF(), fps), m_automaticTransition(automaticTransition), m_forceTransitionTrack(false)
+Transition::Transition(const ItemInfo info, int transitiontrack, double fps, QDomElement params, bool automaticTransition) :
+        AbstractClipItem(info, QRectF(), fps),
+        m_automaticTransition(automaticTransition),
+        m_forceTransitionTrack(false)
 {
     setZValue(2);
     setRect(0, 0, (info.endPos - info.startPos).frames(fps) - 0.02, (qreal)(KdenliveSettings::trackheight() / 3 * 2 - 1));
index 2b15ebcb5c933698c7b350c3e79e236b47b9bf75..5309915ec8178a7835a3e4f084f30c409e087c00 100644 (file)
 
 #include <KDebug>
 
-TransitionSettings::TransitionSettings(QWidget* parent): QWidget(parent), m_tracksCount(0), m_usedTransition(NULL)
+TransitionSettings::TransitionSettings(QWidget* parent) :
+        QWidget(parent),
+        m_tracksCount(0),
+        m_usedTransition(NULL)
 {
     ui.setupUi(this);
     effectEdit = new EffectStackEdit(ui.frame);
index 13b8a547a6ccadf4905992b183e43ffe3a6492c5..ca2392131f5908c8461506d91bdc1645ceeb1aaa 100644 (file)
@@ -33,7 +33,8 @@
 
 const double recommendedMltVersion = 36;
 
-Wizard::Wizard(bool upgrade, QWidget *parent): QWizard(parent)
+Wizard::Wizard(bool upgrade, QWidget *parent) :
+        QWizard(parent)
 {
     setPixmap(QWizard::WatermarkPixmap, QPixmap(KStandardDirs::locate("appdata", "banner.png")));
 
index 84c563276fdf4308ebb3c2a27b30d35e2705991b..6292069203a7555929803532432b3b076fe3e10d 100644 (file)
@@ -47,8 +47,9 @@ extern "C"
     }
 }
 
-WestleyPreview::WestleyPreview()
-        : m_rand(0), m_inigoprocess(0)
+WestleyPreview::WestleyPreview() :
+        m_rand(0),
+        m_inigoprocess(0)
 {
 }